member.vue 21 KB

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