index.vue 21 KB

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