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

916 lines
27 KiB

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
2 months ago
2 months ago
1 month ago
2 months ago
1 month 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
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
1 month ago
1 month 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
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
1 month 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 month ago
2 months ago
1 month ago
2 months ago
1 month 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="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 === 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.wliuNo ? [{ 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. goToInspection() {
  316. if (!this.order.id) return;
  317. uni.navigateTo({
  318. url: `/pages/subcomponent/inspection-report?orderId=${this.order.orderId}`
  319. })
  320. },
  321. }
  322. }
  323. </script>
  324. <style lang="scss" scoped>
  325. $order-card-radius: 32px;
  326. $order-card-padding: 40px 28px;
  327. .order-detail-container {
  328. background: #f8f8f8;
  329. min-height: 100vh;
  330. font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  331. display: flex;
  332. flex-direction: column;
  333. align-items: center;
  334. }
  335. .nav-bar {
  336. display: flex;
  337. align-items: center;
  338. height: calc(150rpx + var(--status-bar-height));
  339. padding: 0 32rpx;
  340. padding-top: var(--status-bar-height);
  341. background: #fff;
  342. position: fixed;
  343. top: 0;
  344. left: 0;
  345. right: 0;
  346. z-index: 999;
  347. box-sizing: border-box;
  348. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.03);
  349. .back {
  350. padding: 20rpx;
  351. margin-left: -20rpx;
  352. }
  353. .nav-title {
  354. flex: 1;
  355. text-align: center;
  356. font-size: 32rpx;
  357. font-weight: 500;
  358. color: #222;
  359. }
  360. .nav-icons {
  361. display: flex;
  362. align-items: center;
  363. gap: 30px;
  364. }
  365. }
  366. .main-content {
  367. margin-top: calc(200rpx + var(--status-bar-height));
  368. width: 100vw;
  369. min-width: 0;
  370. box-sizing: border-box;
  371. padding: 0 16px 60px 16px;
  372. display: flex;
  373. flex-direction: column;
  374. align-items: center;
  375. }
  376. .info-card {
  377. width: 100%;
  378. max-width: 375px;
  379. min-width: 0;
  380. box-sizing: border-box;
  381. margin: 0 auto 28px auto;
  382. padding: 16px 8px;
  383. background: #fff;
  384. border-radius: 20px;
  385. box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  386. // color: blue;
  387. &.process-card {
  388. position: relative;
  389. .status-tag {
  390. position: absolute;
  391. right: 18px;
  392. top: 18px;
  393. font-size: 13px;
  394. border-radius: 12px;
  395. padding: 2px 10px;
  396. font-weight: 500;
  397. background: #e6f9e6;
  398. color: #1ecb1e;
  399. height: 22px;
  400. line-height: 18px;
  401. display: flex;
  402. align-items: center;
  403. &.orange {
  404. background: #fff7e6;
  405. color: #ffb400;
  406. font-size: 14px;
  407. border-radius: 12px;
  408. padding: 2px 14px;
  409. font-weight: 400;
  410. height: 22px;
  411. display: flex;
  412. align-items: center;
  413. }
  414. &.gray {
  415. background: #f5f5f5;
  416. color: #444;
  417. font-size: 14px;
  418. border-radius: 12px;
  419. padding: 2px 14px;
  420. font-weight: 400;
  421. height: 22px;
  422. display: flex;
  423. align-items: center;
  424. }
  425. &.blue {
  426. background: #eaf6ff;
  427. color: #2a9cfb;
  428. font-size: 14px;
  429. border-radius: 12px;
  430. padding: 2px 14px;
  431. font-weight: 400;
  432. height: 22px;
  433. display: flex;
  434. align-items: center;
  435. }
  436. }
  437. .status-tag.red {
  438. background: #fff0f0;
  439. color: #ff4d4f;
  440. }
  441. }
  442. .info-card-header {
  443. display: flex; align-items: center; justify-content: flex-start;
  444. .info-title-wrap {
  445. display: flex;
  446. align-items: center;
  447. .info-title { font-size: 18px; font-weight: bold; color: #222; }
  448. .tag-nobaoyou {
  449. margin-left: 8px;
  450. background: #fff0f0;
  451. color: #ff4d4f;
  452. font-size: 14px;
  453. border-radius: 12px;
  454. padding: 2px 14px;
  455. font-weight: 400;
  456. height: 22px;
  457. display: flex;
  458. align-items: center;
  459. }
  460. }
  461. .status-tag { margin-left: auto; }
  462. }
  463. .steps-bar {
  464. display: flex;
  465. justify-content: space-between;
  466. align-items: flex-start;
  467. margin: 24px 0 24px 0;
  468. gap: 14px;
  469. .step-item {
  470. background: #fff8ea;
  471. border-radius: 16px;
  472. width: 76px;
  473. height: 76px;
  474. display: flex;
  475. flex-direction: column;
  476. align-items: center;
  477. box-shadow: 0 2px 8px rgba(255, 156, 0, 0.04);
  478. overflow: hidden;
  479. position: relative;
  480. transition: all 0.3s ease;
  481. .step-icon {
  482. width: 44px;
  483. height: 44px;
  484. margin: 6px 0 0 0;
  485. transition: transform 0.3s ease;
  486. }
  487. .step-label {
  488. width: 100%;
  489. height: 28px;
  490. background: transparent;
  491. position: absolute;
  492. left: 0;
  493. bottom: 0;
  494. border-radius: 0 0 12px 12px;
  495. display: flex;
  496. align-items: center;
  497. justify-content: center;
  498. transition: all 0.3s ease;
  499. overflow: hidden;
  500. line-height: 1;
  501. .step-num, .step-text {
  502. font-size: 11px;
  503. color: #9b9b9b;
  504. font-weight: 600;
  505. line-height: 1;
  506. vertical-align: middle;
  507. transition: color 0.3s ease;
  508. }
  509. .step-num {
  510. margin-right: 2px;
  511. }
  512. }
  513. &.active {
  514. transform: translateY(-2px);
  515. box-shadow: 0 4px 12px rgba(255, 156, 0, 0.08);
  516. .step-icon {
  517. transform: scale(1.05);
  518. }
  519. .step-label {
  520. background: linear-gradient(90deg, #ffd01e 0%, #ff8917 100%);
  521. }
  522. .step-num, .step-text {
  523. color: #fff;
  524. font-weight: bold;
  525. }
  526. }
  527. &:not(.active):hover {
  528. transform: translateY(-1px);
  529. box-shadow: 0 2px 12px rgba(255, 156, 0, 0.06);
  530. }
  531. }
  532. }
  533. .base-info {
  534. margin-top: 18px;
  535. .base-info-row {
  536. display: flex;
  537. align-items: flex-start;
  538. padding: 0 0 0 0;
  539. position: relative;
  540. min-height: 36px;
  541. justify-content: space-between;
  542. align-items: center;
  543. .base-label-wrap { min-width: 80px; text-align: left; color: #8b8b8b; font-size: 13px;}
  544. .base-value-wrap { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
  545. .base-value { color: #222; font-size: 15px; font-weight: 600; word-break: break-all; text-align: right; }
  546. .copy-btn { color: #ffb400; font-size: 13px; margin-left: 6px; font-weight: 400; padding: 1px 6px; border-radius: 6px; transition: background 0.2s; }
  547. .copy-btn:active { background: #fff7e6; }
  548. .divider { position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px; background: #f0f0f0; }
  549. uni-icons { margin-left: 6px; }
  550. }
  551. .base-info-row .base-value-wrap { flex-wrap: wrap; }
  552. .base-info-row .base-value { white-space: pre-line; line-height: 1.5; }
  553. }
  554. &.detail-card {
  555. position: relative;
  556. padding: 0;
  557. background: transparent;
  558. .card-header-bg {
  559. height: 56px;
  560. background: linear-gradient(180deg, #fff7e6 0%, #fff 100%);
  561. border-radius: 20px 20px 0 0;
  562. display: flex;
  563. align-items: flex-end;
  564. padding-left: 20px;
  565. padding-top: 12px;
  566. }
  567. .detail-content {
  568. background: #fff;
  569. border-radius: 0 0 20px 20px;
  570. padding: 20px 16px 16px 16px;
  571. }
  572. .detail-row {
  573. display: flex;
  574. align-items: center;
  575. min-height: 32px;
  576. .detail-label {
  577. color: #bcbcbc;
  578. font-size: 14px;
  579. width: 90px;
  580. flex-shrink: 0;
  581. }
  582. .detail-value {
  583. color: #222;
  584. font-size: 15px;
  585. font-weight: 500;
  586. text-align: left;
  587. margin-left: 0;
  588. flex: 1;
  589. }
  590. &.total-row .detail-value.total {
  591. color: #ffb400;
  592. font-size: 20px;
  593. font-weight: bold;
  594. text-align: right;
  595. flex: unset;
  596. margin-left: auto;
  597. min-width: 100px;
  598. }
  599. .orange { color: #ffb400; }
  600. }
  601. .divider { height: 1px; background: #f0f0f0; margin: 16px 0; }
  602. .goods-row { display: flex; align-items: flex-start; margin-bottom: 18px; }
  603. .goods-img { width: 48px; height: 48px; border-radius: 12px; margin-right: 12px; }
  604. .goods-info { flex: 1; }
  605. .goods-name { font-size: 15px; font-weight: bold; color: #222; margin-bottom: 2px; }
  606. .goods-desc { font-size: 13px; color: #bbb; margin-bottom: 8px; }
  607. .goods-price-row { display: flex; align-items: center; }
  608. .goods-price { color: #ffb400; font-size: 15px; font-weight: bold; margin-right: 8px; }
  609. .goods-unit { font-size: 13px; color: #bbb; }
  610. .goods-count { color: #bbb; font-size: 13px; margin-left: 8px; }
  611. .goods-total { color: #222; font-size: 15px; font-weight: bold; margin-left: auto; }
  612. }
  613. }
  614. .footer-btns {
  615. position: fixed; left: 0; right: 0; bottom: 0; background: #fff; display: flex; gap: 16px; padding: 16px 24px 32px 24px; z-index: 101;
  616. .btn-outline {
  617. flex: 1;
  618. height: 40px;
  619. border-radius: 16px;
  620. border: 1px solid #ffe09a;
  621. color: #ffb400;
  622. background: #fff0d2;
  623. font-size: 15px;
  624. font-weight: 500;
  625. box-shadow: none;
  626. padding: 0 18px;
  627. }
  628. .btn-main {
  629. flex: 1;
  630. height: 40px;
  631. border-radius: 16px;
  632. background: linear-gradient(90deg, #ffbe3d 0%, #ffac04 100%);
  633. color: #fff;
  634. border: none;
  635. font-size: 15px;
  636. font-weight: 500;
  637. box-shadow: none;
  638. padding: 0 18px;
  639. }
  640. }
  641. .cancel-reason {
  642. color: #bbb;
  643. font-size: 13px;
  644. margin-bottom: 10px;
  645. padding-left: 2px;
  646. }
  647. .inspect-card {
  648. max-width: 335px;
  649. width: 100%;
  650. margin: 0 auto 28px auto;
  651. border-radius: 24px;
  652. overflow: hidden;
  653. .inspect-header {
  654. height: 60px;
  655. background: linear-gradient(180deg, #fff7e6 0%, #fffbe6 100%);
  656. border-radius: 24px 24px 0 0;
  657. display: flex;
  658. align-items: flex-end;
  659. padding-left: 24px;
  660. }
  661. .inspect-title {
  662. font-size: 20px;
  663. font-weight: bold;
  664. color: #222;
  665. line-height: 60px;
  666. }
  667. .inspect-content {
  668. background: #fff;
  669. border-radius: 0 0 24px 24px;
  670. padding: 24px 24px 20px 24px;
  671. }
  672. .inspect-row {
  673. display: flex; align-items: center; justify-content: space-between;
  674. min-height: 40px;
  675. .inspect-label { color: #bcbcbc; font-size: 16px; }
  676. .inspect-value { color: #222; font-size: 16px; font-weight: 500; }
  677. .inspect-divider { height: 1px; background: #f0f0f0; margin: 0; width: 100%; position: absolute; left: 0; bottom: 0; }
  678. position: relative;
  679. }
  680. .inspect-btn {
  681. width: 100%;
  682. margin: 24px 0 0 0;
  683. height: 48px;
  684. border-radius: 24px;
  685. border: 1.5px solid #ffb400;
  686. color: #ffb400;
  687. background: #fff0d2;
  688. font-size: 18px;
  689. font-weight: 500;
  690. box-shadow: none;
  691. text-align: center;
  692. line-height: 48px;
  693. }
  694. }
  695. .card-title {
  696. font-size: 20px;
  697. font-weight: bold;
  698. color: #222;
  699. margin-bottom: 12px;
  700. }
  701. .custom-inspect-card {
  702. background: linear-gradient(180deg, #fffbe6 0%, #fff 90%);
  703. border-radius: 20px;
  704. box-shadow: 0 8px 24px rgba(255, 156, 0, 0.03);
  705. padding: 0;
  706. margin: 24rpx 0 0 0;
  707. overflow: hidden;
  708. }
  709. .custom-header-bg {
  710. height: 56px;
  711. background: linear-gradient(180deg, #fff7e6 0%, #fff 100%);
  712. border-radius: 20px 20px 0 0;
  713. display: flex;
  714. align-items: flex-end;
  715. padding-left: 24px;
  716. padding-top: 12px;
  717. }
  718. .custom-card-title {
  719. font-size: 20px;
  720. font-weight: bold;
  721. color: #222;
  722. margin-bottom: 12px;
  723. }
  724. .custom-detail-content {
  725. background: #fff;
  726. border-radius: 0 0 20px 20px;
  727. padding: 20px 16px 16px 16px;
  728. }
  729. .custom-detail-row {
  730. display: flex;
  731. align-items: center;
  732. min-height: 32px;
  733. font-size: 15px;
  734. .custom-detail-label {
  735. color: #bcbcbc;
  736. font-size: 14px;
  737. width: 90px;
  738. flex-shrink: 0;
  739. }
  740. .custom-detail-value {
  741. color: #222;
  742. font-size: 15px;
  743. font-weight: 500;
  744. text-align: left;
  745. margin-left: 0;
  746. flex: 1;
  747. }
  748. &.total-row .custom-detail-value.total {
  749. color: #ffb400;
  750. font-size: 20px;
  751. font-weight: bold;
  752. text-align: right;
  753. flex: unset;
  754. margin-left: auto;
  755. min-width: 100px;
  756. }
  757. .highlight {
  758. color: #ffb400;
  759. font-size: 18px;
  760. font-weight: bold;
  761. }
  762. }
  763. .custom-divider {
  764. width: 100%;
  765. height: 1px;
  766. background: #f0f0f0;
  767. margin: 16px 0;
  768. }
  769. .custom-goods-row {
  770. background: #fff;
  771. border-radius: 24px;
  772. display: flex;
  773. align-items: center;
  774. padding: 24px 20px;
  775. box-shadow: 0 2px 8px rgba(255, 156, 0, 0.04);
  776. position: relative;
  777. margin-bottom: 18px;
  778. }
  779. .custom-goods-img {
  780. width: 48px;
  781. height: 48px;
  782. border-radius: 12px;
  783. margin-right: 12px;
  784. flex-shrink: 0;
  785. }
  786. .custom-goods-info {
  787. flex: 1;
  788. display: flex;
  789. flex-direction: column;
  790. justify-content: center;
  791. }
  792. .custom-goods-name {
  793. font-size: 15px;
  794. color: #222;
  795. font-weight: bold;
  796. margin-bottom: 2px;
  797. }
  798. .custom-goods-desc {
  799. font-size: 13px;
  800. color: #bcbcbc;
  801. margin-bottom: 10px;
  802. }
  803. .custom-goods-meta {
  804. display: flex;
  805. align-items: center;
  806. gap: 10px;
  807. }
  808. .custom-goods-price {
  809. color: #ffb400;
  810. font-size: 15px;
  811. font-weight: bold;
  812. }
  813. .custom-goods-unit {
  814. color: #bcbcbc;
  815. font-size: 13px;
  816. font-weight: normal;
  817. }
  818. .custom-goods-count {
  819. color: #bcbcbc;
  820. font-size: 13px;
  821. margin-left: 8px;
  822. }
  823. .custom-goods-total {
  824. color: #222;
  825. font-size: 15px;
  826. font-weight: bold;
  827. margin-left: 18px;
  828. flex-shrink: 0;
  829. }
  830. .user-stat-modal-mask {
  831. position: fixed;
  832. left: 0; right: 0; top: 0; bottom: 0;
  833. background: rgba(0,0,0,0.45);
  834. z-index: 9999;
  835. display: flex;
  836. align-items: center;
  837. justify-content: center;
  838. }
  839. .user-stat-modal-box {
  840. width: 80vw;
  841. max-width: 420px;
  842. background: linear-gradient(180deg, #fff7f2 0%, #fff 100%);
  843. border-radius: 32px;
  844. box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  845. padding: 38px 0 32px 0;
  846. display: flex;
  847. flex-direction: column;
  848. align-items: center;
  849. }
  850. .user-stat-modal-title {
  851. font-size: 24px;
  852. font-weight: bold;
  853. color: #222;
  854. text-align: center;
  855. margin-bottom: 32px;
  856. }
  857. .user-stat-modal-row {
  858. width: 80%;
  859. display: flex;
  860. align-items: center;
  861. justify-content: space-between;
  862. font-size: 18px;
  863. margin: 0 auto;
  864. padding: 12px 0;
  865. }
  866. .user-stat-label {
  867. color: #999;
  868. font-size: 16px;
  869. }
  870. .user-stat-value {
  871. color: #222;
  872. font-size: 18px;
  873. font-weight: 500;
  874. }
  875. .user-stat-modal-divider {
  876. width: 80%;
  877. height: 1px;
  878. background: #f0f0f0;
  879. margin: 0 auto;
  880. }
  881. .user-stat-modal-btn {
  882. width: 80%;
  883. margin: 32px auto 0 auto;
  884. height: 48px;
  885. border-radius: 24px;
  886. background: #fffbe6;
  887. color: #ffb400;
  888. font-size: 20px;
  889. font-weight: bold;
  890. border: 2px solid #ffd01e;
  891. text-align: center;
  892. line-height: 48px;
  893. }
  894. .user-stat-trigger {
  895. color: #222;
  896. font-weight: 500;
  897. cursor: pointer;
  898. }
  899. </style>