商品购买跳转

parent 61a12582
...@@ -223,7 +223,7 @@ function toCart() { ...@@ -223,7 +223,7 @@ function toCart() {
function toSettle() { function toSettle() {
// TODO: 跳转到结算页面 // TODO: 跳转到结算页面
xma.navigateTo({ 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> </script>
......
...@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index'; ...@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import { getToken } from '../../utils/auth'; import { getToken } from '../../utils/auth';
onMounted(async () => { onMounted(async () => {
await signIn(); // await signIn();
// if (!getToken()) await signIn2(); if (!getToken()) await signIn2();
xma.reLaunch({ url: '/pages/index/index' }); xma.reLaunch({ url: '/pages/index/index' });
}); });
......
...@@ -231,10 +231,10 @@ function groupBuyConfirmFn(prodId, skuId) { ...@@ -231,10 +231,10 @@ function groupBuyConfirmFn(prodId, skuId) {
res.data.orderItems[0].pic = imgUrl + res.data.orderItems[0].pic; res.data.orderItems[0].pic = imgUrl + res.data.orderItems[0].pic;
orderInfo.value = res.data; orderInfo.value = res.data;
resolve(res.data.shopId); resolve(res.data.shopId);
}else { } else {
wx.showToast({ 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