index.vue 26 KB

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