zhangdan 4 سال پیش
والد
کامیت
54be8eb0be
2فایلهای تغییر یافته به همراه16 افزوده شده و 9 حذف شده
  1. 15 8
      pages/index/index.vue
  2. 1 1
      pages/userCenter/index.vue

+ 15 - 8
pages/index/index.vue

@@ -186,14 +186,21 @@
 			},
 			// 上门回收跳转到乐色超人小程序
 			gotoCustMini(){
-				wx.navigateToMiniProgram({
-				  appId: 'wxe7148c4ca329815a',
-				  path: 'pages/index/index',
-				  envVersion:"trial",
-				  success:(res)=>{
-					  console.log(res,'===========跳转小程序')
-				  }
-				})
+				if(this.hasLogin){
+					wx.navigateToMiniProgram({
+					  appId: 'wxe7148c4ca329815a',
+					  path: 'pages/index/index',
+					  envVersion:"trial",
+					  success:(res)=>{
+						  console.log(res,'===========跳转小程序')
+					  }
+					})
+				}else{
+					uni.navigateTo({
+						url:"/pages/login/login"
+					})
+				}
+				
 			},
 			// 计算距离                                                                                                                        
 			getDistanct(item){

+ 1 - 1
pages/userCenter/index.vue

@@ -195,7 +195,7 @@
 				//  未登录跳转登录,已登录跳转用户信息页
 				if(this.hasLogin){
 					uni.navigateTo({
-						url: '/pages/userCenter/userInfo/userInfo'
+						url: '/pageMe/userCenter/userInfo/userInfo'
 					})
 				}else{
 					this.toLoginPage()