index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  1. <template>
  2. <view class="memberCenter">
  3. <zs-header title="会员中心" :background="background"></zs-header>
  4. <view class="top-box target" :style="{backgroundImage:`url(${list[current].backImg})`}">
  5. <view class="user-info">
  6. <image class="image" :src="userInfo.imgPath || defaultImg" lazy-load mode=""></image>
  7. <view class="info">
  8. <view class="user-name" :style="{color:`${list[current].backColour}`}">{{userInfo.nickname ||'用户'}}</view>
  9. <view class="tel">{{currentLevelName ||'您当前未开通会员'}}</view>
  10. </view>
  11. </view>
  12. <view class="swiper-box">
  13. <image v-if="current!=0" class="click left" src="../../static/member/click.gif" mode=""></image>
  14. <image v-if="current!=list.length-1" class="click" src="../../static/member/click.gif" mode=""></image>
  15. <swiper @change="changeSwiper" :current="current" class="swiper"
  16. >
  17. <swiper-item class="swiper-item" v-for="(item,index) in list" :key="item.setMealCode">
  18. <view class="content">
  19. <view :style="{background:item.backColour,color:item.colour}" v-if="userInfo.setMealCode == item.setMealCode" class="tag">
  20. 当前等级
  21. </view>
  22. <image class="icon" :src="item.imgUrl" mode=""></image>
  23. <!-- <view class="price" :style="{color:item.color}">
  24. {{`开通会员${item.price}/月`}}
  25. </view>
  26. <view class="notice" :style="{color:item.color}">
  27. 开通会员预计节省 <text class="num">¥99元</text>
  28. </view> -->
  29. </view>
  30. </swiper-item>
  31. </swiper>
  32. </view>
  33. </view>
  34. <view v-if="list1.length">
  35. <view class="title-box">
  36. <view class="title">
  37. 基础权益
  38. </view>
  39. </view>
  40. <u-grid :border="false" col="3">
  41. <u-grid-item v-for="(item,d) in list1" :key="d" @click="handleJump(item)">
  42. <image class="icon" :src="item.equityImg" mode=""></image>
  43. <text class="title">{{item.equityName}}</text>
  44. <text class="desc">{{item.equityDetail}}</text>
  45. </u-grid-item>
  46. </u-grid>
  47. </view>
  48. <view v-if="list2.length">
  49. <view class="title-box">
  50. <view class="title">
  51. 专属权益
  52. </view>
  53. </view>
  54. <u-grid :border="false" col="3">
  55. <u-grid-item v-for="(item,d) in list2" :key="d" @click="openPop(item)">
  56. <image class="icon" :src="item.equityImg" mode=""></image>
  57. <text class="title">{{item.equityName}}</text>
  58. <text class="desc">{{item.equityDetail}}</text>
  59. </u-grid-item>
  60. </u-grid>
  61. </view>
  62. <!--
  63. <view class="title-box">
  64. <view class="title">
  65. 娱乐
  66. </view>
  67. <view class="desc">
  68. 享受多达24种娱乐权益
  69. </view>
  70. </view>
  71. <u-grid :border="false" col="3">
  72. <u-grid-item v-for="(item,listIndex) in list1" :key="listIndex">
  73. <image class="icon" :src="item.icon" mode=""></image>
  74. <text class="title">{{item.title}}</text>
  75. <text class="desc">{{item.desc}}</text>
  76. </u-grid-item>
  77. </u-grid> -->
  78. <view class="fixed-box">
  79. <view class="btn-box">
  80. <view class="left-box" @click="handleCall">
  81. <image class="icon" src="../../static/phone.png" mode=""></image>
  82. <view class="info">
  83. <view class="tel">
  84. 10086
  85. </view>
  86. <view class="desc">
  87. 套餐咨询
  88. </view>
  89. </view>
  90. </view>
  91. <button class="btn" v-if="cmVipEnable&&userInfo.setMealCode != currentMeal&&list[current].source==1" :loading="btnLoading" @click="goOrder">
  92. 立即开通
  93. </button>
  94. </view>
  95. <view class="agreement-box" v-if="cmVipEnable&&userInfo.setMealCode != currentMeal&&list[current].source==1">
  96. <u-checkbox-group size="28rpx" v-model="checked" @change="choose">
  97. <u-checkbox activeColor="#EE4320" shape="circle" name="1" ></u-checkbox>
  98. </u-checkbox-group>
  99. <view class="text">
  100. 已阅读并同意 <text class="color" @click="jump('/agreement/member')">《慧研学惠生活基础会员服务协议》</text>
  101. </view>
  102. </view>
  103. </view>
  104. <u-popup :show="show" round="32rpx" mode="bottom" @close="show = false">
  105. <view class="discounts-title">
  106. 权益领取
  107. </view>
  108. <view class="discounts">
  109. <view class="discounts-item" v-if="type == 2">
  110. <view class="type-box">
  111. <view class="price">
  112. {{item | filterPrice}}
  113. </view>
  114. <view class="type">
  115. {{item | filterType}}
  116. </view>
  117. </view>
  118. <view class="info">
  119. <view class="card-title">
  120. {{item.couponName}}
  121. </view>
  122. <!-- <view class="limit">
  123. {{item.useStartTime}}后可用
  124. </view> -->
  125. <view class="desc">
  126. {{item.usrDetail || '-'}}
  127. </view>
  128. </view>
  129. <view class="btn" :class="[item.exist > 0?'used':'']" @click="handleBuy(item.id,item.exist)">
  130. {{item.exist > 0?'已领取':'领取'}}
  131. </view>
  132. </view>
  133. <view class="box" v-else-if="type == 4">
  134. <view class="item" v-for="(i,d) in item.equityContent" :key="d">
  135. <image class="icon" :src="i.icon" mode=""></image>
  136. <view class="title">
  137. {{i.equityName}}
  138. </view>
  139. <view class="btn" @click="handle(i)">
  140. {{i.canClaim?'领取':'查看'}}
  141. </view>
  142. </view>
  143. </view>
  144. <view class="desc-box">
  145. <view class="sub-title" v-if="item.equityMsg">
  146. 权益说明
  147. </view>
  148. <!-- <rich-text class="desc" :nodes="item.equityMsg"></rich-text> -->
  149. <view class="desc" v-html="item.equityMsg">
  150. {{item.equityMsg}}
  151. </view>
  152. </view>
  153. </view>
  154. </u-popup>
  155. <u-popup :show="show1" round="32rpx" mode="bottom" @close="show1 = false">
  156. <view class="discounts-title">
  157. 权益领取手机号
  158. </view>
  159. <view class="account-box">
  160. <!-- <u--input
  161. class="account-input"
  162. placeholder="请输入充值账号"
  163. border="none"
  164. cursorSpacing="150rpx"
  165. v-model.trim="form.account"
  166. ></u--input> -->
  167. <input class="account-input" v-model.trim="form.account" placeholder="请输入充值账号" border="none" />
  168. <button class="btn" :loading="btnLoading1" :disabled="btnLoading1" @click="getMediaVipCoupon">
  169. 确认
  170. </button>
  171. </view>
  172. </u-popup>
  173. <web-view v-if="H5url" :src="H5url"></web-view>
  174. </view>
  175. </template>
  176. <script>
  177. import {getSetting,refreshVip,getUserDetail} from '@/api/common.js'
  178. import {mealList,equityList,getH5url,getVideoEquity,getMediaVipCoupon} from '@/api/combo.js'
  179. import {getXiaojuCoupon,getCouponDetail} from '@/api/coupon.js'
  180. export default {
  181. data() {
  182. return {
  183. type:0,
  184. cmVipEnable:false,
  185. checked:'',
  186. current: 0,//轮播套餐index
  187. currentMeal: 0,//套餐id
  188. background: false,
  189. defaultImg: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fci.xiaohongshu.com%2Fc34b7b74-ba38-0456-982a-43c0f97522fe%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fci.xiaohongshu.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1693532127&t=a2e186c12aecaab7723611cb52a6778f',
  190. userInfo: {
  191. imgPath: "",
  192. isAuth: 1,
  193. lastLogin: "",
  194. nickname: "",
  195. openId: "",
  196. phoneNum: "",
  197. score: 0,
  198. setMealId: 0,
  199. sex: 1,
  200. userId: "",
  201. },
  202. list: [{backImg:''}],
  203. list1:[],
  204. list2:[],
  205. query:{
  206. "channelCode": "",
  207. "channelType": "",
  208. "discount": 6,
  209. "extension": "test",
  210. "phone": "",
  211. "saleModalId": ""
  212. },
  213. form:{
  214. account:JSON.parse(uni.getStorageSync('userInfo')).phoneNum
  215. },
  216. H5url:'',
  217. btnLoading:false,
  218. btnLoading1:false,
  219. currentMealCode:0,
  220. show:false,
  221. show1:false,
  222. item:{},
  223. equityId:0,
  224. equityContentId:0,
  225. productId:0
  226. }
  227. },
  228. computed: {
  229. currentLevelName() {
  230. let list = this.list.filter(item=>{
  231. if(item.setMealCode == this.userInfo.setMealCode){
  232. return item
  233. }
  234. })
  235. if(list.length){
  236. return list[0].setMealName
  237. }else{
  238. return ''
  239. }
  240. }
  241. },
  242. filters: {
  243. filterPrice: function(val) {
  244. if(val.couponType == 1){
  245. return `¥${val.couponDiscount}`
  246. }else if(val.couponType == 2){
  247. return `${val.couponDiscount}折`
  248. }else if(val.couponType == 3){
  249. return `¥${val.couponDiscount}`
  250. }
  251. },
  252. filterType: function(val) {
  253. if(val.couponType == 1){
  254. if(val.couponCondition){
  255. return `满${val.couponCondition}立减`
  256. }else{
  257. return '无门槛立减'
  258. }
  259. }else if(val.couponType == 2){
  260. if(val.couponCondition){
  261. return `满${val.couponCondition}`
  262. }else{
  263. return '无门槛立减'
  264. }
  265. }else if(val.couponType == 3){
  266. if(val.couponCondition){
  267. return `满${val.couponCondition}立减`
  268. }else{
  269. return '无门槛立减'
  270. }
  271. }
  272. },
  273. },
  274. methods: {
  275. handle(item){
  276. if(item.canClaim){
  277. this.show = false
  278. this.show1 = true
  279. this.equityContentId = item.id
  280. this.productId = item.serviceId
  281. this.form.account = JSON.parse(uni.getStorageSync('userInfo')).phoneNum
  282. }else{
  283. uni.navigateTo({
  284. url:'./logList'
  285. })
  286. }
  287. },
  288. handleCall() {
  289. uni.makePhoneCall({
  290. phoneNumber: '10086' //仅为示例
  291. });
  292. },
  293. handleJump(item){
  294. if(this.userInfo.setMealCode != item.setMealCode) return uni.showToast({
  295. title:'不是当前会员',
  296. icon:'none'
  297. })
  298. if(item.equityName === '会员专属活动'){
  299. uni.switchTab({
  300. url:'/pages/activity/index'
  301. })
  302. }else if(item.equityName === '专属客服'){
  303. uni.navigateTo({
  304. url:'/my/service/index'
  305. })
  306. }else if(item.equityName === '专享折扣价'){
  307. uni.switchTab({
  308. url:'/pages/index/index'
  309. })
  310. }
  311. },
  312. openPop(item){
  313. console.log(item);
  314. if(this.userInfo.setMealCode != item.setMealCode) return uni.showToast({
  315. title:'不是当前会员',
  316. icon:'none'
  317. })
  318. this.type = item.bindService
  319. if(item.bindService == 2){//加油券
  320. this.show = true
  321. getCouponDetail({id:item.bindContent}).then(res=>{
  322. if(res.state == 'Success'){
  323. this.item = res.content
  324. this.item.equityMsg = item.equityMsg.replaceAll('\n','<br/>')
  325. }
  326. })
  327. }else if(item.bindService == 4){//视频会员
  328. this.show = true
  329. this.equityId = item.id
  330. getVideoEquity({equityId:item.id}).then(res=>{
  331. if(res.state == 'Success'){
  332. this.item = res.content
  333. this.item.equityContent = JSON.parse(this.item.equityContent)
  334. this.item.equityMsg = item.equityMsg.replaceAll('\n','<br/>')
  335. }
  336. })
  337. }else if(item.bindService == 5){//抽奖
  338. uni.navigateTo({
  339. url:'/luckyDraw/index?id='+item.bindContent
  340. })
  341. }else if(item.equityName.indexOf('领水')!=-1){
  342. uni.navigateTo({
  343. url:'/special/water'
  344. })
  345. }
  346. },
  347. // 点击领取
  348. handleBuy() {
  349. uni.showLoading({
  350. title:'领取中'
  351. })
  352. getXiaojuCoupon({activityXiaojuId:this.item.activityXiaojuId,userId:JSON.parse(uni.getStorageSync('userInfo')).userId,mobile:JSON.parse(uni.getStorageSync('userInfo')).phoneNum}).then(res=>{
  353. uni.hideLoading()
  354. if(res.state == 'Success'){
  355. uni.showToast({
  356. title:'领取成功',
  357. icon:'success'
  358. })
  359. }
  360. })
  361. },
  362. getMediaVipCoupon(){
  363. this.btnLoading1 = true
  364. let userInfo = JSON.parse(uni.getStorageSync('userInfo'))
  365. getMediaVipCoupon({
  366. productId:this.productId,
  367. accountType:1,
  368. equityContentId:this.equityContentId,
  369. "equityId": this.equityId,
  370. "userId": userInfo.userId,
  371. userMobile:userInfo.phoneNum,
  372. mobile:this.form.account}).then(res=>{
  373. this.btnLoading1 = false
  374. if(res.state == 'Success'){
  375. this.show1 = false
  376. uni.showToast({
  377. title:'领取成功',
  378. icon:'success'
  379. })
  380. }
  381. })
  382. },
  383. jump(url){
  384. uni.navigateTo({
  385. url
  386. })
  387. },
  388. choose(val){
  389. console.log(val);
  390. },
  391. goOrder(){
  392. if(!this.checked.length) return uni.showToast({
  393. title:'请勾选会员服务协议',
  394. icon:'none'
  395. })
  396. if(this.btnLoading) return
  397. this.query.saleModalId = this.list[this.current].setMealCode
  398. // this.H5url = 'http://iot-pay-server.dev.zonelife.cn/app-h5/task/dist/index.html#/localLife/orderResult?businessName=%E7%A0%94%E5%AD%A620%E5%85%83%E5%8C%85&lifeId=fcbfbb7ea3ada89ad160da82dc9c75e6'
  399. this.getH5url()
  400. },
  401. changeSwiper(val) {
  402. this.current = val.target.current
  403. this.currentMeal = this.list[val.target.current].setMealCode
  404. this.query.discount = this.list[val.target.current].discount
  405. this.equityList(this.currentMeal,1)
  406. this.equityList(this.currentMeal,2)
  407. },
  408. mealList(){
  409. return new Promise((resolve,reject)=>{
  410. mealList({source:1,currentPage:1,pageSize:99,status:1}).then(res=>{
  411. if (res.state == 'Success') {
  412. this.list = res.content.records
  413. this.list.map((item,index)=>{
  414. if(this.userInfo.setMealCode == item.setMealCode){
  415. this.current = index
  416. }
  417. })
  418. this.currentMeal = this.list[this.current].setMealCode
  419. this.query.discount = this.list[this.current].discount
  420. resolve(this.currentMeal)
  421. }
  422. })
  423. })
  424. },
  425. equityList(setMealCode,equityType){
  426. return new Promise((resolve,reject)=>{
  427. equityList({currentPage:1,pageSize:99,setMealCode,equityType,status:1,showType:1}).then(res=>{
  428. if (res.state == 'Success') {
  429. this['list'+equityType] = res.content.records
  430. resolve(setMealCode)
  431. }
  432. })
  433. })
  434. },
  435. getData(){
  436. this.mealList().then(id=>{
  437. return this.equityList(id,1)
  438. }).then(id1=>{
  439. this.equityList(id1,2)
  440. })
  441. },
  442. getH5url(){
  443. this.btnLoading = true
  444. getH5url(this.query).then(res=>{
  445. this.btnLoading = false
  446. if (res.state == 'Success') {
  447. this.H5url = res.content
  448. }
  449. })
  450. },
  451. getSetting(){
  452. getSetting().then(res=>{
  453. if(res.state == 'Success'){
  454. this.cmVipEnable = res.content.cmVipEnable
  455. }
  456. })
  457. },
  458. // 获取用户详情
  459. getUserDetail() {
  460. getUserDetail().then(res => {
  461. this.userInfo = res.content
  462. uni.setStorageSync('userInfo', JSON.stringify(res.content))
  463. })
  464. },
  465. },
  466. onPageScroll(e) {
  467. if (e.scrollTop >= 50) {
  468. this.background = true
  469. } else {
  470. this.background = false
  471. }
  472. },
  473. created() {
  474. if(uni.getStorageSync('userInfo')) {
  475. this.userInfo = JSON.parse(uni.getStorageSync('userInfo'))
  476. this.query.phone = this.userInfo.phoneNum
  477. }
  478. // this.current = this.userInfo.setMealId
  479. this.getData()
  480. },
  481. onLoad(options) {
  482. this.getSetting()
  483. console.log('onload',options);
  484. },
  485. onShow() {
  486. // refreshVip().then(res=>{
  487. // if(res.state == 'Success'){
  488. // this.getUserDetail()
  489. // }
  490. // })
  491. }
  492. }
  493. </script>
  494. <style lang="scss">
  495. .memberCenter {
  496. min-height: 100vh;
  497. background: #FFF;
  498. padding-bottom: 180rpx;
  499. .swiper-box{
  500. position: relative;
  501. .click{
  502. position: absolute;
  503. top: calc(50% - 25rpx) ;
  504. right: 0;
  505. width: 100rpx;
  506. height: 100rpx;
  507. z-index: 999;
  508. }
  509. .click.left{
  510. left: 0;
  511. transform: rotateY(180deg);
  512. }
  513. .swiper {
  514. width: 750rpx !important;
  515. height: 272rpx !important;
  516. position: relative;
  517. left: -30rpx;
  518. top: 20rpx;
  519. }
  520. .swiper-item {
  521. width: 640rpx !important;
  522. height: 272rpx !important;
  523. position: relative;
  524. padding: 0 55rpx;
  525. .active {
  526. // transform: scale(1) !important;
  527. }
  528. .content {
  529. // transform: scale(.9);
  530. // transition: transform .3s;
  531. // transform-origin: center center;
  532. .icon {
  533. width: 640rpx;
  534. height: 272rpx;
  535. border-radius: 16rpx;
  536. }
  537. .tag {
  538. width: 104rpx;
  539. height: 34rpx;
  540. line-height: 34rpx;
  541. text-align: center;
  542. font-size: 22rpx;
  543. color: #fff;
  544. border-radius: 16rpx 0rpx 16rpx 0rpx;
  545. position: absolute;
  546. top: 0%;
  547. left: 55rpx;
  548. z-index: 2;
  549. }
  550. .price {
  551. font-size: 24rpx;
  552. position: absolute;
  553. left: 95rpx;
  554. top: 140rpx;
  555. }
  556. .notice {
  557. font-size: 24rpx;
  558. position: absolute;
  559. left: 95rpx;
  560. bottom: 40rpx;
  561. .num {
  562. font-weight: bold;
  563. font-size: 36rpx;
  564. }
  565. }
  566. }
  567. }
  568. }
  569. .top-box {
  570. width: 750rpx;
  571. height: 600rpx;
  572. padding: 150rpx 30rpx 0;
  573. box-sizing: border-box;
  574. position: relative;
  575. background-size: 100% 495rpx;
  576. background-repeat: no-repeat;
  577. .user-info {
  578. display: flex;
  579. align-items: center;
  580. justify-content: space-between;
  581. padding: 15rpx 0;
  582. color: #222222;
  583. .image {
  584. width: 108rpx;
  585. height: 108rpx;
  586. background: #f1f1f1;
  587. border-radius: 50%;
  588. }
  589. .info {
  590. flex: 1;
  591. margin-left: 30rpx;
  592. .user-name {
  593. font-size: 32rpx;
  594. font-weight: bold;
  595. color: #222222;
  596. }
  597. .tel {
  598. font-size: 24rpx;
  599. margin-top: 10rpx;
  600. color: #AAAAAA;
  601. }
  602. }
  603. }
  604. }
  605. .title-box {
  606. display: flex;
  607. align-items: center;
  608. margin: 30rpx 30rpx 0;
  609. .title {
  610. color: #222222;
  611. font-weight: bold;
  612. font-size: 32rpx;
  613. }
  614. .desc {
  615. margin-left: 10rpx;
  616. font-size: 22rpx;
  617. color: #AAAAAA;
  618. }
  619. }
  620. .u-grid{
  621. .u-grid-item{
  622. padding-top:30rpx ;
  623. }
  624. .icon{
  625. width: 80rpx;
  626. height: 80rpx;
  627. border-radius: 50%;
  628. }
  629. .title{
  630. width: 200rpx;
  631. font-size: 28rpx;
  632. color: #222222;
  633. margin-top: 10rpx;
  634. text-align: center;
  635. font-weight: bold;
  636. }
  637. .desc{
  638. width: 150rpx;
  639. color: #AAAAAA;
  640. font-size: 20rpx;
  641. text-align: center;
  642. }
  643. }
  644. .fixed-box {
  645. position: fixed;
  646. bottom: 0%;
  647. left: 0%;
  648. width: 100%;
  649. background: #fff;
  650. padding: 15rpx 20rpx 40rpx;
  651. box-sizing: border-box;
  652. .btn-box{
  653. display: flex;
  654. justify-content: space-between;
  655. align-items: center;
  656. .left-box {
  657. display: flex;
  658. align-items: center;
  659. .icon {
  660. width: 80rpx;
  661. height: 80rpx;
  662. }
  663. .info {
  664. margin-left: 20rpx;
  665. .tel {
  666. color: #222222;
  667. font-weight: bold;
  668. font-size: 32rpx;
  669. }
  670. .desc {
  671. font-size: 22rpx;
  672. color: #999999;
  673. }
  674. }
  675. }
  676. .btn {
  677. width: 340rpx;
  678. height: 80rpx;
  679. line-height: 80rpx;
  680. margin: 0;
  681. text-align: center;
  682. background: #FF4C3A;
  683. color: #fff;
  684. font-size: 28rpx;
  685. font-weight: bold;
  686. border-radius: 40rpx 40rpx 40rpx 40rpx;
  687. }
  688. }
  689. .agreement-box{
  690. display: flex;
  691. align-items: center;
  692. justify-content: center;
  693. font-size: 20rpx;
  694. color: #999999;
  695. margin-top: 20rpx;
  696. .color{
  697. color: #EE4320;
  698. }
  699. }
  700. }
  701. .u-popup__content{
  702. background: #F6F6F6!important;
  703. }
  704. .discounts-title {
  705. font-weight: bold;
  706. font-size: 32rpx;
  707. color: #222222;
  708. // text-align: center;
  709. padding: 28rpx 24rpx;
  710. }
  711. .discounts {
  712. padding: 0 24rpx 28rpx;
  713. max-height: 1000rpx;
  714. min-height: 600rpx;
  715. overflow: auto;
  716. .discounts-item {
  717. margin-bottom: 20rpx;
  718. display: flex;
  719. align-items: center;
  720. background-color: rgb(239, 239, 239);
  721. background: url('../../static/new-card.png') no-repeat;
  722. background-repeat: no-repeat;
  723. background-size: 100% 144rpx;
  724. border-radius: 16rpx;
  725. height: 144rpx;
  726. padding: 0 24rpx;
  727. box-sizing: border-box;
  728. .type-box{
  729. text-align: center;
  730. .price{
  731. ont-size: 40rpx;
  732. color: #FF4D3A;
  733. }
  734. .type{
  735. font-size: 20rpx;
  736. color: #AAAAAA;
  737. margin-top: 12rpx;
  738. }
  739. }
  740. .info {
  741. flex: 1;
  742. margin-left: 40rpx;
  743. .card-title {
  744. font-size: 28rpx;
  745. color: #222222;
  746. }
  747. .desc{
  748. font-size: 20rpx;
  749. color: #AAAAAA;
  750. }
  751. .limit{
  752. font-size: 20rpx;
  753. color: #AAAAAA;
  754. margin:10rpx 0;
  755. }
  756. }
  757. .btn {
  758. width: 118rpx;
  759. height: 48rpx;
  760. line-height: 48rpx;
  761. text-align: center;
  762. font-size: 24rpx;
  763. background: #EE4320;
  764. border-radius: 24rpx;
  765. color: #FFF;
  766. box-sizing: border-box;
  767. }
  768. .btn.used{
  769. border: 2rpx solid #EE421F;
  770. color: #EE421F;
  771. background: none;
  772. }
  773. }
  774. .box{
  775. border-radius: 16rpx;
  776. background: #fff;
  777. .item{
  778. display: flex;
  779. align-items: center;
  780. padding: 28rpx 24rpx;
  781. .icon{
  782. width: 160rpx;
  783. height: 160rpx;
  784. border-radius: 16rpx;
  785. }
  786. .title{
  787. font-weight: 600;
  788. font-size: 32rpx;
  789. color: #222222;
  790. flex: 1;
  791. margin-left: 20rpx;
  792. overflow: hidden;
  793. text-overflow: ellipsis;
  794. white-space: nowrap;
  795. }
  796. .btn{
  797. width: 120rpx;
  798. height: 52rpx;
  799. text-align: center;
  800. line-height: 52rpx;
  801. font-size: 28rpx;
  802. color: #EE4320;
  803. background: rgba(238,67,32,0.1);
  804. border-radius: 26rpx 26rpx 26rpx 26rpx;
  805. }
  806. .btn.disable{
  807. background: #F0F0F0;
  808. color: #AAAAAA;
  809. }
  810. }
  811. }
  812. .desc-box{
  813. border-radius: 16rpx;
  814. background: #fff;
  815. padding: 24rpx;
  816. margin-top: 20rpx;
  817. .sub-title{
  818. font-weight: bold;
  819. font-size: 26rpx;
  820. color: #222222;
  821. padding: 0rpx;
  822. }
  823. .desc{
  824. margin-top: 20rpx;
  825. }
  826. }
  827. .sub-title{
  828. font-weight: bold;
  829. font-size: 26rpx;
  830. color: #222222;
  831. // text-align: center;
  832. padding: 28rpx 24rpx;
  833. }
  834. .desc{
  835. color: #AAAAAA;
  836. font-size: 24rpx;
  837. line-height: 40rpx;
  838. }
  839. }
  840. .account-box{
  841. .account-input,.u-input__content{
  842. width: 702rpx;
  843. height: 96rpx;
  844. background: #FFFFFF;
  845. border-radius: 16rpx 16rpx 16rpx 16rpx;
  846. margin:0 auto 20rpx;
  847. box-sizing: border-box;
  848. padding: 0 20rpx;
  849. }
  850. .btn{
  851. width: 702rpx;
  852. height: 80rpx;
  853. line-height: 80rpx;
  854. text-align: center;
  855. background: #EE4320;
  856. border-radius: 40rpx;
  857. font-weight: 600;
  858. font-size: 28rpx;
  859. color: #FFFFFF;
  860. }
  861. }
  862. }
  863. </style>