index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <template>
  2. <div>
  3. <header-component :is-login="isLogin" :login-account="loginAccount"></header-component>
  4. <el-carousel indicator-position="none" arrow="never" height="900px">
  5. <el-carousel-item v-for="item,index in 3" :key="index">
  6. <div class="banner" :id="'banner'+index">
  7. <div class="position-box">
  8. <button class="carousel-apply-btn">申请代理</button>
  9. </div>
  10. </div>
  11. </el-carousel-item>
  12. </el-carousel>
  13. <div class="position-box">
  14. <div class="login-box">
  15. <div class="box-inner">
  16. <login-box @loginSuccess="isLogin=true;loginAccount=localStorage.getItem('username')" v-if="!isLogin" class="login-box-com"></login-box>
  17. <div v-else class="logged-box">
  18. <h1 class="title">欢迎您!{{loginAccount}}</h1>
  19. <button class="logged-apply-btn">申请代理商</button>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <proxy-banner></proxy-banner>
  25. <div class="main-currency-container">
  26. <div class="header-title">
  27. <h1 class="title">主流交易币种</h1>
  28. <h2 class="eng-title">Mainstream Trading Crypto-currency</h2>
  29. <p class="blue-line"></p>
  30. </div>
  31. <div class="currency-container">
  32. <div class="currency-layer">
  33. <currency-block v-for="item,index in currencyDataList" :key="index" :currency-data="item"></currency-block>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="join-gain-container">
  38. <special-title title="加入我们,可以获得" eng-title="To join our agent you will gain the following advantages"></special-title>
  39. <join-gain-block
  40. class="jg-block"
  41. v-for="item,index in joinGainInfoDataList"
  42. :join-gain-info-data="item"
  43. :key="index">
  44. </join-gain-block>
  45. </div>
  46. <div class="full-pic">
  47. <div class="introduce">
  48. <img class="plat-block" :src="require('../assets/platBlock.png')">
  49. <h1 class="title-main">专业严谨</h1>
  50. <h2 class="title-sub">的交易平台</h2>
  51. <p class="eng-title">Professional and rigorous trading platform</p>
  52. <hr class="short-white-line"/>
  53. <pre class="introduce-block">
  54. Fx66是基于区块链底层技术的数字货币交易所,
  55. 拥有撮合交易系统低延时、高并发的核心技术,
  56. 勇于突破传统交易所的局限,
  57. 将交易、资产写入区块链。
  58. </pre>
  59. </div>
  60. </div>
  61. <div class="one-stop-container">
  62. <special-title title="全方位 一站式服务" eng-title="All-around one-stop service"></special-title>
  63. <div class="intro-container">
  64. <rhombus-block v-for="item,index in infoDataList" :key="index" :info-data="item"></rhombus-block>
  65. </div>
  66. </div>
  67. <right-helper></right-helper>
  68. </div>
  69. </template>
  70. <script>
  71. import HeaderComponent from "../components/header";
  72. import ProxyBanner from "../components/proxyBanner";
  73. import CurrencyBlock from "../components/currencyBlock";
  74. import JoinGainBlock from "../components/joinGainBlock";
  75. import SpecialTitle from "../components/specialTitle";
  76. import RhombusBlock from "../components/rhombusBlock";
  77. import RightHelper from "../components/rightHelper";
  78. import LoginBox from "../components/loginBox";
  79. export default {
  80. name: "index",
  81. components: {
  82. LoginBox,
  83. RightHelper, RhombusBlock, SpecialTitle, JoinGainBlock, CurrencyBlock, ProxyBanner, HeaderComponent, },
  84. data(){
  85. return{
  86. currencyDataList:[
  87. {
  88. icon:'&#xe615;',
  89. name:'btc(比特币)'
  90. },
  91. {
  92. icon:'&#xe615;',
  93. name:'btc(比特币)'
  94. },
  95. {
  96. icon:'&#xe615;',
  97. name:'btc(比特币)'
  98. },
  99. {
  100. icon:'&#xe615;',
  101. name:'btc(比特币)'
  102. },
  103. {
  104. icon:'&#xe615;',
  105. name:'btc(比特币)'
  106. },
  107. {
  108. icon:'&#xe615;',
  109. name:'btc(比特币)'
  110. },
  111. {
  112. icon:'&#xe615;',
  113. name:'btc(比特币)'
  114. },
  115. {
  116. icon:'&#xe615;',
  117. name:'btc(比特币)'
  118. },{
  119. icon:'&#xe615;',
  120. name:'btc(比特币)'
  121. },
  122. {
  123. icon:'&#xe615;',
  124. name:'btc(比特币)'
  125. },
  126. ],
  127. joinGainInfoDataList:[
  128. {
  129. title:'超高返佣',
  130. engTitle:'High commission',
  131. description:'推荐FX66给他人,可以获取被推荐人等比例交易的手续费做为佣金。',
  132. imgUrl:require('../assets/add01.png')
  133. },
  134. {
  135. title:'安全存储',
  136. engTitle:'Secure storage ',
  137. description:'每笔交易需私钥签名,分布式校验,无法假冒和盗用;平台资金更安全,操作更快捷。',
  138. imgUrl:require('../assets/add02.png')
  139. },
  140. {
  141. title:'市场支持',
  142. engTitle:'Marketing support',
  143. description:'FX66经纪商可以共享公司的全部交易工具和交易资源,并且会在市场宣传方面给予相应的支持!',
  144. imgUrl:require('../assets/add03.png')
  145. },
  146. {
  147. title:'技术支持',
  148. engTitle:'Technical support',
  149. description:'我们拥有领先的技术开发团队,针对不同客户需求量身制定专属平台,仅收取少量成本费。',
  150. imgUrl:require('../assets/add04.png')
  151. }
  152. ],
  153. isLogin:false,
  154. loginAccount:'123456789',
  155. infoDataList:[
  156. {
  157. icon:'&#xe648;',
  158. line1:'FX66具备一键交易功能,',
  159. line2:'闪电交易,专业快捷!'
  160. },
  161. {
  162. icon:'&#xe634;',
  163. line1:'手机客户端,',
  164. line2:'随时随地,紧跟市场!'
  165. },
  166. {
  167. icon:'&#xe847;',
  168. line1:'专业分析指导,',
  169. line2:'价值评估市场!'
  170. },
  171. {
  172. icon:'&#xe637;',
  173. line1:'新手帮帮帮',
  174. line2:'一小时教您炒币入门'
  175. }
  176. ]
  177. }
  178. },
  179. mounted(){
  180. let username=localStorage.getItem('username')
  181. if(username){
  182. this.isLogin=true;
  183. this.loginAccount=username;
  184. }
  185. },
  186. methods:{
  187. }
  188. }
  189. </script>
  190. <style scoped lang="less">
  191. @import "../assets/less/_variable.less";
  192. #banner0{
  193. background: url(../assets/banner/banner.png) no-repeat 50%;
  194. background-size: auto 100%;
  195. height: 900px;
  196. }
  197. #banner1{
  198. background: url(../assets/banner/banner1.png) no-repeat 50%;
  199. background-size: auto 100%;
  200. height: 900px;
  201. }
  202. #banner2{
  203. background: url(../assets/banner/banner2.png) no-repeat 50%;
  204. background-size: auto 100%;
  205. height: 900px;
  206. }
  207. .carousel-apply-btn{
  208. position: absolute;
  209. width: 160px;
  210. height: 45px;
  211. background-color: #ffdf00;
  212. border-radius: 2px;
  213. border: none;
  214. font-size: 20px;
  215. color: #154bb2;
  216. left: 0;
  217. /*left: 350px;*/
  218. bottom: 400px;
  219. }
  220. .position-box{
  221. position: absolute;
  222. width: 1200px;
  223. transform: translateX(-50%);
  224. left: 50%;
  225. /*margin: 0 auto;*/
  226. top: 0;
  227. height:900px;
  228. }
  229. .login-box{
  230. position: absolute;
  231. right: 0;
  232. top:180px;
  233. /*width: 390px;*/
  234. /*height: 526px;*/
  235. background-color: rgba(255, 255, 255, 0.4);
  236. padding: 15px;
  237. & .box-inner{
  238. position: relative;
  239. width: 360px;
  240. background-color: white;
  241. & .login-box-com{
  242. height: 496px;
  243. }
  244. & .logged-box{
  245. padding: 15px;
  246. & .title{
  247. font-size: 25px;
  248. color: #1a6fa6;
  249. }
  250. & .logged-apply-btn{
  251. background-color: white;
  252. margin-top: 50px;
  253. width: 100%;
  254. height: 50px;
  255. line-height: 50px;
  256. border: 1px solid #d2d2d2;
  257. /*background-color: transparent;*/
  258. margin-bottom: 20px;
  259. font-size: 18px;
  260. }
  261. }
  262. }
  263. }
  264. .main-currency-container{
  265. height: 910px;
  266. background: url(../assets/coinBg.png) no-repeat bottom;
  267. margin-top: 75px;
  268. & .header-title{
  269. & .title{
  270. font-weight: 700;
  271. font-size: 35px;
  272. color: @lightBlack;
  273. line-height: 35px;
  274. }
  275. & .eng-title{
  276. font-size: 20px;
  277. color: @lighterBlack;
  278. margin-top: 12px;
  279. }
  280. & .blue-line{
  281. margin: 15px auto 0;
  282. width: 60px;
  283. height: 2px;
  284. background-color: #1a6fa6;
  285. }
  286. }
  287. & .currency-container{
  288. margin-top: 85px;
  289. & .currency-layer{
  290. width: 912px;
  291. height: 363px;
  292. margin: 0 auto;
  293. display: flex;
  294. /*flex-direction: column;*/
  295. flex-wrap: wrap;
  296. align-content: space-between;
  297. justify-content: space-between;
  298. }
  299. }
  300. }
  301. .join-gain-container{
  302. width: 1200px;
  303. margin: 65px auto 0;
  304. display: flex;
  305. flex-wrap: wrap;
  306. & .jg-block{
  307. width: 50%;
  308. margin-top: 80px;
  309. }
  310. }
  311. .full-pic{
  312. position: relative;
  313. margin-top: 140px;
  314. width: 100%;
  315. height: 830px;
  316. background: url(../assets/platBg.png) 50% 50% no-repeat;
  317. & .introduce{
  318. position: absolute;
  319. width: 1200px;
  320. height: 255px;
  321. background-color: rgba(2, 134, 219, 0.83);
  322. left: 50%;
  323. transform: translateX(-50%);
  324. bottom:80px;
  325. & .plat-block{
  326. position: absolute;
  327. top: -37px;
  328. left: 157px;
  329. }
  330. & .title-main{
  331. color: white;
  332. text-align: left;
  333. font-size: 35px;
  334. font-weight: 700;
  335. margin:30px 0 0 195px;
  336. }
  337. & .title-sub{
  338. font-size: 24px;
  339. margin-left: 280px;
  340. color: white;
  341. text-align: left;
  342. }
  343. & .eng-title{
  344. width: 200px;
  345. margin-left: 195px;
  346. font-size: 12px;
  347. color: white;
  348. text-align: left;
  349. }
  350. & .short-white-line{
  351. margin: 20px 0 0 195px;
  352. border: none;
  353. height: 2px;
  354. width: 45px;
  355. background-color: white;
  356. }
  357. & .introduce-block{
  358. position: absolute;
  359. left: 580px;
  360. top: 57px;
  361. font-size: 18px;
  362. color: white;
  363. line-height: 2;
  364. }
  365. }
  366. }
  367. .one-stop-container{
  368. width: 1200px;
  369. margin: 70px auto 0;
  370. & .intro-container{
  371. margin-top: 85px;
  372. margin-bottom: 70px;
  373. display: inline-flex;
  374. }
  375. }
  376. </style>