member.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  1. <template>
  2. <view class="container clearfix">
  3. <view class="cm-member-top">
  4. <view class="cm-member-cel" @click="hanldPayUrl('/pages/user/member/member-record')">购买记录</view>
  5. <view class="cm-member-head">
  6. <view class="cm-member-text">
  7. <view class="cm-member-h1">
  8. <text v-if="memberType == 0">采美·超级会员</text>
  9. <text v-if="memberType == 1">已开通采美·超级会员</text>
  10. <text v-if="memberType == 2">采美·超级会员已过期</text>
  11. </view>
  12. <view class="cm-member-p">
  13. <text v-if="memberType == 0">享专属特权</text>
  14. <text v-else>有效期至:2021-10-01</text>
  15. </view>
  16. </view>
  17. <view class="cm-member-btn">
  18. <view class="btn" @click="hanldPayUrl('/pages/user/member/member-renew')">续费</view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="cm-member-main">
  23. <view class="title">超级会员套餐</view>
  24. <view class="cm-member-pay">
  25. <view class="pay-item"
  26. v-for="(pay,index) in payList"
  27. :key="index"
  28. :class="{current: tabCurrent === index}"
  29. @click="handleCheckedPay(index,pay)"
  30. >
  31. <view class="hot" v-if="index == 0">推荐</view>
  32. <view class="text-1">{{ pay.month }}</view>
  33. <view class="text-2"> <text>¥</text>{{ pay.money }}</view>
  34. <view class="text-3">{{ pay.text }}</view>
  35. </view>
  36. </view>
  37. <view class="cm-member-button">
  38. <view class="pay-btn pay" @click="hanldPayUrl('/pages/user/member/member-pay')">立即支付{{ payAmount }}元开通</view>
  39. <view class="pay-btn none">抵扣{{ payBeans }}个采美豆开通</view>
  40. </view>
  41. </view>
  42. <view class="cm-member-main">
  43. <view class="title">专属特权</view>
  44. <view class="cm-member-privilege clearfix">
  45. <view class="privilege-item" v-for="(priv,index) in privilegeList" :key="index">
  46. <image class="image" :src="priv.icon" mode=""></image>
  47. <view class="text-2">{{ priv.privText }}</view>
  48. <view class="text-3">{{ priv.privName }}</view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="cm-member-main">
  53. <view class="title">专属优惠券<text class="small">每月可领4个</text></view>
  54. <view class="cm-member-coupon clearfix">
  55. <view v-for="(coupon,index) in productCouponList"
  56. :key="index"
  57. :id="coupon.couponId"
  58. class="coupon-list"
  59. :class="coupon.useStatus == 1 ? 'none' : ''"
  60. >
  61. <view class="list-cell-tags">{{ coupon.couponType | TypeFormat }}</view>
  62. <view class="list-cell-le">
  63. <view class="coupon-maxMoney"><text class="small">¥</text>{{ coupon.couponAmount }}</view>
  64. <view class="coupon-minMoney">满{{ coupon.touchPrice }}可用</view>
  65. <view class="coupon-texts">
  66. <text v-if="coupon.couponType == 0">
  67. {{ coupon.productType && coupon.productType == 1 ? '全商城商品通用' : '仅可购买指定商品' }}
  68. </text>
  69. <text v-if="coupon.couponType == 1">
  70. {{ coupon.categoryType == 1 ? '仅限购买产品类商品' : '仅限购买仪器类商品' }}
  71. </text>
  72. <text v-if="coupon.couponType == 3">仅限购买店铺【{{ coupon.shopName }}】的商品</text>
  73. <text v-if="coupon.couponType == 4 || coupon.couponType == 2">全商城商品通用</text>
  74. </view>
  75. </view>
  76. <view class="list-cell-ri">
  77. <view class="icon-used-btn receive" v-if="coupon.useStatus == 0" @click="receiveCoupon(coupon)">立即领取</view>
  78. <view class="icon-used-btn make" v-if="coupon.useStatus == 1">已领取</view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="cm-member-main none">
  84. <view class="title">
  85. 优惠商品
  86. <view class="more" @click="hanldPayUrl('/pages/user/member/member-product')">更多<text class="iconfont icon-xiayibu"></text></view>
  87. </view>
  88. <view class="cm-member-product clearfix">
  89. <view v-for="(pro,index) in productList"
  90. :key="index"
  91. :id="pro.productId"
  92. class="product-list"
  93. @click="productDetail(pro.productId)"
  94. >
  95. <view class="product-image">
  96. <image :src="pro.image" mode=""></image>
  97. </view>
  98. <view class="product-mains">
  99. <view class="product-name">
  100. {{ pro.name }}
  101. </view>
  102. <view class="product-tags">
  103. <view class="floor-item-act" v-if="pro.actStatus==1">
  104. <view class="coupon-tags">优惠券</view>
  105. <view class="floor-tags" v-if="PromotionsFormat(pro.promotions)">
  106. {{pro.promotions.name}}
  107. <text v-if="pro.priceFlag != 1">:¥{{ pro.price | NumFormat }}</text>
  108. </view>
  109. <view class="floor-tags" v-else>{{pro.promotions.name}}</view>
  110. </view>
  111. <view class="floor-item-act" v-else>
  112. <view class="coupon-tags">优惠券</view>
  113. <view class="floor-tags" v-if="pro.actStatus ==0 && pro.ladderPriceFlag==1">阶梯价格</view>
  114. </view>
  115. </view>
  116. <view class="product-price">
  117. <view class="list-none" v-if="pro.priceFlag == 1">¥未公开价格</view>
  118. <view class="list-none" v-else-if="pro.priceFlag == 2">¥价格仅会员可见</view>
  119. <view class="list-none-price" v-else>¥{{ pro.price | NumFormat }}</view>
  120. </view>
  121. <view class="product-svip">
  122. <view class="svip" v-if='pro.proType == 0'>
  123. <view class="tags none">SVIP</view>
  124. </view>
  125. <view class="svip" v-if='pro.proType == 1'>
  126. <view class="tags">SVIP</view>
  127. <view class="price">{{ pro.discount }}</view>
  128. </view>
  129. <view class="svip" v-if='pro.proType == 2'>
  130. <view class="tags">SVIP</view>
  131. <view class="price">¥{{ pro.discountPrice | NumFormat }}</view>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. <!-- 透明模态层 -->
  139. <modal-layer v-if='isModallayer'></modal-layer>
  140. </view>
  141. </template>
  142. <script>
  143. import { mapState,mapMutations} from 'vuex'
  144. import modalLayer from '@/components/modal-layer'
  145. export default {
  146. components:{
  147. modalLayer
  148. },
  149. data() {
  150. return {
  151. StaticUrl:this.$Static,
  152. isModallayer:false,
  153. memberType:0,
  154. tabCurrent:0,
  155. params:{
  156. userId:0,
  157. redemptionCode:'',
  158. source:2,
  159. },
  160. payList:[
  161. {month:'12个月',money:4800,type:1,text:'400元/月',beans:480000},
  162. {month:'3个月',money:1500,type:2,text:'500元/月',beans:150000},
  163. {month:'1个月',money:600,type:3,text:'',beans:60000},
  164. ],
  165. payAmount:4800,
  166. payBeans:480000,
  167. privilegeList:[
  168. {
  169. icon:'https://static.caimei365.com/app/img/icon/icon-member-prer1@2x.png',
  170. privText:'优惠商品',
  171. privName:'超级会员专享'
  172. },
  173. {
  174. icon:'https://static.caimei365.com/app/img/icon/icon-member-prer2@2x.png',
  175. privText:'专属优惠券',
  176. privName:'超级会员专享'
  177. },
  178. {
  179. icon:'https://static.caimei365.com/app/img/icon/icon-member-prer3@2x.png',
  180. privText:'采美豆翻倍',
  181. privName:'下单返采美豆'
  182. },
  183. {
  184. icon:'https://static.caimei365.com/app/img/icon/icon-member-prer4@2x.png',
  185. privText:'专属客服',
  186. privName:'一对一'
  187. },
  188. {
  189. icon:'https://static.caimei365.com/app/img/icon/icon-member-prer5@2x.png',
  190. privText:'专属销售顾问',
  191. privName:'一对一'
  192. },
  193. {
  194. icon:'https://static.caimei365.com/app/img/icon/icon-member-prer6@2x.png',
  195. privText:'快速发货',
  196. privName:'会员加速'
  197. },
  198. {
  199. icon:'https://static.caimei365.com/app/img/icon/icon-member-prer7@2x.png',
  200. privText:'售后服务',
  201. privName:'会员加速'
  202. },
  203. {
  204. icon:'https://static.caimei365.com/app/img/icon/icon-member-prer8@2x.png',
  205. privText:'敬请期待',
  206. privName:'更多特权'
  207. }
  208. ],
  209. productCouponList:[
  210. {
  211. couponAmount:5000,
  212. touchPrice:2000,
  213. couponType:0,
  214. productType:1,
  215. categoryType:1,
  216. shopName:null,
  217. useStatus:0,
  218. },
  219. {
  220. couponAmount:5000,
  221. touchPrice:2000,
  222. couponType:1,
  223. productType:1,
  224. categoryType:1,
  225. shopName:null,
  226. useStatus:0,
  227. },
  228. {
  229. couponAmount:5000,
  230. touchPrice:2000,
  231. couponType:2,
  232. productType:1,
  233. categoryType:1,
  234. shopName:null,
  235. useStatus:1,
  236. },
  237. {
  238. couponAmount:5000,
  239. touchPrice:2000,
  240. couponType:3,
  241. productType:1,
  242. categoryType:1,
  243. shopName:null,
  244. useStatus:1,
  245. },
  246. ],
  247. productList:[
  248. {
  249. image:'https://img.caimei365.com/group1/M00/00/10/rB-lGGCHqP-AIE9-AAEQHiqWjQY981.png',
  250. name:'ET-SPACE全身热疗系统生物热能太空舱',
  251. unit:'台',
  252. ladderPriceFlag:0,
  253. priceFlag:1,
  254. originalPrice:100,
  255. price:5000000,
  256. actStatus:0,
  257. promotions:null,
  258. isChecked:false,
  259. productIds:1000,
  260. proType:1,
  261. discount:'8.8折'
  262. },
  263. {
  264. image:'https://img.caimei365.com/group1/M00/00/10/rB-lGGCHqP-AIE9-AAEQHiqWjQY981.png',
  265. name:'ET-SPACE全身热疗系统全身热疗系统生物热能太空舱',
  266. unit:'台',
  267. ladderPriceFlag:1,
  268. priceFlag:2,
  269. originalPrice:100,
  270. price:500000,
  271. actStatus:1,
  272. promotions:{
  273. type:1,
  274. mode:1,
  275. name:'优惠价'
  276. },
  277. isChecked:false,
  278. productIds:1001,
  279. proType:2,
  280. discountPrice:50000,
  281. },
  282. {
  283. image:'https://img.caimei365.com/group1/M00/00/10/rB-lGGCHqP-AIE9-AAEQHiqWjQY981.png',
  284. name:'ET-SPACE全身热疗系统全身热疗系统生物热能太空舱',
  285. unit:'台',
  286. ladderPriceFlag:1,
  287. priceFlag:0,
  288. originalPrice:100,
  289. price:5000000,
  290. actStatus:1,
  291. promotions:{
  292. type:0,
  293. mode:0,
  294. name:'单品满减'
  295. },
  296. isChecked:false,
  297. productIds:1002,
  298. proType:0,
  299. discountPrice:50000,
  300. },
  301. {
  302. image:'https://img.caimei365.com/group1/M00/00/10/rB-lGGCHqP-AIE9-AAEQHiqWjQY981.png',
  303. name:'ET-SPACE全身热疗系统全身热疗系统生物热能太空舱',
  304. unit:'台',
  305. ladderPriceFlag:1,
  306. priceFlag:0,
  307. originalPrice:100,
  308. price:50000000,
  309. actStatus:0,
  310. promotions:null,
  311. isChecked:false,
  312. productIds:1003,
  313. proType:0,
  314. discountPrice:50000,
  315. }
  316. ]
  317. }
  318. },
  319. onLoad() {
  320. },
  321. filters: {
  322. TypeFormat:function(value) {
  323. switch (value) {
  324. case 0:
  325. return '活动券'
  326. break
  327. case 1:
  328. return '品类券'
  329. break
  330. case 2:
  331. return '用户专享券'
  332. break
  333. case 3:
  334. return '店铺券'
  335. break
  336. case 4:
  337. return '新用户券'
  338. break
  339. }
  340. },
  341. NumFormat:function(text) {//处理金额
  342. return Number(text).toFixed(2)
  343. }
  344. },
  345. computed: {
  346. ...mapState(['hasLogin','userInfo','identity','isActivity'])
  347. },
  348. methods: {
  349. hanldPayUrl(url){
  350. this.$api.navigateTo(url)
  351. },
  352. handleCheckedPay(index,pay){// 选择会员
  353. this.tabCurrent = index
  354. this.payAmount = pay.money
  355. this.payBeans = pay.beans
  356. },
  357. PromotionsFormat(promo){//促销活动类型数据处理
  358. if(promo!=null){
  359. if(promo.type == 1 && promo.mode == 1){
  360. return true
  361. }else{
  362. return false
  363. }
  364. }
  365. return false
  366. },
  367. productDetail(productId) {
  368. this.isModallayer = true
  369. this.$api.navigateTo(`/pages/goods/product?id=${productId}`)
  370. this.isModallayer = false
  371. },
  372. },
  373. onPullDownRefresh() {
  374. setTimeout(() => {
  375. uni.stopPullDownRefresh()
  376. }, 200)
  377. },
  378. onShow(){
  379. this.$api.getComStorage('userInfo').then((resolve) =>{
  380. this.params.userId = resolve.userId ? resolve.userId : 0
  381. }).catch(error =>{
  382. console.log('暂无用户信息~')
  383. })
  384. }
  385. }
  386. </script>
  387. <style lang="scss">
  388. page{
  389. background-color: #F7F7F7;
  390. }
  391. .container{
  392. width: 100%;
  393. height: auto;
  394. }
  395. .cm-member-top{
  396. width: 100%;
  397. height: 242rpx;
  398. box-sizing: border-box;
  399. padding: 0 24rpx;
  400. background: url(https://static.caimei365.com/app/img/icon/icon-member-bg01@2x.png) no-repeat;
  401. background-size: cover;
  402. position: relative;
  403. .cm-member-cel{
  404. float: right;
  405. line-height: 40rpx;
  406. font-size: $font-size-26;
  407. margin-top: 40rpx;
  408. color: #F0CB72;
  409. text-align: right;
  410. }
  411. .cm-member-head{
  412. width: 702rpx;
  413. height: 132rpx;
  414. box-sizing: border-box;
  415. padding: 30rpx 32rpx 0 109rpx;
  416. background: url(https://static.caimei365.com/app/img/icon/icon-member-bg02@2x.png) no-repeat;
  417. background-size: cover;
  418. position: absolute;
  419. bottom: 0;
  420. left: 24rpx;
  421. border-radius: 16rpx 16rpx 0 0;
  422. .cm-member-text{
  423. float: left;
  424. .cm-member-h1{
  425. line-height: 42rpx;
  426. font-size: $font-size-30;
  427. color: #55331D;
  428. text-align: left;
  429. margin-bottom: 12rpx;
  430. font-weight: bold;
  431. }
  432. .cm-member-p{
  433. line-height: 30rpx;
  434. font-size: $font-size-22;
  435. color: #55331D;
  436. text-align: left;
  437. }
  438. }
  439. .cm-member-btn{
  440. float: right;
  441. padding-top: 12rpx;
  442. .btn{
  443. width: 118rpx;
  444. height: 48rpx;
  445. background: linear-gradient(270deg, #585658 0%, #323031 100%);
  446. border-radius: 24rpx;
  447. line-height: 48rpx;
  448. text-align: center;
  449. font-size: $font-size-24;
  450. color: #F0CB72;
  451. }
  452. }
  453. }
  454. }
  455. .cm-member-main{
  456. width: 100%;
  457. box-sizing: border-box;
  458. padding: 40rpx 24rpx;
  459. background-color: #FFFFFF;
  460. margin-bottom: 20rpx;
  461. &.none{
  462. background-color: #F7F7F7;
  463. padding: 20rpx 24rpx 0 24rpx;
  464. }
  465. .title{
  466. font-size: $font-size-32;
  467. line-height: 45rpx;
  468. text-align: left;
  469. color:#55331D;
  470. font-weight: bold;
  471. .small{
  472. font-size: $font-size-24;
  473. color: #E4AA43;
  474. font-weight: normal;
  475. margin-left: 15rpx;
  476. }
  477. .more{
  478. float: right;
  479. font-weight: normal;
  480. line-height: 45rpx;
  481. font-size: $font-size-26;
  482. color: #999999;
  483. .iconfont{
  484. margin-left: 10rpx;
  485. }
  486. }
  487. }
  488. .cm-member-pay{
  489. width: 100%;
  490. height:236rpx;
  491. margin: 40rpx 0;
  492. .pay-item{
  493. width: 218rpx;
  494. height: 100%;
  495. float: left;
  496. margin-right: 24rpx;
  497. border: 1px solid #F0F0F0;
  498. border-radius: 16rpx;
  499. box-sizing: border-box;
  500. text-align: center;
  501. padding: 40rpx 0;
  502. position: relative;
  503. .hot{
  504. width: 80rpx;
  505. height: 36rpx;
  506. text-align: center;
  507. line-height: 36rpx;
  508. font-size: $font-size-24;
  509. color: #FFFFFF;
  510. background-color: #FF2A2A;
  511. border-radius: 0 8rpx 8rpx 8rpx;
  512. position: absolute;
  513. left: 0;
  514. top: -10rpx;
  515. }
  516. &.current{
  517. background-color: #FDF8EE;
  518. border: 1px solid #F0CC8C;
  519. }
  520. &:last-child{
  521. margin-right: 0;
  522. }
  523. .text-1{
  524. line-height: 40rpx;
  525. font-size: $font-size-28;
  526. margin-bottom: 10rpx;
  527. color: #55331D;
  528. }
  529. .text-2{
  530. line-height: 59rpx;
  531. font-size: $font-size-40;
  532. margin-bottom: 10rpx;
  533. color: #FF2A2A;
  534. font-weight: bold;
  535. text{
  536. font-size: $font-size-26;
  537. }
  538. }
  539. .text-3{
  540. line-height: 33rpx;
  541. font-size: $font-size-24;
  542. color: #666666;
  543. }
  544. }
  545. }
  546. .cm-member-button{
  547. width: 100%;
  548. box-sizing: border-box;
  549. padding: 0 51rpx;
  550. .pay-btn{
  551. width: 100%;
  552. height: 90rpx;
  553. line-height: 90rpx;
  554. border-radius: 50rpx;
  555. text-align: center;
  556. font-size: $font-size-30;
  557. color: #55331D;
  558. box-sizing: border-box;
  559. margin-bottom: $font-size-24;
  560. &.pay{
  561. background: linear-gradient(90deg, #FEE9BA 0%, #F0CB72 100%);
  562. font-weight: bold;
  563. }
  564. &.none{
  565. border: 1px solid #F0CB72;
  566. margin-bottom: 0;
  567. }
  568. }
  569. }
  570. .cm-member-privilege{
  571. width: 100%;
  572. margin: 24rpx 0 16rpx 0;
  573. background-color: #FFFFFF;
  574. .privilege-item{
  575. width: 25%;
  576. height: 196rpx;
  577. margin: 16rpx 0;
  578. float: left;
  579. display: flex;
  580. flex-direction: column;
  581. align-items: center;
  582. .image{
  583. width: 90rpx;
  584. height: 90rpx;
  585. display: block;
  586. }
  587. .text-2{
  588. font-size: $font-size-26;
  589. color: #333333;
  590. line-height: 36rpx;
  591. margin-top: 12rpx;
  592. }
  593. .text-3{
  594. font-size: $font-size-22;
  595. color: #999999;
  596. line-height: 30rpx;
  597. margin-top: 6rpx;
  598. }
  599. }
  600. }
  601. .cm-member-coupon{
  602. width: 100%; margin: 24rpx 0 0 0;
  603. .coupon-list{
  604. width: 338rpx;
  605. height: 148rpx;
  606. border-radius: 8rpx;
  607. margin-bottom: 24rpx;
  608. box-sizing: border-box;
  609. background: url(https://static.caimei365.com/app/img/icon/icon-member-coupon@2x.png);
  610. background-size: cover;
  611. margin-right: 24rpx;
  612. float: left;
  613. position: relative;
  614. &:nth-child(2n){
  615. margin-right: 0;
  616. }
  617. &.none{
  618. background: url(https://static.caimei365.com/app/img/icon/icon-member-coupon-none@2x.png);
  619. background-size: cover;
  620. }
  621. .list-cell-tags{
  622. display: inline-block;
  623. padding: 0 10rpx;
  624. height: 27rpx;
  625. line-height: 27rpx;
  626. background-color: #E4AA43;
  627. color: #55331D;
  628. font-size: $font-size-20;
  629. border-radius: 8rpx 0 8rpx 0;
  630. text-align: center;
  631. position: absolute;
  632. top: 0;
  633. left: 0;
  634. }
  635. .list-cell-le{
  636. width: 258rpx;
  637. height: 100%;
  638. box-sizing: border-box;
  639. padding: 27rpx 24rpx 0 26rpx;
  640. float: left;
  641. .coupon-maxMoney{
  642. width: 100%;
  643. height: 50rpx;
  644. line-height: 50rpx;
  645. font-size: 40rpx;
  646. color: #55331D;
  647. text-align: left;
  648. .small{
  649. font-size: $font-size-24;
  650. }
  651. }
  652. .coupon-minMoney{
  653. width: 100%;
  654. height: 30rpx;
  655. line-height: 30rpx;
  656. font-size: $font-size-24;
  657. color: #55331D;
  658. text-align: left;
  659. }
  660. .coupon-texts{
  661. width: 100%;
  662. height: 30rpx;
  663. line-height: 30rpx;
  664. font-size: $font-size-24;
  665. color: #55331D;
  666. text-align: left;
  667. -o-text-overflow: ellipsis;
  668. text-overflow: ellipsis;
  669. display: -webkit-box;
  670. word-break: break-all;
  671. -webkit-box-orient: vertical;
  672. -webkit-line-clamp: 1;
  673. overflow: hidden;
  674. }
  675. }
  676. .list-cell-ri{
  677. width: 80rpx;
  678. height: 100%;
  679. float: right;
  680. .icon-used-btn{
  681. width: 100%;
  682. height: 100%;
  683. box-sizing: border-box;
  684. font-size: $font-size-22;
  685. text-align: center;
  686. &.receive{
  687. color: #55331D;
  688. padding: 15rpx 28rpx;
  689. }
  690. &.make{
  691. padding: 30rpx 28rpx;
  692. color: #FFFFFF;
  693. }
  694. }
  695. }
  696. }
  697. }
  698. .cm-member-product{
  699. width: 100%;
  700. margin-top: 16rpx;
  701. .product-list{
  702. width: 339rpx;
  703. height: 560rpx;
  704. border-radius: 16rpx;
  705. float: left;
  706. margin-right: 24rpx;
  707. margin-bottom: 24rpx;
  708. background-color: #FFFFFF;
  709. &:nth-child(2n){
  710. margin-right: 0;
  711. }
  712. .product-image{
  713. width: 339rpx;
  714. height: 339rpx;
  715. image{
  716. width: 339rpx;
  717. height: 339rpx;
  718. display: block;
  719. border-radius: 16rpx 16rpx 0 0;
  720. }
  721. }
  722. .product-mains{
  723. width: 100%;
  724. height: auto;
  725. box-sizing: border-box;
  726. padding: 0 24rpx;
  727. margin-top: 8rpx;
  728. .product-name{
  729. line-height: 36rpx;
  730. text-overflow: ellipsis;
  731. overflow: hidden;
  732. display: -webkit-box;
  733. -webkit-line-clamp: 2;
  734. line-clamp: 2;
  735. -webkit-box-orient: vertical;
  736. font-size: $font-size-26;
  737. color: #333333;
  738. text-align: justify;
  739. }
  740. .product-tags{
  741. width: 100%;
  742. height: 32rpx;
  743. margin-top: 4rpx;
  744. .floor-item-act{
  745. width: 100%;
  746. height: 32rpx;
  747. text-align: center;
  748. box-sizing: border-box;
  749. float: left;
  750. .floor-tags{
  751. height: 32rpx;
  752. box-sizing: border-box;
  753. border-radius: 8rpx;
  754. background-color: #FFFFFF;
  755. line-height: 28rpx;
  756. color: $color-system;
  757. text-align: center;
  758. display: inline-block;
  759. padding:0 8rpx;
  760. font-size: $font-size-20;
  761. border: 1px solid #E15616;
  762. float: left;
  763. }
  764. }
  765. }
  766. .product-price{
  767. width: 100%;
  768. line-height: 37rpx;
  769. font-size: $font-size-26;
  770. color: #333333;
  771. margin-top: 8rpx;
  772. .list-none-price{
  773. text-decoration: line-through;
  774. color: #999999;
  775. }
  776. }
  777. .product-svip{
  778. width: 100%;
  779. height: 32rpx;
  780. margin-top: 10rpx;
  781. .svip{
  782. padding-left: 44rpx;
  783. height: 32rpx;
  784. position: relative;
  785. .tags{
  786. width: 60rpx;
  787. height: 32rpx;
  788. background-color: #333333;
  789. text-align: center;
  790. line-height: 32rpx;
  791. font-size: $font-size-22;
  792. color: #F0CB72;
  793. position: absolute;
  794. left: 0;
  795. top: 0;
  796. border-radius: 8rpx 16rpx 8rpx 8rpx;
  797. &.none{
  798. border-radius: 8rpx;
  799. }
  800. }
  801. .price{
  802. height: 32rpx;
  803. box-sizing: border-box;
  804. border-radius:0 8rpx 8rpx 0;
  805. background-color: #F0CB72;
  806. line-height: 32rpx;
  807. color: #333333;
  808. text-align: center;
  809. padding:0 9rpx 0 25rpx;
  810. font-size: $font-size-26;
  811. float: left;
  812. }
  813. }
  814. }
  815. }
  816. }
  817. }
  818. }
  819. </style>