refund-detail.vue 19 KB

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