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

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