member.vue 25 KB

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