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

903 lines
27 KiB

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