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

1010 lines
24 KiB

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