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

971 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 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 || order.id }}</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 || data.id, 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 || data.createTime }
  230. ]
  231. // 质检信息(如有)
  232. this.qcInfo = [
  233. { label: '质检数量', value: data.num ? data.qualifiedNum + data.noQualifiedNum + data.unrecyclable + ' 件' : '' },
  234. { label: '质检合格', value: data.qualifiedNum ? data.qualifiedNum + ' 件' : '' },
  235. { label: '质量问题', value: data.noQualifiedNum ? data.noQualifiedNum + ' 件' : '' },
  236. { label: '不可回收', value: data.unrecyclable ? data.unrecyclable + ' 件' : '' }
  237. ]
  238. }
  239. })
  240. },
  241. getCurrentStep(status, state) {
  242. // status: 0=在线预约, 1=快递上门, 2=透明质检, 3=现金打款
  243. // state: 0=待取件, 1=已取件, 2=已完成, 3=已取消
  244. if (state == 3) return -1; // 已取消,不高亮任何步骤
  245. if (status == 0) return 0; // 在线预约
  246. if (status == 1) return 1; // 快递上门
  247. if (status == 2) return 2; // 透明质检
  248. if (status == 3) return 3; // 现金打款
  249. return 0;
  250. },
  251. async onRefresh() {
  252. if (this.order.id) await this.fetchOrderDetail(this.order.id)
  253. },
  254. goBack() {
  255. uni.navigateBack()
  256. },
  257. copyText(text) {
  258. uni.setClipboardData({ data: text })
  259. },
  260. maskPhone(phone) {
  261. if (!phone) return '';
  262. return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  263. },
  264. goToInspect() {
  265. const orderData = encodeURIComponent(JSON.stringify(this.order))
  266. uni.navigateTo({
  267. url: `/pages/manager/inspect?orderData=${orderData}`
  268. })
  269. },
  270. async onUserStatClick() {
  271. if (!this.order || !this.order.userId) return;
  272. this.$api('getUserOrderNum', { userId: this.order.userId }, res => {
  273. if (res && res.code === 200 && res.result) {
  274. this.userStatData = {
  275. name: this.order.name,
  276. unit_num: res.result.unit_num,
  277. sum: res.result.sum,
  278. order_money: res.result.order_money
  279. }
  280. this.showUserStatModal = true
  281. }
  282. })
  283. },
  284. getAreaList() {
  285. this.$api('getAreaList', {}, (res) => {
  286. console.log(res,'getAreaList');
  287. if (res.code == 200 && Array.isArray(res.result)) {
  288. // 按sort升序排序
  289. const sorted = res.result.slice().sort((a, b) => a.sort - b.sort)
  290. this.steps = sorted.map(item => ({
  291. // id: item.id,
  292. icon: item.image,
  293. text: item.title
  294. }))
  295. }
  296. })
  297. },
  298. passOrderAction() {
  299. if (!this.order.id) return;
  300. this.$api('passOrder', { 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. rejectOrderAction() {
  310. if (!this.order.id) return;
  311. this.$api('rejectOrder', { orderId: this.order.id }, res => {
  312. if (res && res.code === 200) {
  313. uni.showToast({ title: '操作成功', icon: 'success' })
  314. this.fetchOrderDetail(this.order.id)
  315. } else {
  316. uni.showToast({ title: res.msg || '操作失败', icon: 'none' })
  317. }
  318. })
  319. },
  320. goToInspection() {
  321. if (!this.order.id) return;
  322. uni.navigateTo({
  323. url: `/pages/subcomponent/inspection-report?orderId=${this.order.id}`
  324. })
  325. },
  326. // 判断是否显示单价格(根据estimatedPrice格式判断)
  327. shouldShowSinglePrice(estimatedPrice) {
  328. if (!estimatedPrice || typeof estimatedPrice !== 'string') return true;
  329. // 解析estimatedPrice,格式如"25-0"或"25-50"
  330. const parts = estimatedPrice.split('-');
  331. if (parts.length !== 2) return true;
  332. const maxPrice = parseFloat(parts[1]);
  333. return maxPrice === 0;
  334. },
  335. // 从总价反推单件价格区间
  336. getSinglePriceRange(estimatedPrice, quantity) {
  337. if (!estimatedPrice || typeof estimatedPrice !== 'string' || !quantity) return '';
  338. // 解析estimatedPrice,格式如"25-50"
  339. const parts = estimatedPrice.split('-');
  340. if (parts.length !== 2) return estimatedPrice;
  341. const minTotal = parseFloat(parts[0]);
  342. const maxTotal = parseFloat(parts[1]);
  343. // 反推单件价格
  344. const minPrice = (minTotal / quantity).toFixed(2);
  345. const maxPrice = (maxTotal / quantity).toFixed(2);
  346. return `${minPrice}~${maxPrice}`;
  347. },
  348. }
  349. }
  350. </script>
  351. <style lang="scss" scoped>
  352. $order-card-radius: 32px;
  353. $order-card-padding: 40px 28px;
  354. .order-detail-container {
  355. background: #f8f8f8;
  356. min-height: 100vh;
  357. font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  358. display: flex;
  359. flex-direction: column;
  360. align-items: center;
  361. }
  362. .nav-bar {
  363. display: flex;
  364. align-items: center;
  365. height: calc(150rpx + var(--status-bar-height));
  366. padding: 0 32rpx;
  367. padding-top: var(--status-bar-height);
  368. background: #fff;
  369. position: fixed;
  370. top: 0;
  371. left: 0;
  372. right: 0;
  373. z-index: 999;
  374. box-sizing: border-box;
  375. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.03);
  376. .back {
  377. padding: 20rpx;
  378. margin-left: -20rpx;
  379. }
  380. .nav-title {
  381. flex: 1;
  382. text-align: center;
  383. font-size: 32rpx;
  384. font-weight: 500;
  385. color: #222;
  386. }
  387. .nav-icons {
  388. display: flex;
  389. align-items: center;
  390. gap: 30px;
  391. }
  392. }
  393. .main-content {
  394. margin-top: calc(200rpx + var(--status-bar-height));
  395. width: 100vw;
  396. min-width: 0;
  397. box-sizing: border-box;
  398. padding: 0 16px 60px 16px;
  399. display: flex;
  400. flex-direction: column;
  401. align-items: center;
  402. }
  403. .info-card {
  404. width: 100%;
  405. max-width: 375px;
  406. min-width: 0;
  407. box-sizing: border-box;
  408. margin: 0 auto 28px auto;
  409. padding: 16px 8px;
  410. background: #fff;
  411. border-radius: 20px;
  412. box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  413. // color: blue;
  414. &.process-card {
  415. position: relative;
  416. .status-tag {
  417. position: absolute;
  418. right: 18px;
  419. top: 18px;
  420. font-size: 13px;
  421. border-radius: 12px;
  422. padding: 2px 10px;
  423. font-weight: 500;
  424. background: #e6f9e6;
  425. color: #1ecb1e;
  426. height: 22px;
  427. line-height: 18px;
  428. display: flex;
  429. align-items: center;
  430. &.orange {
  431. background: #fff7e6;
  432. color: #ffb400;
  433. font-size: 14px;
  434. border-radius: 12px;
  435. padding: 2px 14px;
  436. font-weight: 400;
  437. height: 22px;
  438. display: flex;
  439. align-items: center;
  440. }
  441. &.gray {
  442. background: #f5f5f5;
  443. color: #444;
  444. font-size: 14px;
  445. border-radius: 12px;
  446. padding: 2px 14px;
  447. font-weight: 400;
  448. height: 22px;
  449. display: flex;
  450. align-items: center;
  451. }
  452. &.blue {
  453. background: #eaf6ff;
  454. color: #2a9cfb;
  455. font-size: 14px;
  456. border-radius: 12px;
  457. padding: 2px 14px;
  458. font-weight: 400;
  459. height: 22px;
  460. display: flex;
  461. align-items: center;
  462. }
  463. }
  464. .status-tag.red {
  465. background: #fff0f0;
  466. color: #ff4d4f;
  467. }
  468. }
  469. .info-card-header {
  470. display: flex; align-items: center; justify-content: flex-start;
  471. .info-title-wrap {
  472. display: flex;
  473. align-items: center;
  474. .info-title { font-size: 18px; font-weight: bold; color: #222; }
  475. .tag-nobaoyou {
  476. margin-left: 8px;
  477. background: #fff0f0;
  478. color: #ff4d4f;
  479. font-size: 14px;
  480. border-radius: 12px;
  481. padding: 2px 14px;
  482. font-weight: 400;
  483. height: 22px;
  484. display: flex;
  485. align-items: center;
  486. }
  487. }
  488. .status-tag { margin-left: auto; }
  489. }
  490. .steps-bar {
  491. display: flex;
  492. justify-content: space-between;
  493. align-items: flex-start;
  494. margin: 24px 0 24px 0;
  495. gap: 14px;
  496. .step-item {
  497. background: #fff8ea;
  498. border-radius: 16px;
  499. width: 76px;
  500. height: 76px;
  501. display: flex;
  502. flex-direction: column;
  503. align-items: center;
  504. box-shadow: 0 2px 8px rgba(255, 156, 0, 0.04);
  505. overflow: hidden;
  506. position: relative;
  507. transition: all 0.3s ease;
  508. .step-icon {
  509. width: 44px;
  510. height: 44px;
  511. margin: 6px 0 0 0;
  512. transition: transform 0.3s ease;
  513. }
  514. .step-label {
  515. width: 100%;
  516. height: 28px;
  517. background: transparent;
  518. position: absolute;
  519. left: 0;
  520. bottom: 0;
  521. border-radius: 0 0 12px 12px;
  522. display: flex;
  523. align-items: center;
  524. justify-content: center;
  525. transition: all 0.3s ease;
  526. overflow: hidden;
  527. line-height: 1;
  528. .step-num, .step-text {
  529. font-size: 11px;
  530. color: #9b9b9b;
  531. font-weight: 600;
  532. line-height: 1;
  533. vertical-align: middle;
  534. transition: color 0.3s ease;
  535. }
  536. .step-num {
  537. margin-right: 2px;
  538. }
  539. }
  540. &.active {
  541. transform: translateY(-2px);
  542. box-shadow: 0 4px 12px rgba(255, 156, 0, 0.08);
  543. .step-icon {
  544. transform: scale(1.05);
  545. }
  546. .step-label {
  547. background: linear-gradient(90deg, #ffd01e 0%, #ff8917 100%);
  548. }
  549. .step-num, .step-text {
  550. color: #fff;
  551. font-weight: bold;
  552. }
  553. }
  554. &:not(.active):hover {
  555. transform: translateY(-1px);
  556. box-shadow: 0 2px 12px rgba(255, 156, 0, 0.06);
  557. }
  558. }
  559. }
  560. .base-info {
  561. margin-top: 18px;
  562. .base-info-row {
  563. display: flex;
  564. align-items: flex-start;
  565. padding: 0 0 0 0;
  566. position: relative;
  567. min-height: 36px;
  568. justify-content: space-between;
  569. align-items: center;
  570. .base-label-wrap { min-width: 80px; text-align: left; color: #8b8b8b; font-size: 13px;}
  571. .base-value-wrap { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
  572. .base-value { color: #222; font-size: 15px; font-weight: 600; word-break: break-all; text-align: right; }
  573. .copy-btn { color: #ffb400; font-size: 13px; margin-left: 6px; font-weight: 400; padding: 1px 6px; border-radius: 6px; transition: background 0.2s; }
  574. .copy-btn:active { background: #fff7e6; }
  575. .divider { position: absolute; left: 16px; right: 16px; bottom: -1px; height: 1px; background: #f0f0f0; }
  576. uni-icons { margin-left: 6px; }
  577. }
  578. .base-info-row .base-value-wrap { flex-wrap: wrap; }
  579. .base-info-row .base-value { white-space: pre-line; line-height: 1.5; }
  580. }
  581. &.detail-card {
  582. position: relative;
  583. padding: 0;
  584. background: transparent;
  585. .card-header-bg {
  586. height: 56px;
  587. background: linear-gradient(180deg, #fff7e6 0%, #fff 100%);
  588. border-radius: 20px 20px 0 0;
  589. display: flex;
  590. align-items: flex-end;
  591. padding-left: 20px;
  592. padding-top: 12px;
  593. }
  594. .detail-content {
  595. background: #fff;
  596. border-radius: 0 0 20px 20px;
  597. padding: 20px 16px 16px 16px;
  598. }
  599. .detail-row {
  600. display: flex;
  601. align-items: center;
  602. min-height: 32px;
  603. .detail-label {
  604. color: #bcbcbc;
  605. font-size: 14px;
  606. width: 90px;
  607. flex-shrink: 0;
  608. }
  609. .detail-value {
  610. color: #222;
  611. font-size: 15px;
  612. font-weight: 500;
  613. text-align: left;
  614. margin-left: 0;
  615. flex: 1;
  616. }
  617. &.total-row .detail-value.total {
  618. color: #ffb400;
  619. font-size: 20px;
  620. font-weight: bold;
  621. text-align: right;
  622. flex: unset;
  623. margin-left: auto;
  624. min-width: 100px;
  625. }
  626. .orange { color: #ffb400; }
  627. }
  628. .divider { height: 1px; background: #f0f0f0; margin: 16px 0; }
  629. .goods-row { display: flex; align-items: flex-start; margin-bottom: 18px; }
  630. .goods-img { width: 48px; height: 48px; border-radius: 12px; margin-right: 12px; }
  631. .goods-info { flex: 1; }
  632. .goods-name { font-size: 15px; font-weight: bold; color: #222; margin-bottom: 2px; }
  633. .goods-desc { font-size: 13px; color: #bbb; margin-bottom: 8px; }
  634. .goods-price-row { display: flex; align-items: center; }
  635. .goods-price { color: #ffb400; font-size: 15px; font-weight: bold; margin-right: 8px; }
  636. .goods-unit { font-size: 13px; color: #bbb; }
  637. .goods-count { color: #bbb; font-size: 13px; margin-left: 8px; }
  638. .goods-total { color: #222; font-size: 15px; font-weight: bold; margin-left: auto; }
  639. }
  640. }
  641. .footer-btns {
  642. position: fixed; left: 0; right: 0; bottom: 0; background: #fff; display: flex; gap: 16px; padding: 16px 24px 32px 24px; z-index: 101;
  643. .btn-outline {
  644. flex: 1;
  645. height: 40px;
  646. border-radius: 16px;
  647. border: 1px solid #ffe09a;
  648. color: #ffb400;
  649. background: #fff0d2;
  650. font-size: 15px;
  651. font-weight: 500;
  652. box-shadow: none;
  653. padding: 0 18px;
  654. }
  655. .btn-main {
  656. flex: 1;
  657. height: 40px;
  658. border-radius: 16px;
  659. background: linear-gradient(90deg, #ffbe3d 0%, #ffac04 100%);
  660. color: #fff;
  661. border: none;
  662. font-size: 15px;
  663. font-weight: 500;
  664. box-shadow: none;
  665. padding: 0 18px;
  666. }
  667. }
  668. .cancel-reason {
  669. color: #bbb;
  670. font-size: 13px;
  671. margin-bottom: 10px;
  672. padding-left: 2px;
  673. }
  674. .inspect-card {
  675. max-width: 335px;
  676. width: 100%;
  677. margin: 0 auto 28px auto;
  678. border-radius: 24px;
  679. overflow: hidden;
  680. .inspect-header {
  681. height: 60px;
  682. background: linear-gradient(180deg, #fff7e6 0%, #fffbe6 100%);
  683. border-radius: 24px 24px 0 0;
  684. display: flex;
  685. align-items: flex-end;
  686. padding-left: 24px;
  687. }
  688. .inspect-title {
  689. font-size: 20px;
  690. font-weight: bold;
  691. color: #222;
  692. line-height: 60px;
  693. }
  694. .inspect-content {
  695. background: #fff;
  696. border-radius: 0 0 24px 24px;
  697. padding: 24px 24px 20px 24px;
  698. }
  699. .inspect-row {
  700. display: flex; align-items: center; justify-content: space-between;
  701. min-height: 40px;
  702. .inspect-label { color: #bcbcbc; font-size: 16px; }
  703. .inspect-value { color: #222; font-size: 16px; font-weight: 500; }
  704. .inspect-divider { height: 1px; background: #f0f0f0; margin: 0; width: 100%; position: absolute; left: 0; bottom: 0; }
  705. position: relative;
  706. }
  707. .inspect-btn {
  708. width: 100%;
  709. margin: 24px 0 0 0;
  710. height: 48px;
  711. border-radius: 24px;
  712. border: 1.5px solid #ffb400;
  713. color: #ffb400;
  714. background: #fff0d2;
  715. font-size: 18px;
  716. font-weight: 500;
  717. box-shadow: none;
  718. text-align: center;
  719. line-height: 48px;
  720. }
  721. }
  722. .card-title {
  723. font-size: 20px;
  724. font-weight: bold;
  725. color: #222;
  726. margin-bottom: 12px;
  727. }
  728. .custom-inspect-card {
  729. background: linear-gradient(180deg, #fffbe6 0%, #fff 90%);
  730. border-radius: 20px;
  731. box-shadow: 0 8px 24px rgba(255, 156, 0, 0.03);
  732. padding: 0;
  733. margin: 24rpx 0 0 0;
  734. overflow: hidden;
  735. }
  736. .custom-header-bg {
  737. height: 56px;
  738. background: linear-gradient(180deg, #fff7e6 0%, #fff 100%);
  739. border-radius: 20px 20px 0 0;
  740. display: flex;
  741. align-items: flex-end;
  742. padding-left: 24px;
  743. padding-top: 12px;
  744. }
  745. .custom-card-title {
  746. font-size: 20px;
  747. font-weight: bold;
  748. color: #222;
  749. margin-bottom: 12px;
  750. }
  751. .custom-detail-content {
  752. background: #fff;
  753. border-radius: 0 0 20px 20px;
  754. padding: 20px 16px 16px 16px;
  755. }
  756. .custom-detail-row {
  757. display: flex;
  758. align-items: center;
  759. min-height: 32px;
  760. font-size: 15px;
  761. .custom-detail-label {
  762. color: #bcbcbc;
  763. font-size: 14px;
  764. width: 90px;
  765. flex-shrink: 0;
  766. }
  767. .custom-detail-value {
  768. color: #222;
  769. font-size: 15px;
  770. font-weight: 500;
  771. text-align: left;
  772. margin-left: 0;
  773. flex: 1;
  774. }
  775. &.total-row .custom-detail-value.total {
  776. color: #ffb400;
  777. font-size: 20px;
  778. font-weight: bold;
  779. text-align: right;
  780. flex: unset;
  781. margin-left: auto;
  782. min-width: 100px;
  783. }
  784. .highlight {
  785. color: #ffb400;
  786. font-size: 18px;
  787. font-weight: bold;
  788. }
  789. }
  790. .custom-divider {
  791. width: 100%;
  792. height: 1px;
  793. background: #f0f0f0;
  794. margin: 16px 0;
  795. }
  796. .custom-goods-row {
  797. background: #fff;
  798. border-radius: 24px;
  799. display: flex;
  800. align-items: center;
  801. padding: 24px 16px;
  802. box-shadow: 0 2px 8px rgba(255, 156, 0, 0.04);
  803. position: relative;
  804. margin-bottom: 18px;
  805. min-width: 0;
  806. flex-wrap: nowrap;
  807. }
  808. .custom-goods-img {
  809. width: 48px;
  810. height: 48px;
  811. border-radius: 12px;
  812. margin-right: 12px;
  813. flex-shrink: 0;
  814. }
  815. .custom-goods-info {
  816. flex: 1;
  817. display: flex;
  818. flex-direction: column;
  819. justify-content: center;
  820. min-width: 0;
  821. margin-right: 16px;
  822. }
  823. .custom-goods-name {
  824. font-size: 15px;
  825. color: #222;
  826. font-weight: bold;
  827. margin-bottom: 2px;
  828. overflow: hidden;
  829. text-overflow: ellipsis;
  830. white-space: nowrap;
  831. }
  832. .custom-goods-desc {
  833. font-size: 13px;
  834. color: #bcbcbc;
  835. margin-bottom: 8px;
  836. overflow: hidden;
  837. text-overflow: ellipsis;
  838. white-space: nowrap;
  839. &:last-child {
  840. margin-bottom: 10px;
  841. }
  842. }
  843. .custom-goods-meta {
  844. display: flex;
  845. align-items: center;
  846. gap: 10px;
  847. flex-wrap: nowrap;
  848. white-space: nowrap;
  849. }
  850. .custom-goods-price {
  851. color: #ffb400;
  852. font-size: 15px;
  853. font-weight: bold;
  854. white-space: nowrap;
  855. flex-shrink: 0;
  856. }
  857. .custom-goods-unit {
  858. color: #bcbcbc;
  859. font-size: 13px;
  860. font-weight: normal;
  861. }
  862. .custom-goods-count {
  863. color: #bcbcbc;
  864. font-size: 13px;
  865. margin-left: 8px;
  866. white-space: nowrap;
  867. flex-shrink: 0;
  868. }
  869. .custom-goods-total {
  870. color: #222;
  871. font-size: 15px;
  872. font-weight: bold;
  873. margin-left: 12px;
  874. flex-shrink: 0;
  875. white-space: nowrap;
  876. min-width: 60px;
  877. text-align: right;
  878. }
  879. .user-stat-modal-mask {
  880. position: fixed;
  881. left: 0; right: 0; top: 0; bottom: 0;
  882. background: rgba(0,0,0,0.45);
  883. z-index: 9999;
  884. display: flex;
  885. align-items: center;
  886. justify-content: center;
  887. }
  888. .user-stat-modal-box {
  889. width: 80vw;
  890. max-width: 420px;
  891. background: linear-gradient(180deg, #fff7f2 0%, #fff 100%);
  892. border-radius: 32px;
  893. box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  894. padding: 38px 0 32px 0;
  895. display: flex;
  896. flex-direction: column;
  897. align-items: center;
  898. }
  899. .user-stat-modal-title {
  900. font-size: 24px;
  901. font-weight: bold;
  902. color: #222;
  903. text-align: center;
  904. margin-bottom: 32px;
  905. }
  906. .user-stat-modal-row {
  907. width: 80%;
  908. display: flex;
  909. align-items: center;
  910. justify-content: space-between;
  911. font-size: 18px;
  912. margin: 0 auto;
  913. padding: 12px 0;
  914. }
  915. .user-stat-label {
  916. color: #999;
  917. font-size: 16px;
  918. }
  919. .user-stat-value {
  920. color: #222;
  921. font-size: 18px;
  922. font-weight: 500;
  923. }
  924. .user-stat-modal-divider {
  925. width: 80%;
  926. height: 1px;
  927. background: #f0f0f0;
  928. margin: 0 auto;
  929. }
  930. .user-stat-modal-btn {
  931. width: 80%;
  932. margin: 32px auto 0 auto;
  933. height: 48px;
  934. border-radius: 24px;
  935. background: #fffbe6;
  936. color: #ffb400;
  937. font-size: 20px;
  938. font-weight: bold;
  939. border: 2px solid #ffd01e;
  940. text-align: center;
  941. line-height: 48px;
  942. }
  943. .user-stat-trigger {
  944. color: #222;
  945. font-weight: 500;
  946. cursor: pointer;
  947. }
  948. </style>