index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <template>
  2. <view class="order-detail-page">
  3. <!-- 订单号与状态 -->
  4. <view class="order-header">
  5. <view class="order-id-row">
  6. <text class="order-id">{{ order.id }}</text>
  7. <text :class="['status-badge', `badge-${order.statusKey}`]">{{ order.statusText }}</text>
  8. <text class="service-badge">{{ currentServiceName }}</text>
  9. </view>
  10. </view>
  11. <!-- 状态进度条 -->
  12. <view class="progress-card">
  13. <view class="progress-steps">
  14. <view v-for="(step, i) in progressSteps" :key="i"
  15. :class="['step-item', { done: step.done, active: step.active }]">
  16. <view class="step-circle">
  17. <uni-icons v-if="step.done" type="checkmarkempty" size="12" color="#fff"></uni-icons>
  18. <text v-else class="step-num">{{ i + 1 }}</text>
  19. </view>
  20. <view class="step-line" v-if="i < progressSteps.length - 1" :class="{ done: step.done }"></view>
  21. <text class="step-label">{{ step.label }}</text>
  22. <text class="step-time">{{ step.time }}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 宠物档案 + 用户信息 -->
  27. <view class="info-row-cards">
  28. <view class="info-card pet-card">
  29. <text class="card-label">宠物档案</text>
  30. <view class="pet-header">
  31. <view class="pet-avatar"><text>{{ order.petName[0] }}</text></view>
  32. <view class="pet-basic">
  33. <text class="pet-name">{{ order.petName }} ♂</text>
  34. <view class="pet-tags">
  35. <text class="mini-tag">{{ order.petAge }}岁</text>
  36. <text class="mini-tag">{{ order.petWeight }}kg</text>
  37. </view>
  38. </view>
  39. <text class="breed-badge">{{ order.petBreed }}</text>
  40. </view>
  41. <view class="pet-attrs">
  42. <view class="attr-item">
  43. <text class="attr-label">绝育状态</text>
  44. <text class="attr-val">已绝育</text>
  45. </view>
  46. <view class="attr-item">
  47. <text class="attr-label">疫苗状态</text>
  48. <text class="attr-val highlight">已接种</text>
  49. </view>
  50. <view class="attr-item full">
  51. <text class="attr-label">性格特点</text>
  52. <text class="attr-val">活泼好动,喜欢球类玩具</text>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="info-card user-card">
  57. <text class="card-label">用户信息</text>
  58. <view class="user-header">
  59. <view class="user-avatar">
  60. <uni-icons type="person" size="26" color="#aaa"></uni-icons>
  61. </view>
  62. <view class="user-basic">
  63. <text class="user-name-text">{{ order.userName }}</text>
  64. <text class="user-phone">{{ order.userPhone }}</text>
  65. </view>
  66. </view>
  67. <view class="service-address-box">
  68. <text class="addr-label">服务地址</text>
  69. <text class="addr-text">{{ order.address }}</text>
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 标签页 -->
  74. <view class="detail-tabs-wrap">
  75. <view class="tab-nav">
  76. <view v-for="tab in tabList" :key="tab.name"
  77. :class="['tab-nav-item', { active: activeTab === tab.name }]" @click="activeTab = tab.name">
  78. <text>{{ tab.title }}</text>
  79. </view>
  80. </view>
  81. <!-- 订单基础信息 -->
  82. <view class="tab-content" v-if="activeTab === 'base'">
  83. <view class="base-info-grid">
  84. <view class="bi-item" v-for="item in baseInfoList" :key="item.label">
  85. <text class="bi-label">{{ item.label }}</text>
  86. <text :class="['bi-val', item.highlight ? 'highlight' : '']">{{ item.value }}</text>
  87. </view>
  88. </view>
  89. <template v-if="activeService === 'transport'">
  90. <text class="sub-title">接送任务详情</text>
  91. <view class="route-block">
  92. <view class="route-header">
  93. <text class="route-tag pick">宠物接送</text>
  94. <text class="route-tag arrow">接</text>
  95. <text class="route-time">{{ order.pickTime }}</text>
  96. </view>
  97. <view class="route-addr">
  98. <uni-icons type="location" size="14" color="#999"></uni-icons>
  99. <text>{{ order.pickAddress }}</text>
  100. </view>
  101. </view>
  102. <view class="route-block">
  103. <view class="route-header">
  104. <text class="route-tag send">宠物接送</text>
  105. <text class="route-tag arrow send-arrow">送</text>
  106. <text class="route-time">{{ order.sendTime }}</text>
  107. </view>
  108. <view class="route-addr">
  109. <uni-icons type="location" size="14" color="#999"></uni-icons>
  110. <text>{{ order.sendAddress }}</text>
  111. </view>
  112. </view>
  113. </template>
  114. <template v-else>
  115. <text class="sub-title">上门服务地址</text>
  116. <view class="route-block">
  117. <view class="route-addr">
  118. <uni-icons type="location" size="14" color="#999"></uni-icons>
  119. <text>{{ order.address }}</text>
  120. </view>
  121. </view>
  122. </template>
  123. </view>
  124. <!-- 指派履约者 -->
  125. <view class="tab-content" v-if="activeTab === 'assignee'">
  126. <view class="empty-state" v-if="order.statusKey === 'wait_dispatch'">
  127. <uni-icons type="clock" size="40" color="#ccc"></uni-icons>
  128. <text class="empty-text">等待派单中...</text>
  129. </view>
  130. <view class="assignee-card" v-else>
  131. <view class="assignee-header">
  132. <view class="assignee-avatar">
  133. <uni-icons type="person" size="30" color="#aaa"></uni-icons>
  134. </view>
  135. <view class="assignee-info">
  136. <text class="assignee-name">{{ order.assigneeName }}</text>
  137. <text class="assignee-phone">联系电话:13812345678</text>
  138. <text class="assignee-zone">归属区域:朝阳服务站</text>
  139. </view>
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 服务进度 -->
  144. <view class="tab-content" v-if="activeTab === 'progress'">
  145. <view class="empty-state" v-if="['wait_dispatch', 'wait_accept'].includes(order.statusKey)">
  146. <uni-icons type="info" size="40" color="#ccc"></uni-icons>
  147. <text class="empty-text">服务尚未开始</text>
  148. </view>
  149. <view class="timeline" v-else>
  150. <view class="tl-item" v-for="(tl, i) in serviceTimeline" :key="i">
  151. <view class="tl-dot"></view>
  152. <view class="tl-body">
  153. <text class="tl-time">{{ tl.time }}</text>
  154. <text class="tl-title">{{ tl.title }}</text>
  155. <text class="tl-desc">{{ tl.desc }}</text>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. <!-- 订单日志 -->
  161. <view class="tab-content" v-if="activeTab === 'log'">
  162. <view class="timeline">
  163. <view class="tl-item" v-for="(log, i) in orderLogs" :key="i">
  164. <view class="tl-dot log-dot"></view>
  165. <view class="tl-body">
  166. <text class="tl-time">{{ log.time }}</text>
  167. <text class="tl-title">{{ log.title }}</text>
  168. <text class="tl-desc">{{ log.desc }}</text>
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. <!-- 底部取消按钮 -->
  175. <view class="cancel-bar safe-bottom" v-if="['wait_dispatch', 'wait_accept'].includes(order.statusKey)">
  176. <button class="cancel-order-btn" @click="onCancelOrder">取消订单</button>
  177. </view>
  178. </view>
  179. </template>
  180. <script setup>
  181. import { ref, reactive, computed } from 'vue'
  182. import { onLoad } from '@dcloudio/uni-app'
  183. const activeTab = ref('base')
  184. const activeService = ref('transport')
  185. const tabList = [
  186. { title: '基础信息', name: 'base' },
  187. { title: '履约者', name: 'assignee' },
  188. { title: '服务进度', name: 'progress' },
  189. { title: '订单日志', name: 'log' }
  190. ]
  191. const currentServiceName = computed(() => {
  192. const map = { transport: '宠物接送', feed: '上门喂遛', wash: '上门洗护' }
  193. return map[activeService.value]
  194. })
  195. onLoad((options) => {
  196. if (options.service) activeService.value = options.service
  197. if (options.status) {
  198. const statusTextMap = { wait_dispatch: '待派单', wait_accept: '待接单', serving: '服务中', done: '已完成', cancel: '已取消' }
  199. order.statusKey = options.status
  200. order.statusText = statusTextMap[options.status] || '服务中'
  201. }
  202. if (options.cancelTime) order.cancelTime = decodeURIComponent(options.cancelTime)
  203. })
  204. const order = reactive({
  205. id: 'ORD202402048803',
  206. statusKey: 'serving',
  207. statusText: '服务中',
  208. petName: 'Cookie',
  209. petBreed: '柯基',
  210. petAge: 2,
  211. petWeight: 15,
  212. userName: '王先生',
  213. userPhone: '13612345678',
  214. address: '北京市朝阳区 某小区5号楼2单元101',
  215. shopName: '爱宠生活馆 (中关村店)',
  216. createTime: '2024-02-04 12:00',
  217. bookTime: '2024-02-04 18:00',
  218. packageName: '新春特惠接送套餐',
  219. remark: '暂无备注',
  220. assigneeName: '张小美',
  221. cancelTime: '',
  222. pickAddress: '北京市朝阳区三里屯SOHO 6号楼',
  223. pickTime: '2024-02-04 09:30',
  224. sendAddress: '北京市朝阳区某小区5号楼2单元101',
  225. sendTime: '2024-02-04 18:00'
  226. })
  227. const progressSteps = computed(() => {
  228. const statusOrder = ['wait_dispatch', 'wait_accept', 'serving', 'done']
  229. const currentIdx = statusOrder.indexOf(order.statusKey)
  230. const allSteps = [
  231. { label: '商户下单', time: '02-04' },
  232. { label: '运营派单', time: '02-04' },
  233. { label: '履约接单', time: '02-05' },
  234. { label: '服务中', time: '02-04' },
  235. { label: '已完成', time: '' }
  236. ]
  237. if (order.statusKey === 'cancel') return allSteps.map((s, i) => ({ ...s, done: i === 0, active: false }))
  238. return allSteps.map((s, i) => ({ ...s, done: i <= currentIdx, active: i === currentIdx + 1 }))
  239. })
  240. const baseInfoList = computed(() => {
  241. const list = [
  242. { label: '系统单号', value: order.id },
  243. { label: '服务类型', value: currentServiceName.value },
  244. { label: '归属门店', value: order.shopName },
  245. { label: '宠主信息', value: `${order.userName} / ${order.userPhone}` },
  246. { label: '预约时间', value: order.bookTime },
  247. { label: '团购套餐', value: order.packageName },
  248. { label: '创建时间', value: order.createTime },
  249. { label: '订单备注', value: order.remark }
  250. ]
  251. if (order.statusKey === 'cancel') list.push({ label: '取消时间', value: order.cancelTime || '2024-02-02 11:30', highlight: true })
  252. return list
  253. })
  254. const serviceTimeline = [
  255. { time: '2024-02-04 09:30', title: '已接单', desc: '履约者 张小美 已确认接单' },
  256. { time: '2024-02-04 09:50', title: '到达打卡', desc: '已到达指定位置' },
  257. { time: '2024-02-04 10:10', title: '确认出发', desc: '接到宠物,状态良好' }
  258. ]
  259. const orderLogs = [
  260. { time: '2024-02-04 09:30', title: '订单创建', desc: '商户提交订单' },
  261. { time: '2024-02-04 10:00', title: '系统派单', desc: '指派给 张小美' },
  262. { time: '2024-02-04 10:05', title: '接单成功', desc: '履约者已确认接单' },
  263. { time: '2024-02-04 13:55', title: '到达服务点', desc: '履约者到达服务地址' }
  264. ]
  265. const onCancelOrder = () => {
  266. uni.showModal({
  267. title: '取消订单',
  268. content: `确定要取消订单 [${order.id}] 吗?`,
  269. confirmText: '确认取消',
  270. confirmColor: '#f44336',
  271. success: (res) => {
  272. if (res.confirm) {
  273. order.statusKey = 'cancel'
  274. order.statusText = '已取消'
  275. uni.showToast({ title: '订单已取消', icon: 'success' })
  276. setTimeout(() => uni.navigateBack(), 1000)
  277. }
  278. }
  279. })
  280. }
  281. </script>
  282. <style lang="scss" scoped>
  283. .order-detail-page {
  284. background: #f2f3f7;
  285. min-height: 100vh;
  286. padding-bottom: 160rpx;
  287. }
  288. .order-header {
  289. padding: 24rpx 32rpx 16rpx;
  290. }
  291. .order-id-row {
  292. display: flex;
  293. align-items: center;
  294. gap: 16rpx;
  295. flex-wrap: wrap;
  296. }
  297. .order-id {
  298. font-size: 26rpx;
  299. color: #666;
  300. font-family: monospace;
  301. }
  302. .status-badge {
  303. font-size: 22rpx;
  304. padding: 4rpx 16rpx;
  305. border-radius: 20rpx;
  306. font-weight: 600;
  307. }
  308. .badge-wait_dispatch {
  309. background: #fff0f0;
  310. color: #f44336;
  311. }
  312. .badge-wait_accept {
  313. background: #fff8e1;
  314. color: #ff9800;
  315. }
  316. .badge-serving {
  317. background: #e3f2fd;
  318. color: #2196f3;
  319. }
  320. .badge-done {
  321. background: #e8f5e9;
  322. color: #4caf50;
  323. }
  324. .badge-cancel {
  325. background: #f5f5f5;
  326. color: #9e9e9e;
  327. }
  328. .service-badge {
  329. font-size: 22rpx;
  330. padding: 4rpx 16rpx;
  331. border-radius: 20rpx;
  332. background: #fff3e0;
  333. color: #ff9500;
  334. }
  335. .progress-card {
  336. background: #fff;
  337. margin: 0 24rpx 24rpx;
  338. border-radius: 28rpx;
  339. padding: 32rpx 16rpx 24rpx;
  340. }
  341. .progress-steps {
  342. display: flex;
  343. align-items: flex-start;
  344. }
  345. .step-item {
  346. display: flex;
  347. flex-direction: column;
  348. align-items: center;
  349. flex: 1;
  350. position: relative;
  351. z-index: 1;
  352. }
  353. .step-circle {
  354. width: 44rpx;
  355. height: 44rpx;
  356. border-radius: 50%;
  357. background: #e0e0e0;
  358. display: flex;
  359. align-items: center;
  360. justify-content: center;
  361. margin-bottom: 8rpx;
  362. }
  363. .step-num {
  364. font-size: 20rpx;
  365. color: #fff;
  366. }
  367. .step-item.done .step-circle,
  368. .step-item.active .step-circle {
  369. background: #ff9500;
  370. }
  371. .step-line {
  372. position: absolute;
  373. top: 22rpx;
  374. left: 50%;
  375. width: 100%;
  376. height: 4rpx;
  377. background: #e0e0e0;
  378. z-index: 0;
  379. }
  380. .step-line.done {
  381. background: #ff9500;
  382. }
  383. .step-label {
  384. font-size: 20rpx;
  385. color: #999;
  386. text-align: center;
  387. }
  388. .step-item.done .step-label,
  389. .step-item.active .step-label {
  390. color: #ff9500;
  391. font-weight: 600;
  392. }
  393. .step-time {
  394. font-size: 18rpx;
  395. color: #bbb;
  396. margin-top: 4rpx;
  397. }
  398. .info-row-cards {
  399. display: flex;
  400. gap: 20rpx;
  401. margin: 0 24rpx 24rpx;
  402. }
  403. .info-card {
  404. flex: 1;
  405. background: #fff;
  406. border-radius: 28rpx;
  407. padding: 24rpx;
  408. min-width: 0;
  409. }
  410. .card-label {
  411. display: block;
  412. font-size: 24rpx;
  413. font-weight: 700;
  414. color: #333;
  415. margin-bottom: 20rpx;
  416. border-left: 6rpx solid #ff9500;
  417. padding-left: 12rpx;
  418. }
  419. .pet-header {
  420. display: flex;
  421. align-items: center;
  422. gap: 16rpx;
  423. margin-bottom: 20rpx;
  424. }
  425. .pet-avatar {
  426. width: 72rpx;
  427. height: 72rpx;
  428. border-radius: 20rpx;
  429. background: #e3f2fd;
  430. color: #2196f3;
  431. font-size: 36rpx;
  432. font-weight: bold;
  433. display: flex;
  434. align-items: center;
  435. justify-content: center;
  436. }
  437. .pet-basic {
  438. flex: 1;
  439. min-width: 0;
  440. }
  441. .pet-name {
  442. display: block;
  443. font-size: 28rpx;
  444. font-weight: bold;
  445. color: #222;
  446. }
  447. .pet-tags {
  448. display: flex;
  449. gap: 8rpx;
  450. margin-top: 6rpx;
  451. }
  452. .mini-tag {
  453. font-size: 20rpx;
  454. background: #f5f5f5;
  455. border-radius: 8rpx;
  456. padding: 2rpx 10rpx;
  457. color: #666;
  458. }
  459. .breed-badge {
  460. font-size: 20rpx;
  461. background: #ffe0b2;
  462. color: #e65100;
  463. border-radius: 8rpx;
  464. padding: 4rpx 12rpx;
  465. }
  466. .pet-attrs {
  467. display: flex;
  468. flex-wrap: wrap;
  469. gap: 12rpx 0;
  470. }
  471. .attr-item {
  472. width: 50%;
  473. }
  474. .attr-item.full {
  475. width: 100%;
  476. }
  477. .attr-label {
  478. display: block;
  479. font-size: 20rpx;
  480. color: #aaa;
  481. }
  482. .attr-val {
  483. display: block;
  484. font-size: 22rpx;
  485. color: #333;
  486. }
  487. .attr-val.highlight {
  488. color: #4caf50;
  489. }
  490. .user-header {
  491. display: flex;
  492. align-items: center;
  493. gap: 16rpx;
  494. margin-bottom: 20rpx;
  495. }
  496. .user-avatar {
  497. width: 80rpx;
  498. height: 80rpx;
  499. border-radius: 50%;
  500. background: #f5f5f5;
  501. display: flex;
  502. align-items: center;
  503. justify-content: center;
  504. }
  505. .user-name-text {
  506. display: block;
  507. font-size: 28rpx;
  508. font-weight: bold;
  509. color: #222;
  510. }
  511. .user-phone {
  512. display: block;
  513. font-size: 24rpx;
  514. color: #666;
  515. }
  516. .service-address-box {
  517. background: #fff8f0;
  518. border-radius: 16rpx;
  519. padding: 16rpx;
  520. }
  521. .addr-label {
  522. display: block;
  523. font-size: 20rpx;
  524. color: #ff9500;
  525. margin-bottom: 6rpx;
  526. }
  527. .addr-text {
  528. display: block;
  529. font-size: 22rpx;
  530. color: #333;
  531. line-height: 1.5;
  532. }
  533. .detail-tabs-wrap {
  534. margin: 0 24rpx;
  535. background: #fff;
  536. border-radius: 28rpx;
  537. overflow: hidden;
  538. }
  539. .tab-nav {
  540. display: flex;
  541. border-bottom: 1rpx solid #f0f0f0;
  542. }
  543. .tab-nav-item {
  544. flex: 1;
  545. text-align: center;
  546. padding: 24rpx 0;
  547. font-size: 24rpx;
  548. color: #666;
  549. position: relative;
  550. }
  551. .tab-nav-item.active {
  552. color: #ff9500;
  553. font-weight: bold;
  554. }
  555. .tab-nav-item.active::after {
  556. content: '';
  557. position: absolute;
  558. bottom: 0;
  559. left: 50%;
  560. transform: translateX(-50%);
  561. width: 48rpx;
  562. height: 6rpx;
  563. background: #ff9500;
  564. border-radius: 6rpx;
  565. }
  566. .tab-content {
  567. padding: 28rpx;
  568. min-height: 280rpx;
  569. }
  570. .base-info-grid {
  571. display: flex;
  572. flex-wrap: wrap;
  573. gap: 20rpx;
  574. margin-bottom: 32rpx;
  575. }
  576. .bi-item {
  577. width: calc(50% - 10rpx);
  578. background: #f8f8f8;
  579. border-radius: 16rpx;
  580. padding: 16rpx 20rpx;
  581. }
  582. .bi-label {
  583. display: block;
  584. font-size: 20rpx;
  585. color: #aaa;
  586. margin-bottom: 6rpx;
  587. }
  588. .bi-val {
  589. display: block;
  590. font-size: 24rpx;
  591. color: #333;
  592. font-weight: 500;
  593. }
  594. .bi-val.highlight {
  595. color: #f44336;
  596. }
  597. .sub-title {
  598. display: block;
  599. font-size: 26rpx;
  600. font-weight: 700;
  601. color: #333;
  602. margin-bottom: 20rpx;
  603. padding-left: 12rpx;
  604. border-left: 6rpx solid #ff9500;
  605. }
  606. .route-block {
  607. background: #f9f9f9;
  608. border-radius: 20rpx;
  609. padding: 20rpx 24rpx;
  610. margin-bottom: 20rpx;
  611. }
  612. .route-header {
  613. display: flex;
  614. align-items: center;
  615. gap: 12rpx;
  616. margin-bottom: 16rpx;
  617. }
  618. .route-tag {
  619. font-size: 22rpx;
  620. padding: 4rpx 12rpx;
  621. border-radius: 8rpx;
  622. }
  623. .route-tag.pick {
  624. background: #e3f2fd;
  625. color: #2196f3;
  626. }
  627. .route-tag.send {
  628. background: #e8f5e9;
  629. color: #4caf50;
  630. }
  631. .route-tag.arrow {
  632. background: #2196f3;
  633. color: #fff;
  634. }
  635. .route-tag.send-arrow {
  636. background: #4caf50;
  637. }
  638. .route-time {
  639. font-size: 22rpx;
  640. color: #ff9500;
  641. margin-left: auto;
  642. }
  643. .route-addr {
  644. display: flex;
  645. align-items: center;
  646. gap: 8rpx;
  647. font-size: 24rpx;
  648. color: #555;
  649. }
  650. .assignee-card {
  651. background: #f9f9f9;
  652. border-radius: 24rpx;
  653. padding: 28rpx;
  654. }
  655. .assignee-header {
  656. display: flex;
  657. gap: 24rpx;
  658. }
  659. .assignee-avatar {
  660. width: 100rpx;
  661. height: 100rpx;
  662. border-radius: 50%;
  663. background: #e0e0e0;
  664. display: flex;
  665. align-items: center;
  666. justify-content: center;
  667. }
  668. .assignee-name {
  669. display: block;
  670. font-size: 30rpx;
  671. font-weight: bold;
  672. color: #222;
  673. margin-bottom: 8rpx;
  674. }
  675. .assignee-phone,
  676. .assignee-zone {
  677. display: block;
  678. font-size: 24rpx;
  679. color: #666;
  680. margin-bottom: 4rpx;
  681. }
  682. .timeline {
  683. position: relative;
  684. padding-left: 40rpx;
  685. }
  686. .tl-item {
  687. position: relative;
  688. margin-bottom: 40rpx;
  689. padding-left: 32rpx;
  690. }
  691. .tl-dot {
  692. position: absolute;
  693. left: -12rpx;
  694. top: 8rpx;
  695. width: 24rpx;
  696. height: 24rpx;
  697. border-radius: 50%;
  698. background: #ff9500;
  699. border: 4rpx solid #fff;
  700. box-shadow: 0 0 0 4rpx #ff9500;
  701. }
  702. .tl-item::before {
  703. content: '';
  704. position: absolute;
  705. left: -2rpx;
  706. top: 32rpx;
  707. bottom: -40rpx;
  708. width: 4rpx;
  709. background: #f0f0f0;
  710. }
  711. .tl-item:last-child::before {
  712. display: none;
  713. }
  714. .tl-time {
  715. display: block;
  716. font-size: 22rpx;
  717. color: #aaa;
  718. margin-bottom: 6rpx;
  719. }
  720. .tl-title {
  721. display: block;
  722. font-size: 28rpx;
  723. font-weight: 600;
  724. color: #222;
  725. margin-bottom: 6rpx;
  726. }
  727. .tl-desc {
  728. display: block;
  729. font-size: 24rpx;
  730. color: #666;
  731. }
  732. .log-dot {
  733. background: #e0e0e0;
  734. box-shadow: 0 0 0 4rpx #e0e0e0;
  735. }
  736. .empty-state {
  737. display: flex;
  738. flex-direction: column;
  739. align-items: center;
  740. justify-content: center;
  741. padding: 80rpx 0;
  742. gap: 24rpx;
  743. }
  744. .empty-text {
  745. font-size: 26rpx;
  746. color: #bbb;
  747. }
  748. .cancel-bar {
  749. position: fixed;
  750. bottom: 0;
  751. left: 0;
  752. right: 0;
  753. padding: 24rpx 32rpx;
  754. background: rgba(255, 255, 255, 0.95);
  755. box-shadow: 0 -8rpx 28rpx rgba(0, 0, 0, 0.08);
  756. z-index: 100;
  757. }
  758. .cancel-order-btn {
  759. width: 100%;
  760. height: 96rpx;
  761. font-size: 32rpx;
  762. font-weight: 600;
  763. border: 2rpx solid #f44336;
  764. color: #f44336;
  765. background: transparent;
  766. border-radius: 48rpx;
  767. line-height: 96rpx;
  768. }
  769. </style>