index.vue 22 KB

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