refund-detail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875
  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 == '10'">
  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 == '10'">退款成功</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-确认收货 10-退款成功
  312. const map = {
  313. '1': '请等待平台处理',
  314. '2': '协商中待用户确认',
  315. '3': '协商中待商家确认',
  316. '4': '审核已通过,请您把书籍自行寄回',
  317. '5': '审核已驳回',
  318. '6': '超时关闭',
  319. '7': '待平台确认收货',
  320. '8': '商家已签收',
  321. '9': '平台已确认收货',
  322. '10': '退款成功',
  323. '11': '申请已撤销'
  324. };
  325. return map[status] || '处理中';
  326. },
  327. copyAddress() {
  328. const address = (this.orderInfo.receiverName || '') + ' ' + (this.orderInfo.receiverMobile || '') + ' ' + (this.orderInfo.receiverAddress || '');
  329. uni.setClipboardData({
  330. data: address,
  331. success: () => {
  332. uni.showToast({ title: '地址复制成功', icon: 'none' });
  333. }
  334. });
  335. },
  336. goToFillLogistics() {
  337. uni.navigateTo({
  338. url: `/pages-car/pages/fill-logistics?refundOrderId=${this.refundOrderId}`
  339. });
  340. },
  341. viewLogistics() {
  342. uni.navigateTo({
  343. url: `/pages-car/pages/logistics-detail?refundOrderId=${this.refundOrderId}`
  344. });
  345. },
  346. copyOrderNo() {
  347. uni.setClipboardData({
  348. data: String(this.orderInfo.refundOrderId || ''),
  349. success: () => {
  350. uni.showToast({ title: '复制成功', icon: 'none' });
  351. }
  352. });
  353. },
  354. goToHistory() {
  355. // 跳转协商历史页面
  356. uni.navigateTo({
  357. url: `/pages-car/pages/negotiation-history?refundOrderId=${this.refundOrderId}`
  358. });
  359. },
  360. openRefundHistory() {
  361. const orderDetailId = this.orderInfo.detailOrderId || this.orderInfo.orderDetailId || this.orderInfo.detailId;
  362. if (!orderDetailId) {
  363. uni.showToast({ title: '缺少订单详情ID', icon: 'none' });
  364. return;
  365. }
  366. uni.showLoading({ title: '加载中' });
  367. this.$u.api.getRefundOrderDetailListAjax({ orderDetailId }).then(res => {
  368. uni.hideLoading();
  369. if (res.code == 200) {
  370. this.$refs.historyPopup && this.$refs.historyPopup.open(res.data || []);
  371. } else {
  372. uni.showToast({ title: res.msg || '获取失败', icon: 'none' });
  373. }
  374. }).catch(() => {
  375. uni.hideLoading();
  376. });
  377. },
  378. handleViewHistoryRefund(item) {
  379. if (!item || !item.refundOrderId) return;
  380. uni.redirectTo({
  381. url: `/pages-car/pages/refund-detail?refundOrderId=${item.refundOrderId}`
  382. });
  383. },
  384. navigateToCustomerService() {
  385. // 联系客服
  386. uni.navigateTo({
  387. url: '/pages/customer-service/index'
  388. });
  389. },
  390. // 处理位置变更
  391. handlePositionChange(position) {
  392. this.servicePosition = position;
  393. },
  394. handleNegotiation(accept) {
  395. const title = accept ? '确认接受协商金额?' : '确认拒绝协商?';
  396. uni.showModal({
  397. title: '提示',
  398. content: title,
  399. success: (res) => {
  400. if (res.confirm) {
  401. uni.showLoading({ title: '处理中' });
  402. const api = accept ? this.$u.api.refundDisposeAgreeAjax : this.$u.api.refundDisposeRefuseAjax;
  403. api({ refundOrderId: this.refundOrderId }).then(res => {
  404. uni.hideLoading();
  405. if (res.code == 200) {
  406. uni.showToast({
  407. title: accept ? '已接受协商' : '已拒绝协商',
  408. icon: 'success'
  409. });
  410. // 刷新详情
  411. this.getDetail();
  412. } else {
  413. uni.showToast({
  414. title: res.msg || '操作失败',
  415. icon: 'none'
  416. });
  417. }
  418. }).catch(() => {
  419. uni.hideLoading();
  420. });
  421. }
  422. }
  423. });
  424. },
  425. handleAction(type) {
  426. switch (type) {
  427. case 'cancel':
  428. // 撤销申请逻辑
  429. uni.showModal({
  430. title: '提示',
  431. content: '确定要撤销退款申请吗?',
  432. success: (res) => {
  433. if (res.confirm) {
  434. uni.showLoading({
  435. title: '处理中'
  436. });
  437. this.$u.api.refundCancelAjax({
  438. refundOrderId: this.refundOrderId
  439. }).then(res => {
  440. uni.hideLoading();
  441. if (res.code == 200) {
  442. uni.showToast({
  443. title: '撤销成功',
  444. icon: 'success'
  445. });
  446. // 刷新页面
  447. this.getDetail();
  448. setTimeout(() => {
  449. uni.navigateBack();
  450. }, 1000);
  451. }
  452. });
  453. }
  454. }
  455. });
  456. break;
  457. case 'modify':
  458. // 跳转到修改申请页面
  459. uni.navigateTo({
  460. url: `/pages-car/pages/apply-refund?refundOrderId=${this.refundOrderId}&isModify=1`
  461. });
  462. break;
  463. case 'complaint':
  464. uni.navigateTo({
  465. url: `/pages-car/pages/complaint?orderId=${this.orderInfo.originOrderId}`
  466. });
  467. break;
  468. case 'close':
  469. // 关闭退款
  470. uni.showToast({ title: '关闭退款', icon: 'none' });
  471. break;
  472. }
  473. }
  474. }
  475. }
  476. </script>
  477. <style lang="scss" scoped>
  478. .service-btn {
  479. height: max-content;
  480. background-color: transparent;
  481. padding: 0;
  482. &::after {
  483. border: none;
  484. }
  485. }
  486. .refund-detail-page {
  487. min-height: 100vh;
  488. background-color: #F5F5F5;
  489. padding-bottom: 20rpx;
  490. .status-header {
  491. background-color: #fff;
  492. padding: 40rpx 30rpx;
  493. text-align: center;
  494. margin-bottom: 20rpx;
  495. .status-title {
  496. font-size: 36rpx;
  497. font-weight: bold;
  498. color: #333;
  499. margin-bottom: 20rpx;
  500. }
  501. .status-desc {
  502. font-size: 26rpx;
  503. color: #999;
  504. margin-bottom: 10rpx;
  505. }
  506. .status-tip {
  507. font-size: 24rpx;
  508. color: #999;
  509. }
  510. .negotiation-card {
  511. margin-top: 30rpx;
  512. text-align: left;
  513. .negotiation-content {
  514. display: flex;
  515. align-items: flex-start;
  516. margin-bottom: 30rpx;
  517. .negotiation-icon {
  518. margin-right: 20rpx;
  519. margin-top: 6rpx;
  520. }
  521. .negotiation-text {
  522. flex: 1;
  523. .negotiation-title {
  524. font-size: 30rpx;
  525. font-weight: bold;
  526. color: #333;
  527. margin-bottom: 10rpx;
  528. }
  529. .negotiation-desc {
  530. font-size: 26rpx;
  531. color: #999;
  532. line-height: 1.4;
  533. }
  534. }
  535. }
  536. .negotiation-actions {
  537. display: flex;
  538. justify-content: flex-end;
  539. }
  540. }
  541. .refund-amount-box {
  542. margin-top: 30rpx;
  543. padding-top: 30rpx;
  544. .amount-row {
  545. display: flex;
  546. justify-content: space-between;
  547. align-items: center;
  548. font-size: 30rpx;
  549. .label {
  550. color: #333;
  551. }
  552. .value {
  553. color: #333;
  554. font-weight: bold;
  555. }
  556. }
  557. }
  558. }
  559. .info-card {
  560. background-color: #fff;
  561. margin: 20rpx;
  562. border-radius: 16rpx;
  563. padding: 30rpx;
  564. &.express-card {
  565. display: flex;
  566. align-items: center;
  567. .icon-box {
  568. margin-right: 20rpx;
  569. }
  570. .express-content {
  571. flex: 1;
  572. margin-right: 20rpx;
  573. .express-name {
  574. color: #38C148;
  575. font-size: 28rpx;
  576. margin-bottom: 10rpx;
  577. font-weight: 500;
  578. }
  579. .express-trace {
  580. color: #333;
  581. font-size: 26rpx;
  582. line-height: 1.4;
  583. display: -webkit-box;
  584. -webkit-box-orient: vertical;
  585. -webkit-line-clamp: 2;
  586. overflow: hidden;
  587. }
  588. }
  589. }
  590. &.return-method-card {
  591. .card-title {
  592. font-size: 32rpx;
  593. font-weight: bold;
  594. color: #333;
  595. text-align: center;
  596. margin-bottom: 30rpx;
  597. }
  598. .method-tabs {
  599. display: flex;
  600. justify-content: space-between;
  601. margin-bottom: 30rpx;
  602. .tab-item {
  603. flex: 1;
  604. background-color: #F8F8F8;
  605. border-radius: 12rpx;
  606. padding: 20rpx 0;
  607. text-align: center;
  608. margin-right: 20rpx;
  609. border: 2rpx solid transparent;
  610. &:last-child {
  611. margin-right: 0;
  612. }
  613. &.active {
  614. background-color: #F0F9F1;
  615. border-color: #38C148;
  616. .tab-name {
  617. color: #38C148;
  618. }
  619. .tab-desc {
  620. color: #38C148;
  621. opacity: 0.8;
  622. }
  623. }
  624. &.disabled {
  625. opacity: 0.5;
  626. }
  627. .tab-name {
  628. font-size: 30rpx;
  629. font-weight: bold;
  630. color: #333;
  631. margin-bottom: 6rpx;
  632. }
  633. .tab-desc {
  634. font-size: 22rpx;
  635. color: #999;
  636. }
  637. }
  638. }
  639. .warning-box {
  640. background-color: #E8F5E9;
  641. color: #38C148;
  642. font-size: 26rpx;
  643. padding: 16rpx;
  644. border-radius: 8rpx;
  645. text-align: center;
  646. margin-bottom: 30rpx;
  647. }
  648. .address-box {
  649. display: flex;
  650. align-items: center;
  651. padding: 20rpx 0;
  652. border-top: 1rpx solid #F5F5F5;
  653. .address-label {
  654. width: 140rpx;
  655. font-size: 28rpx;
  656. color: #333;
  657. font-weight: bold;
  658. }
  659. .address-content {
  660. flex: 1;
  661. padding-right: 20rpx;
  662. .name {
  663. font-size: 30rpx;
  664. font-weight: bold;
  665. color: #333;
  666. margin-bottom: 10rpx;
  667. }
  668. .detail {
  669. font-size: 26rpx;
  670. color: #666;
  671. line-height: 1.4;
  672. .copy-icon {
  673. width: 28rpx;
  674. height: 28rpx;
  675. vertical-align: middle;
  676. margin-left: 10rpx;
  677. }
  678. }
  679. }
  680. }
  681. }
  682. &.goods-card {
  683. .goods-item {
  684. display: flex;
  685. margin-bottom: 20rpx;
  686. &:last-child {
  687. margin-bottom: 0;
  688. }
  689. .goods-cover {
  690. width: 140rpx;
  691. height: 160rpx;
  692. border-radius: 8rpx;
  693. margin-right: 20rpx;
  694. flex-shrink: 0;
  695. }
  696. .goods-info {
  697. flex: 1;
  698. position: relative;
  699. .goods-title {
  700. font-size: 28rpx;
  701. color: #333;
  702. margin-bottom: 10rpx;
  703. }
  704. .goods-sku {
  705. font-size: 24rpx;
  706. color: #999;
  707. margin-bottom: 10rpx;
  708. }
  709. .price-box {
  710. display: flex;
  711. justify-content: space-between;
  712. align-items: center;
  713. margin-top: 20rpx;
  714. .price {
  715. font-size: 28rpx;
  716. color: #333;
  717. }
  718. .num {
  719. font-size: 24rpx;
  720. color: #999;
  721. }
  722. }
  723. .refund-status-tag {
  724. position: absolute;
  725. right: 0;
  726. top: 50%; // Adjust as needed
  727. transform: translateY(-50%);
  728. font-size: 24rpx;
  729. color: #999;
  730. &.red-tag {
  731. color: #ff3b30;
  732. border: 1rpx solid #ff3b30;
  733. padding: 2rpx 10rpx;
  734. border-radius: 6rpx;
  735. font-size: 22rpx;
  736. }
  737. }
  738. }
  739. }
  740. }
  741. &.detail-card {
  742. .row {
  743. display: flex;
  744. justify-content: space-between;
  745. margin-bottom: 20rpx;
  746. font-size: 26rpx;
  747. &:last-child {
  748. margin-bottom: 0;
  749. }
  750. .label {
  751. color: #999;
  752. }
  753. .value {
  754. color: #333;
  755. &.flex-row {
  756. display: flex;
  757. align-items: center;
  758. }
  759. &.link-text {
  760. color: #38C148; // 使用主题色
  761. display: flex;
  762. align-items: center;
  763. }
  764. }
  765. }
  766. }
  767. }
  768. .bottom-bar {
  769. position: fixed;
  770. bottom: 0;
  771. left: 0;
  772. right: 0;
  773. background-color: #fff;
  774. padding: 20rpx 30rpx;
  775. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  776. display: flex;
  777. justify-content: space-between;
  778. align-items: center;
  779. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  780. z-index: 100;
  781. .service-btn {
  782. padding: 10rpx;
  783. }
  784. .btn-group {
  785. display: flex;
  786. align-items: center;
  787. justify-content: flex-end;
  788. width: 100%;
  789. }
  790. }
  791. }
  792. </style>