index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  1. <template>
  2. <view class="container">
  3. <!-- 顶部logo and 搜索 start-->
  4. <view class="status_bar"></view>
  5. <view class="top-search flex">
  6. <view class="search-box flex" @click="clickSearch()">
  7. <image class="search" src="../../static/icon/search-h.png" mode=""></image>
  8. <view class="search-font">输入关键词搜索</view>
  9. </view>
  10. </view>
  11. <!-- 顶部logo and 搜索 end-->
  12. <view class="jg" style="background-color: #fff;"></view>
  13. <!-- 轮播图 start -->
  14. <swiper class="top-swiper" autoplay="true" duration="400" interval="5000" @change="swiperChange">
  15. <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item"
  16. @click="bannerNavToUrl(item)">
  17. <image :src="item.pic" />
  18. </swiper-item>
  19. </swiper>
  20. <!-- 轮播图 end -->
  21. <view class="swiper-btm flex">
  22. <view class="btm-item flex">
  23. <image src="../../static/icon/index-gou.png" mode=""></image>
  24. <view class="">自用购物返利</view>
  25. </view>
  26. <view class="btm-item flex">
  27. <image src="../../static/icon/index-gou.png" mode=""></image>
  28. <view class="">分享好友赚钱</view>
  29. </view>
  30. <view class="btm-item flex">
  31. <image src="../../static/icon/index-gou.png" mode=""></image>
  32. <view class="">超值正品优惠</view>
  33. </view>
  34. </view>
  35. <!-- 分类 start -->
  36. <view class="cate-section flex">
  37. <view class="cate-item flex" @click="navto('/pages/category/category')">
  38. <view class="img-wrapper flex">
  39. <image src="../../static/icon/in1.png" mode=""></image>
  40. </view>
  41. <view class="item-title">全部商品</view>
  42. </view>
  43. <view class="cate-item flex" @click="navto('/pages/index/artDetail?id=1')">
  44. <view class="img-wrapper flex">
  45. <image src="../../static/icon/in2.png" mode=""></image>
  46. </view>
  47. <view class="item-title">公司介绍</view>
  48. </view>
  49. <view class="cate-item flex" @click="openKf">
  50. <view class="img-wrapper flex">
  51. <image src="../../static/icon/in3.png" mode=""></image>
  52. </view>
  53. <view class="item-title">联系客服</view>
  54. </view>
  55. <view class="cate-item flex" @click="navto('/pages/user/shareQrCode',1)">
  56. <view class="img-wrapper flex">
  57. <image src="../../static/icon/in4.png" mode=""></image>
  58. </view>
  59. <view class="item-title">邀请好友</view>
  60. </view>
  61. </view>
  62. <!-- 分类 ed -->
  63. <view class="jg">
  64. </view>
  65. <!-- 商品列表 start -->
  66. <view class="product-box">
  67. <view class="product-tit flex">
  68. <view class="hx">
  69. </view>
  70. <view class="tit">
  71. 猜您喜欢
  72. </view>
  73. <view class="hx">
  74. </view>
  75. </view>
  76. </view>
  77. <view class="good-list">
  78. <view class="good flex" v-for="item in goodList" @click="navto('/pages/product/product?id=' + item.id)">
  79. <view class="good-img">
  80. <image :src="item.image" mode=""></image>
  81. </view>
  82. <view class="good-info flex">
  83. <view class="good-name clamp2">
  84. {{item.store_name}}
  85. </view>
  86. <view class="good-price">
  87. <view class="old-price" v-if="item.ot_price*1 > item.price*1">
  88. <text class="old-left">¥{{item.ot_price}}</text>
  89. <image src="../../static/icon/down.png" mode="widthFix"></image>
  90. <text class="old-right">直降{{item.ot_price*1 - item.price*1}}元</text>
  91. </view>
  92. <view class="new-price flex">
  93. <view class="" >
  94. ¥{{item.price}}
  95. </view>
  96. <view class="good-tip">
  97. 立即购买
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <uni-load-more :status="loadingType"></uni-load-more>
  104. </view>
  105. <!-- 商品列表 ed-->
  106. <uni-popup ref="popupkf" type="center">
  107. <view class="popup-box">
  108. <view class="img">
  109. <image src="../../static/img/img009.png" mode=""></image>
  110. </view>
  111. <view class="mian">
  112. <view class="delivery">
  113. <view class="title">已经为您定制专属客服</view>
  114. <image src="../../static/img/img010.png" mode=""></image>
  115. </view>
  116. <view class="nocancel">客服VX:{{ text }}</view>
  117. <view class="comfirm-box">
  118. <view class="cancel" @click="cancel">取消</view>
  119. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  120. </view>
  121. </view>
  122. </view>
  123. </uni-popup>
  124. </view>
  125. </template>
  126. <script>
  127. import {
  128. loadIndexs
  129. } from '@/api/index.js';
  130. import {
  131. getUserInfo,
  132. spread
  133. } from '@/api/user.js';
  134. import {
  135. getBargainList,
  136. getProducts,
  137. goodsDetail,
  138. poster
  139. } from '@/api/product.js';
  140. import {
  141. saveUrl,
  142. interceptor
  143. } from '@/utils/loginUtils';
  144. import {
  145. mapState,
  146. mapMutations
  147. } from 'vuex';
  148. // #ifdef H5
  149. import {
  150. weixindata,
  151. shareLoad
  152. } from '@/utils/wxAuthorized';
  153. // #endif
  154. export default {
  155. data() {
  156. return {
  157. text: '', //客服微信
  158. page: 1,
  159. limitt: 20,
  160. loadingType: 'more',
  161. current: 0,
  162. shareShow: false, //分享海报
  163. pageProportion: 0, //保存页面基于750宽度的比例
  164. swiperHeight: 0,
  165. checkid: 0,
  166. titleNViewBackground: '',
  167. swiperCurrent: 0,
  168. swiperLength: 0,
  169. carouselList: [], //轮播列表
  170. page: 1,
  171. limit: 5,
  172. firstList: [],
  173. goodList: [], //商品列表
  174. shopList: [],
  175. period: 1,
  176. shareImage: '',
  177. };
  178. },
  179. computed: {
  180. ...mapState('user', ['hasLogin', 'userInfo'])
  181. },
  182. onShareAppMessage(options) {
  183. // 设置菜单中的转发按钮触发转发事件时的转发内容
  184. let pages = getCurrentPages(); //获取加载的页面
  185. let currentPage = pages[pages.length - 1]; //获取当前页面的对象
  186. let url = currentPage.route; //当前页面url
  187. let item = currentPage.options; //如果要获取url中所带的参数可以查看options
  188. let shareObj = {}
  189. if (this.userInfo.uid) {
  190. shareObj = {
  191. title: this.userInfo.nickname + '邀请您加入顺肠清', // 默认是小程序的名称(可以写slogan等)
  192. path: url + '?scene=' + this.userInfo.uid, // 默认是当前页面,必须是以‘/’开头的完整路径
  193. imageUrl: '',
  194. success: function(res) {
  195. // 转发成功之后的回调
  196. if (res.errMsg == 'shareAppMessage:ok') {}
  197. },
  198. fail: function() {
  199. // 转发失败之后的回调
  200. if (res.errMsg == 'shareAppMessage:fail cancel') {
  201. // 用户取消转发
  202. } else if (res.errMsg == 'shareAppMessage:fail') {
  203. // 转发失败,其中 detail message 为详细失败信息
  204. }
  205. }
  206. };
  207. } else {
  208. shareObj = {
  209. title: '顺肠清', // 默认是小程序的名称(可以写slogan等)
  210. path: url, // 默认是当前页面,必须是以‘/’开头的完整路径
  211. imageUrl: '',
  212. success: function(res) {
  213. // 转发成功之后的回调
  214. if (res.errMsg == 'shareAppMessage:ok') {}
  215. },
  216. fail: function() {
  217. // 转发失败之后的回调
  218. if (res.errMsg == 'shareAppMessage:fail cancel') {
  219. // 用户取消转发
  220. } else if (res.errMsg == 'shareAppMessage:fail') {
  221. // 转发失败,其中 detail message 为详细失败信息
  222. }
  223. }
  224. };
  225. }
  226. return shareObj;
  227. },
  228. onReachBottom() {
  229. console.log('到底')
  230. this.getGoodList()
  231. },
  232. onLoad: function(option) {
  233. // #ifdef MP
  234. if (option.scene) {
  235. // 存储小程序邀请人
  236. uni.setStorage({
  237. key: 'spread_code',
  238. data: option.scene
  239. });
  240. }
  241. // #endif
  242. },
  243. onShow: function() {
  244. this.getGoodList()
  245. this.loadData();
  246. },
  247. methods: {
  248. getGoodList() {
  249. let obj = this
  250. if (obj.loadingType == 'loading' || obj.loadingType == 'noMore') {
  251. return
  252. }
  253. obj.loadingType = 'loading'
  254. getProducts({
  255. page: 1,
  256. limit: 50,
  257. }).then(res => {
  258. obj.goodList = obj.goodList.concat(res.data)
  259. if (obj.limit == res.data.length) {
  260. obj.loadingType = 'more'
  261. } else {
  262. obj.loadingType = 'noMore'
  263. }
  264. })
  265. },
  266. navto(url, type = 0) {
  267. if (type == 1) {
  268. if (!this.hasLogin) {
  269. // 保存地址
  270. saveUrl();
  271. // 登录拦截
  272. interceptor();
  273. } else {
  274. uni.navigateTo({
  275. url,
  276. fail() {
  277. uni.switchTab({
  278. url
  279. })
  280. }
  281. })
  282. }
  283. } else {
  284. uni.navigateTo({
  285. url,
  286. fail() {
  287. uni.switchTab({
  288. url
  289. })
  290. }
  291. })
  292. }
  293. },
  294. navTo(url) {
  295. if (url == '') {
  296. this.$api.msg('暂未开通,敬请期待');
  297. } else {
  298. this.navto(url)
  299. }
  300. },
  301. // 點擊搜索框
  302. clickSearch() {
  303. uni.navigateTo({
  304. url: '/pages/product/search'
  305. });
  306. },
  307. // 监听图片加载完成
  308. onImageError(key, index) {
  309. this[key][index].image = '/static/error/errorImage.jpg';
  310. },
  311. // 请求载入数据
  312. async loadData() {
  313. loadIndexs({})
  314. .then(({
  315. data
  316. }) => {
  317. let goods = data.info;
  318. console.log(goods, '商品信息');
  319. this.carouselList = data.banner;
  320. this.swiperLength = this.carouselList.length;
  321. this.bastList = data.giftInfo; //会员礼包
  322. data.info.firstList.forEach(e => {
  323. e.isVip = e.store_type ? "3" : "0"
  324. })
  325. this.firstList = data.info.firstList //首页商品
  326. uni.stopPullDownRefresh();
  327. })
  328. .catch(e => {
  329. uni.stopPullDownRefresh();
  330. });
  331. },
  332. //轮播图切换修改背景色
  333. swiperChange(e) {
  334. const index = e.detail.current;
  335. this.swiperCurrent = index;
  336. this.titleNViewBackground = this.carouselList[index].background;
  337. },
  338. // 轮播图跳转
  339. bannerNavToUrl(item) {
  340. // #ifdef H5
  341. console.log(item.wap_url.indexOf('http'), 'banner');
  342. if (item.wap_url.indexOf('http') >= 0) {
  343. window.location.href = item.wap_url;
  344. }
  345. // #endif
  346. //测试数据没有写id,用title代替
  347. uni.navigateTo({
  348. url: item.wap_url
  349. });
  350. },
  351. comfirm(text) {
  352. console.log(text);
  353. const result = this.uniCopy(text);
  354. if (result === false) {
  355. uni.showToast({
  356. title: '不支持'
  357. });
  358. } else {
  359. uni.showToast({
  360. title: '复制成功',
  361. icon: 'none'
  362. });
  363. }
  364. this.$refs.popupkf.close();
  365. },
  366. uniCopy(content) {
  367. /**
  368. * 小程序端 和 app端的复制逻辑
  369. */
  370. //#ifndef H5
  371. uni.setClipboardData({
  372. data: content,
  373. success: function() {
  374. console.log('success');
  375. return true;
  376. }
  377. });
  378. //#endif
  379. /**
  380. * H5端的复制逻辑
  381. */
  382. // #ifdef H5
  383. if (!document.queryCommandSupported('copy')) {
  384. //为了兼容有些浏览器 queryCommandSupported 的判断
  385. // 不支持
  386. return false;
  387. }
  388. let textarea = document.createElement('textarea');
  389. textarea.value = content;
  390. textarea.readOnly = 'readOnly';
  391. document.body.appendChild(textarea);
  392. textarea.select(); // 选择对象
  393. textarea.setSelectionRange(0, content.length); //核心
  394. let result = document.execCommand('copy'); // 执行浏览器复制命令
  395. textarea.remove();
  396. return result;
  397. // #endif
  398. },
  399. // 打开客服
  400. openKf() {
  401. this.$refs.popupkf.open();
  402. },
  403. // 关闭客服
  404. cancel() {
  405. this.$refs.popupkf.close();
  406. },
  407. }
  408. };
  409. </script>
  410. <style lang="scss">
  411. page {
  412. background: #ffff;
  413. min-height: 100%;
  414. height: auto;
  415. }
  416. // 顶部搜索
  417. .top-search {
  418. height: 80rpx;
  419. padding: 0 20rpx;
  420. background-color: #fff;
  421. .top-logo {
  422. width: 50rpx;
  423. // height: 50rpx;
  424. margin-right: 10rpx;
  425. image {
  426. width: 48rpx;
  427. }
  428. }
  429. .search-box {
  430. justify-content: center;
  431. width: 698rpx;
  432. height: 60rpx;
  433. background: #EEEEEE;
  434. // box-shadow: 0px 10rpx 20rpx 0px rgba(4, 114, 69, 0.22);
  435. border-radius: 30rpx;
  436. .search {
  437. width: 34rpx;
  438. height: 34rpx;
  439. }
  440. .search-font {
  441. margin-left: 14rpx;
  442. font-size: 28rpx;
  443. font-family: PingFang SC;
  444. font-weight: 500;
  445. color: #CBCBCB;
  446. }
  447. }
  448. }
  449. // 顶部轮播图
  450. .top-swiper {
  451. width: 750rpx;
  452. height: 360rpx;
  453. // margin: 20rpx 0 0;
  454. image {
  455. width: 750rpx;
  456. height: 360rpx;
  457. }
  458. }
  459. .swiper-btm {
  460. height: 60rpx;
  461. width: 750rpx;
  462. background-color: #fff;
  463. margin-bottom: 20rpx;
  464. font-size: 21rpx;
  465. font-weight: 500;
  466. color: #333333;
  467. .btm-item {
  468. flex-grow: 1;
  469. justify-content: center;
  470. image {
  471. width: 25rpx;
  472. height: 25rpx;
  473. margin-right: 14rpx;
  474. }
  475. }
  476. }
  477. .jg {
  478. height: 20rpx;
  479. background: #F8F8F8;
  480. }
  481. // 分类
  482. .cate-section {
  483. justify-content: space-around;
  484. background-color: #fff;
  485. padding: 0rpx 0 30rpx;
  486. .cate-item {
  487. flex-grow: 0;
  488. width: 20%;
  489. flex-direction: column;
  490. text-align: center;
  491. align-items: center;
  492. justify-content: center;
  493. .img-wrapper {
  494. width: 90rpx;
  495. height: 90rpx;
  496. border-radius: 20rpx;
  497. position: relative;
  498. image {
  499. width: 90rpx;
  500. height: 90rpx;
  501. position: absolute;
  502. left: 50%;
  503. top: 50%;
  504. transform: translate(-50%, -50%);
  505. }
  506. }
  507. .item-title {
  508. margin-top: 15rpx;
  509. font-size: 26rpx;
  510. font-weight: 500;
  511. color: #666666;
  512. }
  513. }
  514. }
  515. .product-box {
  516. margin-top: 20rpx;
  517. background: #ffffff;
  518. padding: 26rpx 0 20rpx;
  519. .product-tit {
  520. justify-content: center;
  521. .hx {
  522. width: 120rpx;
  523. height: 1rpx;
  524. background: #4A2723;
  525. }
  526. .tit {
  527. margin: 0 70rpx;
  528. font-size: 30rpx;
  529. font-weight: 500;
  530. color: #4A2723;
  531. }
  532. }
  533. }
  534. .hotgoods {
  535. margin-top: 38rpx;
  536. width: 100%;
  537. display: flex;
  538. flex-wrap: wrap;
  539. padding: 0 20rpx 30rpx;
  540. justify-content: space-between;
  541. .hotgoods-item {
  542. width: 345rpx;
  543. background-color: #ffffff;
  544. border-radius: 12rpx;
  545. box-shadow: 0 0 15rpx rgba(0, 0, 0, 0.2);
  546. margin-bottom: 15rpx;
  547. .image-wrapper {
  548. width: 345rpx;
  549. height: 345rpx;
  550. border-radius: 3px;
  551. overflow: hidden;
  552. position: relative;
  553. .image-bg {
  554. position: absolute;
  555. top: 0;
  556. left: 0;
  557. right: 0;
  558. bottom: 0;
  559. width: 100%;
  560. height: 100%;
  561. opacity: 1;
  562. border-radius: 12rpx 12rpx 0 0;
  563. z-index: 2;
  564. }
  565. .image {
  566. width: 100%;
  567. height: 100%;
  568. opacity: 1;
  569. border-radius: 12rpx 12rpx 0 0;
  570. }
  571. }
  572. .title {
  573. margin-top: 24rpx;
  574. padding: 0 20rpx;
  575. font-size: 28rpx;
  576. font-family: PingFang SC;
  577. font-weight: 500;
  578. color: #333333;
  579. }
  580. .hot-price {
  581. display: flex;
  582. justify-content: flex-start;
  583. align-items: center;
  584. // padding: 14rpx 0 30rpx;
  585. .hotPrice-box {
  586. padding: 2rpx 6rpx;
  587. background: linear-gradient(90deg, #c79a4c, #f9df7f);
  588. border-radius: 5rpx;
  589. text-align: center;
  590. line-height: 28rpx;
  591. font-size: 20rpx;
  592. font-family: Source Han Sans CN;
  593. font-weight: 400;
  594. color: #ffffff;
  595. }
  596. .price {
  597. margin-left: 10rpx;
  598. font-size: 40rpx;
  599. color: #ff0000;
  600. font-weight: 500;
  601. .jf {
  602. font-size: 20rpx;
  603. }
  604. }
  605. .yuanPrice {
  606. margin-left: 10rpx;
  607. font-size: 20rpx;
  608. font-family: PingFang SC;
  609. font-weight: 500;
  610. text-decoration: line-through;
  611. color: #999999;
  612. }
  613. .cart-icon {
  614. image {
  615. width: 44rpx;
  616. height: 44rpx;
  617. }
  618. }
  619. }
  620. }
  621. }
  622. .popup-box {
  623. width: 522rpx;
  624. height: 605rpx;
  625. background-color: #ffffff;
  626. border-radius: 20rpx;
  627. position: relative;
  628. .product-tit {
  629. justify-content: center;
  630. .hx {
  631. width: 120rpx;
  632. height: 1rpx;
  633. background: #989898;
  634. }
  635. .tit {
  636. margin: 0 70rpx;
  637. font-size: 30rpx;
  638. font-weight: 500;
  639. color: #363636;
  640. }
  641. }
  642. .img {
  643. position: relative;
  644. top: -56rpx;
  645. left: 0;
  646. width: 522rpx;
  647. height: 132rpx;
  648. display: flex;
  649. justify-content: center;
  650. image {
  651. border-radius: 20rpx 20rpx 0 0;
  652. width: 450rpx;
  653. height: 132rpx;
  654. }
  655. }
  656. .mian {
  657. margin-top: -44rpx;
  658. display: flex;
  659. flex-direction: column;
  660. align-items: center;
  661. // padding: 32rpx 32rpx;
  662. background-color: #ffffff;
  663. border-radius: 0 0 20rpx 20rpx;
  664. text-align: center;
  665. .delivery {
  666. font-size: 40rpx;
  667. color: #333333;
  668. display: flex;
  669. align-items: center;
  670. flex-direction: column;
  671. image {
  672. margin-top: 48rpx;
  673. width: 172rpx;
  674. height: 160rpx;
  675. }
  676. }
  677. .nocancel {
  678. font-size: 32rpx;
  679. color: #333333;
  680. margin-top: 14rpx;
  681. }
  682. .comfirm-box {
  683. margin-top: 52rpx;
  684. display: flex;
  685. // margin-bottom: 32rpx;
  686. // justify-content: space-around;
  687. .cancel {
  688. display: flex;
  689. align-items: center;
  690. justify-content: center;
  691. width: 197rpx;
  692. height: 74rpx;
  693. border: 1px solid #dcc786;
  694. border-radius: 38rpx;
  695. font-size: 32rpx;
  696. color: #605128;
  697. }
  698. .comfirm {
  699. margin-left: 32rpx;
  700. display: flex;
  701. align-items: center;
  702. justify-content: center;
  703. width: 197rpx;
  704. height: 74rpx;
  705. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  706. border-radius: 38px;
  707. font-size: 32rpx;
  708. color: #605128;
  709. }
  710. }
  711. }
  712. }
  713. .good-list {
  714. width: 750rpx;
  715. background:#fff;
  716. padding: 30rpx 0;
  717. .good {
  718. width: 690rpx;
  719. height: 276rpx;
  720. background: #FFFFFF;
  721. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  722. border-radius: 10rpx;
  723. margin: auto;
  724. padding: 20rpx 15rpx;
  725. margin-bottom: 20rpx;
  726. &:last-of-type {
  727. margin-bottom: 0rpx;
  728. }
  729. .good-img {
  730. flex-shrink: 0;
  731. width: 236rpx;
  732. height: 236rpx;
  733. border-radius: 10rpx;
  734. margin-right: 22rpx;
  735. image {
  736. width: 236rpx;
  737. height: 236rpx;
  738. border-radius: 10rpx;
  739. }
  740. }
  741. .good-info {
  742. flex-grow: 1;
  743. height: 100%;
  744. flex-direction: column;
  745. justify-content: space-between;
  746. align-items: flex-start;
  747. .good-name {
  748. font-size: 32rpx;
  749. font-weight: bold;
  750. padding-top: 10rpx;
  751. color: #333333;
  752. }
  753. .good-price {
  754. width: 100%;
  755. image {
  756. width: 14rpx;
  757. margin: 0 6rpx 0 10rpx;
  758. }
  759. .old-price {
  760. .old-left {
  761. font-size: 26rpx;
  762. font-weight: 500;
  763. text-decoration: line-through;
  764. color: #999999;
  765. }
  766. .old-right {
  767. font-size: 24rpx;
  768. font-weight: bold;
  769. color: #B59467;
  770. }
  771. }
  772. .new-price {
  773. width: 100%;
  774. font-size: 36rpx;
  775. font-weight: bold;
  776. color: #FF4C4C;
  777. justify-content: space-between;
  778. .good-tip {
  779. width: 137rpx;
  780. height: 52rpx;
  781. background: #ff4a48;
  782. border-radius: 26rpx;
  783. position: relative;
  784. font-size: 26rpx;
  785. font-weight: 500;
  786. color: #FFFFFF;
  787. line-height: 52rpx;
  788. text-align: center;
  789. }
  790. }
  791. }
  792. }
  793. }
  794. }
  795. </style>