退款修改

This commit is contained in:
weiwei committed 2025-04-09 16:10:34 +08:00
1 parent 00c0ca7642
commit fa71d31a93
3 files changed
+15 -20

No files matched your search

+8 -6
View File
@@ -59,8 +59,8 @@
</view>
</view>
</view>
<view v-if="v.orderStatus == 10 && v.refundStatus == 0" class="h-50rpx mt-1 flex justify-end items-center">
<view class="botder_btn" @tap.stop="doIndividualRefund(v)">退款</view>
<view v-if="v.orderStatus == '5' && v.orderType == '1'" class="h-50rpx mt-1 flex justify-end items-center">
<view class="botder_btn" @tap.stop="doIndividualRefund(v)">申请退款</view>
</view>
</view>
</z-paging>
@@ -220,7 +220,7 @@
<script setup lang="ts">
import { ref, reactive } from "vue"
import { onLoad, onShow } from "@dcloudio/uni-app"
import { hooks } from "@@/index"
import { hooks, router } from "@@/index"
import { filePath } from "@@/utils/file"
import zTabs from "@@/components/other/z-tabs/z-tabs.vue"
import { individualOrderApi, refundApi } from "@@/api"
@@ -252,9 +252,9 @@ onLoad(() => {
onShow(() => {
const isLogin = hooks.useCheckLogin()
if (!isLogin) return
// if (pageRef.value) {
// pageRef.value.reload(false)
// }
if (pageRef.value) {
pageRef.value.reload(false)
}
})
// 切换选项卡
@@ -279,6 +279,8 @@ const resetState = () => {
// 点击退款
const doIndividualRefund = async (v: any) => {
return router.jump("/pages/refund/apply", { id: v.id })
if (!v.id) return uni.showToast({ title: "订单id不存在", icon: "none" })
resetState()