order-blist.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. <template>
  2. <view class="page">
  3. <u-navbar title="订单明细" :autoBack="true" :placeholder="true" :border-bottom="true"></u-navbar>
  4. <view class="search-bar">
  5. <u-search
  6. v-model="keyword"
  7. placeholder="请输入商品名称"
  8. bg-color="#f7f8fc"
  9. search-icon-color="#c9cdd4"
  10. placeholder-color="#c9cdd4"
  11. :show-action="true"
  12. action-text="搜索"
  13. :action-style="actionStyle"
  14. @search="onSearch"
  15. @custom="onSearch"
  16. ></u-search>
  17. </view>
  18. <view class="status-tabs">
  19. <view
  20. v-for="(tab, index) in statusTabs"
  21. :key="tab.value"
  22. :class="['status-tab', { active: currentTab === index }]"
  23. @click="onTabChange(index)"
  24. >
  25. <text>{{ tab.name }}</text>
  26. <image
  27. v-if="currentTab === index"
  28. class="arrow-down"
  29. src="/static/merchantDish/select-tab.png"
  30. mode="aspectFit"
  31. ></image>
  32. </view>
  33. </view>
  34. <view class="date-filter">
  35. <view class="date-trigger" @click="openDatePicker">
  36. <text>{{ dateLabel }}</text>
  37. <u-icon name="arrow-down" size="20" color="#86909c"></u-icon>
  38. </view>
  39. <view v-if="startDate && endDate" class="date-clear" @click.stop="clearDate">
  40. <u-icon name="close-circle" size="24" color="#86909c"></u-icon>
  41. </view>
  42. </view>
  43. <view class="list-wrap">
  44. <ListScrollView
  45. ref="listScroll"
  46. :api="api"
  47. :init="initParams"
  48. :page-size="10"
  49. :down-enabled="false"
  50. :up-text-visible="false"
  51. empty-text="暂无订单明细"
  52. >
  53. <template v-slot:list="{ data }">
  54. <view class="detail-list">
  55. <view v-if="currentTab === 2" class="after-sale-list">
  56. <view
  57. v-for="entry in getAfterSaleEntries(data)"
  58. :key="entry.key"
  59. class="detail-card after-sale-card"
  60. @click="openAfterSaleOrder(entry.group, entry.item)"
  61. >
  62. <view class="after-sale-header">
  63. <view class="address-title">
  64. <u-icon name="map" color="#86909c" size="30"></u-icon>
  65. <text>{{ entry.group.deliveryAddress || entry.group.address || entry.item.deliveryAddress || entry.item.address || '暂无地址' }}</text>
  66. </view>
  67. <text :class="['after-sale-status', getAfterSaleStatusClass(entry)]">
  68. {{ getAfterSaleStatusText(entry) }}
  69. </text>
  70. </view>
  71. <text class="region">{{ entry.group.region || entry.item.region || '' }}</text>
  72. <view class="order-separator"></view>
  73. <view class="pickup-row after-sale-pickup">
  74. <text class="pickup-number">取餐号:{{ getMealNumber(entry.item) }}</text>
  75. <view class="customer-info">
  76. <text>{{ getCustomerName(entry.item, entry.group) }}</text>
  77. <text>{{ getCustomerPhone(entry.item, entry.group) }}</text>
  78. </view>
  79. </view>
  80. <view class="product-row after-sale-product">
  81. <u-image
  82. width="120rpx"
  83. height="120rpx"
  84. border-radius="8rpx"
  85. :src="getProductImage(entry.item.productImage)"
  86. mode="aspectFill"
  87. ></u-image>
  88. <view class="product-info">
  89. <text class="product-name">{{ entry.item.packageName || entry.item.dishName || '团餐套餐' }}</text>
  90. <text class="product-desc">{{ getDishDescription(entry.item) }}</text>
  91. <view class="product-bottom">
  92. <text class="quantity">{{ getItemCopies(entry.item) }}份</text>
  93. <view class="price-wrap after-sale-price">
  94. <text class="price-label">成团价:</text>
  95. <text class="price-unit">¥</text>
  96. <text class="price">{{ formatMoney(getItemPrice(entry.item)) }}</text>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <template v-else>
  104. <view
  105. v-for="(group, groupIndex) in data"
  106. :key="group.hostOrderId || group.id || groupIndex"
  107. class="detail-card"
  108. >
  109. <view :class="['group-header', { 'completed-group-header': currentTab === 1 }]">
  110. <view v-if="currentTab === 0" class="group-time">
  111. <u-icon name="clock" color="#4e5969" size="28"></u-icon>
  112. <text>成团时间:{{ getGroupTime(group) }}</text>
  113. </view>
  114. <text class="copies">合计:<text>{{ getGroupCopies(group) }}</text>份</text>
  115. </view>
  116. <view class="address-row">
  117. <view class="address-title">
  118. <u-icon name="map" color="#4e5969" size="30"></u-icon>
  119. <text>{{ group.deliveryAddress || group.address || '暂无地址' }}</text>
  120. </view>
  121. </view>
  122. <text class="region">{{ group.region || '' }}</text>
  123. <view class="order-separator"></view>
  124. <view
  125. v-for="(item, itemIndex) in getGroupItems(group)"
  126. :key="getItemKey(group, item, itemIndex, groupIndex)"
  127. class="detail-item"
  128. @click="openOrder(group, item)"
  129. >
  130. <view class="pickup-row">
  131. <text class="pickup-number">取餐号:{{ getMealNumber(item) }}</text>
  132. <text class="item-status">{{ getItemStatusText(item) }}</text>
  133. </view>
  134. <view class="product-row">
  135. <u-image
  136. width="120rpx"
  137. height="120rpx"
  138. border-radius="8rpx"
  139. :src="getProductImage(item.productImage)"
  140. mode="aspectFill"
  141. ></u-image>
  142. <view class="product-info">
  143. <text class="product-name">{{ item.packageName || item.dishName || '团餐套餐' }}</text>
  144. <text class="box-fee">餐盒费:{{ formatMoney(getItemContainerFee(item)) }}元</text>
  145. <view class="product-bottom">
  146. <text class="quantity">{{ getItemCopies(item) }}份</text>
  147. <view class="price-wrap">
  148. <text class="price-label">成团价:</text>
  149. <text class="price-unit">¥</text>
  150. <text class="price">{{ formatMoney(getItemPrice(item)) }}</text>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. </view>
  156. <view class="card-footer">
  157. <view class="footer-amount">
  158. <text>合计餐盒费:</text>
  159. <text class="amount-unit">¥</text>
  160. <text class="amount-value box-total">{{ formatMoney(getGroupContainerFee(group)) }}</text>
  161. </view>
  162. <view class="footer-amount">
  163. <text>合计金额:</text>
  164. <text class="amount-unit">¥</text>
  165. <text class="amount-value total-amount">{{ formatMoney(getGroupAmount(group)) }}</text>
  166. </view>
  167. </view>
  168. </view>
  169. </template>
  170. </view>
  171. </template>
  172. </ListScrollView>
  173. </view>
  174. <rangTime
  175. ref="rangeTime"
  176. :mode="1"
  177. title="选择日期"
  178. :default-start-date="startDate"
  179. :default-end-date="endDate"
  180. @onSubmit="onDateRangeConfirm"
  181. />
  182. </view>
  183. </template>
  184. <script>
  185. import ListScrollView from '@/components/list-scroll-view/index.vue'
  186. import rangTime from '@/components/dengrq-datetime-picker/dateSelector/index.vue'
  187. export default {
  188. components: {
  189. ListScrollView,
  190. rangTime
  191. },
  192. data() {
  193. return {
  194. api: {
  195. url: '/groupmeal/merchantPackageOrder/getOrderDteails',
  196. method: 'POST'
  197. },
  198. keyword: '',
  199. currentTab: 0,
  200. statusTabs: [
  201. { name: '待出餐', value: 1 },
  202. { name: '已出餐', value: 2 },
  203. { name: '售后', value: 3 }
  204. ],
  205. startDate: '',
  206. endDate: '',
  207. listReady: false,
  208. actionStyle: {
  209. width: 'auto',
  210. color: '#333',
  211. fontSize: '26rpx',
  212. padding: '0 20rpx',
  213. borderLeft: '1rpx solid #e5e7eb'
  214. }
  215. }
  216. },
  217. computed: {
  218. initParams() {
  219. const params = {
  220. orderStatus: this.statusTabs[this.currentTab].value
  221. }
  222. if (this.keyword) params.queryName = this.keyword
  223. if (this.startDate && this.endDate) {
  224. params.completeStartDate = this.startDate
  225. params.completeEndDate = this.endDate
  226. }
  227. return params
  228. },
  229. dateLabel() {
  230. if (!this.startDate || !this.endDate) return '选择日期'
  231. return `${this.formatDateLabel(this.startDate)}-${this.formatDateLabel(this.endDate)}`
  232. }
  233. },
  234. onShow() {
  235. if (this.listReady) {
  236. this.reloadList()
  237. } else {
  238. this.listReady = true
  239. }
  240. },
  241. methods: {
  242. onSearch(value) {
  243. this.keyword = typeof value === 'string' ? value.trim() : this.keyword.trim()
  244. this.reloadList()
  245. },
  246. onTabChange(index) {
  247. if (this.currentTab === index) return
  248. this.currentTab = index
  249. this.reloadList()
  250. },
  251. openDatePicker() {
  252. const picker = this.$refs.rangeTime
  253. if (!picker) return
  254. picker.startDate = this.startDate
  255. picker.endDate = this.endDate
  256. picker.open()
  257. },
  258. onDateRangeConfirm(value) {
  259. this.startDate = value.startDate
  260. this.endDate = value.endDate
  261. this.reloadList()
  262. },
  263. clearDate() {
  264. this.startDate = ''
  265. this.endDate = ''
  266. this.reloadList()
  267. },
  268. reloadList() {
  269. this.$nextTick(() => {
  270. const list = this.$refs.listScroll
  271. if (list) list.reloadList(this.initParams)
  272. })
  273. },
  274. getGroupItems(group) {
  275. return group.orderChildren || group.merchantPackageOrderDTOS || group.items || []
  276. },
  277. getAfterSaleEntries(data) {
  278. return (data || []).reduce((entries, group, groupIndex) => {
  279. const items = this.getGroupItems(group)
  280. if (!items.length) {
  281. entries.push({
  282. group,
  283. item: group,
  284. key: this.getItemKey(group, group, 0, groupIndex)
  285. })
  286. return entries
  287. }
  288. items.forEach((item, itemIndex) => {
  289. entries.push({
  290. group,
  291. item,
  292. key: this.getItemKey(group, item, itemIndex, groupIndex)
  293. })
  294. })
  295. return entries
  296. }, [])
  297. },
  298. getGroupKey(group, groupIndex) {
  299. return group.hostOrderId || group.id || `group-${groupIndex}`
  300. },
  301. getItemKey(group, item, itemIndex, groupIndex) {
  302. return `${this.getGroupKey(group, groupIndex)}-${item.userOrderId || item.merchantOrderPackageId || item.id || itemIndex}`
  303. },
  304. getGroupTime(group) {
  305. const value = group.groupTime || group.groupMealTime || group.groupSuccessTime || group.groupingTime || group.clusterTime || group.createTime || group.orderTime || group.payTime || ''
  306. if (!value) return '--'
  307. const text = String(value).trim()
  308. const match = text.match(/^(\d{4})[-/.](\d{1,2})[-/.](\d{1,2})(?:[ T](\d{1,2}):(\d{2}))?/)
  309. if (!match) return text.length > 16 ? text.slice(0, 16) : text
  310. const date = `${match[1]}.${Number(match[2])}.${Number(match[3])}`
  311. return match[4] ? `${date} ${String(match[4]).padStart(2, '0')}:${match[5]}` : date
  312. },
  313. getMealNumber(item) {
  314. return item.mealNumber || item.pickupNumber || item.takeMealNumber || item.mealCode || '--'
  315. },
  316. getCustomerName(item, group = {}) {
  317. return item.linkName || item.userName || item.customerName || item.consignee || group.linkName || group.userName || '--'
  318. },
  319. getCustomerPhone(item, group = {}) {
  320. return item.userPhone || group.userPhone || '--'
  321. },
  322. getDishDescription(item) {
  323. return item.dishName || item.packageContent || item.dishNames || item.boxName || '暂无菜品信息'
  324. },
  325. getGroupCopies(group) {
  326. return group.totalCopies || group.copies || group.buyNumber || this.getGroupItems(group).reduce((sum, item) => sum + this.getItemCopies(item), 0)
  327. },
  328. getItemCopies(item) {
  329. return Number(item.packageNumber || item.numberUserCount || item.copies || 0)
  330. },
  331. getItemPrice(item) {
  332. if (item.groupPrice != null) return item.groupPrice
  333. if (item.price != null) return item.price
  334. return item.packagePrice || 0
  335. },
  336. getItemContainerFee(item) {
  337. if (item.containerFee != null) return item.containerFee
  338. if (item.boxFee != null) return item.boxFee
  339. return Number(item.boxPrice || 0) * this.getItemCopies(item)
  340. },
  341. getGroupContainerFee(group) {
  342. if (group.containerFeeTotal != null) return group.containerFeeTotal
  343. if (group.boxFeeTotal != null) return group.boxFeeTotal
  344. return this.getGroupItems(group).reduce((sum, item) => sum + Number(this.getItemContainerFee(item) || 0), 0)
  345. },
  346. getGroupAmount(group) {
  347. if (group.amountTotal != null) return group.amountTotal
  348. if (group.copiesAmount != null) return group.copiesAmount
  349. return group.totalAmount != null ? group.totalAmount : 0
  350. },
  351. getItemStatusText(item) {
  352. const text = item.orderStatusName || item.statusName || ''
  353. if (text.includes('已出餐')) return '已出餐'
  354. if (text.includes('未出餐') || text.includes('待出餐') || text.includes('成团')) return '未出餐'
  355. const status = Number(item.orderStatus)
  356. if (Number.isFinite(status)) return status >= 3 && status !== 6 ? '已出餐' : '未出餐'
  357. return this.currentTab === 1 ? '已出餐' : '未出餐'
  358. },
  359. getAfterSaleStatusText(entry) {
  360. const item = entry.item || {}
  361. const group = entry.group || {}
  362. const text = item.refundStatusName || item.refundTypeName || item.afterSaleStatusName || group.refundStatusName || group.refundTypeName || group.afterSaleStatusName
  363. if (text) {
  364. if (text.includes('成功')) return '退款成功'
  365. if (text.includes('拒绝')) return '拒绝退款'
  366. if (text.includes('失败')) return '退款失败'
  367. if (text.includes('申请') || text.includes('处理中') || text.includes('退款中')) return '售后申请中'
  368. return text
  369. }
  370. const type = item.refundType != null
  371. ? item.refundType
  372. : (item.refundStatus != null ? item.refundStatus : (group.refundType != null ? group.refundType : group.refundStatus))
  373. return ({ 0: '售后申请中', 1: '退款成功', 2: '售后申请中', 3: '退款失败', 4: '拒绝退款' })[type] || '售后申请中'
  374. },
  375. getAfterSaleStatusClass(entry) {
  376. const text = this.getAfterSaleStatusText(entry)
  377. if (text.includes('成功')) return 'success'
  378. if (text.includes('拒绝') || text.includes('失败')) return 'danger'
  379. return 'pending'
  380. },
  381. formatDateLabel(value) {
  382. const parts = String(value || '').slice(0, 10).split('-')
  383. if (parts.length !== 3) return value
  384. return `${Number(parts[1])}.${Number(parts[2])}`
  385. },
  386. formatMoney(value) {
  387. const number = Number(value)
  388. if (!Number.isFinite(number)) return '0'
  389. return number.toFixed(2).replace(/\.00$/, '').replace(/(\.\d)0$/, '$1')
  390. },
  391. getProductImage(value) {
  392. const image = String(value || '').split(',').filter(Boolean)[0] || ''
  393. if (!image || /^https?:\/\//.test(image)) return image
  394. return this.$config && this.$config.apiUrl ? `${this.$config.apiUrl}/${image}` : image
  395. },
  396. openOrder(group, item) {
  397. const hostOrderId = group.hostOrderId || item.hostOrderId
  398. if (!hostOrderId) return
  399. uni.navigateTo({
  400. url: `/pages/merchantDish/orders/order-details?hostOrderId=${encodeURIComponent(hostOrderId)}`
  401. })
  402. },
  403. openAfterSaleOrder(group, item) {
  404. const params = {
  405. packageId: item.packageId || group.packageId,
  406. userOrderId: item.userOrderId || group.userOrderId,
  407. hostOrderId: item.hostOrderId || group.hostOrderId
  408. }
  409. if (!params.hostOrderId) {
  410. uni.showToast({ title: '缺少订单信息', icon: 'none' })
  411. return
  412. }
  413. const query = this.$u.queryParams(params)
  414. uni.navigateTo({
  415. url: `/pages/merchantDish/orders/refund-details${query}`
  416. })
  417. }
  418. }
  419. }
  420. </script>
  421. <style lang="scss" scoped>
  422. .page {
  423. display: flex;
  424. flex-direction: column;
  425. height: 100vh;
  426. box-sizing: border-box;
  427. background: #f7f8fc;
  428. overflow: hidden;
  429. }
  430. .search-bar {
  431. height: 88rpx;
  432. box-sizing: border-box;
  433. padding: 10rpx 32rpx;
  434. background: #fff;
  435. }
  436. .status-tabs {
  437. display: flex;
  438. align-items: center;
  439. justify-content: space-between;
  440. height: 88rpx;
  441. box-sizing: border-box;
  442. padding: 0 40rpx;
  443. background: #fff;
  444. }
  445. .status-tab {
  446. position: relative;
  447. display: flex;
  448. align-items: center;
  449. justify-content: center;
  450. width: 120rpx;
  451. height: 100%;
  452. color: #86909c;
  453. font-size: 30rpx;
  454. }
  455. .status-tab.active {
  456. color: #1c7cf9;
  457. font-weight: 500;
  458. }
  459. .arrow-down {
  460. position: absolute;
  461. bottom: 8rpx;
  462. left: 50%;
  463. width: 48rpx;
  464. height: 8rpx;
  465. transform: translateX(-50%);
  466. }
  467. .date-filter {
  468. display: flex;
  469. align-items: center;
  470. justify-content: center;
  471. height: 80rpx;
  472. color: #86909c;
  473. font-size: 28rpx;
  474. }
  475. .date-trigger {
  476. display: flex;
  477. align-items: center;
  478. gap: 6rpx;
  479. }
  480. .date-clear {
  481. display: flex;
  482. align-items: center;
  483. padding: 12rpx 4rpx 12rpx 10rpx;
  484. }
  485. .list-wrap {
  486. flex: 1;
  487. height: 0;
  488. overflow: hidden;
  489. }
  490. .detail-list {
  491. box-sizing: border-box;
  492. padding: 0 32rpx 32rpx;
  493. }
  494. .detail-card {
  495. box-sizing: border-box;
  496. margin-bottom: 20rpx;
  497. padding: 24rpx;
  498. border-radius: 16rpx;
  499. background: #fff;
  500. }
  501. .group-header,
  502. .after-sale-header,
  503. .address-row,
  504. .pickup-row,
  505. .product-row,
  506. .product-bottom,
  507. .card-footer,
  508. .footer-amount {
  509. display: flex;
  510. align-items: center;
  511. }
  512. .group-header {
  513. justify-content: space-between;
  514. min-width: 0;
  515. }
  516. .completed-group-header {
  517. justify-content: flex-end;
  518. }
  519. .after-sale-header {
  520. justify-content: space-between;
  521. gap: 16rpx;
  522. min-width: 0;
  523. }
  524. .after-sale-header .address-title {
  525. flex: 1;
  526. }
  527. .after-sale-status {
  528. flex-shrink: 0;
  529. font-size: 28rpx;
  530. line-height: 28rpx;
  531. white-space: nowrap;
  532. }
  533. .after-sale-status.pending {
  534. color: #f8b328;
  535. }
  536. .after-sale-status.success {
  537. color: #39cf34;
  538. }
  539. .after-sale-status.danger {
  540. color: #f53f3f;
  541. }
  542. .group-time {
  543. display: flex;
  544. align-items: center;
  545. gap: 8rpx;
  546. min-width: 0;
  547. color: #4e5969;
  548. font-size: 28rpx;
  549. }
  550. .group-time text {
  551. overflow: hidden;
  552. text-overflow: ellipsis;
  553. white-space: nowrap;
  554. }
  555. .copies {
  556. flex-shrink: 0;
  557. margin-left: 12rpx;
  558. color: #999;
  559. font-size: 26rpx;
  560. }
  561. .copies text {
  562. color: #388bf9;
  563. }
  564. .address-row {
  565. justify-content: space-between;
  566. margin-top: 10rpx;
  567. }
  568. .address-title {
  569. display: flex;
  570. align-items: center;
  571. gap: 10rpx;
  572. min-width: 0;
  573. color: #1d2129;
  574. font-size: 30rpx;
  575. font-weight: 600;
  576. }
  577. .address-title text {
  578. overflow: hidden;
  579. text-overflow: ellipsis;
  580. white-space: nowrap;
  581. }
  582. .region {
  583. display: block;
  584. margin-top: 10rpx;
  585. color: #666;
  586. font-size: 26rpx;
  587. }
  588. .order-separator {
  589. height: 1rpx;
  590. margin-top: 20rpx;
  591. background: #eee;
  592. }
  593. .detail-item {
  594. padding: 16rpx 0 24rpx;
  595. border-bottom: 1rpx solid #eee;
  596. }
  597. .pickup-row {
  598. justify-content: space-between;
  599. box-sizing: border-box;
  600. height: 64rpx;
  601. padding: 10rpx;
  602. border-radius: 8rpx;
  603. background: #eff6ff;
  604. }
  605. .after-sale-pickup {
  606. margin-top: 16rpx;
  607. }
  608. .pickup-number {
  609. color: #333;
  610. font-size: 30rpx;
  611. }
  612. .item-status {
  613. color: #86909c;
  614. font-size: 28rpx;
  615. }
  616. .customer-info {
  617. display: flex;
  618. align-items: center;
  619. gap: 16rpx;
  620. min-width: 0;
  621. color: #333;
  622. font-size: 30rpx;
  623. }
  624. .customer-info text {
  625. overflow: hidden;
  626. text-overflow: ellipsis;
  627. white-space: nowrap;
  628. }
  629. .product-row {
  630. align-items: stretch;
  631. gap: 12rpx;
  632. margin-top: 16rpx;
  633. }
  634. .product-info {
  635. display: flex;
  636. flex: 1;
  637. min-width: 0;
  638. flex-direction: column;
  639. justify-content: space-between;
  640. }
  641. .product-name {
  642. overflow: hidden;
  643. color: #1d2129;
  644. font-size: 28rpx;
  645. text-overflow: ellipsis;
  646. white-space: nowrap;
  647. }
  648. .box-fee,
  649. .product-desc,
  650. .quantity {
  651. color: #86909c;
  652. font-size: 24rpx;
  653. }
  654. .product-desc {
  655. display: block;
  656. overflow: hidden;
  657. text-overflow: ellipsis;
  658. white-space: nowrap;
  659. }
  660. .product-bottom {
  661. justify-content: space-between;
  662. }
  663. .price-wrap {
  664. display: flex;
  665. align-items: baseline;
  666. color: #1d2129;
  667. }
  668. .price-label {
  669. margin-right: 4rpx;
  670. color: #4e5969;
  671. font-size: 24rpx;
  672. }
  673. .price-unit {
  674. font-size: 24rpx;
  675. }
  676. .price {
  677. font-size: 32rpx;
  678. }
  679. .after-sale-price .price-unit,
  680. .after-sale-price .price {
  681. color: #ff004e;
  682. }
  683. .card-footer {
  684. justify-content: space-between;
  685. padding-top: 20rpx;
  686. color: #86909c;
  687. font-size: 26rpx;
  688. }
  689. .footer-amount {
  690. align-items: baseline;
  691. white-space: nowrap;
  692. }
  693. .amount-unit,
  694. .amount-value {
  695. color: #ff004e;
  696. }
  697. .amount-unit {
  698. margin-left: 8rpx;
  699. font-size: 24rpx;
  700. }
  701. .amount-value {
  702. font-size: 32rpx;
  703. }
  704. .total-amount {
  705. font-size: 40rpx;
  706. }
  707. ::v-deep .u-search {
  708. height: 64rpx;
  709. border-radius: 8rpx;
  710. }
  711. </style>