refund-detail.vue 21 KB

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