index.vue 18 KB

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