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

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