refund-detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  1. <template>
  2. <view class="refund-detail-page">
  3. <!-- 状态头部 -->
  4. <view class="status-header">
  5. <view class="status-title"
  6. v-if="orderInfo.disposeType && orderInfo.disposeType == 2 && orderInfo.status == 2">退货商品异常</view>
  7. <view class="status-title" v-else>{{ getStatusText(orderInfo.status) }}</view>
  8. <!-- 倒计时 -->
  9. <view class="status-desc" v-if="orderInfo.restAuditSecond > 0">
  10. <u-count-down :timestamp="orderInfo.restAuditSecond" separator="zh" :show-seconds="false"
  11. @end="getDetail" font-size="26" separator-size="26" separator-color="#999" color="#999" bg-color="transparent"></u-count-down>
  12. <template>
  13. <text class="status-desc" v-if="orderInfo.status == 1">后平台未处理将自动同意</text>
  14. <text class="status-desc" v-if="orderInfo.status == 2">后买家未处理将自动撤销</text>
  15. <text class="status-desc" v-if="orderInfo.status == 3">后平台处理将自动同意退款</text>
  16. <text class="status-desc" v-if="orderInfo.status == 4">后未寄出平台将自动撤销退货申请</text>
  17. </template>
  18. </view>
  19. <template v-if="orderInfo.status == '1'">
  20. <view class="status-tip">您已成功发起退款申请,请耐心等待平台处理</view>
  21. </template>
  22. <template v-else>
  23. <!-- 协商UI -->
  24. <view class="negotiation-card" v-if="orderInfo.status == '2'">
  25. <view class="negotiation-content">
  26. <u-icon name="file-text-fill" color="#FF6600" size="40" class="negotiation-icon"></u-icon>
  27. <view class="negotiation-text">
  28. <view class="negotiation-title">协商修改退款金额为{{ orderInfo.disposeMoney || orderInfo.refundMoney
  29. }}元</view>
  30. <view class="negotiation-desc" v-if="orderInfo.disposeType == 3">我们愿意支持退货退款,若您接受修改退货退款,请将退货商品寄回平台</view>
  31. <view class="negotiation-desc" v-else>我们愿意支持退款,若您接受修改金额,我们将立刻退款给您</view>
  32. </view>
  33. </view>
  34. <view class="negotiation-actions">
  35. <u-button size="mini" :custom-style="rejectBtnStyle"
  36. @click="handleNegotiation(false)">拒绝协商</u-button>
  37. <u-button size="mini" :custom-style="acceptBtnStyle"
  38. @click="handleNegotiation(true)">接受协商</u-button>
  39. </view>
  40. </view>
  41. <!-- 退款成功金额展示 -->
  42. <view class="refund-amount-box" v-if="orderInfo.status == '9'">
  43. <view class="amount-row">
  44. <text class="label">退回余额</text>
  45. <text class="value">¥{{ orderInfo.refundMoney }}</text>
  46. </view>
  47. </view>
  48. </template>
  49. </view>
  50. <!-- 退货方式 (状态为4时显示) -->
  51. <view class="info-card return-method-card" v-if="orderInfo.status == '4'">
  52. <view class="card-title">请选择退货方式</view>
  53. <!-- 这里可以加倒计时,类似:1天11时57分后未寄出平台将自动撤销退货申请,需根据接口返回字段 -->
  54. <view class="method-tabs">
  55. <view class="tab-item disabled">
  56. <view class="tab-name">上门取件</view>
  57. <view class="tab-desc">(快递员上门取包裹)</view>
  58. </view>
  59. <view class="tab-item disabled">
  60. <view class="tab-name">驿站自寄</view>
  61. <view class="tab-desc">(随到随退)</view>
  62. </view>
  63. <view class="tab-item active">
  64. <view class="tab-name">自行寄回</view>
  65. <view class="tab-desc">(需填写单号)</view>
  66. </view>
  67. </view>
  68. <view class="warning-box">
  69. 需您自行联系快递公司退回,请不要邮寄到付
  70. </view>
  71. <view class="address-box">
  72. <view class="address-label">平台地址</view>
  73. <view class="address-content">
  74. <view class="name">{{ orderInfo.receiverName }} {{ orderInfo.receiverMobile }}</view>
  75. <view class="detail">{{ orderInfo.receiverAddress }} <image
  76. src="/pages-mine/static/copy.png" class="copy-icon" @click="copyAddress"></image>
  77. </view>
  78. </view>
  79. <u-icon name="arrow-right" color="#ccc" size="28"></u-icon>
  80. </view>
  81. <u-button type="success" shape="circle" :custom-style="fillBtnStyle"
  82. @click="goToFillLogistics">填写单号</u-button>
  83. </view>
  84. <!-- 商品信息 -->
  85. <view class="info-card goods-card" v-if="orderInfo.bookName">
  86. <view class="goods-item">
  87. <image :src="orderInfo.cover" mode="aspectFill" class="goods-cover"></image>
  88. <view class="goods-info">
  89. <view class="goods-title u-line-2">{{ orderInfo.bookName }}</view>
  90. <view class="goods-sku" v-if="orderInfo.isbn">品相:{{ orderInfo.conditionType | conditionText }}
  91. </view>
  92. <view class="price-box">
  93. <text class="price" v-if="orderInfo.price">¥{{ orderInfo.price }}</text>
  94. <text class="price" v-else></text>
  95. <text class="num">x{{ orderInfo.refundNum || 1 }}</text>
  96. </view>
  97. <!-- 状态Badge -->
  98. <view class="refund-status-tag red-tag" v-if="orderInfo.status == '1'">
  99. <text>退款中</text>
  100. </view>
  101. <view class="refund-status-tag" v-if="orderInfo.status == '9'">退款成功</view>
  102. </view>
  103. </view>
  104. </view>
  105. <!-- 退款信息 (包含协商历史) -->
  106. <view class="info-card detail-card">
  107. <!-- 协商历史 -->
  108. <view class="row history-row" @click="goToHistory">
  109. <text class="label">协商历史</text>
  110. <view class="value flex-row link-text">
  111. <text>查看</text>
  112. <!-- <u-icon name="arrow-right" color="#38C148" size="24"></u-icon> -->
  113. <image src="/static/images/arrow-right-green.png" style="width: 24rpx; height: 24rpx;" v-if="false">
  114. </image>
  115. <!-- 使用文字或默认图标 -->
  116. <u-icon name="lightning-fill" color="#38C148" size="28" style="margin-left: 6rpx;"></u-icon>
  117. </view>
  118. </view>
  119. <view class="row history-row" @click="openRefundHistory">
  120. <text class="label">历史退款记录</text>
  121. <view class="value flex-row link-text">
  122. <text>查看</text>
  123. <u-icon name="lightning-fill" color="#38C148" size="28" style="margin-left: 6rpx;"></u-icon>
  124. </view>
  125. </view>
  126. <view class="row">
  127. <text class="label">退款原因</text>
  128. <text class="value">{{ orderInfo.refundReason }}</text>
  129. </view>
  130. <view class="row">
  131. <text class="label">申请金额</text>
  132. <text class="value">共{{ orderInfo.refundMoney }}元</text>
  133. </view>
  134. <view class="row">
  135. <text class="label">申请时间</text>
  136. <text class="value">{{ orderInfo.createTime }}</text>
  137. </view>
  138. <view class="row">
  139. <text class="label">退款编号</text>
  140. <view class="value flex-row">
  141. <text>{{ refundOrderId }}</text>
  142. <image src="/pages-mine/static/copy.png" style="width: 28rpx; height: 28rpx; margin-left: 10rpx;"
  143. @click="copyOrderNo"></image>
  144. </view>
  145. </view>
  146. </view>
  147. <!-- 底部操作栏 -->
  148. <view class="bottom-bar" v-if="showBottomBar">
  149. <view class="btn-group">
  150. <u-button v-if="orderInfo.showComplaint == 1" shape="circle" plain :custom-style="btnStyle"
  151. @click="handleAction('complaint')">投诉</u-button>
  152. <u-button v-if="orderInfo.showCancel == 1" shape="circle" plain :custom-style="btnStyle"
  153. @click="handleAction('cancel')">撤销申请</u-button>
  154. <u-button v-if="orderInfo.showModifyApply == 1" shape="circle" type="success"
  155. :custom-style="primaryBtnStyle" @click="handleAction('modify')">修改申请</u-button>
  156. <u-button v-if="orderInfo.showClose == 1" shape="circle" plain :custom-style="btnStyle"
  157. @click="handleAction('close')">关闭退款</u-button>
  158. </view>
  159. </view>
  160. <!-- 占位符 -->
  161. <view style="height: 150rpx;" v-if="showBottomBar"></view>
  162. <!-- 客服按钮 -->
  163. <FloatingDrag :width="126" :height="140" :initial-position="servicePosition"
  164. @position-change="handlePositionChange">
  165. <!-- #ifdef MP-ALIPAY -->
  166. <button class="service-btn" @click="navigateToCustomerService">
  167. <image src="/static/img/kf.png" mode="widthFix" style="width: 126rpx; height: 140rpx"></image>
  168. </button>
  169. <!-- #endif -->
  170. <!-- #ifndef MP-ALIPAY -->
  171. <button class="service-btn" open-type="contact">
  172. <image src="/static/img/kf.png" mode="widthFix" style="width: 126rpx; height: 140rpx"></image>
  173. </button>
  174. <!-- #endif -->
  175. </FloatingDrag>
  176. <refund-history-popup ref="historyPopup" @view="handleViewHistoryRefund"></refund-history-popup>
  177. </view>
  178. </template>
  179. <script>
  180. import FloatingDrag from "@/components/floating-drag.vue";
  181. import RefundHistoryPopup from "../components/refund-history-popup.vue";
  182. import navbarVue from '../../components/navbar/navbar.vue';
  183. export default {
  184. components: {
  185. FloatingDrag,
  186. RefundHistoryPopup
  187. },
  188. data() {
  189. return {
  190. // 客服按钮位置
  191. servicePosition: {
  192. left: 0,
  193. right: 'auto',
  194. bottom: "10%",
  195. },
  196. refundOrderId: '',
  197. orderInfo: {
  198. status: '',
  199. restAuditSecond: 0,
  200. detailOrderId: '',
  201. bookName: '',
  202. cover: '',
  203. isbn: '',
  204. conditionType: '',
  205. refundNum: 0,
  206. price: 0,
  207. refundMoney: 0,
  208. refundReason: '',
  209. createTime: '',
  210. refundOrderId: '',
  211. showCancel: 0,
  212. showModifyApply: 0,
  213. showComplaint: 0,
  214. showClose: 0
  215. },
  216. btnStyle: {
  217. marginLeft: '20rpx',
  218. minWidth: '160rpx',
  219. height: '64rpx',
  220. lineHeight: '64rpx',
  221. padding: '0 20rpx',
  222. color: '#666',
  223. borderColor: '#ccc',
  224. fontSize: '28rpx',
  225. },
  226. primaryBtnStyle: {
  227. marginLeft: '20rpx',
  228. minWidth: '160rpx',
  229. height: '64rpx',
  230. lineHeight: '64rpx',
  231. padding: '0 20rpx',
  232. backgroundColor: '#38C148',
  233. color: '#fff',
  234. border: 'none'
  235. },
  236. rejectBtnStyle: {
  237. color: '#333',
  238. backgroundColor: '#fff',
  239. border: '1rpx solid #ccc',
  240. minWidth: '160rpx',
  241. height: '60rpx',
  242. lineHeight: '60rpx',
  243. fontSize: '26rpx',
  244. margin: '0 20rpx 0 0'
  245. },
  246. acceptBtnStyle: {
  247. color: '#fff',
  248. backgroundColor: '#FF6600',
  249. border: 'none',
  250. minWidth: '160rpx',
  251. height: '60rpx',
  252. lineHeight: '60rpx',
  253. fontSize: '26rpx',
  254. margin: '0'
  255. },
  256. fillBtnStyle: {
  257. backgroundColor: '#38C148',
  258. color: '#fff',
  259. height: '80rpx',
  260. fontSize: '30rpx',
  261. marginTop: '30rpx',
  262. width: '100%'
  263. }
  264. };
  265. },
  266. computed: {
  267. showBottomBar() {
  268. const { showCancel, showModifyApply, showComplaint, showClose } = this.orderInfo;
  269. return showCancel == 1 || showModifyApply == 1 || showComplaint == 1 || showClose == 1;
  270. }
  271. },
  272. onLoad(options) {
  273. if (options.refundOrderId) {
  274. this.refundOrderId = options.refundOrderId;
  275. } else if (options.orderId) {
  276. this.refundOrderId = options.orderId;
  277. }
  278. },
  279. onShow() {
  280. if (this.refundOrderId) {
  281. this.getDetail();
  282. }
  283. },
  284. methods: {
  285. getDetail() {
  286. this.$u.api.getNewRefundOrderDetailAjax({
  287. refundOrderId: this.refundOrderId
  288. }).then(res => {
  289. if (res.code == 200) {
  290. this.orderInfo = res.data;
  291. }
  292. });
  293. },
  294. getStatusText(status) {
  295. // 状态 1-申请退款 2-协商中待用户确认 3-协商中待商家确认 4-审核通过 5-审核驳回 6-超时关闭 7-买家已发货 8-确认收货 9-退款成功
  296. const map = {
  297. '1': '请等待平台处理',
  298. '2': '协商中待用户确认',
  299. '3': '协商中待商家确认',
  300. '4': '审核已通过,请您把书籍自行寄回',
  301. '5': '审核已驳回',
  302. '6': '超时关闭',
  303. '7': '待平台确认收货',
  304. '8': '平台已确认收货',
  305. '9': '退款成功'
  306. };
  307. return map[status] || '处理中';
  308. },
  309. copyAddress() {
  310. const address = (this.orderInfo.receiverName || '') + ' ' + (this.orderInfo.receiverMobile || '') + ' ' + (this.orderInfo.receiverAddress || '');
  311. uni.setClipboardData({
  312. data: address,
  313. success: () => {
  314. uni.showToast({ title: '地址复制成功', icon: 'none' });
  315. }
  316. });
  317. },
  318. goToFillLogistics() {
  319. uni.navigateTo({
  320. url: `/pages-car/pages/fill-logistics?refundOrderId=${this.refundOrderId}`
  321. });
  322. },
  323. copyOrderNo() {
  324. uni.setClipboardData({
  325. data: String(this.orderInfo.refundOrderId || ''),
  326. success: () => {
  327. uni.showToast({ title: '复制成功', icon: 'none' });
  328. }
  329. });
  330. },
  331. goToHistory() {
  332. // 跳转协商历史页面
  333. uni.navigateTo({
  334. url: `/pages-car/pages/negotiation-history?refundOrderId=${this.refundOrderId}`
  335. });
  336. },
  337. openRefundHistory() {
  338. const orderDetailId = this.orderInfo.detailOrderId || this.orderInfo.orderDetailId || this.orderInfo.detailId;
  339. if (!orderDetailId) {
  340. uni.showToast({ title: '缺少订单详情ID', icon: 'none' });
  341. return;
  342. }
  343. uni.showLoading({ title: '加载中' });
  344. this.$u.api.getRefundOrderDetailListAjax({ orderDetailId }).then(res => {
  345. uni.hideLoading();
  346. if (res.code == 200) {
  347. this.$refs.historyPopup && this.$refs.historyPopup.open(res.data || []);
  348. } else {
  349. uni.showToast({ title: res.msg || '获取失败', icon: 'none' });
  350. }
  351. }).catch(() => {
  352. uni.hideLoading();
  353. });
  354. },
  355. handleViewHistoryRefund(item) {
  356. if (!item || !item.refundOrderId) return;
  357. uni.redirectTo({
  358. url: `/pages-car/pages/refund-detail?refundOrderId=${item.refundOrderId}`
  359. });
  360. },
  361. navigateToCustomerService() {
  362. // 联系客服
  363. uni.navigateTo({
  364. url: '/pages/customer-service/index'
  365. });
  366. },
  367. // 处理位置变更
  368. handlePositionChange(position) {
  369. this.servicePosition = position;
  370. },
  371. handleNegotiation(accept) {
  372. const title = accept ? '确认接受协商金额?' : '确认拒绝协商?';
  373. uni.showModal({
  374. title: '提示',
  375. content: title,
  376. success: (res) => {
  377. if (res.confirm) {
  378. uni.showLoading({ title: '处理中' });
  379. const api = accept ? this.$u.api.refundDisposeAgreeAjax : this.$u.api.refundDisposeRefuseAjax;
  380. api({ refundOrderId: this.refundOrderId }).then(res => {
  381. uni.hideLoading();
  382. if (res.code == 200) {
  383. uni.showToast({
  384. title: accept ? '已接受协商' : '已拒绝协商',
  385. icon: 'success'
  386. });
  387. // 刷新详情
  388. this.getDetail();
  389. } else {
  390. uni.showToast({
  391. title: res.msg || '操作失败',
  392. icon: 'none'
  393. });
  394. }
  395. }).catch(() => {
  396. uni.hideLoading();
  397. });
  398. }
  399. }
  400. });
  401. },
  402. handleAction(type) {
  403. switch (type) {
  404. case 'cancel':
  405. // 撤销申请逻辑
  406. uni.showModal({
  407. title: '提示',
  408. content: '确定要撤销退款申请吗?',
  409. success: (res) => {
  410. if (res.confirm) {
  411. uni.showLoading({
  412. title: '处理中'
  413. });
  414. this.$u.api.refundCancelAjax({
  415. refundOrderId: this.refundOrderId
  416. }).then(res => {
  417. uni.hideLoading();
  418. if (res.code == 200) {
  419. uni.showToast({
  420. title: '撤销成功',
  421. icon: 'success'
  422. });
  423. // 刷新页面
  424. this.getDetail();
  425. setTimeout(() => {
  426. uni.navigateBack();
  427. }, 1000);
  428. }
  429. });
  430. }
  431. }
  432. });
  433. break;
  434. case 'modify':
  435. // 跳转到修改申请页面
  436. uni.navigateTo({
  437. url: `/pages-car/pages/apply-refund?refundOrderId=${this.refundOrderId}&isModify=1`
  438. });
  439. break;
  440. case 'complaint':
  441. uni.navigateTo({
  442. url: `/pages-car/pages/complaint?orderId=${this.orderInfo.originOrderId}`
  443. });
  444. break;
  445. case 'close':
  446. // 关闭退款
  447. uni.showToast({ title: '关闭退款', icon: 'none' });
  448. break;
  449. }
  450. }
  451. }
  452. }
  453. </script>
  454. <style lang="scss" scoped>
  455. .service-btn {
  456. height: max-content;
  457. background-color: transparent;
  458. padding: 0;
  459. &::after {
  460. border: none;
  461. }
  462. }
  463. .refund-detail-page {
  464. min-height: 100vh;
  465. background-color: #F5F5F5;
  466. padding-bottom: 20rpx;
  467. .status-header {
  468. background-color: #fff;
  469. padding: 40rpx 30rpx;
  470. text-align: center;
  471. margin-bottom: 20rpx;
  472. .status-title {
  473. font-size: 36rpx;
  474. font-weight: bold;
  475. color: #333;
  476. margin-bottom: 20rpx;
  477. }
  478. .status-desc {
  479. font-size: 26rpx;
  480. color: #999;
  481. margin-bottom: 10rpx;
  482. }
  483. .status-tip {
  484. font-size: 24rpx;
  485. color: #999;
  486. }
  487. .negotiation-card {
  488. margin-top: 30rpx;
  489. text-align: left;
  490. .negotiation-content {
  491. display: flex;
  492. align-items: flex-start;
  493. margin-bottom: 30rpx;
  494. .negotiation-icon {
  495. margin-right: 20rpx;
  496. margin-top: 6rpx;
  497. }
  498. .negotiation-text {
  499. flex: 1;
  500. .negotiation-title {
  501. font-size: 30rpx;
  502. font-weight: bold;
  503. color: #333;
  504. margin-bottom: 10rpx;
  505. }
  506. .negotiation-desc {
  507. font-size: 26rpx;
  508. color: #999;
  509. line-height: 1.4;
  510. }
  511. }
  512. }
  513. .negotiation-actions {
  514. display: flex;
  515. justify-content: flex-end;
  516. }
  517. }
  518. .refund-amount-box {
  519. margin-top: 30rpx;
  520. padding-top: 30rpx;
  521. .amount-row {
  522. display: flex;
  523. justify-content: space-between;
  524. align-items: center;
  525. font-size: 30rpx;
  526. .label {
  527. color: #333;
  528. }
  529. .value {
  530. color: #333;
  531. font-weight: bold;
  532. }
  533. }
  534. }
  535. }
  536. .info-card {
  537. background-color: #fff;
  538. margin: 20rpx;
  539. border-radius: 16rpx;
  540. padding: 30rpx;
  541. &.return-method-card {
  542. .card-title {
  543. font-size: 32rpx;
  544. font-weight: bold;
  545. color: #333;
  546. text-align: center;
  547. margin-bottom: 30rpx;
  548. }
  549. .method-tabs {
  550. display: flex;
  551. justify-content: space-between;
  552. margin-bottom: 30rpx;
  553. .tab-item {
  554. flex: 1;
  555. background-color: #F8F8F8;
  556. border-radius: 12rpx;
  557. padding: 20rpx 0;
  558. text-align: center;
  559. margin-right: 20rpx;
  560. border: 2rpx solid transparent;
  561. &:last-child {
  562. margin-right: 0;
  563. }
  564. &.active {
  565. background-color: #F0F9F1;
  566. border-color: #38C148;
  567. .tab-name {
  568. color: #38C148;
  569. }
  570. .tab-desc {
  571. color: #38C148;
  572. opacity: 0.8;
  573. }
  574. }
  575. &.disabled {
  576. opacity: 0.5;
  577. }
  578. .tab-name {
  579. font-size: 30rpx;
  580. font-weight: bold;
  581. color: #333;
  582. margin-bottom: 6rpx;
  583. }
  584. .tab-desc {
  585. font-size: 22rpx;
  586. color: #999;
  587. }
  588. }
  589. }
  590. .warning-box {
  591. background-color: #E8F5E9;
  592. color: #38C148;
  593. font-size: 26rpx;
  594. padding: 16rpx;
  595. border-radius: 8rpx;
  596. text-align: center;
  597. margin-bottom: 30rpx;
  598. }
  599. .address-box {
  600. display: flex;
  601. align-items: center;
  602. padding: 20rpx 0;
  603. border-top: 1rpx solid #F5F5F5;
  604. .address-label {
  605. width: 140rpx;
  606. font-size: 28rpx;
  607. color: #333;
  608. font-weight: bold;
  609. }
  610. .address-content {
  611. flex: 1;
  612. padding-right: 20rpx;
  613. .name {
  614. font-size: 30rpx;
  615. font-weight: bold;
  616. color: #333;
  617. margin-bottom: 10rpx;
  618. }
  619. .detail {
  620. font-size: 26rpx;
  621. color: #666;
  622. line-height: 1.4;
  623. .copy-icon {
  624. width: 28rpx;
  625. height: 28rpx;
  626. vertical-align: middle;
  627. margin-left: 10rpx;
  628. }
  629. }
  630. }
  631. }
  632. }
  633. &.goods-card {
  634. .goods-item {
  635. display: flex;
  636. margin-bottom: 20rpx;
  637. &:last-child {
  638. margin-bottom: 0;
  639. }
  640. .goods-cover {
  641. width: 140rpx;
  642. height: 160rpx;
  643. border-radius: 8rpx;
  644. margin-right: 20rpx;
  645. flex-shrink: 0;
  646. }
  647. .goods-info {
  648. flex: 1;
  649. position: relative;
  650. .goods-title {
  651. font-size: 28rpx;
  652. color: #333;
  653. margin-bottom: 10rpx;
  654. }
  655. .goods-sku {
  656. font-size: 24rpx;
  657. color: #999;
  658. margin-bottom: 10rpx;
  659. }
  660. .price-box {
  661. display: flex;
  662. justify-content: space-between;
  663. align-items: center;
  664. margin-top: 20rpx;
  665. .price {
  666. font-size: 28rpx;
  667. color: #333;
  668. }
  669. .num {
  670. font-size: 24rpx;
  671. color: #999;
  672. }
  673. }
  674. .refund-status-tag {
  675. position: absolute;
  676. right: 0;
  677. top: 50%; // Adjust as needed
  678. transform: translateY(-50%);
  679. font-size: 24rpx;
  680. color: #999;
  681. &.red-tag {
  682. color: #ff3b30;
  683. border: 1rpx solid #ff3b30;
  684. padding: 2rpx 10rpx;
  685. border-radius: 6rpx;
  686. font-size: 22rpx;
  687. }
  688. }
  689. }
  690. }
  691. }
  692. &.detail-card {
  693. .row {
  694. display: flex;
  695. justify-content: space-between;
  696. margin-bottom: 20rpx;
  697. font-size: 26rpx;
  698. &:last-child {
  699. margin-bottom: 0;
  700. }
  701. .label {
  702. color: #999;
  703. }
  704. .value {
  705. color: #333;
  706. &.flex-row {
  707. display: flex;
  708. align-items: center;
  709. }
  710. &.link-text {
  711. color: #38C148; // 使用主题色
  712. display: flex;
  713. align-items: center;
  714. }
  715. }
  716. }
  717. }
  718. }
  719. .bottom-bar {
  720. position: fixed;
  721. bottom: 0;
  722. left: 0;
  723. right: 0;
  724. background-color: #fff;
  725. padding: 20rpx 30rpx;
  726. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  727. display: flex;
  728. justify-content: space-between;
  729. align-items: center;
  730. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  731. z-index: 100;
  732. .service-btn {
  733. padding: 10rpx;
  734. }
  735. .btn-group {
  736. display: flex;
  737. align-items: center;
  738. justify-content: flex-end;
  739. width: 100%;
  740. }
  741. }
  742. }
  743. </style>