|
@@ -142,7 +142,7 @@ const addCart = async (item) => {
|
|
|
callbackUrl = browser.replaceQueryString(callbackUrl, "tagid", tagclick.value.data.sid);
|
|
|
}
|
|
|
console.log(callbackUrl);
|
|
|
- // Dialog.toast({ content: `登录状态失效,请重新登录`, type: 'error' })
|
|
|
+ // Dialog.toast({ content: `登錄狀態失效,請重新登錄`, type: 'error' })
|
|
|
browser.openLink(
|
|
|
`/pages/login/login?callbackHttpUrl=${encodeURIComponent(callbackUrl)}`,
|
|
|
`https://m.cdfmembers.com/shop/600667208/h5login?redirectUrl=${encodeURIComponent(callbackUrl)}`,
|
|
@@ -157,7 +157,7 @@ const close = () => {
|
|
|
|
|
|
const updateProductsById = async (idx) => {
|
|
|
if (!tagclick.value.data.products[idx]) {
|
|
|
- Dialog.toast({ content: `获取商品详情失败,请稍后再试`, type: "error" });
|
|
|
+ Dialog.toast({ content: `獲取商品詳情失敗,請稍後再試`, type: "error" });
|
|
|
close();
|
|
|
return;
|
|
|
}
|
|
@@ -194,6 +194,7 @@ watch(
|
|
|
() => tagclick.value.type,
|
|
|
(val, old) => {
|
|
|
if (val === "goodlist") {
|
|
|
+ current.value = 0
|
|
|
updateProductsById(current.value);
|
|
|
}
|
|
|
}
|