member.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  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.originalPrice | 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="handelCanelBeans"></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: 0,
  193. price: 0,
  194. month: '',
  195. packageId: 0
  196. },
  197. payParam: {
  198. userId: 0,
  199. packageId: 0
  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. this.handelPayMsg = data[0]
  328. this.payParam.packageId = data[0].packageId
  329. })
  330. .catch(error => {
  331. console.log('获取会员套餐异常~')
  332. })
  333. },
  334. receiveCoupon(coupon) {
  335. // 点击优惠券领取按钮
  336. if (this.isReceiveLoading) {
  337. return
  338. }
  339. this.ProductService.ReceiveCoupon({
  340. userId: this.payParam.userId,
  341. couponId: coupon.couponId,
  342. source: 2
  343. })
  344. .then(response => {
  345. this.isReceiveLoading = true
  346. this.$util.msg('领取成功', 1500, true, 'success')
  347. setTimeout(() => {
  348. coupon.getFlag = 1
  349. this.isReceiveLoading = false
  350. }, 1500)
  351. })
  352. .catch(error => {
  353. this.$util.msg(error.msg, 2000)
  354. this.isReceiveLoading = false
  355. })
  356. },
  357. hanldeShowBeans() {
  358. // 显示采美豆抵扣开通超级会员弹窗
  359. this.isShowBeansModal = true
  360. },
  361. handelCanelBeans() {
  362. // 取消采美豆抵扣超级会员
  363. this.isShowBeansModal = false
  364. },
  365. handelConfirmBeans() {
  366. // 确认采美豆抵扣开通超级会员
  367. this.PayService.getUserRegisterSuperBeans(this.payParam)
  368. .then(response => {
  369. this.isShowBeansModal = false
  370. this.$util.msg('开通成功', 2000, true, 'success')
  371. setTimeout(()=>{
  372. this.getUserSuperCenter()
  373. },2000)
  374. })
  375. .catch(error => {
  376. this.$util.msg(error.msg, 2000)
  377. })
  378. },
  379. hanldWechatPay() {
  380. // 跳转微信只开通超级会员
  381. this.PayService.getUserRegisterSuperPay(this.payParam)
  382. .then(response => {
  383. this.handelPayMsg.vipRecordId = response.data
  384. this.$api.navigateTo(`/pages/user/member/member-pay?data=${JSON.stringify(this.handelPayMsg)}`)
  385. })
  386. .catch(error => {
  387. this.$util.msg(error.msg, 2000)
  388. })
  389. },
  390. handleCheckedPay(index, pay) {
  391. // 选择会员
  392. this.tabCurrent = index
  393. this.payParam.packageId = pay.packageId
  394. this.handelPayMsg = pay
  395. },
  396. toUseCoupon(coupon) {
  397. // 去使用跳转路径
  398. console.log('coupon', coupon)
  399. switch (coupon.couponType) {
  400. case 0: // 活动券:跳转到商城首页 / 或者活动页(看是否指定了商品)
  401. if (coupon.productType == 1) {
  402. // 1 全商城通用 2 指定商品
  403. this.$api.switchTabTo('/pages/tabBar/home/index')
  404. } else {
  405. this.$api.navigateTo('/pages/user/coupon/coupon-product?couponId=' + coupon.couponId)
  406. }
  407. break
  408. case 1: // 品类券:跳转到产品 287 / 仪器页 286
  409. let categoryId = 0
  410. if (coupon.categoryType == 1) {
  411. categoryId = 287
  412. } else {
  413. categoryId = 286
  414. }
  415. this.$api.navigateTo(`/pages/goods/good-floor?linkId=${coupon.categoryType == 1 ? 287 : 286}`)
  416. break
  417. case 2: // 用户专享券:跳转到商城首页
  418. this.$api.switchTabTo('/pages/tabBar/home/index')
  419. break
  420. case 3: // 店铺券:跳转到店铺首页
  421. this.$api.navigateTo('/pages/supplier/user/my-shop?shopId=' + coupon.shopId)
  422. break
  423. case 4: // 新用户券:跳转到商城首页
  424. this.$api.switchTabTo('/pages/tabBar/home/index')
  425. break
  426. }
  427. },
  428. hanldPayUrl(url) {
  429. // 跳转
  430. this.$api.navigateTo(url)
  431. },
  432. PromotionsFormat(promo) {
  433. //促销活动类型数据处理
  434. if (promo != null) {
  435. if (promo.type == 1 && promo.mode == 1) {
  436. return true
  437. } else {
  438. return false
  439. }
  440. }
  441. return false
  442. },
  443. productDetail(productId) {
  444. this.isModallayer = true
  445. this.$api.navigateTo(`/pages/goods/product?id=${productId}`)
  446. this.isModallayer = false
  447. }
  448. },
  449. onPullDownRefresh() {
  450. setTimeout(() => {
  451. uni.stopPullDownRefresh()
  452. }, 200)
  453. },
  454. onShow() {
  455. this.initGetStotage()
  456. }
  457. }
  458. </script>
  459. <style lang="scss">
  460. page {
  461. background-color: #f7f7f7;
  462. }
  463. .container {
  464. width: 100%;
  465. height: auto;
  466. }
  467. .cm-member-top {
  468. width: 100%;
  469. height: 242rpx;
  470. box-sizing: border-box;
  471. padding: 0 24rpx;
  472. background: url(https://static.caimei365.com/app/img/icon/icon-member-bg01@2x.png) no-repeat;
  473. background-size: cover;
  474. position: relative;
  475. .cm-member-cel {
  476. float: right;
  477. line-height: 40rpx;
  478. font-size: $font-size-26;
  479. margin-top: 40rpx;
  480. color: #f0cb72;
  481. text-align: right;
  482. }
  483. .cm-member-head {
  484. width: 702rpx;
  485. height: 132rpx;
  486. box-sizing: border-box;
  487. padding: 30rpx 32rpx 0 109rpx;
  488. background: url(https://static.caimei365.com/app/img/icon/icon-member-bg02@2x.png) no-repeat;
  489. background-size: cover;
  490. position: absolute;
  491. bottom: 0;
  492. left: 24rpx;
  493. border-radius: 16rpx 16rpx 0 0;
  494. .cm-member-text {
  495. float: left;
  496. .cm-member-h1 {
  497. line-height: 42rpx;
  498. font-size: $font-size-30;
  499. color: #55331d;
  500. text-align: left;
  501. margin-bottom: 12rpx;
  502. font-weight: bold;
  503. }
  504. .cm-member-p {
  505. line-height: 30rpx;
  506. font-size: $font-size-22;
  507. color: #55331d;
  508. text-align: left;
  509. }
  510. }
  511. .cm-member-btn {
  512. float: right;
  513. padding-top: 12rpx;
  514. .btn {
  515. width: 118rpx;
  516. height: 48rpx;
  517. background: linear-gradient(270deg, #585658 0%, #323031 100%);
  518. border-radius: 24rpx;
  519. line-height: 48rpx;
  520. text-align: center;
  521. font-size: $font-size-24;
  522. color: #f0cb72;
  523. }
  524. }
  525. }
  526. }
  527. .cm-member-main {
  528. width: 100%;
  529. box-sizing: border-box;
  530. padding: 40rpx 24rpx;
  531. background-color: #ffffff;
  532. margin-bottom: 20rpx;
  533. &.none {
  534. background-color: #f7f7f7;
  535. padding: 20rpx 24rpx 0 24rpx;
  536. }
  537. .title {
  538. font-size: $font-size-32;
  539. line-height: 45rpx;
  540. text-align: left;
  541. color: #55331d;
  542. font-weight: bold;
  543. .small {
  544. font-size: $font-size-24;
  545. color: #e4aa43;
  546. font-weight: normal;
  547. margin-left: 15rpx;
  548. }
  549. .more {
  550. float: right;
  551. font-weight: normal;
  552. line-height: 45rpx;
  553. font-size: $font-size-26;
  554. color: #999999;
  555. .iconfont {
  556. margin-left: 10rpx;
  557. }
  558. }
  559. }
  560. .cm-member-pay {
  561. width: 100%;
  562. height: 236rpx;
  563. margin: 40rpx 0;
  564. .pay-item {
  565. width: 218rpx;
  566. height: 100%;
  567. float: left;
  568. margin-right: 24rpx;
  569. border: 1px solid #f0f0f0;
  570. border-radius: 16rpx;
  571. box-sizing: border-box;
  572. text-align: center;
  573. padding: 40rpx 0;
  574. position: relative;
  575. .hot {
  576. width: 80rpx;
  577. height: 36rpx;
  578. text-align: center;
  579. line-height: 36rpx;
  580. font-size: $font-size-24;
  581. color: #ffffff;
  582. background-color: #ff2a2a;
  583. border-radius: 0 8rpx 8rpx 8rpx;
  584. position: absolute;
  585. left: 0;
  586. top: -10rpx;
  587. }
  588. &.current {
  589. background-color: #fdf8ee;
  590. border: 1px solid #f0cc8c;
  591. }
  592. &:last-child {
  593. margin-right: 0;
  594. }
  595. .text-1 {
  596. line-height: 40rpx;
  597. font-size: $font-size-28;
  598. margin-bottom: 10rpx;
  599. color: #55331d;
  600. }
  601. .text-2 {
  602. line-height: 59rpx;
  603. font-size: $font-size-40;
  604. margin-bottom: 10rpx;
  605. color: #ff2a2a;
  606. font-weight: bold;
  607. text {
  608. font-size: $font-size-26;
  609. }
  610. }
  611. .text-3 {
  612. line-height: 33rpx;
  613. font-size: $font-size-24;
  614. color: #666666;
  615. }
  616. }
  617. }
  618. .cm-member-button {
  619. width: 100%;
  620. box-sizing: border-box;
  621. padding: 0 51rpx;
  622. .pay-btn {
  623. width: 100%;
  624. height: 90rpx;
  625. line-height: 90rpx;
  626. border-radius: 50rpx;
  627. text-align: center;
  628. font-size: $font-size-30;
  629. color: #55331d;
  630. box-sizing: border-box;
  631. margin-bottom: $font-size-24;
  632. &.pay {
  633. background: linear-gradient(90deg, #fee9ba 0%, #f0cb72 100%);
  634. font-weight: bold;
  635. }
  636. &.none {
  637. border: 1px solid #f0cb72;
  638. margin-bottom: 0;
  639. }
  640. }
  641. }
  642. .cm-member-privilege {
  643. width: 100%;
  644. margin: 24rpx 0 16rpx 0;
  645. background-color: #ffffff;
  646. .privilege-item {
  647. width: 25%;
  648. height: 196rpx;
  649. margin: 16rpx 0;
  650. float: left;
  651. display: flex;
  652. flex-direction: column;
  653. align-items: center;
  654. .image {
  655. width: 90rpx;
  656. height: 90rpx;
  657. display: block;
  658. }
  659. .text-2 {
  660. font-size: $font-size-26;
  661. color: #333333;
  662. line-height: 36rpx;
  663. margin-top: 12rpx;
  664. }
  665. .text-3 {
  666. font-size: $font-size-22;
  667. color: #999999;
  668. line-height: 30rpx;
  669. margin-top: 6rpx;
  670. }
  671. }
  672. }
  673. .cm-member-coupon {
  674. width: 100%;
  675. margin: 24rpx 0 0 0;
  676. .coupon-list {
  677. width: 338rpx;
  678. height: 148rpx;
  679. border-radius: 8rpx;
  680. margin-bottom: 24rpx;
  681. box-sizing: border-box;
  682. background: url(https://static.caimei365.com/app/img/icon/icon-member-coupon@2x.png);
  683. background-size: cover;
  684. margin-right: 24rpx;
  685. float: left;
  686. position: relative;
  687. &:nth-child(2n) {
  688. margin-right: 0;
  689. }
  690. .list-cell-tags {
  691. display: inline-block;
  692. padding: 0 10rpx;
  693. height: 27rpx;
  694. line-height: 27rpx;
  695. background-color: #e4aa43;
  696. color: #55331d;
  697. font-size: $font-size-20;
  698. border-radius: 8rpx 0 8rpx 0;
  699. text-align: center;
  700. position: absolute;
  701. top: 0;
  702. left: 0;
  703. }
  704. .list-cell-le {
  705. width: 258rpx;
  706. height: 100%;
  707. box-sizing: border-box;
  708. padding: 27rpx 24rpx 0 26rpx;
  709. float: left;
  710. .coupon-maxMoney {
  711. width: 100%;
  712. height: 50rpx;
  713. line-height: 50rpx;
  714. font-size: 40rpx;
  715. color: #55331d;
  716. text-align: left;
  717. .small {
  718. font-size: $font-size-24;
  719. }
  720. }
  721. .coupon-minMoney {
  722. width: 100%;
  723. height: 30rpx;
  724. line-height: 30rpx;
  725. font-size: $font-size-24;
  726. color: #55331d;
  727. text-align: left;
  728. }
  729. .coupon-texts {
  730. width: 100%;
  731. height: 30rpx;
  732. line-height: 30rpx;
  733. font-size: $font-size-24;
  734. color: #55331d;
  735. text-align: left;
  736. -o-text-overflow: ellipsis;
  737. text-overflow: ellipsis;
  738. display: -webkit-box;
  739. word-break: break-all;
  740. -webkit-box-orient: vertical;
  741. -webkit-line-clamp: 1;
  742. overflow: hidden;
  743. }
  744. }
  745. .list-cell-ri {
  746. width: 80rpx;
  747. height: 100%;
  748. float: right;
  749. .icon-used-btn {
  750. width: 100%;
  751. height: 100%;
  752. box-sizing: border-box;
  753. font-size: $font-size-22;
  754. text-align: center;
  755. &.receive {
  756. color: #55331d;
  757. padding: 15rpx 28rpx;
  758. }
  759. &.make {
  760. padding: 30rpx 28rpx;
  761. color: #55331d;
  762. }
  763. }
  764. }
  765. }
  766. }
  767. .cm-member-product {
  768. width: 100%;
  769. margin-top: 16rpx;
  770. .product-list {
  771. width: 339rpx;
  772. height: 516rpx;
  773. border-radius: 16rpx;
  774. float: left;
  775. margin-right: 24rpx;
  776. margin-bottom: 24rpx;
  777. background-color: #ffffff;
  778. &:nth-child(2n) {
  779. margin-right: 0;
  780. }
  781. .product-image {
  782. width: 339rpx;
  783. height: 339rpx;
  784. image {
  785. width: 339rpx;
  786. height: 339rpx;
  787. display: block;
  788. border-radius: 16rpx 16rpx 0 0;
  789. }
  790. }
  791. .product-mains {
  792. width: 100%;
  793. height: auto;
  794. box-sizing: border-box;
  795. padding: 0 24rpx;
  796. margin-top: 8rpx;
  797. .product-name {
  798. height: 72rpx;
  799. line-height: 36rpx;
  800. text-overflow: ellipsis;
  801. overflow: hidden;
  802. display: -webkit-box;
  803. -webkit-line-clamp: 2;
  804. line-clamp: 2;
  805. -webkit-box-orient: vertical;
  806. font-size: $font-size-26;
  807. color: #333333;
  808. text-align: justify;
  809. }
  810. .product-tags {
  811. width: 100%;
  812. height: 32rpx;
  813. margin-top: 6rpx;
  814. .floor-item-act {
  815. width: 100%;
  816. height: 32rpx;
  817. text-align: center;
  818. box-sizing: border-box;
  819. float: left;
  820. }
  821. }
  822. .product-price {
  823. width: 100%;
  824. line-height: 37rpx;
  825. font-size: $font-size-26;
  826. color: #f94b4b;
  827. margin-top: 8rpx;
  828. .list-none-price {
  829. text-decoration: line-through;
  830. color: #999999;
  831. }
  832. }
  833. }
  834. }
  835. }
  836. }
  837. .cm-model-alert {
  838. width: 100%;
  839. height: 100%;
  840. background: rgba(0, 0, 0, 0.5);
  841. position: fixed;
  842. top: 0;
  843. left: 0;
  844. z-index: 8888;
  845. transition: all 0.4s;
  846. .content {
  847. width: 580rpx;
  848. height: 390rpx;
  849. position: absolute;
  850. background: $bg-color;
  851. left: 0;
  852. right: 0;
  853. bottom: 0;
  854. top: 0;
  855. margin: auto;
  856. padding: 20rpx 32rpx;
  857. border-radius: 12rpx;
  858. .title {
  859. width: 100%;
  860. height: 68rpx;
  861. line-height: 68rpx;
  862. font-size: $font-size-28;
  863. color: $text-color;
  864. text-align: center;
  865. position: relative;
  866. .icon-iconfontguanbi {
  867. width: 68rpx;
  868. height: 68rpx;
  869. text-align: center;
  870. line-height: 68rpx;
  871. position: absolute;
  872. right: 0;
  873. top: 0;
  874. font-size: $font-size-36;
  875. color: #999999;
  876. }
  877. }
  878. .text-content {
  879. width: 100%;
  880. height: auto;
  881. margin-top: 20px;
  882. .text {
  883. padding: 20rpx 0 0 0;
  884. line-height: 44rpx;
  885. font-size: $font-size-26;
  886. color: #666666;
  887. text-align: justify;
  888. .text-p {
  889. color: #e15616;
  890. }
  891. }
  892. }
  893. .text-button {
  894. width: 100%;
  895. height: 72rpx;
  896. display: flex;
  897. box-sizing: border-box;
  898. padding: 0 50rpx;
  899. margin-top: 30px;
  900. .btn {
  901. width: 200rpx;
  902. height: 72rpx;
  903. line-height: 72rpx;
  904. color: #fff;
  905. display: flex;
  906. align-items: center;
  907. justify-content: center;
  908. font-size: $font-size-26;
  909. border-radius: 44rpx;
  910. box-sizing: border-box;
  911. &.btn-confirm {
  912. background: $btn-confirm;
  913. margin-left: 78rpx;
  914. }
  915. &.btn-cancel {
  916. border: 1px solid #b2b2b2;
  917. color: #333333;
  918. }
  919. }
  920. }
  921. }
  922. }
  923. </style>