refund-detail.vue 21 KB

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