index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. <template>
  2. <div>
  3. <header-component @logout="handleLogout" :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 @click="$router.push('./proxy-apply')" 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. handleLogout(){
  188. localStorage.setItem('token','');
  189. localStorage.setItem('username','');
  190. this.isLogin=false;
  191. }
  192. }
  193. }
  194. </script>
  195. <style scoped lang="less">
  196. @import "../assets/less/_variable.less";
  197. #banner0{
  198. background: url(../assets/banner/banner.png) no-repeat 50%;
  199. background-size: auto 100%;
  200. height: 900px;
  201. }
  202. #banner1{
  203. background: url(../assets/banner/banner1.png) no-repeat 50%;
  204. background-size: auto 100%;
  205. height: 900px;
  206. }
  207. #banner2{
  208. background: url(../assets/banner/banner2.png) no-repeat 50%;
  209. background-size: auto 100%;
  210. height: 900px;
  211. }
  212. .carousel-apply-btn{
  213. position: absolute;
  214. width: 160px;
  215. height: 45px;
  216. background-color: #ffdf00;
  217. border-radius: 2px;
  218. border: none;
  219. font-size: 20px;
  220. color: #154bb2;
  221. left: 0;
  222. /*left: 350px;*/
  223. bottom: 400px;
  224. }
  225. .position-box{
  226. position: absolute;
  227. width: 1200px;
  228. transform: translateX(-50%);
  229. left: 50%;
  230. /*margin: 0 auto;*/
  231. top: 0;
  232. height:900px;
  233. }
  234. .login-box{
  235. position: absolute;
  236. right: 0;
  237. top:180px;
  238. /*width: 390px;*/
  239. /*height: 526px;*/
  240. background-color: rgba(255, 255, 255, 0.4);
  241. padding: 15px;
  242. & .box-inner{
  243. position: relative;
  244. width: 360px;
  245. background-color: white;
  246. & .login-box-com{
  247. height: 496px;
  248. }
  249. & .logged-box{
  250. padding: 15px;
  251. & .title{
  252. font-size: 25px;
  253. color: #1a6fa6;
  254. }
  255. & .logged-apply-btn{
  256. background-color: white;
  257. margin-top: 50px;
  258. width: 100%;
  259. height: 50px;
  260. line-height: 50px;
  261. border: 1px solid #d2d2d2;
  262. /*background-color: transparent;*/
  263. margin-bottom: 20px;
  264. font-size: 18px;
  265. cursor: pointer;
  266. }
  267. }
  268. }
  269. }
  270. .main-currency-container{
  271. height: 910px;
  272. background: url(../assets/coinBg.png) no-repeat bottom;
  273. margin-top: 75px;
  274. & .header-title{
  275. & .title{
  276. font-weight: 700;
  277. font-size: 35px;
  278. color: @lightBlack;
  279. line-height: 35px;
  280. }
  281. & .eng-title{
  282. font-size: 20px;
  283. color: @lighterBlack;
  284. margin-top: 12px;
  285. }
  286. & .blue-line{
  287. margin: 15px auto 0;
  288. width: 60px;
  289. height: 2px;
  290. background-color: #1a6fa6;
  291. }
  292. }
  293. & .currency-container{
  294. margin-top: 85px;
  295. & .currency-layer{
  296. width: 912px;
  297. height: 363px;
  298. margin: 0 auto;
  299. display: flex;
  300. /*flex-direction: column;*/
  301. flex-wrap: wrap;
  302. align-content: space-between;
  303. justify-content: space-between;
  304. }
  305. }
  306. }
  307. .join-gain-container{
  308. width: 1200px;
  309. margin: 65px auto 0;
  310. display: flex;
  311. flex-wrap: wrap;
  312. & .jg-block{
  313. width: 50%;
  314. margin-top: 80px;
  315. }
  316. }
  317. .full-pic{
  318. position: relative;
  319. margin-top: 140px;
  320. width: 100%;
  321. height: 830px;
  322. background: url(../assets/platBg.png) 50% 50% no-repeat;
  323. & .introduce{
  324. position: absolute;
  325. width: 1200px;
  326. height: 255px;
  327. background-color: rgba(2, 134, 219, 0.83);
  328. left: 50%;
  329. transform: translateX(-50%);
  330. bottom:80px;
  331. & .plat-block{
  332. position: absolute;
  333. top: -37px;
  334. left: 157px;
  335. }
  336. & .title-main{
  337. color: white;
  338. text-align: left;
  339. font-size: 35px;
  340. font-weight: 700;
  341. margin:30px 0 0 195px;
  342. }
  343. & .title-sub{
  344. font-size: 24px;
  345. margin-left: 280px;
  346. color: white;
  347. text-align: left;
  348. }
  349. & .eng-title{
  350. width: 200px;
  351. margin-left: 195px;
  352. font-size: 12px;
  353. color: white;
  354. text-align: left;
  355. }
  356. & .short-white-line{
  357. margin: 20px 0 0 195px;
  358. border: none;
  359. height: 2px;
  360. width: 45px;
  361. background-color: white;
  362. }
  363. & .introduce-block{
  364. position: absolute;
  365. left: 580px;
  366. top: 57px;
  367. font-size: 18px;
  368. color: white;
  369. line-height: 2;
  370. }
  371. }
  372. }
  373. .one-stop-container{
  374. width: 1200px;
  375. margin: 70px auto 0;
  376. & .intro-container{
  377. margin-top: 85px;
  378. margin-bottom: 70px;
  379. display: inline-flex;
  380. }
  381. }
  382. </style>