index.vue 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096
  1. <template>
  2. <view>
  3. <view class="top-cont">
  4. <view class="top-inner">
  5. <!-- 这里是状态栏 -->
  6. <view class="status_bar" :style="{height: statusBarHeight}"></view>
  7. <view class="top-block">
  8. <view class="qscode-block">
  9. <view class="qscode">
  10. <image class="w40 h40" src="/static/images/qscode_icon.png"></image>
  11. </view>
  12. </view>
  13. <view class="user-info">
  14. <view class="left" @click="openPersonInfo()">
  15. <view class="head-img">
  16. <image :src="user.avatar==null?'/static/images/detault_head.jpg':user.avatar"
  17. mode="aspectFill"></image>
  18. </view>
  19. <view class="name-phone">
  20. <view class="name">
  21. <text>{{user.nickname}}</text>
  22. <image class="w48 h48" src="/static/images/right1.png"></image>
  23. </view>
  24. <view class="user-page">
  25. <text>个人主页</text>
  26. <image class="w32 h32" src="/static/images/right1.png"></image>
  27. </view>
  28. <view class="lable">
  29. <view class="lable-item">
  30. <image class="w32 h32 mr8" src="/static/images/lv_icon.png"></image>
  31. <text>会员</text>
  32. </view>
  33. <view class="lable-item yellow">
  34. <image class="w32 h32 mr8" src="/static/images/intelligent_icon.png"></image>
  35. <text>LV.2</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="right">
  41. <!-- <uni-badge size="small" :text="msgNum" absolute="rightTop" type="error">
  42. <view class="set" @click="navgetTo('/pages_user/user/personInfo')">
  43. <image src="../../static/images/icon-set.png" mode=""></image>
  44. </view>
  45. </uni-badge> -->
  46. <uni-badge size="small" :text="msgNum" absolute="rightTop" type="error">
  47. <view class="msg-box" @click="navgetTo('/pages_user/user/message')">
  48. <image src="../../static/images/icon-msg.png" mode=""></image>
  49. </view>
  50. </uni-badge>
  51. </view>
  52. </view>
  53. <!-- 芳华币数量及券 -->
  54. <view class="data">
  55. <view class="data-item" v-for="(item,index) in dataList" :key="index">
  56. <view class="number">{{item.num}}</view>
  57. <view class="txt">{{item.title}}</view>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- 会员 -->
  62. <view class="member">
  63. <image class="bg" src="/static/images/vip_bg.png"></image>
  64. <view class="member-block">
  65. <view class="left">
  66. <view class="vip">
  67. <image class="w126 h30 mr34" src="/static/images/VIP_member.png"></image>
  68. <text>已过期4天</text>
  69. </view>
  70. <view class="count">
  71. 续费享季卡会员约<text class="bold">6.5</text> 折
  72. </view>
  73. </view>
  74. <view class="right">
  75. 立即续费
  76. </view>
  77. </view>
  78. </view>
  79. <!-- 我的订单 -->
  80. <view class="my-order">
  81. <view class="inner">
  82. <view class="title-box">
  83. <text class="title">我的订单</text>
  84. <view class="all-order" @click="showOrder('')">
  85. <text class="text">全部订单</text>
  86. <image src="../../static/images/arrow4.png" mode=""></image>
  87. </view>
  88. </view>
  89. <view class="status-box">
  90. <uni-badge size="small" :text=count0 absolute="rightTop" type="error">
  91. <view class="item" @click="showOrder('0')">
  92. <image src="../../static/images/payment.png" mode=""></image>
  93. <text class="text">待付款</text>
  94. </view>
  95. </uni-badge>
  96. <uni-badge size="small" :text=count1 absolute="rightTop" type="error">
  97. <view class="item" @click="showOrder('1')">
  98. <image src="../../static/images/send_goods.png" mode=""></image>
  99. <text class="text">待发货</text>
  100. </view>
  101. </uni-badge>
  102. <uni-badge size="small" :text=count2 absolute="rightTop" type="error">
  103. <view class="item" @click="showOrder('2')">
  104. <image src="../../static/images/sou_goods.png" mode=""></image>
  105. <text class="text">待收货</text>
  106. </view>
  107. </uni-badge>
  108. <view class="item" @click="showOrder('3')">
  109. <image src="../../static/images/completed.png" mode=""></image>
  110. <text class="text">已完成</text>
  111. </view>
  112. <uni-badge size="small" :text=afterSalesCount absolute="rightTop" type="error">
  113. <view class="item" @click="navgetTo('/pages_user/user/refundOrderList')">
  114. <image src="../../static/images/after_sales.png" mode=""></image>
  115. <text class="text">售后/退款</text>
  116. </view>
  117. </uni-badge>
  118. </view>
  119. </view>
  120. </view>
  121. <!-- 芳华币签到 -->
  122. <view class="coin-card">
  123. <image class="bg" src="/static/images/sign_in_bg.png"></image>
  124. <view class="container">
  125. <view class="coin-txt">
  126. <view class="left">已连续签到 <text class="bold">1</text>天</view>
  127. <view class="right">我的芳华币:4578</view>
  128. </view>
  129. <view class="item">
  130. <!-- <view class="progress"></view> -->
  131. <view class="progress">
  132. <view class="line"></view>
  133. <view v-for="(item,index) in sign" :key="index"
  134. :class="signNum >= index+ 1?'img-item active':'img-item'">
  135. <view class="top">
  136. <image v-if="signNum >= index+ 1" src="/static/images/right_org.png" mode="">
  137. </image>
  138. <!-- 未签到图标 -->
  139. <image v-else src="/static/images/right_org_ling.png" mode=""></image>
  140. </view>
  141. <text class="text">第{{ item.day }}天</text>
  142. </view>
  143. </view>
  144. <image class="button" mode="widthFix" src="/static/images/check_in.png"></image>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="content">
  149. <!-- 常用工具 -->
  150. <view class="used-tools">
  151. <view class="title">我的应用</view>
  152. <view class="tools-list">
  153. <!-- <view
  154. v-for="(item,index) in toolsArr"
  155. :key="index"
  156. @click="navgetTo(item.url)"
  157. :class="(toolsArr.length - index) > toolsRemain?'item':'item no-marin-bottom'">
  158. <image :src="item.img" mode=""></image>
  159. <text class="text">{{ item.name }}</text>
  160. <button v-if="item.url == ''" class="contact-btn" open-type="contact"></button>
  161. </view> -->
  162. <!-- <view class="item" @click="navgetTo('/pages_user/user/doctorOrder')">
  163. <image src="../../static/images/my_ask.png" mode=""></image>
  164. <text class="text">我的问诊</text>
  165. </view> -->
  166. <view class="item no-marin-bottom" @click="navgetTo('/pages_shopping/live/order')">
  167. <image src="../../static/images/live.png" mode=""></image>
  168. <text class="text">直播订单</text>
  169. </view>
  170. <view class="item" @click="navgetTo('/pages_user/user/prescribeOrder')">
  171. <image src="../../static/images/prescription.png" mode=""></image>
  172. <text class="text">我的处方</text>
  173. </view>
  174. <view class="item" @click="navgetTo('/pages_user/user/patient')">
  175. <image src="../../static/images/management.png" mode=""></image>
  176. <text class="text">就诊人管理</text>
  177. </view>
  178. <view class="item" @click="navgetTo('/pages_user/user/address')">
  179. <image src="../../static/images/address.png" mode=""></image>
  180. <text class="text">收货地址</text>
  181. </view>
  182. <!-- <view class="item no-marin-bottom" @click="navgetTo('/pages_user/user/integral')">
  183. <image src="../../static/images/integral.png" mode=""></image>
  184. <text class="text">积分管理</text>
  185. </view> -->
  186. <view class="item no-marin-bottom" @click="navgetTo('/pages_shopping/shopping/myCoupon')">
  187. <image src="../../static/images/mycoupon.png" mode=""></image>
  188. <text class="text">领券中心</text>
  189. </view>
  190. <view class="item no-marin-bottom"
  191. @click="navgetTo('/pages_user/user/storeProductRelation')">
  192. <image src="../../static/images/service_file.png" mode=""></image>
  193. <text class="text">我的足迹</text>
  194. </view>
  195. <view class="item no-marin-bottom" @click="openH5(1)">
  196. <image src="../../static/images/service_file.png" mode=""></image>
  197. <text class="text">用户协议</text>
  198. </view>
  199. <view class="item no-marin-bottom align-top" @click="openH5(2)">
  200. <image src="../../static/images/advice.png" mode=""></image>
  201. <text class="text">隐私保护</text>
  202. </view>
  203. <view class="item no-marin-bottom">
  204. <image src="../../static/images/customer1.png" mode=""></image>
  205. <text class="text">专属客服</text>
  206. <button class="contact-btn" open-type="contact"></button>
  207. </view>
  208. <view v-if="user.isPromoter==0" class="item no-marin-bottom"
  209. @click="navgetTo('/pages_user/user/userTuiAdd')">
  210. <image src="../../static/images/my_promotion.png" mode=""></image>
  211. <text class="text">申请健康大使</text>
  212. </view>
  213. <view v-if="user.isPromoter==1" class="item no-marin-bottom"
  214. @click="navgetTo('/pages_user/user/userTui')">
  215. <image src="../../static/images/my_promotion.png" mode=""></image>
  216. <text class="text">我的推广</text>
  217. </view>
  218. <view class="item no-marin-bottom" @click="navgetTo('/pages/home/cert')">
  219. <image src="../../static/images/service_file.png" mode=""></image>
  220. <text class="text">资质证书</text>
  221. </view>
  222. <view class="item no-marin-bottom" @click="toManager()">
  223. <image src="../../static/images/management.png" mode=""></image>
  224. <text class="text">销售管理</text>
  225. </view>
  226. </view>
  227. </view>
  228. <view class="used-tools">
  229. <view class="title">我的视频</view>
  230. <view class="tools-list">
  231. <view class="item no-marin-bottom" @click="navgetTo('/pages_shopping/live/order')">
  232. <image src="../../static/images/live.png" mode=""></image>
  233. <text class="text">直播订单</text>
  234. </view>
  235. </view>
  236. </view>
  237. <view class="used-tools">
  238. <view class="title">管理应用</view>
  239. <view class="tools-list">
  240. <view class="item no-marin-bottom" @click="navgetTo('/pages_shopping/shopping/myCoupon')">
  241. <image src="../../static/images/mycoupon.png" mode=""></image>
  242. <text class="text">领券中心</text>
  243. </view>
  244. <view class="item no-marin-bottom" @click="openH5(1)">
  245. <image src="../../static/images/service_file.png" mode=""></image>
  246. <text class="text">用户协议</text>
  247. </view>
  248. <view class="item no-marin-bottom">
  249. <image src="../../static/images/customer1.png" mode=""></image>
  250. <text class="text">专属客服</text>
  251. <button class="contact-btn" open-type="contact"></button>
  252. </view>
  253. <view v-if="user.isPromoter==0" class="item no-marin-bottom"
  254. @click="navgetTo('/pages_user/user/userTuiAdd')">
  255. <image src="../../static/images/my_promotion.png" mode=""></image>
  256. <text class="text">申请健康大使</text>
  257. </view>
  258. <view v-if="user.isPromoter==1" class="item no-marin-bottom"
  259. @click="navgetTo('/pages_user/user/userTui')">
  260. <image src="../../static/images/my_promotion.png" mode=""></image>
  261. <text class="text">我的推广</text>
  262. </view>
  263. <view class="item no-marin-bottom" @click="navgetTo('/pages/home/cert')">
  264. <image src="../../static/images/service_file.png" mode=""></image>
  265. <text class="text">资质证书</text>
  266. </view>
  267. <view class="item no-marin-bottom" @click="toManager()">
  268. <image src="../../static/images/management.png" mode=""></image>
  269. <text class="text">销售管理</text>
  270. </view>
  271. </view>
  272. </view>
  273. <!-- 退出登录按钮 -->
  274. </view>
  275. <view style="padding-bottom: 20rpx;" v-if="user.phone!=''">
  276. <view @tap="loginOUt" class="log-out x-c">退出登录</view>
  277. </view>
  278. <!-- <view class="banner">
  279. <image src="https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20221125/71ddd95044bb46d5b27e19a5f61cf5ab.png"></image>
  280. <view class="tel_btn" @click="callService()"></view>
  281. </view> -->
  282. <view class="like-product">
  283. <likeProduct ref="product" />
  284. </view>
  285. </view>
  286. </view>
  287. </view>
  288. </template>
  289. <script>
  290. import {
  291. getOrderCount
  292. } from '@/api/storeOrder'
  293. import {
  294. getUserInfo
  295. } from '@/api/user'
  296. import likeProduct from '@/components/likeProduct.vue'
  297. export default {
  298. components: {
  299. likeProduct
  300. },
  301. data() {
  302. return {
  303. signNum: 2,
  304. sign: [{
  305. day: 1
  306. }, {
  307. day: 2
  308. }, {
  309. day: 3
  310. }, {
  311. day: 4
  312. }],
  313. dataList: [{
  314. num: '55',
  315. title: '芳华币'
  316. }, {
  317. num: '55',
  318. title: '待用券'
  319. }, {
  320. num: '55',
  321. title: '已用券'
  322. }, {
  323. num: '55',
  324. title: '过期券'
  325. }],
  326. count0: 0,
  327. count1: 0,
  328. count2: 0,
  329. afterSalesCount: 0,
  330. user: {
  331. isPromoter: 0,
  332. isWeixinAuth: 0,
  333. phone: "",
  334. nickname: "请登录",
  335. avatarUrl: "/static/images/detault_head.png"
  336. },
  337. // 状态栏的高度
  338. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  339. // 消息数量
  340. msgNum: 0,
  341. };
  342. },
  343. onLoad() {
  344. console.log("onload")
  345. },
  346. onShow() {
  347. console.log("onshow")
  348. var that = this;
  349. if (uni.getStorageSync('AppToken')) {
  350. that.getUserInfo();
  351. that.getOrderCount();
  352. }
  353. // this.utils.isLogin().then(res => {
  354. // that.getUserInfo();
  355. // that.getOrderCount();
  356. // })
  357. },
  358. onReachBottom() {
  359. console.log("onReachBottom")
  360. this.$refs.product.getGoodsProducts();
  361. },
  362. methods: {
  363. toManagerCourse() {
  364. if (uni.getStorageSync('ManageToken')) {
  365. uni.navigateTo({
  366. url: '/pages_manage/index'
  367. })
  368. } else {
  369. uni.navigateTo({
  370. url: '/pages_manage/login'
  371. })
  372. }
  373. },
  374. // loginOUt(){
  375. // this.utils.loginOut();
  376. // this.getUserInfo();
  377. // // uni.switchTab({
  378. // // url:'/pages/home/index'
  379. // // })
  380. // },
  381. loginOUt() {
  382. const that = this;
  383. uni.showModal({
  384. title: '提示',
  385. content: '确定要退出登录吗?',
  386. success: function(res) {
  387. if (res.confirm) {
  388. // 先重置用户数据为默认值
  389. that.user = {
  390. isPromoter: 0,
  391. isWeixinAuth: 0,
  392. phone: "",
  393. nickname: "请登录",
  394. avatarUrl: "/static/images/detault_head.png",
  395. avatar: null // 确保头像也被重置
  396. };
  397. // 清空本地存储的用户数据
  398. uni.removeStorageSync('userData');
  399. // 执行退出登录逻辑
  400. that.utils.loginOut();
  401. // 重置订单数量
  402. that.count0 = 0;
  403. that.count1 = 0;
  404. that.count2 = 0;
  405. that.afterSalesCount = 0;
  406. that.msgNum = 0;
  407. // 可选:提示退出成功
  408. uni.showToast({
  409. title: '已退出登录',
  410. icon: 'success'
  411. });
  412. // 可选:如果需要刷新页面数据,可以重新调用 onShow 中的方法
  413. // 但由于我们已经手动重置了数据,这一步不是必需的
  414. }
  415. }
  416. });
  417. },
  418. openPersonInfo() {
  419. this.utils.isLogin().then(res => {
  420. uni.navigateTo({
  421. url: "/pages_user/user/personInfo"
  422. })
  423. })
  424. },
  425. callService() {
  426. uni.makePhoneCall({
  427. phoneNumber: "4000717770",
  428. success: function() {
  429. console.log('拨打电话成功');
  430. },
  431. fail() {
  432. console.log('打电话失败了');
  433. }
  434. })
  435. },
  436. getOrderCount() {
  437. getOrderCount().then(
  438. res => {
  439. if (res.code == 200) {
  440. this.count0 = res.count0;
  441. this.count1 = res.count1;
  442. this.count2 = res.count2;
  443. this.afterSalesCount = res.afterSalesCount;
  444. }
  445. },
  446. rej => {}
  447. );
  448. },
  449. toManager() {
  450. if (this.utils.checkCompanyUserLoginState()) {
  451. uni.navigateTo({
  452. url: '/pages_company/index'
  453. })
  454. } else {
  455. uni.navigateTo({
  456. url: '/pages_company/auth/login'
  457. })
  458. }
  459. },
  460. openH5(type) {
  461. var requestPath = uni.getStorageSync('requestPath');
  462. // uni.setStorageSync('url',requestPath+url);
  463. uni.navigateTo({
  464. url: '../home/h5?type=' + type
  465. })
  466. },
  467. getUserInfo() {
  468. getUserInfo().then(
  469. res => {
  470. if (res.code == 200) {
  471. if (res.user != null) {
  472. this.user = res.user;
  473. uni.setStorageSync('userData', res.user)
  474. } else {
  475. this.utils.loginOut();
  476. }
  477. } else {
  478. uni.showToast({
  479. icon: 'none',
  480. title: "请求失败",
  481. });
  482. }
  483. },
  484. rej => {}
  485. );
  486. },
  487. // 跳转页面
  488. navgetTo(url) {
  489. this.utils.isLogin().then(res => {
  490. if (res) {
  491. uni.navigateTo({
  492. url: url
  493. })
  494. }
  495. })
  496. },
  497. // 查看订单
  498. showOrder(status) {
  499. uni.navigateTo({
  500. url: '/pages_user/user/storeOrder?status=' + status
  501. })
  502. }
  503. }
  504. }
  505. </script>
  506. <style lang="scss">
  507. .top-cont {
  508. width: 100%;
  509. height: 532rpx;
  510. position: relative;
  511. background: radial-gradient(60% 60% at 70% 11%, #C5EFEA 0%, rgba(245, 246, 246, 0) 100%);
  512. // background-image: url(../../static/images/personl_top_bg.png);
  513. // background-image: url(../../static/images/red_bg.png);
  514. // background-image: url(../../static/images/viewer_top.png);
  515. // background-image: url(https://placehold.co/400x200/red/white);
  516. // background-repeat: repeat-x;
  517. // background-size: 40rpx 100%;
  518. .top-inner {
  519. width: 100%;
  520. height: 100%;
  521. position: absolute;
  522. top: 0;
  523. left: 0;
  524. z-index: 2;
  525. .top-block {
  526. padding: 0 30rpx 0 30rpx;
  527. display: flex;
  528. flex-direction: column;
  529. .qscode-block {
  530. display: flex;
  531. justify-content: flex-end;
  532. .qscode {
  533. width: 64rpx;
  534. height: 64rpx;
  535. padding: 12rpx;
  536. margin-right: 210rpx;
  537. border-radius: 32rpx 32rpx 32rpx 32rpx;
  538. border: 1rpx solid #E9E9E9;
  539. box-sizing: border-box;
  540. background: #FFFFFF;
  541. }
  542. }
  543. .user-info {
  544. // padding: 88rpx 30rpx 0 30rpx;
  545. padding: 0 30rpx 0 30rpx;
  546. display: flex;
  547. align-items: center;
  548. justify-content: space-between;
  549. .left {
  550. position: relative;
  551. display: flex;
  552. .head-img {
  553. width: 128rpx;
  554. height: 128rpx;
  555. border-radius: 50%;
  556. overflow: hidden;
  557. margin-right: 30rpx;
  558. border: 4rpx solid #FFFFFF;
  559. box-shadow: 0px 5px 15px 2px rgba(0, 0, 0, 0.1);
  560. image {
  561. width: 100%;
  562. height: 100%;
  563. }
  564. }
  565. .name-phone {
  566. padding-top: 15rpx;
  567. .name {
  568. font-size: 40rpx;
  569. font-family: PingFang SC;
  570. font-weight: 600;
  571. color: #333333;
  572. display: flex;
  573. align-items: center;
  574. }
  575. .user-page {
  576. width: 160rpx;
  577. box-sizing: border-box;
  578. background: #FFFFFF;
  579. border-radius: 22rpx 22rpx 22rpx 22rpx;
  580. text-align: center;
  581. padding: 6rpx 16rpx 4rpx;
  582. display: flex;
  583. justify-content: center;
  584. align-items: center;
  585. margin-top: 12rpx;
  586. font-size: 24rpx;
  587. color: #626469;
  588. }
  589. .lable {
  590. display: flex;
  591. align-items: center;
  592. margin-top: 16rpx;
  593. .lable-item {
  594. display: flex;
  595. justify-content: center;
  596. box-sizing: border-box;
  597. font-weight: 500;
  598. font-size: 22rpx;
  599. color: #FEF5EA;
  600. background: linear-gradient(90deg, #F26F00 0%, #FF9D1F 100%);
  601. border-radius: 20rpx 20rpx 20rpx 20rpx;
  602. border: 1rpx solid #FEDDB9;
  603. width: 118rpx;
  604. height: 40rpx;
  605. }
  606. .yellow {
  607. background: linear-gradient(90deg, #F5CE3C 0%, #E39414 100%);
  608. }
  609. }
  610. }
  611. }
  612. .right {
  613. display: flex;
  614. align-items: center;
  615. justify-content: center;
  616. .msg-box {
  617. margin-left: 10rpx;
  618. width: 44rpx;
  619. height: 44rpx;
  620. image {
  621. width: 100%;
  622. height: 100%;
  623. }
  624. }
  625. .set {
  626. width: 44rpx;
  627. height: 44rpx;
  628. image {
  629. width: 100%;
  630. height: 100%;
  631. }
  632. }
  633. }
  634. }
  635. .data {
  636. margin: 40rpx 8rpx 30rpx;
  637. display: flex;
  638. justify-content: space-between;
  639. .data-item {
  640. text-align: center;
  641. .number {
  642. font-weight: 500;
  643. font-size: 40rpx;
  644. color: #333333;
  645. }
  646. .txt {
  647. margin-top: 12rpx;
  648. font-size: 24rpx;
  649. color: #666666;
  650. }
  651. }
  652. }
  653. }
  654. .member {
  655. width: 702rpx;
  656. height: 172rpx;
  657. background: linear-gradient(90deg, #FFF3DF 0%, #FADBA9 100%);
  658. border-radius: 16rpx 16rpx 16rpx 16rpx;
  659. margin: 0 auto;
  660. position: relative;
  661. z-index: -2;
  662. .bg {
  663. width: 702rpx;
  664. height: 172rpx;
  665. position: absolute;
  666. top: 0;
  667. z-index: -1;
  668. }
  669. .member-block {
  670. width: 100%;
  671. height: 100%;
  672. display: flex;
  673. justify-content: space-between;
  674. align-items: center;
  675. padding: 36rpx 32rpx;
  676. box-sizing: border-box;
  677. .left {
  678. display: flex;
  679. flex-direction: column;
  680. .vip {
  681. display: flex;
  682. align-items: center;
  683. font-size: 24rpx;
  684. color: #834F00;
  685. }
  686. .count {
  687. font-weight: 500;
  688. font-size: 32rpx;
  689. color: #885201;
  690. .bold {
  691. font-family: Roboto, Roboto;
  692. font-weight: bold;
  693. font-size: 40rpx;
  694. color: #EA8F07;
  695. }
  696. }
  697. }
  698. }
  699. .right {
  700. width: 176rpx;
  701. height: 72rpx;
  702. background: #885201;
  703. border-radius: 36rpx 36rpx 36rpx 36rpx;
  704. text-align: center;
  705. line-height: 72rpx;
  706. font-weight: 600;
  707. font-size: 28rpx;
  708. color: #FFF6E7;
  709. }
  710. }
  711. .my-order {
  712. padding: 50rpx 20rpx 0;
  713. .inner {
  714. box-sizing: border-box;
  715. height: 245rpx;
  716. background: #FFFFFF;
  717. border-radius: 16rpx;
  718. padding: 40rpx 30rpx;
  719. display: flex;
  720. flex-direction: column;
  721. justify-content: space-between;
  722. .title-box {
  723. display: flex;
  724. align-items: center;
  725. justify-content: space-between;
  726. .title {
  727. font-size: 34rpx;
  728. font-family: PingFang SC;
  729. font-weight: bold;
  730. color: #222222;
  731. line-height: 1;
  732. }
  733. .all-order {
  734. display: flex;
  735. align-items: center;
  736. .text {
  737. font-size: 26rpx;
  738. font-family: PingFang SC;
  739. font-weight: 500;
  740. color: #999999;
  741. line-height: 1;
  742. margin-right: 8rpx;
  743. }
  744. image {
  745. width: 24rpx;
  746. height: 24rpx;
  747. }
  748. }
  749. }
  750. .status-box {
  751. display: flex;
  752. align-items: center;
  753. justify-content: space-between;
  754. padding: 0 10rpx;
  755. .item {
  756. display: flex;
  757. flex-direction: column;
  758. align-items: center;
  759. justify-content: center;
  760. image {
  761. width: 40rpx;
  762. height: 40rpx;
  763. margin-bottom: 18rpx;
  764. }
  765. .text {
  766. font-size: 26rpx;
  767. font-family: PingFang SC;
  768. font-weight: 500;
  769. color: #111111;
  770. line-height: 1;
  771. }
  772. }
  773. }
  774. }
  775. }
  776. }
  777. }
  778. .coin-card {
  779. width: 702rpx;
  780. height: 380rpx;
  781. background: linear-gradient(180deg, #FF5600 0%, #FFB501 100%);
  782. border-radius: 16rpx 16rpx 16rpx 16rpx;
  783. position: relative;
  784. z-index: -2;
  785. margin: 20rpx auto;
  786. .bg {
  787. width: 702rpx;
  788. height: 380rpx;
  789. position: absolute;
  790. top: 0;
  791. z-index: -1;
  792. }
  793. .container {
  794. padding: 20rpx;
  795. .coin-txt {
  796. display: flex;
  797. justify-content: space-between;
  798. align-items: center;
  799. .left {
  800. font-weight: 600;
  801. font-size: 32rpx;
  802. color: #FFFFFF;
  803. .bold {
  804. font-family: Roboto, Roboto;
  805. font-weight: bold;
  806. font-size: 56rpx;
  807. color: #FEEBC9;
  808. }
  809. }
  810. .right {
  811. padding: 4rpx 16rpx;
  812. background: #FFF3D7;
  813. font-size: 24rpx;
  814. color: #FF5C03;
  815. border-radius: 20rpx 20rpx 20rpx 20rpx;
  816. border: 2rpx solid rgba(255, 255, 255, 0.3);
  817. }
  818. }
  819. .item {
  820. background: #FEFAF7;
  821. border-radius: 12rpx 12rpx 12rpx 12rpx;
  822. display: flex;
  823. align-items: center;
  824. flex-direction: column;
  825. padding: 34rpx 0 32rpx;
  826. .progress {
  827. display: flex;
  828. align-items: center;
  829. justify-content: space-between;
  830. position: relative;
  831. z-index: 1;
  832. .line {
  833. position: absolute;
  834. top: 20rpx;
  835. width: 100%;
  836. width: calc(100% - 30rpx);
  837. left: 10rpx;
  838. height: 4upx;
  839. background: #F6CDA7;
  840. border-radius: 2upx;
  841. z-index: 1;
  842. }
  843. .img-item {
  844. display: flex;
  845. flex-direction: column;
  846. justify-content: center;
  847. margin-right: 34rpx;
  848. align-items: center;
  849. &:last-child {
  850. margin-right: 0;
  851. }
  852. .top {
  853. display: flex;
  854. align-items: center;
  855. image {
  856. width: 44upx;
  857. height: 44upx;
  858. background-color: #ffffff;
  859. position: relative;
  860. z-index: 3;
  861. }
  862. }
  863. .text {
  864. font-size: 24upx;
  865. font-family: PingFang SC;
  866. font-weight: 500;
  867. color: #FF7511;
  868. line-height: 1;
  869. white-space: nowrap;
  870. margin-top: 16rpx;
  871. }
  872. }
  873. }
  874. .button {
  875. margin-top: 40rpx;
  876. width: 598rpx;
  877. }
  878. }
  879. }
  880. }
  881. .content {
  882. margin-top: 20rpx;
  883. padding: 0 20rpx;
  884. display: flex;
  885. align-items: center;
  886. justify-content: center;
  887. flex-direction: column;
  888. .used-tools {
  889. margin-top: 20rpx;
  890. box-sizing: border-box;
  891. background: #FFFFFF;
  892. border-radius: 16rpx;
  893. padding: 40rpx 30rpx;
  894. .title {
  895. font-size: 34rpx;
  896. font-family: PingFang SC;
  897. font-weight: bold;
  898. color: #222222;
  899. line-height: 1;
  900. }
  901. .tools-list {
  902. margin-top: 50rpx;
  903. display: flex;
  904. flex-wrap: wrap;
  905. width: 100%;
  906. .item {
  907. box-sizing: border-box;
  908. width: 25%;
  909. display: flex;
  910. flex-direction: column;
  911. align-items: center;
  912. justify-content: center;
  913. margin-bottom: 50rpx;
  914. position: relative;
  915. image {
  916. width: 44rpx;
  917. height: 44rpx;
  918. }
  919. .text {
  920. font-size: 24rpx;
  921. font-family: PingFang SC;
  922. font-weight: 500;
  923. color: #111111;
  924. line-height: 1;
  925. margin-top: 20rpx;
  926. }
  927. .contact-btn {
  928. display: inline-block;
  929. position: absolute;
  930. top: 0;
  931. left: 0;
  932. width: 100%;
  933. height: 100%;
  934. opacity: 0;
  935. }
  936. }
  937. }
  938. }
  939. }
  940. .sub-btn {
  941. position: absolute;
  942. width: 100%;
  943. height: 100%;
  944. opacity: 0;
  945. }
  946. .like-product {
  947. padding: 0 20rpx;
  948. }
  949. .banner {
  950. padding: 20rpx 20rpx 0rpx 20rpx;
  951. height: 200rpx;
  952. position: relative;
  953. display: flex;
  954. align-items: center;
  955. justify-content: center;
  956. image {
  957. width: 100%;
  958. height: 100%;
  959. }
  960. .tel_btn {
  961. width: 100%;
  962. height: 100%;
  963. top: 0rpx;
  964. position: absolute;
  965. opacity: 0.0;
  966. }
  967. }
  968. .log-out {
  969. height: 80rpx;
  970. margin: 20rpx;
  971. line-height: 80rpx;
  972. text-align: center;
  973. font-size: 26rpx;
  974. font-family: PingFang SC;
  975. font-weight: 500;
  976. color: #666666;
  977. background: #FFFFFF;
  978. border-radius: 16rpx;
  979. margin-top: 20rpx;
  980. }
  981. </style>