爱简收旧衣按件回收前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1033 lines
31 KiB

2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
4 weeks ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
  1. <template>
  2. <view class="container">
  3. <!-- 顶部banner -->
  4. <view class="banner">
  5. <image v-if="myBannerImage" :src="myBannerImage" mode="aspectFill" style="width: 100%; height: 100%;" />
  6. </view>
  7. <view class="user-cards" v-if="!login_status">
  8. <view class="user-info">
  9. <image class="avatars" src="/static/暂未登录 请先登录.png" mode="aspectFill"></image>
  10. <view class="info">
  11. <text class="names">暂未登录请先登录</text>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="btns" v-if="!login_status">
  16. <uv-button class="btn" type="primary" text="立即登录" :custom-style="customStyle"
  17. color="linear-gradient(to right, rgb(255, 190, 61), rgb(255, 171, 2))" shape="circle"
  18. @click="logout"></uv-button>
  19. <text>暂未登录请先登录</text>
  20. </view>
  21. <!-- 用户信息卡片 -->
  22. <view class="user-card" v-if="login_status">
  23. <view class="user-info">
  24. <view class="avatar-badge-box">
  25. <image class="avatar" :src="userInfo.headImage" mode="aspectFill"></image>
  26. <view class="avatar-badge" :class="userTypeBadgeClass">{{ userTypeText }}</view>
  27. </view>
  28. <view class="info">
  29. <text class="name">{{ userInfo.nickName }}</text>
  30. <text class="id">ID: {{ userInfo.intentioCode }}</text>
  31. </view>
  32. </view>
  33. <view class="wallet-info">
  34. <view class="balance">
  35. <text class="label">我的余额</text>
  36. <view class="amount">
  37. <text class="symbol">¥</text>
  38. <text class="value">{{ userInfo.money || '0.00' }}</text>
  39. </view>
  40. <view class="withdraw-btn" @tap="goWithdraw">
  41. <text>去提现</text>
  42. <uni-icons type="right" size="10" color="#df8155" class="arrow"></uni-icons>
  43. </view>
  44. </view>
  45. <view class="recycle-count">
  46. <text class="label">累计回收</text>
  47. <view class="count">
  48. <text class="value">{{ totalOrders }}</text>
  49. <text class="unit"></text>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 分享赚佣金模块 -->
  55. <view class="share-commission-card" @tap="onShareCommission" v-if="login_status">
  56. <text class="share-commission-text">分享赚佣金</text>
  57. </view>
  58. <!-- 订单区域 -->
  59. <view class="order-section" v-if="login_status" @tap="viewAllOrders">
  60. <view class="section-header">
  61. <text class="title">我的订单</text>
  62. <view class="view-all">
  63. <text>查看全部</text>
  64. <text class="arrow">></text>
  65. </view>
  66. </view>
  67. <view class="order-tabs" @tap.stop>
  68. <view v-for="(tab, index) in orderTabs" :key="index" class="tab-item"
  69. :class="{ active: currentTab === index }" @tap.stop="switchTab(index)">
  70. <text>{{ tab.name }}</text>
  71. <!-- <text class="badge" v-if="tab.badge">{{tab.badge}}</text> -->
  72. </view>
  73. </view>
  74. <!-- 订单列表 -->
  75. <view class="order-list">
  76. <view class="order-item" v-for="order in orderList" :key="order.id">
  77. <view class="order-header">
  78. <text class="order-id">订单编号 {{ order.ordeNo }}</text>
  79. </view>
  80. <view class="order-content">
  81. <image class="goods-image" :src="order.image || '/static/回收/衣物.png'" mode="aspectFill"></image>
  82. <view class="order-info-opt">
  83. <view class="order-info-top">
  84. <text class="order-info-count">{{ order.num || 1 }} </text>
  85. <text class="order-info-price">{{ order.onePrice || 0 }} /</text>
  86. </view>
  87. <view class="order-info-estimate">
  88. 预估 ¥ {{ order.price }}
  89. </view>
  90. </view>
  91. </view>
  92. <view class="order-footer">
  93. <view class="delivery-info">
  94. <text class="status">{{ order.status === 0 ? '【在线预约】' : order.status === 1 ? '【快递上门】' :
  95. order.status === 2 ? '【透明质检】' : order.status === 3 ? '【现金打款】' : ''}}</text>
  96. <text class="time">{{ order.goTime }}</text>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <!-- 管理中心列表型卡片 -->
  103. <view class="function-list manage-list"
  104. v-if="login_status && (userInfo.isOrderRole === 'Y' || userInfo.isAppletUserRole === 'Y' || userInfo.isUserRole === 'Y' || userInfo.isTuiRole === 'Y')">
  105. <view class="function-item" v-if="userInfo.isOrderRole === 'Y'" @tap="goOrderManage">
  106. <view class="item-left">
  107. <image class="icon" src="/static/my/订单管理.png" mode="aspectFit"></image>
  108. <text>订单管理</text>
  109. </view>
  110. <uni-icons type="right" size="15"></uni-icons>
  111. </view>
  112. <view class="function-item" v-if="userInfo.isAppletUserRole === 'Y'" @tap="goAppletUserManage">
  113. <view class="item-left">
  114. <image class="icon" src="/static/my/用户管理.png" mode="aspectFit"></image>
  115. <text>用户管理</text>
  116. </view>
  117. <uni-icons type="right" size="15"></uni-icons>
  118. </view>
  119. <view class="function-item" v-if="userInfo.isUserRole === 'Y'" @tap="goStaffManage">
  120. <view class="item-left">
  121. <image class="icon" src="/static/my/员工管理.png" mode="aspectFit"></image>
  122. <text>员工管理</text>
  123. </view>
  124. <uni-icons type="right" size="15"></uni-icons>
  125. </view>
  126. <view class="function-item" v-if="userInfo.isTuiRole === 'Y'" @tap="goTuiManage">
  127. <view class="item-left">
  128. <image class="icon" src="/static/my/推广官管理.png" mode="aspectFit"></image>
  129. <text>推广官管理</text>
  130. </view>
  131. <uni-icons type="right" size="15"></uni-icons>
  132. </view>
  133. </view>
  134. <!-- 功能列表 -->
  135. <view class="function-list" v-if="login_status">
  136. <view class="function-item" v-for="(item, index) in functionList" :key="index" @tap="handleFunction(index)">
  137. <view class="item-left">
  138. <image class="icon" :src="item.icon" mode="aspectFit"></image>
  139. <text>{{ item.name }}</text>
  140. </view>
  141. <uni-icons type="right" size="15"></uni-icons>
  142. </view>
  143. </view>
  144. <!-- 根据角色显示不同的导航栏 -->
  145. <uv-tabbar :value="value" :fixed="true" @change="changeTo">
  146. <uv-tabbar-item text="首页">
  147. <template v-slot:active-icon>
  148. <image class="icon" src="/static/home/首页-点击.png"></image>
  149. </template>
  150. <template v-slot:inactive-icon>
  151. <image class="icon" src="/static/home/首页-未点击.png"></image>
  152. </template>
  153. </uv-tabbar-item>
  154. <uv-tabbar-item text="回收">
  155. <template v-slot:active-icon>
  156. <image class="icon" src="/static/home/回收-点击.png"></image>
  157. </template>
  158. <template v-slot:inactive-icon>
  159. <image class="icon" src="/static/home/回收-未点击.png"></image>
  160. </template>
  161. </uv-tabbar-item>
  162. <uv-tabbar-item text="我的">
  163. <template v-slot:active-icon>
  164. <image class="icon" src="/static/home/我的-点击.png"></image>
  165. </template>
  166. <template v-slot:inactive-icon>
  167. <image class="icon" src="/static/home/我的-未点击.png"></image>
  168. </template>
  169. </uv-tabbar-item>
  170. </uv-tabbar>
  171. </view>
  172. </template>
  173. <script>
  174. import pullRefreshMixin from '@/pages/mixins/pullRefreshMixin.js'
  175. export default {
  176. mixins: [pullRefreshMixin],
  177. data() {
  178. return {
  179. value: 2,
  180. currentTab: 1,
  181. login_status: false,
  182. userInfo: {},
  183. orderTabs: [
  184. { name: '全部' },
  185. { name: '进行中', badge: '2' },
  186. { name: '已完成' }
  187. ],
  188. functionList: [
  189. // { name: '推广官', icon: '/static/my/promote.png' },
  190. { name: '我的地址', icon: '/static/my/地址.png' },
  191. { name: '联系客服', icon: '/static/my/客服.png' },
  192. { name: '修改信息', icon: '/static/my/修改信息.png' },
  193. { name: '退出登录', icon: '/static/my/退出登录.png' }
  194. ],
  195. orderList: [],
  196. totalOrders: 0 // 添加累计回收单数字段
  197. }
  198. },
  199. methods: {
  200. async onRefresh() {
  201. console.log('开始刷新')
  202. try {
  203. await this.fetchUserInfo()
  204. console.log('刷新完成')
  205. return true // 返回 true 表示刷新成功
  206. } catch (error) {
  207. console.error('刷新失败', error)
  208. throw error // 抛出错误表示刷新失败
  209. }
  210. },
  211. changeTo(e) {
  212. this.value = e
  213. console.log(e, '111')
  214. if (e == 0) {
  215. uni.reLaunch({
  216. url: '/pages/component/home'
  217. });
  218. } else if (e == 1) {
  219. uni.reLaunch({
  220. url: '/pages/component/recycle'
  221. });
  222. }
  223. },
  224. goWithdraw() {
  225. uni.navigateTo({
  226. url: '/pages/subcomponent/wallet'
  227. })
  228. },
  229. viewAllOrders() {
  230. uni.navigateTo({
  231. url: '/pages/subcomponent/order'
  232. })
  233. },
  234. switchTab(index) {
  235. this.currentTab = index
  236. this.fetchOrderList()
  237. },
  238. handleFunction(index) {
  239. const pages = [
  240. // '/pages/subcomponent/promotion',
  241. '/pages/subcomponent/select',
  242. '/pages/subcomponent/admin_faq',
  243. '/pages/subcomponent/edit_profile',
  244. 'logout'
  245. ]
  246. if (pages[index] === 'logout') {
  247. uni.showModal({
  248. title: '提示',
  249. content: '确定要退出登录吗?',
  250. success: (res) => {
  251. if (res.confirm) {
  252. // 执行退出登录逻辑
  253. getApp().globalData.login_status = false;
  254. console.log(getApp().globalData.login_status);
  255. this.login_status = false;
  256. uni.removeStorageSync('token');
  257. }
  258. }
  259. })
  260. return
  261. }
  262. uni.navigateTo({
  263. url: pages[index]
  264. })
  265. },
  266. logout() {
  267. uni.reLaunch({
  268. url: '/pages/index/index'
  269. });
  270. },
  271. onShareCommission() {
  272. uni.showToast({ title: '分享赚佣金', icon: 'none' });
  273. uni.navigateTo({ url: '/pages/subcomponent/promotion' })
  274. },
  275. goOrderManage() {
  276. uni.navigateTo({ url: '/pages/manager/order' })
  277. },
  278. goAppletUserManage() {
  279. uni.navigateTo({ url: '/pages/manager/user' })
  280. },
  281. goStaffManage() {
  282. uni.navigateTo({ url: '/pages/manager/staff' })
  283. },
  284. goTuiManage() {
  285. uni.navigateTo({ url: '/pages/manager/tui' })
  286. },
  287. fetchUserInfo() {
  288. if (uni.getStorageSync('token')) {
  289. this.login_status = getApp().globalData.login_status;
  290. this.$api("getUserByToken", {}, (res) => {
  291. if (res.code == 200) {
  292. this.userInfo = res.result
  293. // isTuiType 为0用户,1推广达人,2推广大使
  294. }
  295. })
  296. } else {
  297. this.login_status = false;
  298. }
  299. },
  300. fetchOrderList() {
  301. let status = ''
  302. if (this.currentTab === 1) status = 1 // 进行中
  303. if (this.currentTab === 2) status = 3 // 已完成
  304. const params = { pageSize: 1, current: 1 }
  305. if (status !== '') params.status = status
  306. this.$api && this.$api('getOrderListPage', params, res => {
  307. if (res && res.code === 200 && res.result && Array.isArray(res.result.records)) {
  308. this.orderList = res.result.records
  309. // 更新累计回收单数
  310. } else {
  311. this.orderList = []
  312. }
  313. })
  314. },
  315. getCumulativeRecoveryCount() {
  316. this.$api && this.$api('getCumulativeRecoveryCount', {}, res => {
  317. if (res && res.code === 200 && res.result) {
  318. this.totalOrders = res.result
  319. } else {
  320. this.totalOrders = 0
  321. }
  322. })
  323. },
  324. // 初始化页面数据的方法
  325. initializePageData() {
  326. // 移除自动下拉刷新
  327. // uni.startPullDownRefresh()
  328. uni.$on('refreshUserInfo', () => {
  329. this.fetchUserInfo()
  330. })
  331. this.fetchUserInfo()
  332. this.fetchOrderList()
  333. this.getCumulativeRecoveryCount()
  334. uni.$on('bannerListUpdated', () => {
  335. this.$forceUpdate && this.$forceUpdate()
  336. })
  337. if (getApp().globalData.bannerList && getApp().globalData.bannerList.length > 0) {
  338. this.$forceUpdate && this.$forceUpdate()
  339. }
  340. },
  341. goAbout() {
  342. }
  343. },
  344. computed: {
  345. customStyle() {
  346. return {
  347. // height: '80rpx',
  348. width: '70%',
  349. }
  350. },
  351. bannerList() {
  352. return getApp().globalData.bannerList || []
  353. },
  354. myBannerImage() {
  355. const item = getApp().globalData.configData.find(i => i.keyName === 'user_banner')
  356. return item ? item.keyContent : ''
  357. },
  358. userTypeText() {
  359. // 根据 isTuiType 字段判断用户类型
  360. // 0: 用户,1:推广达人,2:推广大使
  361. switch (this.userInfo.isTuiType) {
  362. case 1:
  363. return '推广达人'
  364. case 2:
  365. return '推广大使'
  366. default:
  367. return '用户'
  368. }
  369. },
  370. userTypeBadgeClass() {
  371. // 根据用户类型返回不同的样式类
  372. switch (this.userInfo.isTuiType) {
  373. case 1:
  374. return 'avatar-badge-expert' // 推广达人
  375. case 2:
  376. return 'avatar-badge-ambassador' // 推广大使
  377. default:
  378. return 'avatar-badge-user' // 普通用户
  379. }
  380. },
  381. },
  382. onLoad() {
  383. // 检查App数据是否已经准备好
  384. if (!getApp().globalData.isAppDataReady) {
  385. // 显示加载状态
  386. uni.showLoading({
  387. title: '加载中...',
  388. mask: true
  389. })
  390. // 监听App数据准备完成事件
  391. uni.$on('appDataReady', () => {
  392. uni.hideLoading()
  393. this.initializePageData()
  394. })
  395. } else {
  396. // App数据已经准备好,直接初始化页面数据
  397. this.initializePageData()
  398. }
  399. },
  400. onShow() {
  401. this.fetchUserInfo()
  402. this.getCumulativeRecoveryCount()
  403. },
  404. onPullDownRefresh() {
  405. this.fetchUserInfo()
  406. this.getCumulativeRecoveryCount()
  407. setTimeout(() => {
  408. uni.stopPullDownRefresh()
  409. uni.showToast({
  410. title: '刷新成功',
  411. icon: 'success',
  412. duration: 2000
  413. })
  414. }, 1000)
  415. },
  416. onUnload() {
  417. uni.$off('bannerListUpdated')
  418. },
  419. }
  420. </script>
  421. <style lang="scss" scoped>
  422. .container {
  423. min-height: 100vh;
  424. background: #f8f8f8;
  425. padding-bottom: 120rpx;
  426. }
  427. .banner {
  428. height: 320rpx;
  429. background: #ff6b35;
  430. position: relative;
  431. overflow: hidden;
  432. border-radius: 0 0 30rpx 30rpx;
  433. .banner-title {
  434. position: absolute;
  435. top: 30%;
  436. left: 20%;
  437. color: #fff;
  438. font-family: DingTalk JinBuTi;
  439. font-weight: 400;
  440. font-style: italic;
  441. font-size: 30px;
  442. line-height: 100%;
  443. letter-spacing: 0%;
  444. vertical-align: bottom;
  445. z-index: 2;
  446. }
  447. .banner-bg {
  448. position: absolute;
  449. width: 100%;
  450. height: 100%;
  451. object-fit: cover;
  452. }
  453. }
  454. .user-card {
  455. margin: -50rpx 30rpx 0;
  456. background: #fff;
  457. border-radius: 24rpx;
  458. padding: 30rpx;
  459. position: relative;
  460. z-index: 2;
  461. // box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  462. .user-info {
  463. display: flex;
  464. align-items: center;
  465. margin-bottom: 40rpx;
  466. .avatar-badge-box {
  467. position: relative;
  468. width: 110rpx;
  469. height: 110rpx;
  470. border-radius: 12rpx;
  471. overflow: hidden;
  472. background: #fff;
  473. flex-shrink: 0;
  474. margin-right: 24rpx;
  475. display: flex;
  476. align-items: flex-end;
  477. justify-content: center;
  478. }
  479. .avatar {
  480. width: 100%;
  481. height: 100%;
  482. border-radius: 12rpx;
  483. display: block;
  484. }
  485. .avatar-badge {
  486. position: absolute;
  487. left: 0;
  488. bottom: 0;
  489. width: 100%;
  490. height: 32rpx;
  491. line-height: 32rpx;
  492. background: rgba(238, 238, 238, 0.95);
  493. color: #999;
  494. font-size: 24rpx;
  495. text-align: center;
  496. border-bottom-left-radius: 12rpx;
  497. border-bottom-right-radius: 12rpx;
  498. font-weight: 400;
  499. letter-spacing: 2rpx;
  500. z-index: 2;
  501. // 普通用户样式(默认)
  502. &.avatar-badge-user {
  503. background: rgba(238, 238, 238, 0.95);
  504. color: #999;
  505. }
  506. // 推广达人样式
  507. &.avatar-badge-expert {
  508. background: linear-gradient(90deg, #ff8917, #ffd01e);
  509. color: #fff;
  510. font-weight: 600;
  511. }
  512. // 推广大使样式
  513. &.avatar-badge-ambassador {
  514. background: linear-gradient(90deg, #b2f08d, #39e9d2);
  515. color: #fff;
  516. font-weight: 600;
  517. }
  518. }
  519. .info {
  520. .name {
  521. font-size: 34rpx;
  522. font-weight: 600;
  523. color: #222;
  524. margin-bottom: 12rpx;
  525. display: block;
  526. }
  527. .id {
  528. font-size: 26rpx;
  529. color: #999;
  530. display: flex;
  531. align-items: center;
  532. &::before {
  533. // content: 'ID: ';
  534. color: #999;
  535. margin-right: 4rpx;
  536. }
  537. }
  538. }
  539. }
  540. .wallet-info {
  541. display: flex;
  542. padding: 30rpx;
  543. background: #fff8ea;
  544. border-radius: 16rpx;
  545. position: relative;
  546. &::after {
  547. content: '';
  548. position: absolute;
  549. top: 50%;
  550. left: 50%;
  551. transform: translate(-50%, -50%);
  552. width: 1rpx;
  553. height: 50%;
  554. background: #FFE4D9;
  555. }
  556. .balance {
  557. flex: 1;
  558. padding-right: 30rpx;
  559. .label {
  560. font-size: 26rpx;
  561. color: #999;
  562. margin-bottom: 12rpx;
  563. display: block;
  564. }
  565. .amount {
  566. display: flex;
  567. align-items: baseline;
  568. margin-bottom: 20rpx;
  569. .symbol {
  570. font-size: 30rpx;
  571. color: #FF5B05;
  572. font-weight: normal;
  573. margin-right: 4rpx;
  574. }
  575. .value {
  576. font-size: 46rpx;
  577. font-weight: 600;
  578. color: #FF5B05;
  579. line-height: 1;
  580. }
  581. }
  582. .withdraw-btn {
  583. display: inline-flex;
  584. align-items: center;
  585. padding: 8rpx 16rpx;
  586. background: #fff0d2;
  587. border: 1rpx solid rgba(255, 91, 5, 0.2);
  588. border-radius: 13rpx;
  589. color: #FF5B05;
  590. font-size: 24rpx;
  591. .arrow {
  592. margin-left: 6rpx;
  593. font-family: "PingFang SC";
  594. }
  595. }
  596. }
  597. .recycle-count {
  598. flex: 1;
  599. padding-left: 30rpx;
  600. .label {
  601. font-size: 26rpx;
  602. color: #999;
  603. margin-bottom: 12rpx;
  604. display: block;
  605. }
  606. .count {
  607. display: flex;
  608. align-items: baseline;
  609. .value {
  610. font-size: 46rpx;
  611. font-weight: 600;
  612. color: #222;
  613. line-height: 1;
  614. }
  615. .unit {
  616. font-size: 26rpx;
  617. color: #999;
  618. margin-left: 8rpx;
  619. font-weight: normal;
  620. }
  621. }
  622. }
  623. }
  624. }
  625. .order-section {
  626. margin: 20rpx 30rpx;
  627. background: linear-gradient(to bottom, #fff4e0 0%, #fff 10%);
  628. border-radius: 20rpx;
  629. padding: 20rpx 30rpx;
  630. .section-header {
  631. display: flex;
  632. justify-content: space-between;
  633. align-items: center;
  634. margin-bottom: 30rpx;
  635. .title {
  636. font-size: 34rpx;
  637. font-weight: bold;
  638. color: #333;
  639. }
  640. .view-all {
  641. font-size: 26rpx;
  642. color: #999;
  643. display: flex;
  644. align-items: center;
  645. .arrow {
  646. margin-left: 4rpx;
  647. }
  648. }
  649. }
  650. .order-tabs {
  651. display: flex;
  652. margin-bottom: 30rpx;
  653. background: #f8f8f8;
  654. border-radius: 8rpx;
  655. padding: 4rpx;
  656. .tab-item {
  657. flex: 1;
  658. text-align: center;
  659. padding: 16rpx 0;
  660. position: relative;
  661. color: #666;
  662. font-size: 28rpx;
  663. border-radius: 6rpx;
  664. &.active {
  665. color: #333;
  666. font-weight: bold;
  667. background: #fff;
  668. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.05);
  669. }
  670. }
  671. }
  672. .order-item {
  673. background: #fff;
  674. border-radius: 16rpx;
  675. padding: 24rpx;
  676. border: none;
  677. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02);
  678. .order-header {
  679. margin-bottom: 24rpx;
  680. .order-id {
  681. font-size: 26rpx;
  682. color: #666;
  683. }
  684. }
  685. .order-content {
  686. display: flex;
  687. margin-bottom: 24rpx;
  688. align-items: center;
  689. justify-content: space-between;
  690. position: relative;
  691. &::after {
  692. content: '';
  693. position: absolute;
  694. left: 50%;
  695. top: 50%;
  696. transform: translate(-50%, -50%);
  697. width: 60rpx;
  698. height: 60rpx;
  699. background: #f8f8f8;
  700. border-radius: 50%;
  701. z-index: 1;
  702. }
  703. &::before {
  704. content: '⇌';
  705. position: absolute;
  706. left: 50%;
  707. top: 50%;
  708. transform: translate(-50%, -50%);
  709. color: #999;
  710. font-size: 32rpx;
  711. z-index: 2;
  712. }
  713. .goods-image {
  714. width: 200rpx;
  715. height: 200rpx;
  716. border-radius: 16rpx;
  717. background: #fffbe6;
  718. padding: 20rpx;
  719. box-sizing: border-box;
  720. display: block;
  721. }
  722. .order-info-opt {
  723. width: 200rpx;
  724. min-height: 110rpx;
  725. background: linear-gradient(180deg, #fffbe6 0%, #fff 100%);
  726. border-radius: 16rpx;
  727. display: flex;
  728. flex-direction: column;
  729. align-items: center;
  730. justify-content: space-between;
  731. padding: 24rpx 0 16rpx 0;
  732. box-sizing: border-box;
  733. margin-left: 16rpx;
  734. }
  735. .order-info-top {
  736. display: flex;
  737. flex-direction: column;
  738. align-items: center;
  739. margin-bottom: 8rpx;
  740. }
  741. .order-info-count {
  742. font-size: 32rpx;
  743. color: #222;
  744. font-weight: bold;
  745. margin-bottom: 4rpx;
  746. }
  747. .order-info-price {
  748. font-size: 22rpx;
  749. color: #999;
  750. }
  751. .order-info-estimate {
  752. background: linear-gradient(90deg, #ffd01e 0%, #ff8917 100%);
  753. color: #fff;
  754. font-size: 24rpx;
  755. font-weight: bold;
  756. border-radius: 0 0 16rpx 16rpx;
  757. padding: 12rpx 0;
  758. width: 100%;
  759. text-align: center;
  760. margin-top: 8rpx;
  761. box-shadow: 0 2rpx 8rpx rgba(255, 156, 0, 0.08);
  762. }
  763. }
  764. .order-footer {
  765. display: flex;
  766. align-items: center;
  767. padding: 24rpx;
  768. border-top: 1rpx solid #f5f5f5;
  769. background: #fafafa;
  770. border-radius: 12rpx;
  771. margin: 0 -24rpx -24rpx;
  772. .courier-avatar {
  773. width: 80rpx;
  774. height: 80rpx;
  775. border-radius: 12rpx;
  776. margin-right: 20rpx;
  777. background: #fff;
  778. }
  779. .delivery-info {
  780. flex: 1;
  781. display: flex;
  782. flex-direction: column;
  783. .status {
  784. font-size: 28rpx;
  785. color: #333;
  786. margin-bottom: 8rpx;
  787. font-weight: bold;
  788. }
  789. .time {
  790. font-size: 26rpx;
  791. color: #999;
  792. }
  793. }
  794. }
  795. }
  796. }
  797. .function-list {
  798. margin: 20rpx 30rpx;
  799. background: #fff;
  800. border-radius: 20rpx;
  801. padding: 0 30rpx;
  802. .function-item {
  803. display: flex;
  804. justify-content: space-between;
  805. align-items: center;
  806. padding: 30rpx 0;
  807. border-bottom: 1rpx solid #f5f5f5;
  808. &:last-child {
  809. border-bottom: none;
  810. }
  811. .item-left {
  812. display: flex;
  813. align-items: center;
  814. .icon {
  815. width: 40rpx;
  816. height: 40rpx;
  817. margin-right: 16rpx;
  818. }
  819. text {
  820. font-size: 28rpx;
  821. color: #333;
  822. }
  823. }
  824. .arrow {
  825. color: #999;
  826. font-size: 24rpx;
  827. }
  828. }
  829. }
  830. .tab-bar {
  831. position: fixed;
  832. bottom: 0;
  833. left: 0;
  834. right: 0;
  835. height: 100rpx;
  836. background: #fff;
  837. display: flex;
  838. padding-bottom: env(safe-area-inset-bottom);
  839. border-top: 1rpx solid #f5f5f5;
  840. .tab-item {
  841. flex: 1;
  842. display: flex;
  843. flex-direction: column;
  844. align-items: center;
  845. justify-content: center;
  846. padding: 10rpx 0;
  847. image {
  848. width: 48rpx;
  849. height: 48rpx;
  850. margin-bottom: 6rpx;
  851. }
  852. text {
  853. font-size: 20rpx;
  854. color: #999;
  855. }
  856. &.active {
  857. text {
  858. color: #ff6b35;
  859. }
  860. }
  861. }
  862. }
  863. .user-cards {
  864. margin: -50rpx 30rpx 0;
  865. background: #fff;
  866. border-radius: 24rpx;
  867. padding: 30rpx;
  868. position: relative;
  869. z-index: 2;
  870. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  871. .user-info {
  872. display: flex;
  873. align-items: center;
  874. margin-bottom: 40rpx;
  875. .avatars {
  876. width: 110rpx;
  877. height: 110rpx;
  878. border-radius: 50%;
  879. margin-right: 24rpx;
  880. }
  881. }
  882. .info {
  883. .name {
  884. font-size: 34rpx;
  885. font-weight: 600;
  886. color: #222;
  887. margin-bottom: 12rpx;
  888. display: block;
  889. }
  890. }
  891. }
  892. .btns {
  893. width: 100%;
  894. margin: 0 auto;
  895. margin-top: 30%;
  896. display: flex;
  897. flex-direction: column;
  898. justify-content: center;
  899. align-items: center;
  900. .uv-button,
  901. .btn {
  902. width: 100%;
  903. height: 100rpx;
  904. background: linear-gradient(90deg, #FFD36D 0%, #FFA800 100%);
  905. color: #fff;
  906. font-size: 36rpx;
  907. border-radius: 50rpx;
  908. font-weight: bold;
  909. display: flex;
  910. align-items: center;
  911. justify-content: center;
  912. box-shadow: 0 4rpx 16rpx rgba(255, 168, 0, 0.08);
  913. border: none;
  914. margin: 0 auto;
  915. }
  916. text {
  917. margin-top: 20rpx;
  918. font-family: PingFang SC;
  919. font-weight: 400;
  920. font-size: 13px;
  921. line-height: 100%;
  922. letter-spacing: 0%;
  923. text-align: center;
  924. color: #a3a3a3;
  925. }
  926. }
  927. .share-commission-card {
  928. width: 90%;
  929. margin: 32rpx auto 24rpx auto;
  930. height: 90rpx;
  931. background: linear-gradient(90deg, #ffd01e 0%, #ff8917 100%);
  932. border-radius: 24rpx;
  933. display: flex;
  934. align-items: center;
  935. justify-content: center;
  936. box-shadow: 0 4rpx 16rpx rgba(255, 156, 0, 0.08);
  937. cursor: pointer;
  938. }
  939. .share-commission-text {
  940. color: #fff;
  941. font-size: 32rpx;
  942. font-weight: bold;
  943. letter-spacing: 2rpx;
  944. }
  945. .manage-list {
  946. margin-bottom: 20rpx;
  947. }
  948. </style>