index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894
  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"> <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" >
  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="openModal">
  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. export default {
  231. components: {
  232. Tabbar
  233. },
  234. data() {
  235. return {
  236. userCard:null,
  237. recordsTotal: 0,
  238. myCouponList: [],
  239. elderStatus: false,
  240. personAccount: {},
  241. userId: '',
  242. headImg: '',
  243. userPhone: '',
  244. show: false,
  245. title: '联系客服',
  246. content: '400-8899-619',
  247. confirmText: '拨打电话',
  248. bannerList:[],
  249. background:{
  250. background: 'none'
  251. },
  252. }
  253. },
  254. onShow() {
  255. if(this.carhelp.getPersonInfo()) {
  256. this.userId = this.carhelp.getPersonInfo().id;
  257. this.getCarPersonAccount();
  258. this.getUserInfo();
  259. this.getCouponList();
  260. }
  261. if(this.$refs.tabbarMain){
  262. this.$refs.tabbarMain.setcount(2);
  263. }
  264. if(this.carhelp.get("getElderModeClass") == "长辈模式") {
  265. this.elderStatus = true;
  266. } else {
  267. this.elderStatus = false;
  268. }
  269. },
  270. computed:{
  271. userCardBool(){
  272. if(this.userCard){
  273. var date=new Date().getTime()
  274. var date2=new Date(this.userCard.endTime).getTime();
  275. if(date<date2){
  276. return true;
  277. }
  278. }
  279. return false
  280. }
  281. },
  282. onReady() {
  283. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  284. // //(res)
  285. }).catch(error => {
  286. //(error)
  287. })
  288. var consumerPhone=this.carhelp.getConfig().consumerPhone
  289. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  290. if(consumerPhone){
  291. this.content=consumerPhone
  292. }
  293. this.getBannerInfo("userinfo")
  294. },
  295. methods: {
  296. clickBanner(index){
  297. var mod= this.bannerList[index]
  298. if(mod.linkUrl.indexOf('http')==0){
  299. window.location=mod.linkUrl;
  300. }
  301. else if(mod.linkUrl.indexOf('#/')==0){
  302. if(mod.linkUrl.indexOf("?")==-1){
  303. mod.linkUrl+='?';
  304. }
  305. //window.location=mod.linkUrl;
  306. var url=mod.linkUrl.split("#")[1]
  307. //window.location = mod.clickUrl;
  308. uni.navigateTo({
  309. url: url
  310. })
  311. }
  312. else if(mod.linkUrl=='#'||mod.linkUrl==''){
  313. }
  314. else{
  315. uni.navigateTo({
  316. url:mod.linkUrl
  317. })
  318. }
  319. },
  320. getBannerInfo(code){
  321. uni.showLoading({
  322. title: "加载中",
  323. mask: true,
  324. })
  325. newsApi.getBannerInfo(code).then((res) => {
  326. uni.hideLoading();
  327. this.bannerList =res.data;
  328. // document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
  329. }).catch(error => {
  330. uni.showToast({
  331. title: error,icon: "none"
  332. })
  333. })
  334. },
  335. getCouponList() {
  336. uni.showLoading({
  337. title: "加载中",
  338. mask: true,
  339. })
  340. userApi.couponList({
  341. status: '0'
  342. }).then((res) => {
  343. uni.hideLoading();
  344. this.myCouponList = res.data.data;
  345. this.recordsTotal = res.data.recordsTotal;
  346. }).catch(error => {
  347. uni.showToast({
  348. title: error,
  349. icon: "none"
  350. })
  351. })
  352. },
  353. //微信扫二维码
  354. getScanCode() {
  355. if (this.userId) {
  356. WxJsApi.scanQRCode(1).then(res => {
  357. if(res) {
  358. API.scanCode(res).then((response) => {
  359. }).catch(error => {
  360. uni.showToast({
  361. title: error,
  362. icon: "none"
  363. })
  364. })
  365. }
  366. }).catch(error => {
  367. })
  368. } else {
  369. uni.navigateTo({
  370. url: '/pages/login/login'
  371. })
  372. }
  373. },
  374. fastRecharge() {
  375. if (this.userId) {
  376. uni.navigateTo({
  377. url: '/pages/user/finance/recharge'
  378. })
  379. } else {
  380. uni.navigateTo({
  381. url: '/pages/login/login'
  382. })
  383. }
  384. },
  385. toInvoice(){
  386. if (this.userId) {
  387. uni.navigateTo({
  388. url: '/pages/MyInvoice/invoiceManagement'
  389. })
  390. } else {
  391. uni.navigateTo({
  392. url: '/pages/login/login'
  393. })
  394. }
  395. },
  396. chargingRecord() {
  397. if (this.userId) {
  398. uni.navigateTo({
  399. url: '/pages/record/index'
  400. })
  401. } else {
  402. uni.navigateTo({
  403. url: '/pages/login/login'
  404. })
  405. }
  406. },
  407. toSearchPile() {
  408. uni.navigateTo({
  409. url: '/pages/searchPile/searchPile'
  410. })
  411. },
  412. getUserInfo() {
  413. uni.showLoading({
  414. title: "加载中",
  415. mask: true,
  416. })
  417. loginApi.findByOpenId({
  418. openId: this.carhelp.getOpenId()
  419. }).then((res) => {
  420. uni.hideLoading();
  421. this.headImg = res.data.regUser.headImg;
  422. this.userCard=res.data.userCard;
  423. var phone = res.data.regUser.phone;
  424. var phone1 = phone.slice(0,3);
  425. var phone2 = phone.slice(-4);
  426. this.userPhone = phone1 + '****' + phone2;
  427. if (res.code == 200&&res.result) {
  428. var token = res ? res.data.token : '';
  429. this.carhelp.setPersonInfo(res.data.regUser );
  430. this.carhelp.setToken(token);
  431. this.carhelp.setPersonInfoPlus(res.data);
  432. console.log("setPersonInfoPlus")
  433. }
  434. }).catch(error => {
  435. uni.showToast({
  436. title: error,
  437. icon: "none"
  438. })
  439. })
  440. },
  441. toData() {
  442. if(this.userId) {
  443. uni.navigateTo({
  444. url: '/pages/user/dataSet'
  445. })
  446. } else {
  447. uni.navigateTo({
  448. url: '/pages/login/login'
  449. })
  450. }
  451. },
  452. toBalance() {
  453. if(this.userId) {
  454. uni.navigateTo({
  455. url: '/pages/user/finance/balance'
  456. })
  457. } else {
  458. uni.navigateTo({
  459. url: '/pages/login/login'
  460. })
  461. }
  462. },
  463. toMyCoupon() {
  464. if(this.userId) {
  465. uni.navigateTo({
  466. url: '/pages/user/coupon/myCoupon'
  467. })
  468. } else {
  469. uni.navigateTo({
  470. url: '/pages/login/login'
  471. })
  472. }
  473. },
  474. toRecharge() {
  475. if(this.userId) {
  476. uni.navigateTo({
  477. url: '/pages/user/finance/recharge'
  478. })
  479. } else {
  480. uni.navigateTo({
  481. url: '/pages/login/login'
  482. })
  483. }
  484. },
  485. carManage() {
  486. if(this.userId) {
  487. uni.navigateTo({
  488. url: '/pages/user/car/index'
  489. })
  490. } else {
  491. uni.navigateTo({
  492. url: '/pages/login/login'
  493. })
  494. }
  495. },
  496. myAppointment() {
  497. if(this.userId) {
  498. uni.navigateTo({
  499. url: '/pages/user/myReservation/myReservation'
  500. })
  501. } else {
  502. uni.navigateTo({
  503. url: '/pages/login/login'
  504. })
  505. }
  506. },
  507. toFreeInstallation() {
  508. if(this.userId) {
  509. uni.navigateTo({
  510. url: '/pages/user/freeInstallment?isback=1'
  511. })
  512. } else {
  513. uni.navigateTo({
  514. url: '/pages/login/login'
  515. })
  516. }
  517. },
  518. toJoin() {
  519. if(this.userId) {
  520. uni.navigateTo({
  521. url: '/pages/user/toJoin?isback=1'
  522. })
  523. } else {
  524. uni.navigateTo({
  525. url: '/pages/login/login'
  526. })
  527. }
  528. },
  529. feedback() {
  530. if(this.userId) {
  531. uni.navigateTo({
  532. url: '/pages/user/message'
  533. })
  534. } else {
  535. uni.navigateTo({
  536. url: '/pages/login/login'
  537. })
  538. }
  539. },
  540. setUp() {
  541. if(this.userId) {
  542. uni.navigateTo({
  543. url: '/pages/user/setting'
  544. })
  545. } else {
  546. uni.navigateTo({
  547. url: '/pages/login/login'
  548. })
  549. }
  550. },
  551. openModal() {
  552. this.show = true;
  553. },
  554. confirmPhone(){
  555. this.show = false;
  556. uni.makePhoneCall({
  557. phoneNumber:this.content //仅为示例
  558. });
  559. },
  560. getCarPersonAccount() {
  561. uni.showLoading({
  562. title: "加载中",
  563. mask: true,
  564. })
  565. userApi.carPersonAccount().then((res) => {
  566. uni.hideLoading();
  567. this.personAccount = res.data;
  568. }).catch(error => {
  569. uni.showToast({
  570. title: error,
  571. icon: "none"
  572. })
  573. })
  574. }
  575. }
  576. }
  577. </script>
  578. <style>
  579. page{
  580. background:url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  581. background-size: 100%;
  582. }
  583. </style>
  584. <style lang="scss" scoped>
  585. .userBanner{
  586. margin: 16px;
  587. }
  588. .userIcon{
  589. background-color: #fff;
  590. margin: 16px;
  591. border-radius: 8px;
  592. padding: 16px;
  593. }
  594. .userIcon-item{
  595. display: flex;
  596. flex-direction: column;
  597. align-items: center;
  598. margin-top: 18px;
  599. width: 25%;
  600. font-size: 14px
  601. }
  602. .lucency{
  603. opacity: 0.5;
  604. }
  605. .userIcon-main{
  606. display: flex;
  607. flex-wrap: wrap;
  608. font-size: 16px;
  609. }
  610. .userIcon-icon{
  611. display: flex;
  612. flex-direction: column;
  613. align-items: center;
  614. justify-content: center;
  615. height: 40px;
  616. width: 40px;
  617. border-radius: 50%;
  618. margin-bottom: 6px;
  619. }
  620. .userIcon-icon1{background-color: #59D96E;}
  621. .userIcon-icon2{background-color: #4BD2C0;}
  622. .userIcon-icon3{background-color: #6FA5FF;}
  623. .userIcon-icon4{background-color: #9D9FFF;}
  624. .userCell{
  625. background-color: #fff;
  626. border-radius: 8px;
  627. margin: 16px;
  628. .userCell-item{
  629. display: flex;
  630. justify-content: space-between;
  631. align-items: center;
  632. padding: 16px;
  633. .userCell-title{
  634. font-size: 16px;
  635. display: flex;
  636. p{
  637. margin-left: 8px;
  638. }
  639. }
  640. span{
  641. color:#999;
  642. }
  643. .add{
  644. color:#999;
  645. }
  646. }
  647. }
  648. .userHead{
  649. display: flex;
  650. align-items: center;
  651. align-items: center;
  652. padding:40px 20px 0;
  653. .tag{
  654. margin-top: 8px;
  655. display: flex;
  656. line-height: 20px;
  657. font-size: 12px;
  658. .iconfont-right{
  659. font-size: 12px;
  660. }
  661. .tag-1{
  662. padding-left: 12px;
  663. padding-right: 6px;
  664. border-radius: 50px;
  665. background: linear-gradient(to right,#D8C5A0,#F7EFDC);
  666. text-align: center;
  667. .iconfont{
  668. color: #9F9E9D;
  669. }
  670. }
  671. .tag-2{
  672. padding-left: 12px;
  673. padding-right: 6px;
  674. margin-left: 10px;
  675. border-radius: 50px;
  676. background-color: rgba(70, 255, 97, 100);
  677. color: rgba(0, 62, 30, 100);
  678. .iconfont{
  679. color: #008D4B ;
  680. }
  681. }
  682. }
  683. .userHead-img{
  684. position: relative;
  685. }
  686. .md{
  687. width: 16px;
  688. height: 16px;
  689. background-color: #fff;
  690. border-radius: 999px;
  691. position: absolute;
  692. bottom: 0px;
  693. right: 0px;
  694. }
  695. .userHead-text{
  696. margin-left: 12px;
  697. h3{
  698. font-size: 20px;
  699. color:#fff;
  700. font-weight: normal;
  701. .edit{
  702. display: inline-block;
  703. width: 20px;
  704. height: 20px;
  705. margin-left: 2px;
  706. img{
  707. width: 100%;
  708. height: 100%;
  709. vertical-align: middle;
  710. }
  711. }
  712. }
  713. }
  714. }
  715. // 引导模块
  716. .userLead{
  717. padding: 16px 20px;
  718. margin: 16px;
  719. border-radius: 12px;
  720. display: flex;
  721. justify-content: space-between;
  722. background-color: rgba(255, 255, 243, 100);
  723. border: 1px solid rgba(226, 210, 187, 100);
  724. .text1{
  725. color: rgba(16, 16, 16, 100);
  726. font-size: 32rpx;
  727. line-height: 20px;
  728. margin-bottom: 6px;
  729. .svg-img{
  730. width: 16px;
  731. height: 16px;
  732. margin-right: 4px;
  733. }
  734. }
  735. .text2{
  736. color: rgba(16, 16, 16, 100);
  737. font-size: 36rpx;
  738. line-height: 22px;
  739. .free{
  740. color: #ff7600;
  741. }
  742. }
  743. .btn{
  744. line-height: 100%;
  745. margin: auto 0px;
  746. .open{
  747. font-size: 32rpx;
  748. line-height: 32px;
  749. border-radius: 8px;
  750. background: linear-gradient(to right,#ff9600,#ff3d00);
  751. color: #fff;
  752. }
  753. }
  754. }
  755. // 包月卡
  756. .monthly-card{
  757. padding: 16px;
  758. margin: 16px;
  759. margin-top: 45px;
  760. border-radius: 8px;
  761. background: linear-gradient(to right,#d3bd9e,#f5eedf);
  762. display: flex;
  763. .flex{
  764. display: flex;
  765. justify-content: space-between;
  766. flex: 1;
  767. line-height: 22px;
  768. }
  769. .img-box{
  770. display: inline-block;
  771. width: 22px;
  772. height: 22px;
  773. border-radius: 4px;
  774. margin-right: 8px;
  775. background-color: #fff;
  776. text-align: center;
  777. .svg-img{
  778. width: 16px;
  779. height: 16px;
  780. vertical-align: middle;
  781. }
  782. }
  783. .text{
  784. display: flex;
  785. color: #28241f;
  786. }
  787. .date{
  788. float: right;
  789. margin-right: 0;
  790. color: #696056;
  791. .iconfont{
  792. }
  793. }
  794. }
  795. .userData{
  796. background-color: #fff;
  797. margin: 16px;
  798. padding: 16px ;
  799. border-radius: 8px;
  800. display: flex;
  801. align-items: center;
  802. justify-content: space-around;
  803. }
  804. .userData-num{
  805. width: 50%;
  806. display: flex;
  807. flex-direction: column;
  808. align-items: center;
  809. justify-content:space-between;
  810. padding-right: 5px;
  811. .userData-data{
  812. font-size: 24px;
  813. font-weight: 600;
  814. }
  815. .userData-name{
  816. font-size: 16px;
  817. }
  818. .userData-foot{
  819. margin-top: 4px;
  820. color:#999;
  821. font-size: 12px;
  822. .userData-foot-look {
  823. color: #00B962;
  824. }
  825. }
  826. }
  827. .userInfo-btn{
  828. padding: 6px 30px;
  829. // background-color: #00B962;
  830. // color:#fff;
  831. // border-radius: 15px;
  832. }
  833. .line{
  834. width: 0px;
  835. height: 36px;
  836. border: 1px solid rgba(237, 237, 237, 100);
  837. }
  838. </style>