index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. <template>
  2. <view>
  3. <view class="userHead" @click="toData">
  4. <view class="userHead-img">
  5. <u-avatar :src="userId ? headImg : '../../assets/img/head.png'" size="96"></u-avatar>
  6. <img class="md" src="../../assets/img/md-verified_user@3x.png" alt="">
  7. </view>
  8. <view class="userHead-text">
  9. <h3 :style="elderStatus ? 'font-size: 28px;' : ''">{{userId ? userPhone : '点击登录/注册'}}</h3>
  10. </view>
  11. </view>
  12. <!-- 引导模块 -->
  13. <view class="userLead" v-if="userId&&!userCardBool">
  14. <view class="text">
  15. <view class="text1">
  16. <img class="svg-img" src="../../assets/img/antFill-crown@3x.png" alt="" >充电服务费包月卡
  17. </view>
  18. <view class="text2">
  19. 开通后充电服务费<text class="free">全免</text>
  20. </view>
  21. </view>
  22. <view class="btn">
  23. <button class="open" @click="gotoUrl('pages/monthlyCardActivity/monthlyCardBuy')" >立即开通</button>
  24. </view>
  25. </view>
  26. <!-- 包月卡 -->
  27. <view class="monthly-card" v-if="userId&&userCardBool" @click="gotoUrl('pages/monthlyCardActivity/monthlyCardBuy')">
  28. <view class="img-box"><img class="svg-img" src="../../assets/img/antFill-crown@3x.png" alt="" ></view>
  29. <view class="flex">
  30. <view class="text">
  31. 充电服务费包月卡
  32. </view>
  33. <view class="date">
  34. {{userCard.endTime?userCard.endTime.slice(0,10):''}}到期<text class="iconfont">&#xe600;</text>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="userData">
  39. <view class="userData-num" @click="toBalance">
  40. <view class="userData-data oldTextjp" oldstyle="font-size: 28px;">{{personAccount.availableAmount != null ? personAccount.availableAmount.toFixed(2) : '0.00'}}元</view>
  41. <view class="userData-foot" :style="elderStatus ? 'font-size: 16px;' : ''">可用余额{{" "}}<span class="userData-foot-look">查看</span></view>
  42. </view>
  43. <view class="line">
  44. </view>
  45. <view class="userData-num" @click="toMyCoupon">
  46. <view class="userData-data oldTextjp" oldstyle="font-size: 28px;">{{recordsTotal}}张</view>
  47. <view class="userData-foot" :style="elderStatus ? 'font-size: 16px;' : ''">优惠券{{" "}}<span class="userData-foot-look">查看</span></view>
  48. </view>
  49. </view>
  50. <view class="userBanner">
  51. <!-- <u-image width="100%" height="80px" src="../../static/img/banner.jpg" border-radius="16"></u-image>
  52. --> <u-swiper bg-color="#fff"
  53. :img-mode="'scaleToFill'" height="160"
  54. :list="bannerList" @click="clickBanner" :name="'picUrl'" >
  55. </u-swiper>
  56. </view>
  57. <view class="userIcon">
  58. <view class="userIcon-tit" :style="elderStatus ? 'font-size: 20px;' : ''">
  59. <h3>我的服务</h3>
  60. </view>
  61. <!-- <view class="userIcon-main">
  62. <view class="userIcon-item" @click="getScanCode">
  63. <view class="userIcon-icon userIcon-icon1">
  64. <u-icon name="qr-scan-2-line" custom-prefix="custom-icon" " size="36"></u-icon>
  65. </view>
  66. <p :style="elderStatus ? 'font-size: 18px;' : ''">扫码充电</p>
  67. </view>
  68. <view class="userIcon-item" @click="fastRecharge">
  69. <view class="userIcon-icon userIcon-icon2">
  70. <u-icon name="wallet-3-line" custom-prefix="custom-icon" color="#fff" size="36"></u-icon>
  71. </view>
  72. <p :style="elderStatus ? 'font-size: 18px;' : ''">快速充值</p>
  73. </view>
  74. <view class="userIcon-item" @click="chargingRecord">
  75. <view class="userIcon-icon userIcon-icon3">
  76. <u-icon name="todo-line" custom-prefix="custom-icon" color="#fff" size="36"></u-icon>
  77. </view>
  78. <p :style="elderStatus ? 'font-size: 18px;' : ''">充电记录</p>
  79. </view>
  80. <view class="userIcon-item" @click="toSearchPile">
  81. <view class="userIcon-icon userIcon-icon4">
  82. <u-icon name="road-map-line" custom-prefix="custom-icon" color="#fff" size="36"></u-icon>
  83. </view>
  84. <p :style="elderStatus ? 'font-size: 18px;' : ''">附近站点</p>
  85. </view>
  86. </view> -->
  87. <view class="userIcon-main">
  88. <view class="userIcon-item" @click="chargingRecord">
  89. <view class="userIcon-icon">
  90. <img src="../../static/img/riFill-file-list-3-fill@1x.png" alt="">
  91. </view>
  92. <p :style="elderStatus ? 'font-size: 18px;' : ''">充电记录</p>
  93. </view>
  94. <view class="userIcon-item" @click="carManage">
  95. <view class="userIcon-icon">
  96. <img src="../../static/img/riFill-car-fill@1x.png" alt="">
  97. </view>
  98. <p :style="elderStatus ? 'font-size: 18px;' : ''">车辆管理</p>
  99. </view>
  100. <view class="userIcon-item" @click="myAppointment">
  101. <view class="userIcon-icon">
  102. <img src="../../static/img/riFill-map-pin-time-fill.svg" alt="">
  103. </view>
  104. <p :style="elderStatus ? 'font-size: 18px;' : ''">我的预约</p>
  105. </view>
  106. <view class="userIcon-item " @click="toInvoice" >
  107. <view class="userIcon-icon">
  108. <img src="../../static/img/riFill-money-cny-box-fill.svg" alt="">
  109. </view>
  110. <p :style="elderStatus ? 'font-size: 18px;' : ''">我的发票</p>
  111. </view>
  112. <view class="userIcon-item" @click="toFreeInstallation">
  113. <view class="userIcon-icon">
  114. <img src="../../static/img/riFill-file-add-fill.svg" alt="">
  115. </view>
  116. <p :style="elderStatus ? 'font-size: 18px;' : ''">免费安桩</p>
  117. </view>
  118. <view class="userIcon-item" @click="toJoin">
  119. <view class="userIcon-icon">
  120. <img src="../../static/img/riFill-service-fill.svg" alt="">
  121. </view>
  122. <p :style="elderStatus ? 'font-size: 18px;' : ''">我要加盟</p>
  123. </view>
  124. <view class="userIcon-item lucency" >
  125. <view class="userIcon-icon">
  126. <img src="../../static/img/riFill-tools-fill.svg" alt="">
  127. </view>
  128. <p :style="elderStatus ? 'font-size: 18px;' : ''">我要报修</p>
  129. </view>
  130. <view class="userIcon-item lucency" >
  131. <view class="userIcon-icon">
  132. <img src="../../static/img/riFill-shield-user-fill.svg" alt="">
  133. </view>
  134. <p :style="elderStatus ? 'font-size: 18px;' : ''">实名认证</p>
  135. </view>
  136. </view>
  137. </view>
  138. <view class="userCell">
  139. <!-- <view class="userCell-item" @click="carManage">
  140. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  141. <u-icon name="menu_cwcl" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
  142. <p>车辆管理</p>
  143. </view>
  144. <view>
  145. <text class="add" :style="elderStatus ? 'font-size: 16px;' : ''">添加车牌号</text>
  146. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  147. </view>
  148. </view> -->
  149. <view class="userCell-item" @click="gotoUrl('pages/user/help')">
  150. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  151. <u-icon name="compass-3-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
  152. <p>操作指南</p>
  153. </view>
  154. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  155. </view>
  156. <view class="userCell-item" @click="feedback">
  157. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  158. <u-icon name="feedback-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
  159. <p>意见反馈</p>
  160. </view>
  161. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  162. </view>
  163. <view class="userCell-item" @click="gotoUrl('pages/user/about')">
  164. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  165. <u-icon name="information-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
  166. <p>关于我们</p>
  167. </view>
  168. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  169. </view>
  170. <view class="userCell-item" @click="openModal">
  171. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  172. <u-icon name="customer-service-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
  173. <p>联系客服</p>
  174. </view>
  175. <span :style="elderStatus ? 'font-size: 16px;' : ''">{{content}}</span>
  176. </view>
  177. <view>
  178. <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266" :show-cancel-button="true" ref="uModal"
  179. :asyncClose="true" :title="title" :content="content" :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  180. </view>
  181. <view class="userCell-item" @click="setUp">
  182. <view class="userCell-title oldTextjp" oldstyle="font-size: 20px;">
  183. <u-icon name="settings-4-fill" custom-prefix="custom-icon" color="#6BC6A7" size="36"></u-icon>
  184. <p>设置</p>
  185. </view>
  186. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  187. </view>
  188. </view>
  189. <Tabbar :current="2" ref="tabbarMain" :elderStatus="elderStatus"></Tabbar>
  190. </view>
  191. </template>
  192. <script>
  193. import * as API from '@/apis/index.js'
  194. import * as userApi from '@/apis/user.js'
  195. import * as loginApi from '@/apis/login.js'
  196. import * as WxJsApi from '@/utils/wxJsApi.js'
  197. import Tabbar from '@/components/Tabbar.vue'
  198. import * as newsApi from '@/apis/news.js'
  199. export default {
  200. components: {
  201. Tabbar
  202. },
  203. data() {
  204. return {
  205. userCard:null,
  206. recordsTotal: 0,
  207. myCouponList: [],
  208. elderStatus: false,
  209. personAccount: {},
  210. userId: '',
  211. headImg: '',
  212. userPhone: '',
  213. show: false,
  214. title: '联系客服',
  215. content: '400-8899-619',
  216. confirmText: '拨打电话',
  217. bannerList:[],
  218. background:{
  219. background: 'none'
  220. },
  221. }
  222. },
  223. onShow() {
  224. if(this.carhelp.getPersonInfo()) {
  225. this.userId = this.carhelp.getPersonInfo().id;
  226. this.getCarPersonAccount();
  227. this.getUserInfo();
  228. this.getCouponList();
  229. }
  230. if(this.$refs.tabbarMain){
  231. this.$refs.tabbarMain.setcount(2);
  232. }
  233. if(this.carhelp.get("getElderModeClass") == "长辈模式") {
  234. this.elderStatus = true;
  235. } else {
  236. this.elderStatus = false;
  237. }
  238. },
  239. computed:{
  240. userCardBool(){
  241. if(this.userCard){
  242. var date=new Date().getTime()
  243. var date2=new Date(this.userCard.endTime).getTime();
  244. if(date<date2){
  245. return true;
  246. }
  247. }
  248. return false
  249. }
  250. },
  251. onReady() {
  252. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  253. // //(res)
  254. }).catch(error => {
  255. //(error)
  256. })
  257. var consumerPhone=this.carhelp.getConfig().consumerPhone
  258. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  259. if(consumerPhone){
  260. this.content=consumerPhone
  261. }
  262. this.getBannerInfo("userinfo")
  263. },
  264. methods: {
  265. clickBanner(index){
  266. var mod= this.bannerList[index]
  267. if(mod.linkUrl.indexOf('http')==0){
  268. window.location=mod.linkUrl;
  269. }
  270. else if(mod.linkUrl.indexOf('#/')==0){
  271. if(mod.linkUrl.indexOf("?")==-1){
  272. mod.linkUrl+='?';
  273. }
  274. //window.location=mod.linkUrl;
  275. var url=mod.linkUrl.split("#")[1]
  276. //window.location = mod.clickUrl;
  277. uni.navigateTo({
  278. url: url
  279. })
  280. }
  281. else if(mod.linkUrl=='#'||mod.linkUrl==''){
  282. }
  283. else{
  284. uni.navigateTo({
  285. url:mod.linkUrl
  286. })
  287. }
  288. },
  289. getBannerInfo(code){
  290. uni.showLoading({
  291. title: "加载中",
  292. mask: true,
  293. })
  294. newsApi.getBannerInfo(code).then((res) => {
  295. uni.hideLoading();
  296. this.bannerList =res.data;
  297. // document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
  298. }).catch(error => {
  299. uni.showToast({
  300. title: error,icon: "none"
  301. })
  302. })
  303. },
  304. getCouponList() {
  305. uni.showLoading({
  306. title: "加载中",
  307. mask: true,
  308. })
  309. userApi.couponList({
  310. status: '0'
  311. }).then((res) => {
  312. uni.hideLoading();
  313. this.myCouponList = res.data.data;
  314. this.recordsTotal = res.data.recordsTotal;
  315. }).catch(error => {
  316. uni.showToast({
  317. title: error,
  318. icon: "none"
  319. })
  320. })
  321. },
  322. //微信扫二维码
  323. getScanCode() {
  324. if (this.userId) {
  325. WxJsApi.scanQRCode(1).then(res => {
  326. if(res) {
  327. API.scanCode(res).then((response) => {
  328. }).catch(error => {
  329. uni.showToast({
  330. title: error,
  331. icon: "none"
  332. })
  333. })
  334. }
  335. }).catch(error => {
  336. })
  337. } else {
  338. uni.navigateTo({
  339. url: '/pages/login/login'
  340. })
  341. }
  342. },
  343. fastRecharge() {
  344. if (this.userId) {
  345. uni.navigateTo({
  346. url: '/pages/user/finance/recharge'
  347. })
  348. } else {
  349. uni.navigateTo({
  350. url: '/pages/login/login'
  351. })
  352. }
  353. },
  354. toInvoice(){
  355. if (this.userId) {
  356. uni.navigateTo({
  357. url: '/pages/MyInvoice/invoiceManagement'
  358. })
  359. } else {
  360. uni.navigateTo({
  361. url: '/pages/login/login'
  362. })
  363. }
  364. },
  365. chargingRecord() {
  366. if (this.userId) {
  367. uni.navigateTo({
  368. url: '/pages/record/index'
  369. })
  370. } else {
  371. uni.navigateTo({
  372. url: '/pages/login/login'
  373. })
  374. }
  375. },
  376. toSearchPile() {
  377. uni.navigateTo({
  378. url: '/pages/searchPile/searchPile'
  379. })
  380. },
  381. getUserInfo() {
  382. uni.showLoading({
  383. title: "加载中",
  384. mask: true,
  385. })
  386. loginApi.findByOpenId({
  387. openId: this.carhelp.getOpenId()
  388. }).then((res) => {
  389. uni.hideLoading();
  390. this.headImg = res.data.regUser.headImg;
  391. this.userCard=res.data.userCard;
  392. var phone = res.data.regUser.phone;
  393. var phone1 = phone.slice(0,3);
  394. var phone2 = phone.slice(-4);
  395. this.userPhone = phone1 + '****' + phone2;
  396. }).catch(error => {
  397. uni.showToast({
  398. title: error,
  399. icon: "none"
  400. })
  401. })
  402. },
  403. toData() {
  404. if(this.userId) {
  405. uni.navigateTo({
  406. url: '/pages/user/data'
  407. })
  408. } else {
  409. uni.navigateTo({
  410. url: '/pages/login/login'
  411. })
  412. }
  413. },
  414. toBalance() {
  415. if(this.userId) {
  416. uni.navigateTo({
  417. url: '/pages/user/finance/balance'
  418. })
  419. } else {
  420. uni.navigateTo({
  421. url: '/pages/login/login'
  422. })
  423. }
  424. },
  425. toMyCoupon() {
  426. if(this.userId) {
  427. uni.navigateTo({
  428. url: '/pages/user/coupon/myCoupon'
  429. })
  430. } else {
  431. uni.navigateTo({
  432. url: '/pages/login/login'
  433. })
  434. }
  435. },
  436. toRecharge() {
  437. if(this.userId) {
  438. uni.navigateTo({
  439. url: '/pages/user/finance/recharge'
  440. })
  441. } else {
  442. uni.navigateTo({
  443. url: '/pages/login/login'
  444. })
  445. }
  446. },
  447. carManage() {
  448. if(this.userId) {
  449. uni.navigateTo({
  450. url: '/pages/user/car/index'
  451. })
  452. } else {
  453. uni.navigateTo({
  454. url: '/pages/login/login'
  455. })
  456. }
  457. },
  458. myAppointment() {
  459. if(this.userId) {
  460. uni.navigateTo({
  461. url: '/pages/user/myReservation/myReservation'
  462. })
  463. } else {
  464. uni.navigateTo({
  465. url: '/pages/login/login'
  466. })
  467. }
  468. },
  469. toFreeInstallation() {
  470. if(this.userId) {
  471. uni.navigateTo({
  472. url: '/pages/user/freeInstallment?isback=1'
  473. })
  474. } else {
  475. uni.navigateTo({
  476. url: '/pages/login/login'
  477. })
  478. }
  479. },
  480. toJoin() {
  481. if(this.userId) {
  482. uni.navigateTo({
  483. url: '/pages/user/toJoin?isback=1'
  484. })
  485. } else {
  486. uni.navigateTo({
  487. url: '/pages/login/login'
  488. })
  489. }
  490. },
  491. feedback() {
  492. if(this.userId) {
  493. uni.navigateTo({
  494. url: '/pages/user/message'
  495. })
  496. } else {
  497. uni.navigateTo({
  498. url: '/pages/login/login'
  499. })
  500. }
  501. },
  502. setUp() {
  503. if(this.userId) {
  504. uni.navigateTo({
  505. url: '/pages/user/setting'
  506. })
  507. } else {
  508. uni.navigateTo({
  509. url: '/pages/login/login'
  510. })
  511. }
  512. },
  513. openModal() {
  514. this.show = true;
  515. },
  516. confirmPhone(){
  517. this.show = false;
  518. uni.makePhoneCall({
  519. phoneNumber:this.content //仅为示例
  520. });
  521. },
  522. getCarPersonAccount() {
  523. uni.showLoading({
  524. title: "加载中",
  525. mask: true,
  526. })
  527. userApi.carPersonAccount().then((res) => {
  528. uni.hideLoading();
  529. this.personAccount = res.data;
  530. }).catch(error => {
  531. uni.showToast({
  532. title: error,
  533. icon: "none"
  534. })
  535. })
  536. }
  537. }
  538. }
  539. </script>
  540. <style>
  541. page{
  542. background:url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  543. background-size: 100%;
  544. }
  545. </style>
  546. <style lang="scss" scoped>
  547. .userBanner{
  548. margin: 16px;
  549. }
  550. .userIcon{
  551. background-color: #fff;
  552. margin: 16px;
  553. border-radius: 8px;
  554. padding: 16px;
  555. }
  556. .userIcon-item{
  557. display: flex;
  558. flex-direction: column;
  559. align-items: center;
  560. margin-top: 18px;
  561. width: 25%;
  562. font-size: 14px
  563. }
  564. .lucency{
  565. opacity: 0.5;
  566. }
  567. .userIcon-main{
  568. display: flex;
  569. justify-content: space-between;
  570. flex-wrap: wrap;
  571. font-size: 16px;
  572. }
  573. .userIcon-icon{
  574. display: flex;
  575. flex-direction: column;
  576. align-items: center;
  577. justify-content: center;
  578. height: 40px;
  579. width: 40px;
  580. border-radius: 50%;
  581. margin-bottom: 6px;
  582. }
  583. .userIcon-icon1{background-color: #59D96E;}
  584. .userIcon-icon2{background-color: #4BD2C0;}
  585. .userIcon-icon3{background-color: #6FA5FF;}
  586. .userIcon-icon4{background-color: #9D9FFF;}
  587. .userCell{
  588. background-color: #fff;
  589. border-radius: 8px;
  590. margin: 16px;
  591. .userCell-item{
  592. display: flex;
  593. justify-content: space-between;
  594. align-items: center;
  595. padding: 16px;
  596. .userCell-title{
  597. font-size: 16px;
  598. display: flex;
  599. align-items: center;
  600. p{
  601. margin-left: 8px;
  602. }
  603. }
  604. span{
  605. color:#999;
  606. }
  607. .add{
  608. color:#999;
  609. }
  610. }
  611. }
  612. .userHead{
  613. display: flex;
  614. align-items: center;
  615. align-items: center;
  616. padding:40px 20px 0;
  617. .userHead-img{
  618. position: relative;
  619. }
  620. .md{
  621. width: 16px;
  622. height: 16px;
  623. background-color: #fff;
  624. border-radius: 999px;
  625. position: absolute;
  626. bottom: 0px;
  627. right: 0px;
  628. }
  629. .userHead-text{
  630. margin-left: 12px;
  631. h3{
  632. font-size: 20px;
  633. color:#fff;
  634. font-weight: normal;
  635. }
  636. }
  637. }
  638. // 引导模块
  639. .userLead{
  640. padding: 16px;
  641. margin: 16px;
  642. border-radius: 12px;
  643. display: flex;
  644. background-color: rgba(255, 255, 243, 100);
  645. border: 1px solid rgba(226, 210, 187, 100);
  646. .text1{
  647. color: rgba(16, 16, 16, 100);
  648. font-size: 32rpx;
  649. line-height: 20px;
  650. margin-bottom: 6px;
  651. .svg-img{
  652. width: 16px;
  653. height: 16px;
  654. margin-right: 4px;
  655. }
  656. }
  657. .text2{
  658. color: rgba(16, 16, 16, 100);
  659. font-size: 36rpx;
  660. line-height: 22px;
  661. .free{
  662. color: #ff7600;
  663. }
  664. }
  665. .btn{
  666. line-height: 100%;
  667. margin: auto 13px;
  668. margin-right: 0px;
  669. .open{
  670. font-size: 32rpx;
  671. line-height: 32px;
  672. border-radius: 8px;
  673. background: linear-gradient(#ff3d00, #ff9600);
  674. color: #fff;
  675. }
  676. }
  677. }
  678. // 包月卡
  679. .monthly-card{
  680. padding: 16px;
  681. margin: 16px;
  682. margin-top: 45px;
  683. border-radius: 8px;
  684. background: linear-gradient(to right,#d3bd9e,#f5eedf);
  685. display: flex;
  686. .flex{
  687. display: flex;
  688. justify-content: space-between;
  689. flex: 1;
  690. }
  691. .img-box{
  692. display: inline-block;
  693. width: 22px;
  694. height: 22px;
  695. border-radius: 4px;
  696. margin-right: 8px;
  697. background-color: #fff;
  698. text-align: center;
  699. .svg-img{
  700. width: 16px;
  701. height: 16px;
  702. vertical-align: middle;
  703. }
  704. }
  705. .text{
  706. display: flex;
  707. color: #28241f;
  708. }
  709. .date{
  710. float: right;
  711. margin-right: 0;
  712. color: #696056;
  713. .iconfont{
  714. }
  715. }
  716. }
  717. .userData{
  718. background-color: #fff;
  719. margin: 16px;
  720. padding: 16px ;
  721. border-radius: 8px;
  722. display: flex;
  723. align-items: center;
  724. justify-content: space-around;
  725. }
  726. .userData-num{
  727. width: 50%;
  728. display: flex;
  729. flex-direction: column;
  730. align-items: center;
  731. justify-content:space-between;
  732. padding-right: 5px;
  733. .userData-data{
  734. font-size: 24px;
  735. font-weight: 600;
  736. }
  737. .userData-name{
  738. font-size: 16px;
  739. }
  740. .userData-foot{
  741. margin-top: 4px;
  742. color:#999;
  743. font-size: 12px;
  744. .userData-foot-look {
  745. color: #00B962;
  746. }
  747. }
  748. }
  749. .userInfo-btn{
  750. padding: 6px 30px;
  751. // background-color: #00B962;
  752. // color:#fff;
  753. // border-radius: 15px;
  754. }
  755. .line{
  756. width: 0px;
  757. height: 36px;
  758. border: 1px solid rgba(237, 237, 237, 100);
  759. }
  760. </style>