index.vue 26 KB

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