member.vue 23 KB

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