refund-detail.vue 22 KB

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