index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910
  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">
  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. openPop(item){
  294. console.log(item);
  295. if(this.userInfo.setMealCode != item.setMealCode) return uni.showToast({
  296. title:'不是当前会员',
  297. icon:'none'
  298. })
  299. this.type = item.bindService
  300. if(item.bindService == 2){//加油券
  301. this.show = true
  302. getCouponDetail({id:item.bindContent}).then(res=>{
  303. if(res.state == 'Success'){
  304. this.item = res.content
  305. this.item.equityMsg = item.equityMsg.replaceAll('\n','<br/>')
  306. }
  307. })
  308. }else if(item.bindService == 4){//视频会员
  309. this.show = true
  310. this.equityId = item.id
  311. getVideoEquity({equityId:item.id}).then(res=>{
  312. if(res.state == 'Success'){
  313. this.item = res.content
  314. this.item.equityContent = JSON.parse(this.item.equityContent)
  315. this.item.equityMsg = item.equityMsg.replaceAll('\n','<br/>')
  316. }
  317. })
  318. }else if(item.bindService == 5){//抽奖
  319. uni.navigateTo({
  320. url:'/luckyDraw/index?id='+item.bindContent
  321. })
  322. }else if(item.equityName.indexOf('领水')!=-1){
  323. uni.navigateTo({
  324. url:'/special/water'
  325. })
  326. }
  327. },
  328. // 点击领取
  329. handleBuy() {
  330. uni.showLoading({
  331. title:'领取中'
  332. })
  333. getXiaojuCoupon({activityXiaojuId:this.item.activityXiaojuId,userId:JSON.parse(uni.getStorageSync('userInfo')).userId,mobile:JSON.parse(uni.getStorageSync('userInfo')).phoneNum}).then(res=>{
  334. uni.hideLoading()
  335. if(res.state == 'Success'){
  336. uni.showToast({
  337. title:'领取成功',
  338. icon:'success'
  339. })
  340. }
  341. })
  342. },
  343. getMediaVipCoupon(){
  344. this.btnLoading1 = true
  345. let userInfo = JSON.parse(uni.getStorageSync('userInfo'))
  346. getMediaVipCoupon({
  347. productId:this.productId,
  348. accountType:1,
  349. equityContentId:this.equityContentId,
  350. "equityId": this.equityId,
  351. "userId": userInfo.userId,
  352. userMobile:userInfo.phoneNum,
  353. mobile:this.form.account}).then(res=>{
  354. this.btnLoading1 = false
  355. if(res.state == 'Success'){
  356. this.show1 = false
  357. uni.showToast({
  358. title:'领取成功',
  359. icon:'success'
  360. })
  361. }
  362. })
  363. },
  364. jump(url){
  365. uni.navigateTo({
  366. url
  367. })
  368. },
  369. choose(val){
  370. console.log(val);
  371. },
  372. goOrder(){
  373. if(!this.checked.length) return uni.showToast({
  374. title:'请勾选会员服务协议',
  375. icon:'none'
  376. })
  377. if(this.btnLoading) return
  378. this.query.saleModalId = this.list[this.current].setMealCode
  379. // 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'
  380. this.getH5url()
  381. },
  382. changeSwiper(val) {
  383. this.current = val.target.current
  384. this.currentMeal = this.list[val.target.current].setMealCode
  385. this.query.discount = this.list[val.target.current].discount
  386. this.equityList(this.currentMeal,1)
  387. this.equityList(this.currentMeal,2)
  388. },
  389. mealList(){
  390. return new Promise((resolve,reject)=>{
  391. mealList({source:1,currentPage:1,pageSize:99,status:1}).then(res=>{
  392. if (res.state == 'Success') {
  393. this.list = res.content.records
  394. this.list.map((item,index)=>{
  395. if(this.userInfo.setMealCode == item.setMealCode){
  396. this.current = index
  397. }
  398. })
  399. this.currentMeal = this.list[this.current].setMealCode
  400. this.query.discount = this.list[this.current].discount
  401. resolve(this.currentMeal)
  402. }
  403. })
  404. })
  405. },
  406. equityList(setMealCode,equityType){
  407. return new Promise((resolve,reject)=>{
  408. equityList({currentPage:1,pageSize:99,setMealCode,equityType,status:1,showType:1}).then(res=>{
  409. if (res.state == 'Success') {
  410. this['list'+equityType] = res.content.records
  411. resolve(setMealCode)
  412. }
  413. })
  414. })
  415. },
  416. getData(){
  417. this.mealList().then(id=>{
  418. return this.equityList(id,1)
  419. }).then(id1=>{
  420. this.equityList(id1,2)
  421. })
  422. },
  423. getH5url(){
  424. this.btnLoading = true
  425. getH5url(this.query).then(res=>{
  426. this.btnLoading = false
  427. if (res.state == 'Success') {
  428. this.H5url = res.content
  429. }
  430. })
  431. },
  432. getSetting(){
  433. getSetting().then(res=>{
  434. if(res.state == 'Success'){
  435. this.cmVipEnable = res.content.cmVipEnable
  436. }
  437. })
  438. },
  439. // 获取用户详情
  440. getUserDetail() {
  441. getUserDetail().then(res => {
  442. this.userInfo = res.content
  443. uni.setStorageSync('userInfo', JSON.stringify(res.content))
  444. })
  445. },
  446. },
  447. onPageScroll(e) {
  448. if (e.scrollTop >= 50) {
  449. this.background = true
  450. } else {
  451. this.background = false
  452. }
  453. },
  454. created() {
  455. if(uni.getStorageSync('userInfo')) {
  456. this.userInfo = JSON.parse(uni.getStorageSync('userInfo'))
  457. this.query.phone = this.userInfo.phoneNum
  458. }
  459. // this.current = this.userInfo.setMealId
  460. this.getData()
  461. },
  462. onLoad(options) {
  463. this.getSetting()
  464. console.log('onload',options);
  465. },
  466. onShow() {
  467. // refreshVip().then(res=>{
  468. // if(res.state == 'Success'){
  469. // this.getUserDetail()
  470. // }
  471. // })
  472. }
  473. }
  474. </script>
  475. <style lang="scss">
  476. .memberCenter {
  477. min-height: 100vh;
  478. background: #FFF;
  479. padding-bottom: 180rpx;
  480. .swiper-box{
  481. position: relative;
  482. .click{
  483. position: absolute;
  484. top: calc(50% - 25rpx) ;
  485. right: 0;
  486. width: 100rpx;
  487. height: 100rpx;
  488. z-index: 999;
  489. }
  490. .click.left{
  491. left: 0;
  492. transform: rotateY(180deg);
  493. }
  494. .swiper {
  495. width: 750rpx !important;
  496. height: 272rpx !important;
  497. position: relative;
  498. left: -30rpx;
  499. top: 20rpx;
  500. }
  501. .swiper-item {
  502. width: 640rpx !important;
  503. height: 272rpx !important;
  504. position: relative;
  505. padding: 0 55rpx;
  506. .active {
  507. // transform: scale(1) !important;
  508. }
  509. .content {
  510. // transform: scale(.9);
  511. // transition: transform .3s;
  512. // transform-origin: center center;
  513. .icon {
  514. width: 640rpx;
  515. height: 272rpx;
  516. border-radius: 16rpx;
  517. }
  518. .tag {
  519. width: 104rpx;
  520. height: 34rpx;
  521. line-height: 34rpx;
  522. text-align: center;
  523. font-size: 22rpx;
  524. color: #fff;
  525. border-radius: 16rpx 0rpx 16rpx 0rpx;
  526. position: absolute;
  527. top: 0%;
  528. left: 55rpx;
  529. z-index: 2;
  530. }
  531. .price {
  532. font-size: 24rpx;
  533. position: absolute;
  534. left: 95rpx;
  535. top: 140rpx;
  536. }
  537. .notice {
  538. font-size: 24rpx;
  539. position: absolute;
  540. left: 95rpx;
  541. bottom: 40rpx;
  542. .num {
  543. font-weight: bold;
  544. font-size: 36rpx;
  545. }
  546. }
  547. }
  548. }
  549. }
  550. .top-box {
  551. width: 750rpx;
  552. height: 600rpx;
  553. padding: 150rpx 30rpx 0;
  554. box-sizing: border-box;
  555. position: relative;
  556. background-size: 100% 495rpx;
  557. background-repeat: no-repeat;
  558. .user-info {
  559. display: flex;
  560. align-items: center;
  561. justify-content: space-between;
  562. padding: 15rpx 0;
  563. color: #222222;
  564. .image {
  565. width: 108rpx;
  566. height: 108rpx;
  567. background: #f1f1f1;
  568. border-radius: 50%;
  569. }
  570. .info {
  571. flex: 1;
  572. margin-left: 30rpx;
  573. .user-name {
  574. font-size: 32rpx;
  575. font-weight: bold;
  576. color: #222222;
  577. }
  578. .tel {
  579. font-size: 24rpx;
  580. margin-top: 10rpx;
  581. color: #AAAAAA;
  582. }
  583. }
  584. }
  585. }
  586. .title-box {
  587. display: flex;
  588. align-items: center;
  589. margin: 30rpx 30rpx 0;
  590. .title {
  591. color: #222222;
  592. font-weight: bold;
  593. font-size: 32rpx;
  594. }
  595. .desc {
  596. margin-left: 10rpx;
  597. font-size: 22rpx;
  598. color: #AAAAAA;
  599. }
  600. }
  601. .u-grid{
  602. .u-grid-item{
  603. padding-top:30rpx ;
  604. }
  605. .icon{
  606. width: 80rpx;
  607. height: 80rpx;
  608. border-radius: 50%;
  609. }
  610. .title{
  611. width: 200rpx;
  612. font-size: 28rpx;
  613. color: #222222;
  614. margin-top: 10rpx;
  615. text-align: center;
  616. font-weight: bold;
  617. }
  618. .desc{
  619. width: 150rpx;
  620. color: #AAAAAA;
  621. font-size: 20rpx;
  622. text-align: center;
  623. }
  624. }
  625. .fixed-box {
  626. position: fixed;
  627. bottom: 0%;
  628. left: 0%;
  629. width: 100%;
  630. background: #fff;
  631. padding: 15rpx 20rpx 40rpx;
  632. box-sizing: border-box;
  633. .btn-box{
  634. display: flex;
  635. justify-content: space-between;
  636. align-items: center;
  637. .left-box {
  638. display: flex;
  639. align-items: center;
  640. .icon {
  641. width: 80rpx;
  642. height: 80rpx;
  643. }
  644. .info {
  645. margin-left: 20rpx;
  646. .tel {
  647. color: #222222;
  648. font-weight: bold;
  649. font-size: 32rpx;
  650. }
  651. .desc {
  652. font-size: 22rpx;
  653. color: #999999;
  654. }
  655. }
  656. }
  657. .btn {
  658. width: 340rpx;
  659. height: 80rpx;
  660. line-height: 80rpx;
  661. margin: 0;
  662. text-align: center;
  663. background: #FF4C3A;
  664. color: #fff;
  665. font-size: 28rpx;
  666. font-weight: bold;
  667. border-radius: 40rpx 40rpx 40rpx 40rpx;
  668. }
  669. }
  670. .agreement-box{
  671. display: flex;
  672. align-items: center;
  673. justify-content: center;
  674. font-size: 20rpx;
  675. color: #999999;
  676. margin-top: 20rpx;
  677. .color{
  678. color: #EE4320;
  679. }
  680. }
  681. }
  682. .u-popup__content{
  683. background: #F6F6F6!important;
  684. }
  685. .discounts-title {
  686. font-weight: bold;
  687. font-size: 32rpx;
  688. color: #222222;
  689. // text-align: center;
  690. padding: 28rpx 24rpx;
  691. }
  692. .discounts {
  693. padding: 0 24rpx 28rpx;
  694. max-height: 1000rpx;
  695. min-height: 600rpx;
  696. overflow: auto;
  697. .discounts-item {
  698. margin-bottom: 20rpx;
  699. display: flex;
  700. align-items: center;
  701. background-color: rgb(239, 239, 239);
  702. background: url('../../static/new-card.png') no-repeat;
  703. background-repeat: no-repeat;
  704. background-size: 100% 144rpx;
  705. border-radius: 16rpx;
  706. height: 144rpx;
  707. padding: 0 24rpx;
  708. box-sizing: border-box;
  709. .type-box{
  710. text-align: center;
  711. .price{
  712. ont-size: 40rpx;
  713. color: #FF4D3A;
  714. }
  715. .type{
  716. font-size: 20rpx;
  717. color: #AAAAAA;
  718. margin-top: 12rpx;
  719. }
  720. }
  721. .info {
  722. flex: 1;
  723. margin-left: 40rpx;
  724. .card-title {
  725. font-size: 28rpx;
  726. color: #222222;
  727. }
  728. .desc{
  729. font-size: 20rpx;
  730. color: #AAAAAA;
  731. }
  732. .limit{
  733. font-size: 20rpx;
  734. color: #AAAAAA;
  735. margin:10rpx 0;
  736. }
  737. }
  738. .btn {
  739. width: 118rpx;
  740. height: 48rpx;
  741. line-height: 48rpx;
  742. text-align: center;
  743. font-size: 24rpx;
  744. background: #EE4320;
  745. border-radius: 24rpx;
  746. color: #FFF;
  747. box-sizing: border-box;
  748. }
  749. .btn.used{
  750. border: 2rpx solid #EE421F;
  751. color: #EE421F;
  752. background: none;
  753. }
  754. }
  755. .box{
  756. border-radius: 16rpx;
  757. background: #fff;
  758. .item{
  759. display: flex;
  760. align-items: center;
  761. padding: 28rpx 24rpx;
  762. .icon{
  763. width: 160rpx;
  764. height: 160rpx;
  765. border-radius: 16rpx;
  766. }
  767. .title{
  768. font-weight: 600;
  769. font-size: 32rpx;
  770. color: #222222;
  771. flex: 1;
  772. margin-left: 20rpx;
  773. overflow: hidden;
  774. text-overflow: ellipsis;
  775. white-space: nowrap;
  776. }
  777. .btn{
  778. width: 120rpx;
  779. height: 52rpx;
  780. text-align: center;
  781. line-height: 52rpx;
  782. font-size: 28rpx;
  783. color: #EE4320;
  784. background: rgba(238,67,32,0.1);
  785. border-radius: 26rpx 26rpx 26rpx 26rpx;
  786. }
  787. .btn.disable{
  788. background: #F0F0F0;
  789. color: #AAAAAA;
  790. }
  791. }
  792. }
  793. .desc-box{
  794. border-radius: 16rpx;
  795. background: #fff;
  796. padding: 24rpx;
  797. margin-top: 20rpx;
  798. .sub-title{
  799. font-weight: bold;
  800. font-size: 26rpx;
  801. color: #222222;
  802. padding: 0rpx;
  803. }
  804. .desc{
  805. margin-top: 20rpx;
  806. }
  807. }
  808. .sub-title{
  809. font-weight: bold;
  810. font-size: 26rpx;
  811. color: #222222;
  812. // text-align: center;
  813. padding: 28rpx 24rpx;
  814. }
  815. .desc{
  816. color: #AAAAAA;
  817. font-size: 24rpx;
  818. line-height: 40rpx;
  819. }
  820. }
  821. .account-box{
  822. .account-input,.u-input__content{
  823. width: 702rpx;
  824. height: 96rpx;
  825. background: #FFFFFF;
  826. border-radius: 16rpx 16rpx 16rpx 16rpx;
  827. margin:0 auto 20rpx;
  828. box-sizing: border-box;
  829. padding: 0 20rpx;
  830. }
  831. .btn{
  832. width: 702rpx;
  833. height: 80rpx;
  834. line-height: 80rpx;
  835. text-align: center;
  836. background: #EE4320;
  837. border-radius: 40rpx;
  838. font-weight: 600;
  839. font-size: 28rpx;
  840. color: #FFFFFF;
  841. }
  842. }
  843. }
  844. </style>