rindy il y a 3 ans
Parent
commit
981c12d523
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      src/components/Tags/goods-list.vue

+ 1 - 3
src/components/Tags/goods-list.vue

@@ -114,7 +114,7 @@ const addCart = async (item) => {
   });
 
   Loading.hide();
-  if (result.data.code === 0) {
+  if (result.code === 0) {
     return Dialog.toast({ content: `添加成功`, type: "success" });
   } else {
     let callbackUrl = `${window.location.origin}${window.location.pathname}?m=${browser.getURLParam("m")}&novideo=1&${getApp().Camera.getPoseUrlParams()}`;
@@ -124,7 +124,6 @@ const addCart = async (item) => {
     } else {
       callbackUrl = browser.replaceQueryString(callbackUrl, "tagid", tagclick.value.data.sid);
     }
-
     console.log(callbackUrl);
     //  Dialog.toast({ content: `登录状态失效,请重新登录`, type: 'error' })
     browser.openLink(
@@ -132,7 +131,6 @@ const addCart = async (item) => {
       `https://m.cdfmembers.com/shop/600667208/h5login?redirectUrl=${encodeURIComponent(callbackUrl)}`,
       `/pages/login/login?callbackHttpUrl=${encodeURIComponent(callbackUrl)}`
     );
-    return;
   }
 };