Jelajahi Sumber

fix: 调整部分功能模块

wenxingxing 1 hari lalu
induk
melakukan
b642f3bb28
2 mengubah file dengan 6 tambahan dan 7 penghapusan
  1. 4 6
      pages/shopping/productDetails.vue
  2. 2 1
      utils/login.js

+ 4 - 6
pages/shopping/productDetails.vue

@@ -547,12 +547,10 @@ import {CustomToast} from '@/components/custom-toast.vue';
 						return;
 					}
 				}
-				// this.utils.isLogin().then(res => {
-					if (this.$isLogin()) {
-						this.type = type;
-						this.specVisible = true
-					}
-				// })
+				if (this.$isLogin()) {
+					this.type = type;
+					this.specVisible = true
+				}
 			},
 			// 规格选择
 			choseSpec(index, subIndex) {

+ 2 - 1
utils/login.js

@@ -848,7 +848,8 @@ export function goPage() {
       	 });
    } else {
 	    uni.reLaunch({
-	    	url: '/pages_im/pages/conversation/conversationList/index',
+	    	// url: '/pages_im/pages/conversation/conversationList/index',
+	    	url: '/pages/index/index',
 	    	//url: '../course/video/living-app',
 	    	animationType: 'none',
 	    	animationDuration: 2000