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

986 lines
31 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 weeks ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
4 weeks ago
1 month ago
1 month ago
2 weeks ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="order-detail-container">
  3. <!-- 顶部导航栏 -->
  4. <view class="nav-bar">
  5. <view class="back" @tap="goBack">
  6. <uni-icons type="left" size="20" color="#222" />
  7. </view>
  8. <text class="nav-title">订单详情</text>
  9. <view class="nav-icons">
  10. <!-- <uni-icons type="more" size="24" color="#222" /> -->
  11. </view>
  12. </view>
  13. <view class="main-content" >
  14. <!-- 回收信息卡片高保真参考流程卡片 -->
  15. <view class="info-card process-card">
  16. <view v-if="order.cancelReason" class="cancel-reason">{{ order.cancelReason }}</view>
  17. <view class="info-card-header">
  18. <view class="info-title-wrap">
  19. <text class="info-title">回收信息</text>
  20. <view v-if="order.statusText === '不包邮'" class="tag-nobaoyou">不包邮</view>
  21. </view>
  22. <view class="status-tag" :class="order.statusClass" style="margin-left:auto;">{{ order.statusLabel }}</view>
  23. </view>
  24. <!-- 步骤条横向卡片式 -->
  25. <view class="steps-bar">
  26. <view v-for="(step, idx) in steps" :key="step.text" :class="['step-item', {active: idx === currentStep}]">
  27. <image :src="step.icon" class="step-icon" />
  28. <view class="step-label" :class="{active: idx === currentStep}">
  29. <text class="step-text">{{ step.text }}</text>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 订单基础信息左对齐分隔线按钮箭头标签等细节 -->
  34. <view class="base-info">
  35. <view v-for="(item, i) in baseInfo" :key="item.label" class="base-info-row" :class="{'user-stat-trigger': item.label === '用户名'}" @tap="item.label === '用户名' ? onUserStatClick() : null">
  36. <view class="base-label-wrap">
  37. <text class="base-label">{{ item.label }}</text>
  38. </view>
  39. <view class="base-value-wrap">
  40. <text class="base-value">{{ item.value }}</text>
  41. <view class="base-actions">
  42. <text v-if="item.viewLogistics" class="view-logistics-btn" @tap="viewLogistics(item.value, item.expressCompany)">查看物流</text>
  43. <text v-if="item.copy" class="copy-btn" @tap="copyText(item.value)">复制</text>
  44. </view>
  45. <uni-icons v-if="item.arrow" type="right" size="18" color="#bbb" />
  46. </view>
  47. <view v-if="i < baseInfo.length-1" class="divider"></view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 用户统计弹窗 -->
  52. <view v-if="showUserStatModal" class="user-stat-modal-mask">
  53. <view class="user-stat-modal-box">
  54. <view class="user-stat-modal-title">{{ userStatData.name }}</view>
  55. <view class="user-stat-modal-row">
  56. <text class="user-stat-label">回收总次数</text>
  57. <text class="user-stat-value">{{ userStatData.unit_num }}</text>
  58. </view>
  59. <view class="user-stat-modal-divider"></view>
  60. <view class="user-stat-modal-row">
  61. <text class="user-stat-label">总件数</text>
  62. <text class="user-stat-value">{{ userStatData.sum }}</text>
  63. </view>
  64. <view class="user-stat-modal-divider"></view>
  65. <view class="user-stat-modal-row">
  66. <text class="user-stat-label">回收总额</text>
  67. <text class="user-stat-value">{{ userStatData.order_money }}</text>
  68. </view>
  69. <button class="user-stat-modal-btn" @tap="showUserStatModal = false">我了解了</button>
  70. </view>
  71. </view>
  72. <!-- 订单明细卡片开始质检状态 -->
  73. <view v-if="order.status === 2 && order.state === 1" class="info-card detail-card custom-inspect-card">
  74. <view class="custom-header-bg">
  75. <view class="custom-card-title">订单详情</view>
  76. </view>
  77. <view class="custom-detail-content">
  78. <!-- 只显示商品明细 -->
  79. <view v-for="item in order.commonOrderList" :key="item.id" class="custom-goods-row">
  80. <image :src="item.image" class="custom-goods-img" />
  81. <view class="custom-goods-info">
  82. <text class="custom-goods-name">{{ item.title }}</text>
  83. <text class="custom-goods-desc">{{ item.pinName }}</text>
  84. <text class="custom-goods-desc">{{ item.details }}</text>
  85. <view class="custom-goods-meta">
  86. <text class="custom-goods-price" v-if="shouldShowSinglePrice(item.estimatedPrice)">¥{{ item.onePrice }}<text class="custom-goods-unit"> /{{item.unit}}</text></text>
  87. <text class="custom-goods-price" v-else>¥{{ getSinglePriceRange(item.estimatedPrice, item.num) }}<text class="custom-goods-unit"> /{{item.unit}}</text></text>
  88. <text class="custom-goods-count">x{{ item.num }}</text>
  89. </view>
  90. </view>
  91. <text class="custom-goods-total" v-if="shouldShowSinglePrice(item.estimatedPrice)">¥{{ parseFloat(item.estimatedPrice.split('-')[0]).toFixed(2) }}</text>
  92. <text class="custom-goods-total" v-else>¥{{ item.estimatedPrice.replace('-', '~') }}</text>
  93. </view>
  94. </view>
  95. </view>
  96. <!-- 现金打款时展示完整订单详情卡片 -->
  97. <view v-else-if="order.status === 3" class="info-card detail-card custom-inspect-card">
  98. <view class="custom-header-bg">
  99. <view class="custom-card-title">订单详情</view>
  100. </view>
  101. <view class="custom-detail-content">
  102. <view class="custom-detail-row">
  103. <text class="custom-detail-label" >订单编号</text>
  104. <text class="custom-detail-value">{{ order.ordeNo || order.id }}</text>
  105. </view>
  106. <view class="custom-detail-row">
  107. <text class="custom-detail-label">合格结算</text>
  108. <text class="custom-detail-value highlight">¥ {{ order.price || order.estimate }}</text>
  109. </view>
  110. <view class="custom-detail-row">
  111. <text class="custom-detail-label">运费扣除</text>
  112. <text class="custom-detail-value">¥ 0</text>
  113. </view>
  114. <view class="custom-detail-row total-row">
  115. <text class="custom-detail-label">结算金额</text>
  116. <text class="custom-detail-value total highlight">¥ {{ order.price || order.estimate }}</text>
  117. </view>
  118. <view class="custom-divider"></view>
  119. <!-- 商品明细 -->
  120. <view v-for="item in order.commonOrderList" :key="item.id" class="custom-goods-row">
  121. <image :src="item.image" class="custom-goods-img" />
  122. <view class="custom-goods-info">
  123. <text class="custom-goods-name">{{ item.title }}</text>
  124. <text class="custom-goods-desc">{{ item.pinName }}</text>
  125. <text class="custom-goods-desc">{{ item.details }}</text>
  126. <view class="custom-goods-meta">
  127. <text class="custom-goods-price" v-if="shouldShowSinglePrice(item.estimatedPrice)">¥{{ item.onePrice }}<text class="custom-goods-unit"> /{{item.unit}}</text></text>
  128. <text class="custom-goods-price" v-else>¥{{ getSinglePriceRange(item.estimatedPrice, item.num) }}<text class="custom-goods-unit"> /{{item.unit}}</text></text>
  129. <text class="custom-goods-count">x{{ item.num }}</text>
  130. </view>
  131. </view>
  132. <text class="custom-goods-total" v-if="shouldShowSinglePrice(item.estimatedPrice)">¥{{ parseFloat(item.estimatedPrice.split('-')[0]).toFixed(2) }}</text>
  133. <text class="custom-goods-total" v-else>¥{{ item.estimatedPrice.replace('-', '~') }}</text>
  134. </view>
  135. </view>
  136. </view>
  137. <!-- 质检结果卡片 -->
  138. <view v-if="order.status === 3" class="inspect-card">
  139. <view class="inspect-header">
  140. <text class="inspect-title">质检结果</text>
  141. </view>
  142. <view class="inspect-content">
  143. <view v-for="(item, i) in qcInfo" :key="item.label" class="inspect-row">
  144. <text class="inspect-label">{{ item.label }}</text>
  145. <text class="inspect-value">{{ item.value }}</text>
  146. <view v-if="i < qcInfo.length-1" class="inspect-divider"></view>
  147. </view>
  148. <view class="inspect-btn" @tap="goToInspection">点此查看质检报告详情</view>
  149. </view>
  150. </view>
  151. <!-- 已预约状态下订单详情卡片 -->
  152. <view v-else-if="order.status === 1||order.status === 0" class="info-card detail-card custom-inspect-card">
  153. <view class="custom-header-bg">
  154. <view class="custom-card-title">订单详情</view>
  155. </view>
  156. <view class="custom-detail-content">
  157. <view class="custom-detail-row">
  158. <text class="custom-detail-label">预估回收</text>
  159. <text class="custom-detail-value highlight">¥ {{ order.estimatedPrice }}</text>
  160. </view>
  161. <view class="custom-divider"></view>
  162. <!-- 商品明细 -->
  163. <view v-for="item in order.commonOrderList" :key="item.id" class="custom-goods-row">
  164. <image :src="item.image" class="custom-goods-img" />
  165. <view class="custom-goods-info">
  166. <text class="custom-goods-name">{{ item.title }}</text>
  167. <text class="custom-goods-desc">{{ item.pinName }}</text>
  168. <text class="custom-goods-desc">{{ item.details }}</text>
  169. <view class="custom-goods-meta">
  170. <text class="custom-goods-price" v-if="shouldShowSinglePrice(item.estimatedPrice)">¥{{ item.onePrice }}<text class="custom-goods-unit"> /{{item.unit}}</text></text>
  171. <text class="custom-goods-price" v-else>¥{{ getSinglePriceRange(item.estimatedPrice, item.num) }}<text class="custom-goods-unit"> /{{item.unit}}</text></text>
  172. <text class="custom-goods-count">x{{ item.num }}</text>
  173. </view>
  174. </view>
  175. <text class="custom-goods-total" v-if="shouldShowSinglePrice(item.estimatedPrice)">¥{{ parseFloat(item.estimatedPrice.split('-')[0]).toFixed(2) }}</text>
  176. <text class="custom-goods-total" v-else>¥{{ item.estimatedPrice.replace('-', '~') }}</text>
  177. </view>
  178. </view>
  179. </view>
  180. </view>
  181. <!-- 底部操作按钮 -->
  182. <view v-if="order.status === 0" class="footer-btns">
  183. <button class="btn-outline" @tap="rejectOrderAction">驳回</button>
  184. <button class="btn-main" @tap="passOrderAction">通过</button>
  185. </view>
  186. <view v-else-if="order.status === 2 && order.state === 1" class="footer-btns">
  187. <button class="btn-main" @tap="goToInspect">开始质检</button>
  188. </view>
  189. </view>
  190. </template>
  191. <script>
  192. import pullRefreshMixin from '../mixins/pullRefreshMixin.js'
  193. export default {
  194. mixins: [pullRefreshMixin],
  195. data() {
  196. return {
  197. statusBarHeight: 0,
  198. order: {},
  199. // 固定4步流程
  200. steps: [],
  201. currentStep: 0,
  202. baseInfo: [],
  203. qcInfo: [],
  204. showUserStatModal: false,
  205. userStatData: { name: '', unit_num: '', sum: '', order_money: '' }
  206. }
  207. },
  208. onLoad(options) {
  209. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
  210. this.getAreaList();
  211. if (options && options.id) {
  212. this.fetchOrderDetail(options.id)
  213. }
  214. },
  215. onShow() {
  216. this.getAreaList()
  217. },
  218. methods: {
  219. async fetchOrderDetail(orderId) {
  220. this.$api('getOrderDetail', { orderId }, res => {
  221. if (res && res.code === 200 && res.result) {
  222. const data = res.result
  223. this.order = data
  224. // 步骤条高亮
  225. this.currentStep = this.getCurrentStep(data.status, data.state)
  226. // 基础信息
  227. this.baseInfo = [
  228. { label: '订单编号', value: data.ordeNo || data.id, copy: true },
  229. ...(data.wliuNo && data.wliu ? [{ label: '快递单号', value: data.wliuNo, copy: true, viewLogistics: true, expressCompany: data.wliu }] : []),
  230. { label: '用户名', value: data.name, arrow: true },
  231. { label: '取件地址', value: (data.address || '') + (data.addressDetail || '') },
  232. { label: '预约时间', value: data.goTime || data.createTime }
  233. ]
  234. // 质检信息(如有)
  235. this.qcInfo = [
  236. { label: '质检数量', value: data.num ? data.qualifiedNum + data.noQualifiedNum + data.unrecyclable + ' 件' : '' },
  237. { label: '质检合格', value: data.qualifiedNum ? data.qualifiedNum + ' 件' : '' },
  238. { label: '质量问题', value: data.noQualifiedNum ? data.noQualifiedNum + ' 件' : '' },
  239. { label: '不可回收', value: data.unrecyclable ? data.unrecyclable + ' 件' : '' }
  240. ]
  241. }
  242. })
  243. },
  244. getCurrentStep(status, state) {
  245. // status: 0=在线预约, 1=快递上门, 2=透明质检, 3=现金打款
  246. // state: 0=待取件, 1=已取件, 2=已完成, 3=已取消
  247. if (state == 3) return -1; // 已取消,不高亮任何步骤
  248. if (status == 0) return 0; // 在线预约
  249. if (status == 1) return 1; // 快递上门
  250. if (status == 2) return 2; // 透明质检
  251. if (status == 3) return 3; // 现金打款
  252. return 0;
  253. },
  254. async onRefresh() {
  255. if (this.order.id) await this.fetchOrderDetail(this.order.id)
  256. },
  257. goBack() {
  258. uni.navigateBack()
  259. },
  260. copyText(text) {
  261. uni.setClipboardData({ data: text })
  262. },
  263. viewLogistics(expressNumber, expressCompany) {
  264. if (!expressNumber) {
  265. uni.showToast({ title: '暂无快递单号', icon: 'none' });
  266. return;
  267. }
  268. uni.navigateTo({
  269. url: `/pages/subcomponent/logistics?wliuNo=${expressNumber}&expressCompany=${expressCompany || ''}`
  270. });
  271. },
  272. maskPhone(phone) {
  273. if (!phone) return '';
  274. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  275. },
  276. goToInspect() {
  277. const orderData = encodeURIComponent(JSON.stringify(this.order))
  278. uni.navigateTo({
  279. url: `/pages/manager/inspect?orderData=${orderData}`
  280. })
  281. },
  282. async onUserStatClick() {
  283. if (!this.order || !this.order.userId) return;
  284. this.$api('getUserOrderNum', { userId: this.order.userId }, res => {
  285. if (res && res.code === 200 && res.result) {
  286. this.userStatData = {
  287. name: this.order.name,
  288. unit_num: res.result.unit_num,
  289. sum: res.result.sum,
  290. order_money: res.result.order_money
  291. }
  292. this.showUserStatModal = true
  293. }
  294. })
  295. },
  296. getAreaList() {
  297. this.$api('getAreaList', {}, (res) => {
  298. console.log(res,'getAreaList');
  299. if (res.code == 200 && Array.isArray(res.result)) {
  300. // 按sort升序排序
  301. const sorted = res.result.slice().sort((a, b) => a.sort - b.sort)
  302. this.steps = sorted.map(item => ({
  303. // id: item.id,
  304. icon: item.image,
  305. text: item.title
  306. }))
  307. }
  308. })
  309. },
  310. passOrderAction() {
  311. if (!this.order.id) return;
  312. this.$api('passOrder', { orderId: this.order.id }, res => {
  313. if (res && res.code === 200) {
  314. uni.showToast({ title: '操作成功', icon: 'success' })
  315. this.fetchOrderDetail(this.order.id)
  316. } else {
  317. uni.showToast({ title: res.msg || '操作失败', icon: 'none' })
  318. }
  319. })
  320. },
  321. rejectOrderAction() {
  322. if (!this.order.id) return;
  323. this.$api('rejectOrder', { orderId: this.order.id }, res => {
  324. if (res && res.code === 200) {
  325. uni.showToast({ title: '操作成功', icon: 'success' })
  326. this.fetchOrderDetail(this.order.id)
  327. } else {
  328. uni.showToast({ title: res.msg || '操作失败', icon: 'none' })
  329. }
  330. })
  331. },
  332. goToInspection() {
  333. if (!this.order.id) return;
  334. uni.navigateTo({
  335. url: `/pages/subcomponent/inspection-report?orderId=${this.order.id}`
  336. })
  337. },
  338. // 判断是否显示单价格(根据estimatedPrice格式判断)
  339. shouldShowSinglePrice(estimatedPrice) {
  340. if (!estimatedPrice || typeof estimatedPrice !== 'string') return true;
  341. // 解析estimatedPrice,格式如"25-0"或"25-50"
  342. const parts = estimatedPrice.split('-');
  343. if (parts.length !== 2) return true;
  344. const maxPrice = parseFloat(parts[1]);
  345. return maxPrice === 0;
  346. },
  347. // 从总价反推单件价格区间
  348. getSinglePriceRange(estimatedPrice, quantity) {
  349. if (!estimatedPrice || typeof estimatedPrice !== 'string' || !quantity) return '';
  350. // 解析estimatedPrice,格式如"25-50"
  351. const parts = estimatedPrice.split('-');
  352. if (parts.length !== 2) return estimatedPrice;
  353. const minTotal = parseFloat(parts[0]);
  354. const maxTotal = parseFloat(parts[1]);
  355. // 反推单件价格
  356. const minPrice = (minTotal / quantity).toFixed(2);
  357. const maxPrice = (maxTotal / quantity).toFixed(2);
  358. return `${minPrice}~${maxPrice}`;
  359. },
  360. }
  361. }
  362. </script>
  363. <style lang="scss" scoped>
  364. $order-card-radius: 32px;
  365. $order-card-padding: 40px 28px;
  366. .order-detail-container {
  367. background: #f8f8f8;
  368. min-height: 100vh;
  369. font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  370. display: flex;
  371. flex-direction: column;
  372. align-items: center;
  373. }
  374. .nav-bar {
  375. display: flex;
  376. align-items: center;
  377. height: calc(150rpx + var(--status-bar-height));
  378. padding: 0 32rpx;
  379. padding-top: var(--status-bar-height);
  380. background: #fff;
  381. position: fixed;
  382. top: 0;
  383. left: 0;
  384. right: 0;
  385. z-index: 999;
  386. box-sizing: border-box;
  387. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.03);
  388. .back {
  389. padding: 20rpx;
  390. margin-left: -20rpx;
  391. }
  392. .nav-title {
  393. flex: 1;
  394. text-align: center;
  395. font-size: 32rpx;
  396. font-weight: 500;
  397. color: #222;
  398. }
  399. .nav-icons {
  400. display: flex;
  401. align-items: center;
  402. gap: 30px;
  403. }
  404. }
  405. .main-content {
  406. margin-top: calc(200rpx + var(--status-bar-height));
  407. width: 100vw;
  408. min-width: 0;
  409. box-sizing: border-box;
  410. padding: 0 16px 60px 16px;
  411. display: flex;
  412. flex-direction: column;
  413. align-items: center;
  414. }
  415. .info-card {
  416. width: 100%;
  417. max-width: 375px;
  418. min-width: 0;
  419. box-sizing: border-box;
  420. margin: 0 auto 28px auto;
  421. padding: 16px 8px;
  422. background: #fff;
  423. border-radius: 20px;
  424. box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  425. // color: blue;
  426. &.process-card {
  427. position: relative;
  428. .status-tag {
  429. position: absolute;
  430. right: 18px;
  431. top: 18px;
  432. font-size: 13px;
  433. border-radius: 12px;
  434. padding: 2px 10px;
  435. font-weight: 500;
  436. background: #e6f9e6;
  437. color: #1ecb1e;
  438. height: 22px;
  439. line-height: 18px;
  440. display: flex;
  441. align-items: center;
  442. &.orange {
  443. background: #fff7e6;
  444. color: #ffb400;
  445. font-size: 14px;
  446. border-radius: 12px;
  447. padding: 2px 14px;
  448. font-weight: 400;
  449. height: 22px;
  450. display: flex;
  451. align-items: center;
  452. }
  453. &.gray {
  454. background: #f5f5f5;
  455. color: #444;
  456. font-size: 14px;
  457. border-radius: 12px;
  458. padding: 2px 14px;
  459. font-weight: 400;
  460. height: 22px;
  461. display: flex;
  462. align-items: center;
  463. }
  464. &.blue {
  465. background: #eaf6ff;
  466. color: #2a9cfb;
  467. font-size: 14px;
  468. border-radius: 12px;
  469. padding: 2px 14px;
  470. font-weight: 400;
  471. height: 22px;
  472. display: flex;
  473. align-items: center;
  474. }
  475. }
  476. .status-tag.red {
  477. background: #fff0f0;
  478. color: #ff4d4f;
  479. }
  480. }
  481. .info-card-header {
  482. display: flex; align-items: center; justify-content: flex-start;
  483. .info-title-wrap {
  484. display: flex;
  485. align-items: center;
  486. .info-title { font-size: 18px; font-weight: bold; color: #222; }
  487. .tag-nobaoyou {
  488. margin-left: 8px;
  489. background: #fff0f0;
  490. color: #ff4d4f;
  491. font-size: 14px;
  492. border-radius: 12px;
  493. padding: 2px 14px;
  494. font-weight: 400;
  495. height: 22px;
  496. display: flex;
  497. align-items: center;
  498. }
  499. }
  500. .status-tag { margin-left: auto; }
  501. }
  502. .steps-bar {
  503. display: flex;
  504. justify-content: space-between;
  505. align-items: flex-start;
  506. margin: 24px 0 24px 0;
  507. gap: 14px;
  508. .step-item {
  509. background: #fff8ea;
  510. border-radius: 16px;
  511. width: 76px;
  512. height: 76px;
  513. display: flex;
  514. flex-direction: column;
  515. align-items: center;
  516. box-shadow: 0 2px 8px rgba(255, 156, 0, 0.04);
  517. overflow: hidden;
  518. position: relative;
  519. transition: all 0.3s ease;
  520. .step-icon {
  521. width: 44px;
  522. height: 44px;
  523. margin: 6px 0 0 0;
  524. transition: transform 0.3s ease;
  525. }
  526. .step-label {
  527. width: 100%;
  528. height: 28px;
  529. background: transparent;
  530. position: absolute;
  531. left: 0;
  532. bottom: 0;
  533. border-radius: 0 0 12px 12px;
  534. display: flex;
  535. align-items: center;
  536. justify-content: center;
  537. transition: all 0.3s ease;
  538. overflow: hidden;
  539. line-height: 1;
  540. .step-num, .step-text {
  541. font-size: 11px;
  542. color: #9b9b9b;
  543. font-weight: 600;
  544. line-height: 1;
  545. vertical-align: middle;
  546. transition: color 0.3s ease;
  547. }
  548. .step-num {
  549. margin-right: 2px;
  550. }
  551. }
  552. &.active {
  553. transform: translateY(-2px);
  554. box-shadow: 0 4px 12px rgba(255, 156, 0, 0.08);
  555. .step-icon {
  556. transform: scale(1.05);
  557. }
  558. .step-label {
  559. background: linear-gradient(90deg, #ffd01e 0%, #ff8917 100%);
  560. }
  561. .step-num, .step-text {
  562. color: #fff;
  563. font-weight: bold;
  564. }
  565. }
  566. &:not(.active):hover {
  567. transform: translateY(-1px);
  568. box-shadow: 0 2px 12px rgba(255, 156, 0, 0.06);
  569. }
  570. }
  571. }
  572. .base-info {
  573. margin-top: 18px;
  574. .base-info-row {
  575. display: flex;
  576. align-items: flex-start;
  577. padding: 0 0 0 0;
  578. position: relative;
  579. min-height: 36px;
  580. justify-content: space-between;
  581. align-items: center;
  582. .base-label-wrap { min-width: 80px; text-align: left; color: #8b8b8b; font-size: 13px;}
  583. .base-value-wrap { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
  584. .base-value { color: #222; font-size: 15px; font-weight: 600; word-break: break-all; text-align: right; }
  585. .base-actions { display: flex; align-items: center; gap: 8px; }
  586. .view-logistics-btn { color: #2a9cfb; font-size: 13px; font-weight: 400; padding: 1px 6px; border-radius: 6px; transition: background 0.2s; }
  587. .view-logistics-btn:active { background: #eaf6ff; }
  588. .copy-btn { color: #ffb400; font-size: 13px; font-weight: 400; padding: 1px 6px; border-radius: 6px; transition: background 0.2s; }
  589. .copy-btn:active { background: #fff7e6; }
  590. .divider { position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px; background: #f0f0f0; }
  591. uni-icons { margin-left: 6px; }
  592. }
  593. .base-info-row .base-value-wrap { flex-wrap: wrap; }
  594. .base-info-row .base-value { white-space: pre-line; line-height: 1.5; }
  595. }
  596. &.detail-card {
  597. position: relative;
  598. padding: 0;
  599. background: transparent;
  600. .card-header-bg {
  601. height: 56px;
  602. background: linear-gradient(180deg, #fff7e6 0%, #fff 100%);
  603. border-radius: 20px 20px 0 0;
  604. display: flex;
  605. align-items: flex-end;
  606. padding-left: 20px;
  607. padding-top: 12px;
  608. }
  609. .detail-content {
  610. background: #fff;
  611. border-radius: 0 0 20px 20px;
  612. padding: 20px 16px 16px 16px;
  613. }
  614. .detail-row {
  615. display: flex;
  616. align-items: center;
  617. min-height: 32px;
  618. .detail-label {
  619. color: #bcbcbc;
  620. font-size: 14px;
  621. width: 90px;
  622. flex-shrink: 0;
  623. }
  624. .detail-value {
  625. color: #222;
  626. font-size: 15px;
  627. font-weight: 500;
  628. text-align: left;
  629. margin-left: 0;
  630. flex: 1;
  631. }
  632. &.total-row .detail-value.total {
  633. color: #ffb400;
  634. font-size: 20px;
  635. font-weight: bold;
  636. text-align: right;
  637. flex: unset;
  638. margin-left: auto;
  639. min-width: 100px;
  640. }
  641. .orange { color: #ffb400; }
  642. }
  643. .divider { height: 1px; background: #f0f0f0; margin: 16px 0; }
  644. .goods-row { display: flex; align-items: flex-start; margin-bottom: 18px; }
  645. .goods-img { width: 48px; height: 48px; border-radius: 12px; margin-right: 12px; }
  646. .goods-info { flex: 1; }
  647. .goods-name { font-size: 15px; font-weight: bold; color: #222; margin-bottom: 2px; }
  648. .goods-desc { font-size: 13px; color: #bbb; margin-bottom: 8px; }
  649. .goods-price-row { display: flex; align-items: center; }
  650. .goods-price { color: #ffb400; font-size: 15px; font-weight: bold; margin-right: 8px; }
  651. .goods-unit { font-size: 13px; color: #bbb; }
  652. .goods-count { color: #bbb; font-size: 13px; margin-left: 8px; }
  653. .goods-total { color: #222; font-size: 15px; font-weight: bold; margin-left: auto; }
  654. }
  655. }
  656. .footer-btns {
  657. position: fixed; left: 0; right: 0; bottom: 0; background: #fff; display: flex; gap: 16px; padding: 16px 24px 32px 24px; z-index: 101;
  658. .btn-outline {
  659. flex: 1;
  660. height: 40px;
  661. border-radius: 16px;
  662. border: 1px solid #ffe09a;
  663. color: #ffb400;
  664. background: #fff0d2;
  665. font-size: 15px;
  666. font-weight: 500;
  667. box-shadow: none;
  668. padding: 0 18px;
  669. }
  670. .btn-main {
  671. flex: 1;
  672. height: 40px;
  673. border-radius: 16px;
  674. background: linear-gradient(90deg, #ffbe3d 0%, #ffac04 100%);
  675. color: #fff;
  676. border: none;
  677. font-size: 15px;
  678. font-weight: 500;
  679. box-shadow: none;
  680. padding: 0 18px;
  681. }
  682. }
  683. .cancel-reason {
  684. color: #bbb;
  685. font-size: 13px;
  686. margin-bottom: 10px;
  687. padding-left: 2px;
  688. }
  689. .inspect-card {
  690. max-width: 335px;
  691. width: 100%;
  692. margin: 0 auto 28px auto;
  693. border-radius: 24px;
  694. overflow: hidden;
  695. .inspect-header {
  696. height: 60px;
  697. background: linear-gradient(180deg, #fff7e6 0%, #fffbe6 100%);
  698. border-radius: 24px 24px 0 0;
  699. display: flex;
  700. align-items: flex-end;
  701. padding-left: 24px;
  702. }
  703. .inspect-title {
  704. font-size: 20px;
  705. font-weight: bold;
  706. color: #222;
  707. line-height: 60px;
  708. }
  709. .inspect-content {
  710. background: #fff;
  711. border-radius: 0 0 24px 24px;
  712. padding: 24px 24px 20px 24px;
  713. }
  714. .inspect-row {
  715. display: flex; align-items: center; justify-content: space-between;
  716. min-height: 40px;
  717. .inspect-label { color: #bcbcbc; font-size: 16px; }
  718. .inspect-value { color: #222; font-size: 16px; font-weight: 500; }
  719. .inspect-divider { height: 1px; background: #f0f0f0; margin: 0; width: 100%; position: absolute; left: 0; bottom: 0; }
  720. position: relative;
  721. }
  722. .inspect-btn {
  723. width: 100%;
  724. margin: 24px 0 0 0;
  725. height: 48px;
  726. border-radius: 24px;
  727. border: 1.5px solid #ffb400;
  728. color: #ffb400;
  729. background: #fff0d2;
  730. font-size: 18px;
  731. font-weight: 500;
  732. box-shadow: none;
  733. text-align: center;
  734. line-height: 48px;
  735. }
  736. }
  737. .card-title {
  738. font-size: 20px;
  739. font-weight: bold;
  740. color: #222;
  741. margin-bottom: 12px;
  742. }
  743. .custom-inspect-card {
  744. background: linear-gradient(180deg, #fffbe6 0%, #fff 90%);
  745. border-radius: 20px;
  746. box-shadow: 0 8px 24px rgba(255, 156, 0, 0.03);
  747. padding: 0;
  748. margin: 24rpx 0 0 0;
  749. overflow: hidden;
  750. }
  751. .custom-header-bg {
  752. height: 56px;
  753. background: linear-gradient(180deg, #fff7e6 0%, #fff 100%);
  754. border-radius: 20px 20px 0 0;
  755. display: flex;
  756. align-items: flex-end;
  757. padding-left: 24px;
  758. padding-top: 12px;
  759. }
  760. .custom-card-title {
  761. font-size: 20px;
  762. font-weight: bold;
  763. color: #222;
  764. margin-bottom: 12px;
  765. }
  766. .custom-detail-content {
  767. background: #fff;
  768. border-radius: 0 0 20px 20px;
  769. padding: 20px 16px 16px 16px;
  770. }
  771. .custom-detail-row {
  772. display: flex;
  773. align-items: center;
  774. min-height: 32px;
  775. font-size: 15px;
  776. .custom-detail-label {
  777. color: #bcbcbc;
  778. font-size: 14px;
  779. width: 90px;
  780. flex-shrink: 0;
  781. }
  782. .custom-detail-value {
  783. color: #222;
  784. font-size: 15px;
  785. font-weight: 500;
  786. text-align: left;
  787. margin-left: 0;
  788. flex: 1;
  789. }
  790. &.total-row .custom-detail-value.total {
  791. color: #ffb400;
  792. font-size: 20px;
  793. font-weight: bold;
  794. text-align: right;
  795. flex: unset;
  796. margin-left: auto;
  797. min-width: 100px;
  798. }
  799. .highlight {
  800. color: #ffb400;
  801. font-size: 18px;
  802. font-weight: bold;
  803. }
  804. }
  805. .custom-divider {
  806. width: 100%;
  807. height: 1px;
  808. background: #f0f0f0;
  809. margin: 16px 0;
  810. }
  811. .custom-goods-row {
  812. background: #fff;
  813. border-radius: 24px;
  814. display: flex;
  815. align-items: center;
  816. padding: 24px 16px;
  817. box-shadow: 0 2px 8px rgba(255, 156, 0, 0.04);
  818. position: relative;
  819. margin-bottom: 18px;
  820. min-width: 0;
  821. flex-wrap: nowrap;
  822. }
  823. .custom-goods-img {
  824. width: 48px;
  825. height: 48px;
  826. border-radius: 12px;
  827. margin-right: 12px;
  828. flex-shrink: 0;
  829. }
  830. .custom-goods-info {
  831. flex: 1;
  832. display: flex;
  833. flex-direction: column;
  834. justify-content: center;
  835. min-width: 0;
  836. margin-right: 16px;
  837. }
  838. .custom-goods-name {
  839. font-size: 15px;
  840. color: #222;
  841. font-weight: bold;
  842. margin-bottom: 2px;
  843. overflow: hidden;
  844. text-overflow: ellipsis;
  845. white-space: nowrap;
  846. }
  847. .custom-goods-desc {
  848. font-size: 13px;
  849. color: #bcbcbc;
  850. margin-bottom: 8px;
  851. overflow: hidden;
  852. text-overflow: ellipsis;
  853. white-space: nowrap;
  854. &:last-child {
  855. margin-bottom: 10px;
  856. }
  857. }
  858. .custom-goods-meta {
  859. display: flex;
  860. align-items: center;
  861. gap: 10px;
  862. flex-wrap: nowrap;
  863. white-space: nowrap;
  864. }
  865. .custom-goods-price {
  866. color: #ffb400;
  867. font-size: 15px;
  868. font-weight: bold;
  869. white-space: nowrap;
  870. flex-shrink: 0;
  871. }
  872. .custom-goods-unit {
  873. color: #bcbcbc;
  874. font-size: 13px;
  875. font-weight: normal;
  876. }
  877. .custom-goods-count {
  878. color: #bcbcbc;
  879. font-size: 13px;
  880. margin-left: 8px;
  881. white-space: nowrap;
  882. flex-shrink: 0;
  883. }
  884. .custom-goods-total {
  885. color: #222;
  886. font-size: 15px;
  887. font-weight: bold;
  888. margin-left: 12px;
  889. flex-shrink: 0;
  890. white-space: nowrap;
  891. min-width: 60px;
  892. text-align: right;
  893. }
  894. .user-stat-modal-mask {
  895. position: fixed;
  896. left: 0; right: 0; top: 0; bottom: 0;
  897. background: rgba(0,0,0,0.45);
  898. z-index: 9999;
  899. display: flex;
  900. align-items: center;
  901. justify-content: center;
  902. }
  903. .user-stat-modal-box {
  904. width: 80vw;
  905. max-width: 420px;
  906. background: linear-gradient(180deg, #fff7f2 0%, #fff 100%);
  907. border-radius: 32px;
  908. box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  909. padding: 38px 0 32px 0;
  910. display: flex;
  911. flex-direction: column;
  912. align-items: center;
  913. }
  914. .user-stat-modal-title {
  915. font-size: 24px;
  916. font-weight: bold;
  917. color: #222;
  918. text-align: center;
  919. margin-bottom: 32px;
  920. }
  921. .user-stat-modal-row {
  922. width: 80%;
  923. display: flex;
  924. align-items: center;
  925. justify-content: space-between;
  926. font-size: 18px;
  927. margin: 0 auto;
  928. padding: 12px 0;
  929. }
  930. .user-stat-label {
  931. color: #999;
  932. font-size: 16px;
  933. }
  934. .user-stat-value {
  935. color: #222;
  936. font-size: 18px;
  937. font-weight: 500;
  938. }
  939. .user-stat-modal-divider {
  940. width: 80%;
  941. height: 1px;
  942. background: #f0f0f0;
  943. margin: 0 auto;
  944. }
  945. .user-stat-modal-btn {
  946. width: 80%;
  947. margin: 32px auto 0 auto;
  948. height: 48px;
  949. border-radius: 24px;
  950. background: #fffbe6;
  951. color: #ffb400;
  952. font-size: 20px;
  953. font-weight: bold;
  954. border: 2px solid #ffd01e;
  955. text-align: center;
  956. line-height: 48px;
  957. }
  958. .user-stat-trigger {
  959. color: #222;
  960. font-weight: 500;
  961. cursor: pointer;
  962. }
  963. </style>