|
@@ -19,8 +19,6 @@
|
|
|
<!-- 申请类型 -->
|
|
|
<view class="application-type"> 申请类型:取消订单 </view>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<!-- 申请说明 -->
|
|
|
<view class="application-note">
|
|
|
<up-textarea
|
|
@@ -62,15 +60,18 @@ const handlClick = async () => {
|
|
|
refundReason: refundReason.value,
|
|
|
}
|
|
|
const res = await refunDnewOrderRefund(params)
|
|
|
- if (res.status === 200) {
|
|
|
- uni.showToast({
|
|
|
- title: '退款成功',
|
|
|
- icon: 'success', // 或者 'none'
|
|
|
- duration: 1500, // 显示时间,单位毫秒,默认1500
|
|
|
- mask: true, // 是否显示透明蒙层,防止触摸穿透,默认false
|
|
|
- })
|
|
|
- uni.navigateBack({
|
|
|
- delta: 1,
|
|
|
+ if (res.code === 200) {
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: res.msg,
|
|
|
+ showCancel: false,
|
|
|
+ success: function (modalRes) {
|
|
|
+ if (modalRes.confirm) {
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 1,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
})
|
|
|
}
|
|
|
}
|