index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  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. } else {
  494. uni.navigateTo({
  495. url: '/pages/login/login'
  496. })
  497. }
  498. },
  499. myAppointment() {
  500. if(this.userId) {
  501. uni.navigateTo({
  502. url: '/pages/user/myReservation/myReservation'
  503. })
  504. } else {
  505. uni.navigateTo({
  506. url: '/pages/login/login'
  507. })
  508. }
  509. },
  510. toFreeInstallation() {
  511. if(this.userId) {
  512. uni.navigateTo({
  513. url: '/pages/user/freeInstallment?isback=1'
  514. })
  515. } else {
  516. uni.navigateTo({
  517. url: '/pages/login/login'
  518. })
  519. }
  520. },
  521. toJoin() {
  522. if(this.userId) {
  523. uni.navigateTo({
  524. url: '/pages/user/toJoin?isback=1'
  525. })
  526. } else {
  527. uni.navigateTo({
  528. url: '/pages/login/login'
  529. })
  530. }
  531. },
  532. feedback() {
  533. if(this.userId) {
  534. uni.navigateTo({
  535. url: '/pages/user/message'
  536. })
  537. } else {
  538. uni.navigateTo({
  539. url: '/pages/login/login'
  540. })
  541. }
  542. },
  543. setUp() {
  544. if(this.userId) {
  545. uni.navigateTo({
  546. url: '/pages/user/setting'
  547. })
  548. } else {
  549. uni.navigateTo({
  550. url: '/pages/login/login'
  551. })
  552. }
  553. },
  554. openModal() {
  555. this.show = true;
  556. },
  557. confirmPhone(){
  558. this.show = false;
  559. uni.makePhoneCall({
  560. phoneNumber:this.content //仅为示例
  561. });
  562. },
  563. getCarPersonAccount() {
  564. uni.showLoading({
  565. title: "加载中",
  566. mask: true,
  567. })
  568. userApi.carPersonAccount().then((res) => {
  569. uni.hideLoading();
  570. this.personAccount = res.data;
  571. }).catch(error => {
  572. uni.showToast({
  573. title: error,
  574. icon: "none"
  575. })
  576. })
  577. }
  578. }
  579. }
  580. </script>
  581. <style>
  582. page{
  583. background:url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  584. background-size: 100%;
  585. }
  586. </style>
  587. <style lang="scss" scoped>
  588. .userBanner{
  589. margin: 16px;
  590. }
  591. .userIcon{
  592. background-color: #fff;
  593. margin: 16px;
  594. border-radius: 8px;
  595. padding: 16px;
  596. }
  597. .userIcon-item{
  598. display: flex;
  599. flex-direction: column;
  600. align-items: center;
  601. margin-top: 18px;
  602. width: 25%;
  603. font-size: 14px
  604. }
  605. .lucency{
  606. opacity: 0.5;
  607. }
  608. .userIcon-main{
  609. display: flex;
  610. flex-wrap: wrap;
  611. font-size: 16px;
  612. }
  613. .userIcon-icon{
  614. display: flex;
  615. flex-direction: column;
  616. align-items: center;
  617. justify-content: center;
  618. height: 40px;
  619. width: 40px;
  620. border-radius: 50%;
  621. margin-bottom: 6px;
  622. }
  623. .userIcon-icon1{background-color: #59D96E;}
  624. .userIcon-icon2{background-color: #4BD2C0;}
  625. .userIcon-icon3{background-color: #6FA5FF;}
  626. .userIcon-icon4{background-color: #9D9FFF;}
  627. .userCell{
  628. background-color: #fff;
  629. border-radius: 8px;
  630. margin: 16px;
  631. .userCell-item{
  632. display: flex;
  633. justify-content: space-between;
  634. align-items: center;
  635. padding: 16px;
  636. .userCell-title{
  637. font-size: 16px;
  638. display: flex;
  639. p{
  640. margin-left: 8px;
  641. }
  642. }
  643. span{
  644. color:#999;
  645. }
  646. .add{
  647. color:#999;
  648. }
  649. }
  650. }
  651. .userHead{
  652. display: flex;
  653. align-items: center;
  654. align-items: center;
  655. padding:40px 20px 0;
  656. .tag{
  657. margin-top: 8px;
  658. display: flex;
  659. line-height: 20px;
  660. font-size: 12px;
  661. .iconfont-right{
  662. font-size: 12px;
  663. }
  664. .tag-1{
  665. padding-left: 12px;
  666. padding-right: 6px;
  667. border-radius: 50px;
  668. background: linear-gradient(to right,#D8C5A0,#F7EFDC);
  669. text-align: center;
  670. .iconfont{
  671. color: #9F9E9D;
  672. }
  673. }
  674. .tag-2{
  675. padding-left: 12px;
  676. padding-right: 6px;
  677. margin-left: 10px;
  678. border-radius: 50px;
  679. background-color: rgba(70, 255, 97, 100);
  680. color: rgba(0, 62, 30, 100);
  681. .iconfont{
  682. color: #008D4B ;
  683. }
  684. }
  685. }
  686. .userHead-img{
  687. position: relative;
  688. }
  689. .md{
  690. width: 16px;
  691. height: 16px;
  692. background-color: #fff;
  693. border-radius: 999px;
  694. position: absolute;
  695. bottom: 0px;
  696. right: 0px;
  697. }
  698. .userHead-text{
  699. margin-left: 12px;
  700. h3{
  701. font-size: 20px;
  702. color:#fff;
  703. font-weight: normal;
  704. .edit{
  705. display: inline-block;
  706. width: 20px;
  707. height: 20px;
  708. margin-left: 2px;
  709. img{
  710. width: 100%;
  711. height: 100%;
  712. vertical-align: middle;
  713. }
  714. }
  715. }
  716. }
  717. }
  718. // 引导模块
  719. .userLead{
  720. padding: 16px 20px;
  721. margin: 16px;
  722. border-radius: 12px;
  723. display: flex;
  724. justify-content: space-between;
  725. background-color: rgba(255, 255, 243, 100);
  726. border: 1px solid rgba(226, 210, 187, 100);
  727. .text1{
  728. color: rgba(16, 16, 16, 100);
  729. font-size: 32rpx;
  730. line-height: 20px;
  731. margin-bottom: 6px;
  732. .svg-img{
  733. width: 16px;
  734. height: 16px;
  735. margin-right: 4px;
  736. }
  737. }
  738. .text2{
  739. color: rgba(16, 16, 16, 100);
  740. font-size: 36rpx;
  741. line-height: 22px;
  742. .free{
  743. color: #ff7600;
  744. }
  745. }
  746. .btn{
  747. line-height: 100%;
  748. margin: auto 0px;
  749. .open{
  750. font-size: 32rpx;
  751. line-height: 32px;
  752. border-radius: 8px;
  753. background: linear-gradient(to right,#ff9600,#ff3d00);
  754. color: #fff;
  755. }
  756. }
  757. }
  758. // 包月卡
  759. .monthly-card{
  760. padding: 16px;
  761. margin: 16px;
  762. margin-top: 45px;
  763. border-radius: 8px;
  764. background: linear-gradient(to right,#d3bd9e,#f5eedf);
  765. display: flex;
  766. .flex{
  767. display: flex;
  768. justify-content: space-between;
  769. flex: 1;
  770. line-height: 22px;
  771. }
  772. .img-box{
  773. display: inline-block;
  774. width: 22px;
  775. height: 22px;
  776. border-radius: 4px;
  777. margin-right: 8px;
  778. background-color: #fff;
  779. text-align: center;
  780. .svg-img{
  781. width: 16px;
  782. height: 16px;
  783. vertical-align: middle;
  784. }
  785. }
  786. .text{
  787. display: flex;
  788. color: #28241f;
  789. }
  790. .date{
  791. float: right;
  792. margin-right: 0;
  793. color: #696056;
  794. .iconfont{
  795. }
  796. }
  797. }
  798. .userData{
  799. background-color: #fff;
  800. margin: 16px;
  801. padding: 16px ;
  802. border-radius: 8px;
  803. display: flex;
  804. align-items: center;
  805. justify-content: space-around;
  806. }
  807. .userData-num{
  808. width: 50%;
  809. display: flex;
  810. flex-direction: column;
  811. align-items: center;
  812. justify-content:space-between;
  813. padding-right: 5px;
  814. .userData-data{
  815. font-size: 24px;
  816. font-weight: 600;
  817. }
  818. .userData-name{
  819. font-size: 16px;
  820. }
  821. .userData-foot{
  822. margin-top: 4px;
  823. color:#999;
  824. font-size: 12px;
  825. .userData-foot-look {
  826. color: #00B962;
  827. }
  828. }
  829. }
  830. .userInfo-btn{
  831. padding: 6px 30px;
  832. // background-color: #00B962;
  833. // color:#fff;
  834. // border-radius: 15px;
  835. }
  836. .line{
  837. width: 0px;
  838. height: 36px;
  839. border: 1px solid rgba(237, 237, 237, 100);
  840. }
  841. </style>