优化下单后退显示

This commit is contained in:
paulGao
2022-01-04 19:58:01 +08:00
parent 4d033e59f1
commit 68e25cb0b3

View File

@@ -510,6 +510,11 @@ export default {
this.notSupportFreight = []
// 获取结算参数
API_Trade.getCheckoutParams(this.routerVal.way).then((res) => {
if (res.data.result.skuList.length <= 0) {
uni.redirectTo({
url: "/pages/order/myOrder?status=0",
});
}
res.data.result.cartList.forEach((item, index) => {
this.remarkVal[index] = {
remark: item.remark,