index.vue 18 KB

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