【功能优化】提交售后信息后直接返回到订单详情
parent
2e572639b0
commit
518c898882
|
@ -171,7 +171,7 @@
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '申请成功',
|
title: '申请成功',
|
||||||
});
|
});
|
||||||
sheep.$router.go('/pages/order/aftersale/list');
|
sheep.$router.redirect('/pages/order/aftersale/list');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -256,7 +256,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import sheep from '@/sheep';
|
import sheep from '@/sheep';
|
||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||||
import { reactive, ref } from 'vue';
|
import { reactive, ref } from 'vue';
|
||||||
import { isEmpty } from 'lodash-es';
|
import { isEmpty } from 'lodash-es';
|
||||||
import {
|
import {
|
||||||
|
@ -416,6 +416,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onShow(async () => {
|
||||||
|
//onShow中获取订单列表,保证跳转后页面为最新状态
|
||||||
|
await getOrderDetail(state.orderInfo.id);
|
||||||
|
})
|
||||||
|
|
||||||
onLoad(async (options) => {
|
onLoad(async (options) => {
|
||||||
let id = 0;
|
let id = 0;
|
||||||
if (options.id) {
|
if (options.id) {
|
||||||
|
@ -426,7 +431,7 @@
|
||||||
if (state.comeinType === 'wechat') {
|
if (state.comeinType === 'wechat') {
|
||||||
state.merchantTradeNo = options.merchant_trade_no;
|
state.merchantTradeNo = options.merchant_trade_no;
|
||||||
}
|
}
|
||||||
await getOrderDetail(id);
|
state.orderInfo.id = id
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue