index.vue 20 KB

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