index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  1. <template>
  2. <view class="container">
  3. <view class="carousel-section">
  4. <!-- 背景色区域 -->
  5. <view class="bg"><image src="../../static/index/index13.png" mode=""></image></view>
  6. <!-- 标题栏和状态栏占位符 -->
  7. <view class="titleNview-placing"></view>
  8. <!-- 搜素栏 -->
  9. <view class="search flex">
  10. <!-- <image src="../../static/index/index09.png" class="address"></image> -->
  11. <!-- <view class="shop-name clamp" @click.stop="canChange == 0?nav('/pages/shoping/list'):''">{{ storeInfo.name }}</view> -->
  12. <!-- <view class="shop-name clamp">椒江区</view> -->
  13. <!-- <image class="shop-jt" src="../../static/index/index07.png" mode=""></image> -->
  14. <view class="input-box flex" @click.stop="clickSearch">
  15. <view class=" input-content flex">
  16. <view class="iconfont iconsearch"></view>
  17. <view class="input"><input type="text" disabled value="输入关键字搜索" /></view>
  18. </view>
  19. </view>
  20. </view>
  21. <swiper class="carousel" autoplay="true" duration="400" interval="5000" :indicator-dots="true" indicator-active-color="#FFFFFF">
  22. <!-- <swiper class="carousel" autoplay="true" duration="400" interval="5000"> -->
  23. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item">
  24. <image :src="item.pic" mode="aspectFill" @click="bannerNavToUrl(item)"></image>
  25. </swiper-item>
  26. </swiper>
  27. </view>
  28. <view class="navbar">
  29. <view class="navbar-box flex">
  30. <view class="navbar-item" @click="navTo('/pages/category/category')">
  31. <image class="nitem-image" src="../../static/index/index03.png" mode=""></image>
  32. <view class="nitem-font">全部商品</view>
  33. </view>
  34. <view class="navbar-item" @click="navTo('/pages/index/jieshao')">
  35. <image class="nitem-image" src="../../static/index/index04.png" mode=""></image>
  36. <view class="nitem-font">公司介绍</view>
  37. </view>
  38. <view class="navbar-item" @click="$refs.popupkf.open()">
  39. <image class="nitem-image" src="../../static/index/index16.png" mode=""></image>
  40. <view class="nitem-font">联系客服</view>
  41. </view>
  42. <view class="navbar-item" @click="navTo('/pages/user/shareQrCode')">
  43. <image class="nitem-image" src="../../static/index/index02.png" mode=""></image>
  44. <view class="nitem-font">邀请有礼</view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="product-box" v-if="bastList.length != 0">
  49. <view class="cnxh">
  50. <view class="hx"></view>
  51. <view class="">红积分专区</view>
  52. <view class="hx"></view>
  53. </view>
  54. <view class="hotgoods">
  55. <view class="hotgoods-item" v-for="item in bastList" :key="item.id" @click="navToDetailPage(item)">
  56. <view class="image-wrapper">
  57. <image class="image-bg" src="../../static/img/libao-bg.png" mode=""></image>
  58. <image class="image" :src="item.image" mode="scaleToFill"></image>
  59. </view>
  60. <view class="title clamp2">{{ item.store_name }}</view>
  61. <view class="hot-price">
  62. <view class="hotPrice-box">会员价</view>
  63. <view class="price">
  64. <text class="font-size-sm">¥</text>
  65. {{ item.price * 1 }}
  66. </view>
  67. <view class="yuanPrice">{{ item.ot_price }}</view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 客服 -->
  73. <uni-popup ref="popupkf" type="center">
  74. <view class="popup-box">
  75. <view class="img"><image src="../../static/img/img009.png" mode=""></image></view>
  76. <view class="mian">
  77. <view class="delivery">
  78. <view class="title">已经为您定制专属客服</view>
  79. <image src="../../static/img/img010.png" mode=""></image>
  80. </view>
  81. <view class="nocancel">客服VX:{{ text }}</view>
  82. <view class="comfirm-box">
  83. <view class="cancel" @click="kfClose()">取消</view>
  84. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  85. </view>
  86. </view>
  87. </view>
  88. </uni-popup>
  89. </view>
  90. </template>
  91. <script>
  92. import { lookSubpoints, lookOneself } from '../../api/user.js';
  93. import seckill from '../../components/seckill/seckill.vue';
  94. import { loadIndexs } from '@/api/index.js';
  95. import { getUserInfo, spread } from '@/api/user.js';
  96. import { setCoupons } from '@/api/functionalUnit.js';
  97. import { getBargainList, getProducts } from '@/api/product.js';
  98. import { interceptor } from '@/utils/loginUtils';
  99. import { mapState, mapMutations } from 'vuex';
  100. import { tabbar } from '@/utils/tabbar.js';
  101. // #ifdef H5
  102. import { weixindata, shareLoad } from '@/utils/wxAuthorized';
  103. // #endif
  104. import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
  105. export default {
  106. components: {
  107. seckill
  108. },
  109. data() {
  110. return {
  111. text: 'x18258617070',
  112. tabbar: tabbar,
  113. current: 0,
  114. shareShow: false, //分享海报
  115. pageProportion: 0, //保存页面基于750宽度的比例
  116. swiperHeight: 0,
  117. checkid: 0,
  118. titleNViewBackground: '',
  119. longitude: 0, //经度
  120. latitude: 0, //纬度
  121. swiperCurrent: 0,
  122. swiperLength: 0,
  123. carouselList: [], //轮播列表
  124. bastList: [], //会员礼包
  125. shoplist: [], //商店列表
  126. page: 1,
  127. limit: 5,
  128. bargainlist: []
  129. };
  130. },
  131. computed: {
  132. ...mapState(['loginInterceptor', 'baseURL']),
  133. ...mapState('user', ['hasLogin', 'userInfo'])
  134. },
  135. onLoad: function(option) {
  136. // #ifdef MP
  137. if (option.scene) {
  138. // 存储小程序邀请人
  139. uni.setStorage({
  140. key: 'spread_code',
  141. data: option.scene
  142. });
  143. }
  144. // #endif
  145. // #ifdef H5
  146. this.IndexShare();
  147. //#endif
  148. },
  149. onShow: function() {
  150. // 判断是否强制登录
  151. // if (!this.hasLogin) {
  152. // // 登录拦截
  153. // interceptor();
  154. // }
  155. this.loadData();
  156. this.getProduct();
  157. // this.getBargainList();
  158. },
  159. //下拉刷新
  160. onPullDownRefresh() {
  161. this.loadData();
  162. },
  163. // #ifndef MP
  164. // 监听导航栏输入框点击事件
  165. onNavigationBarSearchInputClicked(e) {
  166. //跳转到搜索页面
  167. this.clickSearch();
  168. },
  169. //点击导航栏 buttons 时触发
  170. onNavigationBarButtonTap(e) {
  171. const index = e.index;
  172. if (index === 0) {
  173. this.$api.msg('点击了扫描');
  174. } else if (index === 1) {
  175. // #ifdef APP-PLUS
  176. const pages = getCurrentPages();
  177. const page = pages[pages.length - 1];
  178. const currentWebview = page.$getAppWebview();
  179. currentWebview.hideTitleNViewButtonRedDot({
  180. index
  181. });
  182. // #endif
  183. uni.navigateTo({
  184. url: '/pages/user/notice'
  185. });
  186. }
  187. },
  188. // #endif
  189. methods: {
  190. ...mapMutations(['setLat', 'setLon']),
  191. kfClose() {
  192. this.$refs.popupkf.close();
  193. },
  194. // 复制
  195. comfirm(text) {
  196. console.log(text);
  197. const result = uniCopy(text);
  198. if (result === false) {
  199. uni.showToast({
  200. title: '不支持'
  201. });
  202. } else {
  203. uni.showToast({
  204. title: '复制成功',
  205. icon: 'none'
  206. });
  207. }
  208. this.$refs.popupkp.close();
  209. },
  210. // #ifdef H5
  211. IndexShare() {
  212. let obj = this;
  213. let pages = getCurrentPages();
  214. // 获取当前页面
  215. let page = pages[pages.length - 1];
  216. let path = '#/' + page.route + '?';
  217. // 保存传值
  218. for (let i in page.options) {
  219. path += i + '=' + page.options[i] + '&';
  220. }
  221. console.log(obj.Path);
  222. // 保存邀请人
  223. path += 'spread=' + this.userInfo.uid;
  224. let data = {
  225. link: this.baseURL + '/index/' + path,
  226. title: this.userInfo.nickname + '邀请您进入响亮商城',
  227. desc: '欢迎加入响亮商城',
  228. imgUrl: 'https://xl.liuniu946.com/index/static/img/logo.jpg'
  229. };
  230. console.log(data, '分享数据');
  231. shareLoad(data);
  232. },
  233. // #endif
  234. //砍价商品推荐详情页
  235. navToDetailPages(item) {
  236. let id = item.product_id;
  237. //let type = 2;
  238. uni.navigateTo({
  239. url: '/pages/product/product?id=' + id
  240. });
  241. },
  242. navTo(url) {
  243. if (url == '') {
  244. this.$api.msg('暂未开通,敬请期待');
  245. } else {
  246. uni.navigateTo({
  247. url,
  248. fail() {
  249. uni.switchTab({
  250. url
  251. });
  252. }
  253. });
  254. }
  255. },
  256. openSubscribe: function(e) {
  257. let page = e;
  258. // #ifndef MP
  259. uni.navigateTo({
  260. url: page
  261. });
  262. // #endif
  263. // #ifdef MP
  264. uni.showLoading({
  265. title: '正在加载'
  266. });
  267. openBargainSubscribe()
  268. .then(res => {
  269. uni.hideLoading();
  270. uni.navigateTo({
  271. url: page
  272. });
  273. })
  274. .catch(err => {
  275. uni.hideLoading();
  276. });
  277. // #endif
  278. },
  279. getBargainList() {
  280. let that = this;
  281. getBargainList({
  282. page: that.page,
  283. limit: that.limit
  284. })
  285. .then(function(res) {
  286. that.$set(that, 'bargainlist', res.data.slice(0, 2));
  287. console.log(that.bargainlist);
  288. })
  289. .catch(res => {
  290. console.log(res, 'getBargainList');
  291. });
  292. },
  293. Mask() {
  294. this.MaskShow = false;
  295. this.shareShow = true;
  296. uni.setStorage({
  297. key: 'FirstEntry',
  298. data: true,
  299. success: function() {
  300. console.log(uni.getStorageSync('FirstEntry'), 'Mask');
  301. }
  302. });
  303. },
  304. Toshare() {
  305. if (this.userInfo == '') {
  306. getUserInfo({})
  307. .then(({ data }) => {
  308. this.setUserInfo(data);
  309. this.userInfo = data;
  310. })
  311. .catch(e => {});
  312. } else {
  313. this.shareShow = false;
  314. uni.navigateTo({
  315. url: '/pages/user/shareQrCode?spread=' + this.userInfo.uid
  316. });
  317. }
  318. },
  319. Tocancel() {
  320. this.shareShow = false;
  321. },
  322. // 监听切换事件
  323. listChange(e) {
  324. this.checkid = e.detail.current;
  325. },
  326. // 點擊搜索框
  327. clickSearch() {
  328. uni.navigateTo({
  329. url: '/pages/product/search'
  330. });
  331. },
  332. // 点击触发领取优惠券
  333. setCoupons(item) {
  334. // 判断是否已经领取了优惠券
  335. let obj = this;
  336. uni.showModal({
  337. title: '领取提示',
  338. content: '是否领取优惠券',
  339. success(e) {
  340. if (e.confirm) {
  341. setCoupons({
  342. couponId: item.id
  343. }).then(e => {
  344. item.is_use = true;
  345. uni.showToast({
  346. title: '领取成功',
  347. type: 'top',
  348. duration: 2000
  349. });
  350. });
  351. }
  352. }
  353. });
  354. },
  355. //商品种类切换
  356. change(item) {
  357. let id = item;
  358. this.checkid = id;
  359. if (this.checkid == 1) {
  360. // console.log(1);
  361. this.detail = this.selected_detail;
  362. } else if (this.checkid == 2) {
  363. // console.log(2);
  364. this.detail = this.new_product;
  365. } else {
  366. this.detail = this.cheap_good;
  367. }
  368. },
  369. // 监听图片加载完成
  370. onImageError(key, index) {
  371. this[key][index].image = '/static/error/errorImage.jpg';
  372. },
  373. // 请求载入数据
  374. async loadData() {
  375. loadIndexs({})
  376. .then(({ data }) => {
  377. let goods = data.info;
  378. this.carouselList = data.banner;
  379. console.log(this.carouselList, 'this.carouselList++++++++');
  380. this.swiperLength = this.carouselList.length;
  381. // this.bastList = data.giftInfo; //会员礼包
  382. uni.stopPullDownRefresh();
  383. })
  384. .catch(e => {
  385. uni.stopPullDownRefresh();
  386. });
  387. },
  388. //轮播图切换修改背景色
  389. swiperChange(e) {
  390. const index = e.detail.current;
  391. this.swiperCurrent = index;
  392. this.titleNViewBackground = this.carouselList[index].background;
  393. },
  394. //详情页
  395. navToDetailPage(item) {
  396. let id = item.id;
  397. uni.navigateTo({
  398. url: '/pages/product/product?id=' + id + '&isVip=1'
  399. });
  400. },
  401. // 轮播图跳转
  402. bannerNavToUrl(item) {
  403. // #ifdef H5
  404. console.log(item.wap_url.indexOf('http'), 'banner');
  405. if (item.wap_url.indexOf('http') >= 0) {
  406. window.location.href = item.wap_url;
  407. }
  408. // #endif
  409. //测试数据没有写id,用title代替
  410. uni.navigateTo({
  411. url: item.wap_url
  412. });
  413. },
  414. getProduct() {
  415. getProducts().then(res => {
  416. console.log(res.data);
  417. this.bastList = res.data;
  418. });
  419. }
  420. }
  421. };
  422. </script>
  423. <style lang="scss">
  424. .carousel-section {
  425. position: relative;
  426. padding-top: 10px;
  427. .bg {
  428. position: absolute;
  429. top: 0;
  430. left: 0;
  431. width: 750rpx;
  432. height: 378rpx;
  433. image {
  434. width: 100%;
  435. height: 100%;
  436. }
  437. }
  438. .titleNview-placing {
  439. height: var(--status-bar-height);
  440. box-sizing: content-box;
  441. }
  442. .search {
  443. justify-content: flex-start;
  444. padding: 10rpx 32rpx 20rpx;
  445. align-items: center;
  446. .address {
  447. width: 32rpx;
  448. height: 38rpx;
  449. }
  450. .shop-name {
  451. height: 38rpx;
  452. position: relative;
  453. top: -4rpx;
  454. z-index: 100;
  455. font-size: 30rpx;
  456. font-family: PingFang SC;
  457. font-weight: 500;
  458. color: #ffffff;
  459. padding-left: 10rpx;
  460. }
  461. .shop-jt {
  462. margin-left: 8rpx;
  463. width: 16rpx;
  464. height: 10rpx;
  465. }
  466. .input-box {
  467. margin-left: 10rpx;
  468. position: relative;
  469. z-index: 99;
  470. width: 700rpx;
  471. height: 60rpx;
  472. background: rgba(255, 255, 255, 0.4);
  473. border-radius: 30rpx;
  474. .input-content {
  475. position: relative;
  476. z-index: 11;
  477. border-radius: 99rpx;
  478. flex-grow: 1;
  479. padding: 5rpx 30rpx;
  480. background: rgba(255, 255, 255, 0.4);
  481. .iconsearch {
  482. font-size: 50rpx;
  483. color: #ffffff;
  484. }
  485. .input {
  486. margin-left: 19rpx;
  487. flex-grow: 1;
  488. color: #ffffff;
  489. input {
  490. font-size: 28rpx;
  491. color: #ffffff;
  492. }
  493. }
  494. }
  495. .input-button {
  496. padding-left: 20rpx;
  497. font-size: $font-base;
  498. height: 100%;
  499. }
  500. }
  501. }
  502. }
  503. .carousel {
  504. position: relative;
  505. z-index: 3;
  506. width: 100%;
  507. height: 360rpx;
  508. .carousel-item {
  509. width: 100%;
  510. height: 100%;
  511. padding: 0 28rpx;
  512. overflow: hidden;
  513. }
  514. image {
  515. width: 100%;
  516. height: 100%;
  517. border-radius: $border-radius-sm;
  518. }
  519. }
  520. .navbar {
  521. position: relative;
  522. z-index: 2;
  523. margin-top: -200rpx;
  524. width: 750rpx;
  525. height: 462rpx;
  526. background: #ffffff;
  527. border-radius: 40rpx;
  528. .navbar-box {
  529. padding-top: 250rpx;
  530. .navbar-item {
  531. display: flex;
  532. flex-direction: column;
  533. align-items: center;
  534. width: 25%;
  535. .nitem-image {
  536. width: 98rpx;
  537. height: 98rpx;
  538. }
  539. .nitem-font {
  540. margin-top: 22rpx;
  541. font-size: 26rpx;
  542. font-family: PingFang SC;
  543. font-weight: 500;
  544. color: #000000;
  545. }
  546. }
  547. }
  548. }
  549. .product-box {
  550. margin-top: 20rpx;
  551. background: #ffffff;
  552. padding: 26rpx 30rpx 20rpx;
  553. .product-title {
  554. display: flex;
  555. align-items: center;
  556. .pt-image {
  557. width: 36rpx;
  558. height: 36rpx;
  559. }
  560. .pt-title {
  561. margin-left: 8rpx;
  562. font-size: 32rpx;
  563. font-family: PingFang SC;
  564. font-weight: bold;
  565. color: #333333;
  566. }
  567. .pt-tip {
  568. margin-left: 16rpx;
  569. font-size: 20rpx;
  570. font-family: PingFang SC;
  571. font-weight: bold;
  572. color: #95a0b1;
  573. }
  574. }
  575. .hotgoods {
  576. margin-top: 38rpx;
  577. width: 100%;
  578. display: flex;
  579. flex-wrap: wrap;
  580. padding: 0 0 30rpx;
  581. .hotgoods-item {
  582. width: 48%;
  583. background-color: #ffffff;
  584. border-radius: 12rpx;
  585. &:nth-child(2n + 1) {
  586. margin-right: 24rpx;
  587. }
  588. .image-wrapper {
  589. width: 100%;
  590. height: 330rpx;
  591. border-radius: 3px;
  592. overflow: hidden;
  593. position: relative;
  594. .image-bg {
  595. position: absolute;
  596. top: 0;
  597. left: 0;
  598. right: 0;
  599. bottom: 0;
  600. width: 100%;
  601. height: 100%;
  602. opacity: 1;
  603. border-radius: 12rpx 12rpx 0 0;
  604. z-index: 2;
  605. }
  606. .image {
  607. width: 100%;
  608. height: 100%;
  609. opacity: 1;
  610. border-radius: 12rpx 12rpx 0 0;
  611. }
  612. }
  613. .title {
  614. margin-top: 24rpx;
  615. font-size: 28rpx;
  616. font-family: PingFang SC;
  617. font-weight: 500;
  618. color: #333333;
  619. }
  620. .hot-price {
  621. display: flex;
  622. justify-content: flex-start;
  623. align-items: center;
  624. padding: 14rpx 0 30rpx;
  625. .hotPrice-box {
  626. width: 70rpx;
  627. height: 28rpx;
  628. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  629. border-radius: 5rpx;
  630. text-align: center;
  631. line-height: 28rpx;
  632. font-size: 20rpx;
  633. font-family: Source Han Sans CN;
  634. font-weight: 400;
  635. color: #ffffff;
  636. }
  637. .price {
  638. margin-left: 10rpx;
  639. font-size: 40rpx;
  640. color: #ff0000;
  641. font-weight: 500;
  642. }
  643. .yuanPrice {
  644. margin-left: 10rpx;
  645. font-size: 20rpx;
  646. font-family: PingFang SC;
  647. font-weight: 500;
  648. text-decoration: line-through;
  649. color: #999999;
  650. }
  651. .cart-icon {
  652. image {
  653. width: 44rpx;
  654. height: 44rpx;
  655. }
  656. }
  657. }
  658. }
  659. }
  660. }
  661. .popup-box {
  662. width: 522rpx;
  663. height: 605rpx;
  664. background-color: #ffffff;
  665. border-radius: 20rpx;
  666. position: relative;
  667. .img {
  668. position: relative;
  669. top: -56rpx;
  670. left: 0;
  671. width: 522rpx;
  672. height: 132rpx;
  673. display: flex;
  674. justify-content: center;
  675. image {
  676. border-radius: 20rpx 20rpx 0 0;
  677. width: 450rpx;
  678. height: 132rpx;
  679. }
  680. }
  681. .mian {
  682. margin-top: -44rpx;
  683. display: flex;
  684. flex-direction: column;
  685. align-items: center;
  686. // padding: 32rpx 32rpx;
  687. background-color: #ffffff;
  688. border-radius: 0 0 20rpx 20rpx;
  689. text-align: center;
  690. .delivery {
  691. font-size: 40rpx;
  692. color: #333333;
  693. display: flex;
  694. align-items: center;
  695. flex-direction: column;
  696. .title {
  697. }
  698. image {
  699. margin-top: 48rpx;
  700. width: 172rpx;
  701. height: 160rpx;
  702. }
  703. }
  704. .nocancel {
  705. font-size: 32rpx;
  706. color: #333333;
  707. margin-top: 14rpx;
  708. }
  709. .comfirm-box {
  710. margin-top: 52rpx;
  711. display: flex;
  712. // margin-bottom: 32rpx;
  713. // justify-content: space-around;
  714. .cancel {
  715. display: flex;
  716. align-items: center;
  717. justify-content: center;
  718. width: 197rpx;
  719. height: 74rpx;
  720. border: 1px solid #dcc786;
  721. border-radius: 38rpx;
  722. font-size: 32rpx;
  723. color: #605128;
  724. }
  725. .comfirm {
  726. margin-left: 32rpx;
  727. display: flex;
  728. align-items: center;
  729. justify-content: center;
  730. width: 197rpx;
  731. height: 74rpx;
  732. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  733. border-radius: 38px;
  734. font-size: 32rpx;
  735. color: #605128;
  736. }
  737. }
  738. }
  739. }
  740. .cnxh {
  741. text-align: center;
  742. font-size: 30rpx;
  743. font-weight: 500;
  744. color: #363636;
  745. display: flex;
  746. justify-content: center;
  747. align-items: center;
  748. padding: 20rpx 0;
  749. .hx {
  750. width: 120rpx;
  751. height: 1rpx;
  752. background: #989898;
  753. margin: 0 40rpx;
  754. }
  755. }
  756. </style>