爱简收旧衣按件回收前端代码仓库
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.

994 lines
30 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
1 month 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">{{ 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. if (this.userInfo.isUser == 'Y') return this.userInfo.isTuiTypeTitle
  360. return '普通用户'
  361. }
  362. },
  363. onLoad() {
  364. // 检查App数据是否已经准备好
  365. if (!getApp().globalData.isAppDataReady) {
  366. // 显示加载状态
  367. uni.showLoading({
  368. title: '加载中...',
  369. mask: true
  370. })
  371. // 监听App数据准备完成事件
  372. uni.$on('appDataReady', () => {
  373. uni.hideLoading()
  374. this.initializePageData()
  375. })
  376. } else {
  377. // App数据已经准备好,直接初始化页面数据
  378. this.initializePageData()
  379. }
  380. },
  381. onShow() {
  382. this.fetchUserInfo()
  383. this.getCumulativeRecoveryCount()
  384. },
  385. onPullDownRefresh() {
  386. this.fetchUserInfo()
  387. this.getCumulativeRecoveryCount()
  388. setTimeout(() => {
  389. uni.stopPullDownRefresh()
  390. uni.showToast({
  391. title: '刷新成功',
  392. icon: 'success',
  393. duration: 2000
  394. })
  395. }, 1000)
  396. },
  397. onUnload() {
  398. uni.$off('bannerListUpdated')
  399. },
  400. }
  401. </script>
  402. <style lang="scss" scoped>
  403. .container {
  404. min-height: 100vh;
  405. background: #f8f8f8;
  406. padding-bottom: 120rpx;
  407. }
  408. .banner {
  409. height: 320rpx;
  410. background: #ff6b35;
  411. position: relative;
  412. overflow: hidden;
  413. border-radius: 0 0 30rpx 30rpx;
  414. .banner-title {
  415. position: absolute;
  416. top: 30%;
  417. left: 20%;
  418. color: #fff;
  419. font-family: DingTalk JinBuTi;
  420. font-weight: 400;
  421. font-style: italic;
  422. font-size: 30px;
  423. line-height: 100%;
  424. letter-spacing: 0%;
  425. vertical-align: bottom;
  426. z-index: 2;
  427. }
  428. .banner-bg {
  429. position: absolute;
  430. width: 100%;
  431. height: 100%;
  432. object-fit: cover;
  433. }
  434. }
  435. .user-card {
  436. margin: -50rpx 30rpx 0;
  437. background: #fff;
  438. border-radius: 24rpx;
  439. padding: 30rpx;
  440. position: relative;
  441. z-index: 2;
  442. // box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  443. .user-info {
  444. display: flex;
  445. align-items: center;
  446. margin-bottom: 40rpx;
  447. .avatar-badge-box {
  448. position: relative;
  449. width: 110rpx;
  450. height: 110rpx;
  451. border-radius: 12rpx;
  452. overflow: hidden;
  453. background: #fff;
  454. flex-shrink: 0;
  455. margin-right: 24rpx;
  456. display: flex;
  457. align-items: flex-end;
  458. justify-content: center;
  459. }
  460. .avatar {
  461. width: 100%;
  462. height: 100%;
  463. border-radius: 12rpx;
  464. display: block;
  465. }
  466. .avatar-badge {
  467. position: absolute;
  468. left: 0;
  469. bottom: 0;
  470. width: 100%;
  471. height: 32rpx;
  472. line-height: 32rpx;
  473. background: rgba(238, 238, 238, 0.95);
  474. color: #999;
  475. font-size: 24rpx;
  476. text-align: center;
  477. border-bottom-left-radius: 12rpx;
  478. border-bottom-right-radius: 12rpx;
  479. font-weight: 400;
  480. letter-spacing: 2rpx;
  481. z-index: 2;
  482. }
  483. .info {
  484. .name {
  485. font-size: 34rpx;
  486. font-weight: 600;
  487. color: #222;
  488. margin-bottom: 12rpx;
  489. display: block;
  490. }
  491. .id {
  492. font-size: 26rpx;
  493. color: #999;
  494. display: flex;
  495. align-items: center;
  496. &::before {
  497. // content: 'ID: ';
  498. color: #999;
  499. margin-right: 4rpx;
  500. }
  501. }
  502. }
  503. }
  504. .wallet-info {
  505. display: flex;
  506. padding: 30rpx;
  507. background: #fff8ea;
  508. border-radius: 16rpx;
  509. position: relative;
  510. &::after {
  511. content: '';
  512. position: absolute;
  513. top: 50%;
  514. left: 50%;
  515. transform: translate(-50%, -50%);
  516. width: 1rpx;
  517. height: 50%;
  518. background: #FFE4D9;
  519. }
  520. .balance {
  521. flex: 1;
  522. padding-right: 30rpx;
  523. .label {
  524. font-size: 26rpx;
  525. color: #999;
  526. margin-bottom: 12rpx;
  527. display: block;
  528. }
  529. .amount {
  530. display: flex;
  531. align-items: baseline;
  532. margin-bottom: 20rpx;
  533. .symbol {
  534. font-size: 30rpx;
  535. color: #FF5B05;
  536. font-weight: normal;
  537. margin-right: 4rpx;
  538. }
  539. .value {
  540. font-size: 46rpx;
  541. font-weight: 600;
  542. color: #FF5B05;
  543. line-height: 1;
  544. }
  545. }
  546. .withdraw-btn {
  547. display: inline-flex;
  548. align-items: center;
  549. padding: 8rpx 16rpx;
  550. background: #fff0d2;
  551. border: 1rpx solid rgba(255, 91, 5, 0.2);
  552. border-radius: 13rpx;
  553. color: #FF5B05;
  554. font-size: 24rpx;
  555. .arrow {
  556. margin-left: 6rpx;
  557. font-family: "PingFang SC";
  558. }
  559. }
  560. }
  561. .recycle-count {
  562. flex: 1;
  563. padding-left: 30rpx;
  564. .label {
  565. font-size: 26rpx;
  566. color: #999;
  567. margin-bottom: 12rpx;
  568. display: block;
  569. }
  570. .count {
  571. display: flex;
  572. align-items: baseline;
  573. .value {
  574. font-size: 46rpx;
  575. font-weight: 600;
  576. color: #222;
  577. line-height: 1;
  578. }
  579. .unit {
  580. font-size: 26rpx;
  581. color: #999;
  582. margin-left: 8rpx;
  583. font-weight: normal;
  584. }
  585. }
  586. }
  587. }
  588. }
  589. .order-section {
  590. margin: 20rpx 30rpx;
  591. background: linear-gradient(to bottom, #fff4e0 0%, #fff 10%);
  592. border-radius: 20rpx;
  593. padding: 20rpx 30rpx;
  594. .section-header {
  595. display: flex;
  596. justify-content: space-between;
  597. align-items: center;
  598. margin-bottom: 30rpx;
  599. .title {
  600. font-size: 34rpx;
  601. font-weight: bold;
  602. color: #333;
  603. }
  604. .view-all {
  605. font-size: 26rpx;
  606. color: #999;
  607. display: flex;
  608. align-items: center;
  609. .arrow {
  610. margin-left: 4rpx;
  611. }
  612. }
  613. }
  614. .order-tabs {
  615. display: flex;
  616. margin-bottom: 30rpx;
  617. background: #f8f8f8;
  618. border-radius: 8rpx;
  619. padding: 4rpx;
  620. .tab-item {
  621. flex: 1;
  622. text-align: center;
  623. padding: 16rpx 0;
  624. position: relative;
  625. color: #666;
  626. font-size: 28rpx;
  627. border-radius: 6rpx;
  628. &.active {
  629. color: #333;
  630. font-weight: bold;
  631. background: #fff;
  632. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.05);
  633. }
  634. }
  635. }
  636. .order-item {
  637. background: #fff;
  638. border-radius: 16rpx;
  639. padding: 24rpx;
  640. border: none;
  641. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02);
  642. .order-header {
  643. margin-bottom: 24rpx;
  644. .order-id {
  645. font-size: 26rpx;
  646. color: #666;
  647. }
  648. }
  649. .order-content {
  650. display: flex;
  651. margin-bottom: 24rpx;
  652. align-items: center;
  653. justify-content: space-between;
  654. position: relative;
  655. &::after {
  656. content: '';
  657. position: absolute;
  658. left: 50%;
  659. top: 50%;
  660. transform: translate(-50%, -50%);
  661. width: 60rpx;
  662. height: 60rpx;
  663. background: #f8f8f8;
  664. border-radius: 50%;
  665. z-index: 1;
  666. }
  667. &::before {
  668. content: '⇌';
  669. position: absolute;
  670. left: 50%;
  671. top: 50%;
  672. transform: translate(-50%, -50%);
  673. color: #999;
  674. font-size: 32rpx;
  675. z-index: 2;
  676. }
  677. .goods-image {
  678. width: 200rpx;
  679. height: 200rpx;
  680. border-radius: 16rpx;
  681. background: #fffbe6;
  682. padding: 20rpx;
  683. box-sizing: border-box;
  684. display: block;
  685. }
  686. .order-info-opt {
  687. width: 200rpx;
  688. min-height: 110rpx;
  689. background: linear-gradient(180deg, #fffbe6 0%, #fff 100%);
  690. border-radius: 16rpx;
  691. display: flex;
  692. flex-direction: column;
  693. align-items: center;
  694. justify-content: space-between;
  695. padding: 24rpx 0 16rpx 0;
  696. box-sizing: border-box;
  697. margin-left: 16rpx;
  698. }
  699. .order-info-top {
  700. display: flex;
  701. flex-direction: column;
  702. align-items: center;
  703. margin-bottom: 8rpx;
  704. }
  705. .order-info-count {
  706. font-size: 32rpx;
  707. color: #222;
  708. font-weight: bold;
  709. margin-bottom: 4rpx;
  710. }
  711. .order-info-price {
  712. font-size: 22rpx;
  713. color: #999;
  714. }
  715. .order-info-estimate {
  716. background: linear-gradient(90deg, #ffd01e 0%, #ff8917 100%);
  717. color: #fff;
  718. font-size: 24rpx;
  719. font-weight: bold;
  720. border-radius: 0 0 16rpx 16rpx;
  721. padding: 12rpx 0;
  722. width: 100%;
  723. text-align: center;
  724. margin-top: 8rpx;
  725. box-shadow: 0 2rpx 8rpx rgba(255, 156, 0, 0.08);
  726. }
  727. }
  728. .order-footer {
  729. display: flex;
  730. align-items: center;
  731. padding: 24rpx;
  732. border-top: 1rpx solid #f5f5f5;
  733. background: #fafafa;
  734. border-radius: 12rpx;
  735. margin: 0 -24rpx -24rpx;
  736. .courier-avatar {
  737. width: 80rpx;
  738. height: 80rpx;
  739. border-radius: 12rpx;
  740. margin-right: 20rpx;
  741. background: #fff;
  742. }
  743. .delivery-info {
  744. flex: 1;
  745. display: flex;
  746. flex-direction: column;
  747. .status {
  748. font-size: 28rpx;
  749. color: #333;
  750. margin-bottom: 8rpx;
  751. font-weight: bold;
  752. }
  753. .time {
  754. font-size: 26rpx;
  755. color: #999;
  756. }
  757. }
  758. }
  759. }
  760. }
  761. .function-list {
  762. margin: 20rpx 30rpx;
  763. background: #fff;
  764. border-radius: 20rpx;
  765. padding: 0 30rpx;
  766. .function-item {
  767. display: flex;
  768. justify-content: space-between;
  769. align-items: center;
  770. padding: 30rpx 0;
  771. border-bottom: 1rpx solid #f5f5f5;
  772. &:last-child {
  773. border-bottom: none;
  774. }
  775. .item-left {
  776. display: flex;
  777. align-items: center;
  778. .icon {
  779. width: 40rpx;
  780. height: 40rpx;
  781. margin-right: 16rpx;
  782. }
  783. text {
  784. font-size: 28rpx;
  785. color: #333;
  786. }
  787. }
  788. .arrow {
  789. color: #999;
  790. font-size: 24rpx;
  791. }
  792. }
  793. }
  794. .tab-bar {
  795. position: fixed;
  796. bottom: 0;
  797. left: 0;
  798. right: 0;
  799. height: 100rpx;
  800. background: #fff;
  801. display: flex;
  802. padding-bottom: env(safe-area-inset-bottom);
  803. border-top: 1rpx solid #f5f5f5;
  804. .tab-item {
  805. flex: 1;
  806. display: flex;
  807. flex-direction: column;
  808. align-items: center;
  809. justify-content: center;
  810. padding: 10rpx 0;
  811. image {
  812. width: 48rpx;
  813. height: 48rpx;
  814. margin-bottom: 6rpx;
  815. }
  816. text {
  817. font-size: 20rpx;
  818. color: #999;
  819. }
  820. &.active {
  821. text {
  822. color: #ff6b35;
  823. }
  824. }
  825. }
  826. }
  827. .user-cards {
  828. margin: -50rpx 30rpx 0;
  829. background: #fff;
  830. border-radius: 24rpx;
  831. padding: 30rpx;
  832. position: relative;
  833. z-index: 2;
  834. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  835. .user-info {
  836. display: flex;
  837. align-items: center;
  838. margin-bottom: 40rpx;
  839. .avatars {
  840. width: 110rpx;
  841. height: 110rpx;
  842. border-radius: 50%;
  843. margin-right: 24rpx;
  844. }
  845. }
  846. .info {
  847. .name {
  848. font-size: 34rpx;
  849. font-weight: 600;
  850. color: #222;
  851. margin-bottom: 12rpx;
  852. display: block;
  853. }
  854. }
  855. }
  856. .btns {
  857. width: 100%;
  858. margin: 0 auto;
  859. margin-top: 30%;
  860. display: flex;
  861. flex-direction: column;
  862. justify-content: center;
  863. align-items: center;
  864. .uv-button,
  865. .btn {
  866. width: 100%;
  867. height: 100rpx;
  868. background: linear-gradient(90deg, #FFD36D 0%, #FFA800 100%);
  869. color: #fff;
  870. font-size: 36rpx;
  871. border-radius: 50rpx;
  872. font-weight: bold;
  873. display: flex;
  874. align-items: center;
  875. justify-content: center;
  876. box-shadow: 0 4rpx 16rpx rgba(255, 168, 0, 0.08);
  877. border: none;
  878. margin: 0 auto;
  879. }
  880. text {
  881. margin-top: 20rpx;
  882. font-family: PingFang SC;
  883. font-weight: 400;
  884. font-size: 13px;
  885. line-height: 100%;
  886. letter-spacing: 0%;
  887. text-align: center;
  888. color: #a3a3a3;
  889. }
  890. }
  891. .share-commission-card {
  892. width: 90%;
  893. margin: 32rpx auto 24rpx auto;
  894. height: 90rpx;
  895. background: linear-gradient(90deg, #ffd01e 0%, #ff8917 100%);
  896. border-radius: 24rpx;
  897. display: flex;
  898. align-items: center;
  899. justify-content: center;
  900. box-shadow: 0 4rpx 16rpx rgba(255, 156, 0, 0.08);
  901. cursor: pointer;
  902. }
  903. .share-commission-text {
  904. color: #fff;
  905. font-size: 32rpx;
  906. font-weight: bold;
  907. letter-spacing: 2rpx;
  908. }
  909. .manage-list {
  910. margin-bottom: 20rpx;
  911. }
  912. </style>