Home.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  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. mounted(){
  201. document.documentElement.scrollTop = window.pageYOffset = document.body.scrollTop=0;
  202. },
  203. methods:{
  204. showItem(index){
  205. this.services[index].flag = !this.services[index].flag;
  206. },
  207. goapply(){
  208. this.$router.push({path:"/applyAgent"})
  209. }
  210. }
  211. }
  212. </script>
  213. <style scoped>
  214. .home-ctnr{
  215. background-color: #f5f8ff;
  216. .home-block{
  217. .banner-block{
  218. position: relative;
  219. .carousel-box{
  220. .el-carousel__item{
  221. .carousel{
  222. height: 900px;
  223. position: relative;
  224. .carousel-wrap{
  225. width: 1200px;
  226. margin: 0 auto;
  227. text-align: left;
  228. .btn-home{
  229. margin-top: 400px;
  230. font-size: 16px;
  231. color: #1f52c9;
  232. background: #fede00;
  233. }
  234. }
  235. }
  236. .bg1{
  237. background: url(../assets/img/banner1.png) no-repeat 50%;
  238. background-size: auto 100%;
  239. }
  240. .bg2{
  241. background: url(../assets/img/banner2.png) no-repeat 50%;
  242. }
  243. .bg3{
  244. background: url(../assets/img/banner3.png) no-repeat 50%;
  245. background-size: auto 100%;
  246. }
  247. }
  248. }
  249. .fix-box{
  250. width: 100%;
  251. position: absolute;
  252. bottom: 0;
  253. z-index: 2
  254. }
  255. }
  256. .coin-block{
  257. height: 900px;
  258. position: relative;
  259. background: url(../assets/img/coinBg.png) no-repeat bottom;
  260. background-color: rgba(245,248,255,1);
  261. .coin-title{
  262. padding-top: 78px;
  263. text-align: center;
  264. h1{
  265. font-size: 35px;
  266. color: #333;
  267. font-weight: 700;
  268. }
  269. h2{
  270. font-size: 20px;
  271. color: hsla(0,0%,60%,.8);
  272. margin-top: 12px;
  273. }
  274. .split-line{
  275. display: inline-block;
  276. width: 60px;
  277. height: 2px;
  278. margin-top: 15px;
  279. background-color: var(--text-color-active);
  280. }
  281. }
  282. .coin-box{
  283. width: 1200px;
  284. margin: 80px auto 0;
  285. position: relative;
  286. ul{
  287. width: 915px;
  288. height: 363px;
  289. margin: 0 auto;
  290. li{
  291. width: 180px;
  292. height: 180px;
  293. background-color: #fff;
  294. float: left;
  295. margin-bottom: 3px;
  296. margin-right: 3px;
  297. .icon{
  298. font-size: 62px;
  299. color: #1a6fa6;
  300. margin: 30px 0;
  301. }
  302. p{
  303. font-size: 20px;
  304. color: #999;
  305. }
  306. }
  307. }
  308. }
  309. }
  310. .add-block{
  311. width: 1200px;
  312. height: 900px;
  313. padding-top: 60px;
  314. margin: 0 auto;
  315. }
  316. .plat-block{
  317. height: 900px;
  318. background: url(../assets/img/plat.png) no-repeat center 30px;
  319. position: relative;
  320. .plat-block-back{
  321. width: 100%;
  322. height: 417px;
  323. position: absolute;
  324. bottom: 0;
  325. background: url(../assets/img/plat02.png) no-repeat bottom;
  326. display: flex;
  327. justify-content: space-around;
  328. align-items: center;
  329. .plat-word{
  330. width: 1200px;
  331. height: 250px;
  332. background-color: rgba(2,134,219,.83);
  333. position: relative;
  334. text-align: left;
  335. img{
  336. position: absolute;
  337. left: 158px;
  338. top:-37px;
  339. }
  340. .tips{
  341. margin-left: 195px;
  342. color: #fff;
  343. display: inline-block;
  344. .tip1{
  345. font-size: 35px;
  346. font-weight: 700;
  347. margin-top: 30px;
  348. }
  349. .tip2{
  350. font-size: 24px;
  351. font-weight: 700;
  352. margin-left: 80px;
  353. }
  354. .tip3{
  355. margin-top: 16px;
  356. }
  357. hr{
  358. width: 45px;
  359. height:2px;
  360. margin-top: 30px;
  361. background-color: #fff;
  362. border:0;
  363. }
  364. }
  365. .plat-desc{
  366. color: #fff;
  367. font-size: 18px;
  368. float: right;
  369. margin-top: 56px;
  370. text-align: center;
  371. span{
  372. display: block;
  373. padding: 5px 0;
  374. }
  375. }
  376. }
  377. }
  378. }
  379. .service-block{
  380. height: 600px;
  381. width: 1200px;
  382. margin: 0 auto;
  383. padding-top: 68px;
  384. .service-box{
  385. margin-top: 80px;
  386. display: flex;
  387. justify-content: center;
  388. li{
  389. background-color: #fff;
  390. width: 176px;
  391. height: 176px;
  392. border:1px solid #dcdcdc;
  393. transform: rotate(45deg);
  394. margin-right: 72px;
  395. .service-item{
  396. height: 176px;
  397. line-height: 176px;
  398. transform: rotate(-45deg);
  399. i{
  400. font-size: 60px;
  401. color: #2580bb;
  402. }
  403. }
  404. .service-item2{
  405. height: 176px;
  406. display: flex;
  407. justify-content: center;
  408. align-items: center;
  409. transform: rotate(-45deg);
  410. color: #fff;
  411. font-size: 15px;
  412. }
  413. &:hover{
  414. background-color: #1a6fa6;
  415. }
  416. }
  417. }
  418. }
  419. .footer-line{
  420. position: fixed;
  421. bottom: 0;
  422. background-color: rgba(0,0,0,0.6);
  423. }
  424. .contact-block{
  425. position: fixed;
  426. right: 0px;
  427. top: 28%;
  428. z-index: 200;
  429. }
  430. }
  431. }
  432. </style>