This commit is contained in:
dzc committed 2024-11-18 17:39:39 +08:00
1 parent c3c6a58078
commit d2dc19e7cb
5 files changed
+48 -9

No files matched your search

+5 -5
View File
@@ -8,8 +8,8 @@ import { orderApi, refundApi, commonApi } from "@@/api"
const data = {
payType: [
{ text: "仅退款", disabled: false, type: "10", value: "10" },
{ text: "退款退货", disabled: true, type: "20", value: "20" },
{ text: "仅退款", disabled: false, visible: true, type: "10", value: "10" },
{ text: "退款退货", disabled: true, visible: false, type: "20", value: "20" },
]
}
const state = reactive<any>({
@@ -101,7 +101,7 @@ const doSubmit = async () => {
const data = await refundApi.create(_pa)
uni.hideLoading()
uni.showToast({ title: '申请成功', icon: "none" });
router.jump("/pages/order/detail", { id: state.detailId })
router.jump("/pages/order/detail", { id: state.detailId }, 2)
} catch (error) {
console.error(error);
uni.hideLoading()
@@ -144,8 +144,8 @@ const doSubmit = async () => {
<view class="sub-text-28">售后类型</view>
<view class="m-t-20rpx">
<tm-radio-group @change="radioChange" direction="column" gap="20" v-model="applyForm.way">
<tm-radio :disabled="v.disabled" v-for="(v, i) in data.payType" :key="i" :value="v.type"
:label="v.text" />
<tm-radio :disabled="v.disabled" v-for="(v, i) in data.payType" :key="i" v-show="v.visible"
:value="v.type" :label="v.text" />
</tm-radio-group>
</view>
</view>
+1 -1
View File
@@ -37,7 +37,7 @@ const getHistory = async () => {
<crud-layout mainIsScroll title="售后进度" bg="/static/page/blue-bg.png">
<view class="h-30rpx" />
<view class="flex card p-30rpx m-b-20rpx" v-for="(v, i) in state.historyList" :key="i">
<view class="m-t-10rpx size-12rpx rounded-full bg-green" />
<view :class="[v.afterStatus == 62 ? 'bg-red' : 'bg-green']" class="m-t-10rpx size-12rpx rounded-full" />
<view class="m-l-15rpx">
<view class="sub-text-28">
<view>{{ v.content }}</view>