member.vue 24 KB

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