商品购买跳转

parent 61a12582
......@@ -223,7 +223,7 @@ function toCart() {
function toSettle() {
// TODO: 跳转到结算页面
xma.navigateTo({
url: '/pages/assistingAgriculture/cart/ConfirmOrder',
url: `/pages/assistingAgriculture/cart/ConfirmOrder?type=qg&prodId=${dataDetails.value.skus[0].prodId}&skuId=${dataDetails.value.skus[0].skuId}`,
});
}
</script>
......
......@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import { getToken } from '../../utils/auth';
onMounted(async () => {
await signIn();
// if (!getToken()) await signIn2();
// await signIn();
if (!getToken()) await signIn2();
xma.reLaunch({ url: '/pages/index/index' });
});
......
......@@ -231,10 +231,10 @@ function groupBuyConfirmFn(prodId, skuId) {
res.data.orderItems[0].pic = imgUrl + res.data.orderItems[0].pic;
orderInfo.value = res.data;
resolve(res.data.shopId);
}else {
} else {
wx.showToast({
title:res.msg
})
title: res.msg,
});
}
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment