member.vue 21 KB

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