member.vue 22 KB

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