member.vue 21 KB

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