Home.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <template>
  2. <section class="home-ctnr">
  3. <myheader></myheader>
  4. <div class="home-block">
  5. <div class="banner-block">
  6. <!-- 一个轮播图、一个固定框、一个登录框 -->
  7. <div class="carousel-box">
  8. <el-carousel height="900px" indicator-position="none" arrow="never" :interval='5000'>
  9. <el-carousel-item>
  10. <div class="carousel bg1">
  11. <div class="carousel-wrap">
  12. <button class="btn btn-home" @click='goapply'>申请经纪商</button>
  13. </div>
  14. </div>
  15. </el-carousel-item>
  16. <el-carousel-item>
  17. <div class="carousel bg2">
  18. <div class="carousel-wrap">
  19. <button class="btn btn-home" @click='goapply'>申请经纪商</button>
  20. </div>
  21. </div>
  22. </el-carousel-item>
  23. <el-carousel-item>
  24. <div class="carousel bg3">
  25. <div class="carousel-wrap">
  26. <button class="btn btn-home" @click='goapply'>申请经纪商</button>
  27. </div>
  28. </div>
  29. </el-carousel-item>
  30. </el-carousel>
  31. </div>
  32. <div class="fix-box">
  33. <fixline isbanner="true"></fixline>
  34. </div>
  35. <mylogin></mylogin>
  36. </div>
  37. <div class="coin-block">
  38. <div class="coin-title">
  39. <h1>主流交易币种</h1>
  40. <h2>Mainstream Trading Crypto-currency</h2>
  41. <div class="split-line"></div>
  42. </div>
  43. <div class="coin-box">
  44. <ul>
  45. <li v-for="item in coins" :key="item.id">
  46. <div :class="item.coinIcon"></div>
  47. <p>{{ item.msg }}</p>
  48. </li>
  49. </ul>
  50. </div>
  51. </div>
  52. <div class="add-block">
  53. <div class="service-title">
  54. <hr>
  55. <h3>加入我们,可以获得</h3>
  56. <hr>
  57. <h4>To join our agent you will gain the following advantages</h4>
  58. </div>
  59. <div class="add-ctnr">
  60. <addbox></addbox>
  61. </div>
  62. </div>
  63. <div class="plat-block">
  64. <div class="plat-block-back">
  65. <div class="plat-word">
  66. <img src="../assets/img/platBlock.png" alt="">
  67. <div class="tips">
  68. <p class="tip1">专业严谨</p>
  69. <p class="tip2">的交易平台</p>
  70. <p class="tip3">Professional and rigorous trading <br> platform</p>
  71. <hr>
  72. </div>
  73. <div class="plat-desc">
  74. <span>FX66是基于区块链底层技术的数字资产交易所,</span>
  75. <span>拥有撮合交易系统低延迟、高并发的核心技术</span>
  76. <span>勇于突破传统交易所的局限,</span>
  77. <span>把交易、资产写入区块链当中。</span>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="service-block">
  83. <div class="service-title">
  84. <hr>
  85. <h3>全方位 一站式服务</h3>
  86. <hr>
  87. <h4>All-around one-stop service</h4>
  88. </div>
  89. <ul class="service-box">
  90. <li v-for="(item,index) in services" :key="item.id" @mouseenter="showItem(index)" @mouseleave="showItem(index)">
  91. <div class="service-item" v-show="item.flag">
  92. <i :class="item.servicesIcon"></i>
  93. </div>
  94. <div class="service-item2" v-show="!item.flag" v-html="item.msg">
  95. </div>
  96. </li>
  97. </ul>
  98. </div>
  99. <fixline class="footer-line" :isbanner="false"></fixline>
  100. <contactwe class="contact-block"></contactwe>
  101. </div>
  102. </section>
  103. </template>
  104. <script>
  105. import myheader from '../components/Header.vue'
  106. import fixline from '../components/FixLine.vue'
  107. import contactwe from '../components/ContactWe.vue'
  108. import addbox from '../components/AddBox.vue'
  109. import mylogin from '../components/Login.vue'
  110. export default{
  111. data(){
  112. return{
  113. coins:[
  114. {
  115. id:1,
  116. coinIcon:"icon iconfont icon-BTC1",
  117. msg:"BTC( 比特币 )"
  118. },
  119. {
  120. id:2,
  121. coinIcon:"icon iconfont icon-bty1-copy",
  122. msg:"BTY( 比特元 )"
  123. },
  124. {
  125. id:3,
  126. coinIcon:"icon iconfont icon-BCC1",
  127. msg:"BCC( 比特现金 )"
  128. },
  129. {
  130. id:4,
  131. coinIcon:"icon iconfont icon-ETH1",
  132. msg:"ETH( 以太坊 )"
  133. },
  134. {
  135. id:5,
  136. coinIcon:"icon iconfont icon-ETC1",
  137. msg:"ETC( 以太坊金典 )"
  138. },
  139. {
  140. id:6,
  141. coinIcon:"icon iconfont icon-ZEC1",
  142. msg:"ZEC( 零币 )"
  143. },
  144. {
  145. id:7,
  146. coinIcon:"icon iconfont icon-ltc",
  147. msg:"LTC( 莱特币 )"
  148. },
  149. {
  150. id:8,
  151. coinIcon:"icon iconfont icon-BTS3",
  152. msg:"BTs( 比特股 )"
  153. },
  154. {
  155. id:9,
  156. coinIcon:"icon iconfont icon-SC3",
  157. msg:"SC( 云储币 )"
  158. },
  159. {
  160. id:10,
  161. coinIcon:"icon iconfont icon-DCR3",
  162. msg:"DCR( 德信币 )"
  163. }
  164. ],
  165. services:[
  166. {
  167. id:1,
  168. servicesIcon:"icon iconfont icon-shandian",
  169. msg:"FX66具备一键交易功能,<br/>闪电交易,专业快捷!",
  170. flag:true
  171. },
  172. {
  173. id:2,
  174. servicesIcon:"icon iconfont icon-shouji",
  175. msg:"手机客户端,<br/>随时随地,紧跟市场!",
  176. flag:true
  177. },
  178. {
  179. id:3,
  180. servicesIcon:"icon iconfont icon-jiazhipinggu-",
  181. msg:"专业分析指导,<br/>价值评估市场!",
  182. flag:true
  183. },
  184. {
  185. id:4,
  186. servicesIcon:"icon iconfont icon-kefu1",
  187. msg:"新手帮帮帮,<br/>一小时教您炒币入门",
  188. flag:true
  189. },
  190. ]
  191. }
  192. },
  193. components:{
  194. myheader,
  195. fixline,
  196. contactwe,
  197. addbox,
  198. mylogin
  199. },
  200. methods:{
  201. showItem(index){
  202. this.services[index].flag = !this.services[index].flag;
  203. },
  204. goapply(){
  205. this.$router.push({path:"/applyAgent"})
  206. }
  207. }
  208. }
  209. </script>
  210. <style scoped>
  211. .home-ctnr{
  212. background-color: #f5f8ff;
  213. .home-block{
  214. .banner-block{
  215. position: relative;
  216. .carousel-box{
  217. .el-carousel__item{
  218. .carousel{
  219. height: 900px;
  220. position: relative;
  221. .carousel-wrap{
  222. width: 1200px;
  223. margin: 0 auto;
  224. text-align: left;
  225. .btn-home{
  226. margin-top: 400px;
  227. font-size: 16px;
  228. color: #1f52c9;
  229. background: #fede00;
  230. }
  231. }
  232. }
  233. .bg1{
  234. background: url(../assets/img/banner1.png) no-repeat 50%;
  235. background-size: auto 100%;
  236. }
  237. .bg2{
  238. background: url(../assets/img/banner2.png) no-repeat 50%;
  239. }
  240. .bg3{
  241. background: url(../assets/img/banner3.png) no-repeat 50%;
  242. background-size: auto 100%;
  243. }
  244. }
  245. }
  246. .fix-box{
  247. width: 100%;
  248. position: absolute;
  249. bottom: 0;
  250. z-index: 2
  251. }
  252. }
  253. .coin-block{
  254. height: 900px;
  255. position: relative;
  256. background: url(../assets/img/coinBg.png) no-repeat bottom;
  257. background-color: rgba(245,248,255,1);
  258. .coin-title{
  259. padding-top: 78px;
  260. text-align: center;
  261. h1{
  262. font-size: 35px;
  263. color: #333;
  264. font-weight: 700;
  265. }
  266. h2{
  267. font-size: 20px;
  268. color: hsla(0,0%,60%,.8);
  269. margin-top: 12px;
  270. }
  271. .split-line{
  272. display: inline-block;
  273. width: 60px;
  274. height: 2px;
  275. margin-top: 15px;
  276. background-color: var(--text-color-active);
  277. }
  278. }
  279. .coin-box{
  280. width: 1200px;
  281. margin: 80px auto 0;
  282. position: relative;
  283. ul{
  284. width: 915px;
  285. height: 363px;
  286. margin: 0 auto;
  287. li{
  288. width: 180px;
  289. height: 180px;
  290. background-color: #fff;
  291. float: left;
  292. margin-bottom: 3px;
  293. margin-right: 3px;
  294. .icon{
  295. font-size: 62px;
  296. color: #1a6fa6;
  297. margin: 30px 0;
  298. }
  299. p{
  300. font-size: 20px;
  301. color: #999;
  302. }
  303. }
  304. }
  305. }
  306. }
  307. .add-block{
  308. width: 1200px;
  309. height: 900px;
  310. padding-top: 60px;
  311. margin: 0 auto;
  312. }
  313. .plat-block{
  314. height: 900px;
  315. background: url(../assets/img/plat.png) no-repeat center 30px;
  316. position: relative;
  317. .plat-block-back{
  318. width: 100%;
  319. height: 417px;
  320. position: absolute;
  321. bottom: 0;
  322. background: url(../assets/img/plat02.png) no-repeat bottom;
  323. display: flex;
  324. justify-content: space-around;
  325. align-items: center;
  326. .plat-word{
  327. width: 1200px;
  328. height: 250px;
  329. background-color: rgba(2,134,219,.83);
  330. position: relative;
  331. text-align: left;
  332. img{
  333. position: absolute;
  334. left: 158px;
  335. top:-37px;
  336. }
  337. .tips{
  338. margin-left: 195px;
  339. color: #fff;
  340. display: inline-block;
  341. .tip1{
  342. font-size: 35px;
  343. font-weight: 700;
  344. margin-top: 30px;
  345. }
  346. .tip2{
  347. font-size: 24px;
  348. font-weight: 700;
  349. margin-left: 80px;
  350. }
  351. .tip3{
  352. margin-top: 16px;
  353. }
  354. hr{
  355. width: 45px;
  356. height:2px;
  357. margin-top: 30px;
  358. background-color: #fff;
  359. border:0;
  360. }
  361. }
  362. .plat-desc{
  363. color: #fff;
  364. font-size: 18px;
  365. float: right;
  366. margin-top: 56px;
  367. text-align: center;
  368. span{
  369. display: block;
  370. padding: 5px 0;
  371. }
  372. }
  373. }
  374. }
  375. }
  376. .service-block{
  377. height: 600px;
  378. width: 1200px;
  379. margin: 0 auto;
  380. padding-top: 68px;
  381. .service-box{
  382. margin-top: 80px;
  383. display: flex;
  384. justify-content: center;
  385. li{
  386. background-color: #fff;
  387. width: 176px;
  388. height: 176px;
  389. border:1px solid #dcdcdc;
  390. transform: rotate(45deg);
  391. margin-right: 72px;
  392. .service-item{
  393. height: 176px;
  394. line-height: 176px;
  395. transform: rotate(-45deg);
  396. i{
  397. font-size: 60px;
  398. color: #2580bb;
  399. }
  400. }
  401. .service-item2{
  402. height: 176px;
  403. display: flex;
  404. justify-content: center;
  405. align-items: center;
  406. transform: rotate(-45deg);
  407. color: #fff;
  408. font-size: 15px;
  409. }
  410. &:hover{
  411. background-color: #1a6fa6;
  412. }
  413. }
  414. }
  415. }
  416. .footer-line{
  417. position: fixed;
  418. bottom: 0;
  419. background-color: rgba(0,0,0,0.6);
  420. }
  421. .contact-block{
  422. position: fixed;
  423. right: 0px;
  424. top: 28%;
  425. z-index: 200;
  426. }
  427. }
  428. }
  429. </style>