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

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