wzh 4 mesiacov pred
rodič
commit
4aa4856ea0

+ 7 - 7
template/uni-app/pages/user/index.vue

@@ -67,18 +67,18 @@
 									<view class="num-txt">{{ userInfo.phone }}</view>
 								</view>
 								<!-- #ifdef MP -->
-								<button class="phone" v-if="!userInfo.phone && isLogin" open-type="getPhoneNumber" @getphonenumber="getphonenumber">{{ $t(`绑定手机号`) }}</button>
+<!--								<button class="phone" v-if="!userInfo.phone && isLogin" open-type="getPhoneNumber" @getphonenumber="getphonenumber">{{ $t(`绑定手机号`) }}</button>-->
 								<!-- #endif -->
 								<!-- #ifndef MP -->
-								<view class="phone" v-if="!userInfo.phone && isLogin" @tap="bindPhone">
-									{{ $t('绑定手机号') }}
-								</view>
+<!--								<view class="phone" v-if="!userInfo.phone && isLogin" @tap="bindPhone">-->
+<!--									{{ $t('绑定手机号') }}-->
+<!--								</view>-->
 								<!-- #endif -->
 							</view>
 							<view class="message">
-								<navigator v-if="isLogin" url="/pages/users/user_info/index" hover-class="none">
-									<view class="iconfont icon-shezhi"></view>
-								</navigator>
+<!--								<navigator v-if="isLogin" url="/pages/users/user_info/index" hover-class="none">-->
+<!--									<view class="iconfont icon-shezhi"></view>-->
+<!--								</navigator>-->
 							</view>
 							<view class="message">
 								<navigator v-if="isLogin" url="/pages/users/message_center/index" hover-class="none">

+ 10 - 1
template/uni-app/pages/users/wechat_login/index.vue

@@ -139,6 +139,12 @@
 			privacyAgreementPopup
 		},
 		onLoad(options) {
+      if(this.isLogin){
+        uni.redirectTo({
+          url: '/pages/index/index'
+        });
+        return;
+      }
 			if (uni.getUserProfile) {
 				this.canUseGetUserProfile = true
 			}
@@ -197,7 +203,10 @@
 						this.getUserInfo(0, back_url)
 					}
 				}).catch(err => {
-					uni.hideLoading();
+          uni.hideLoading();
+          uni.reLaunch({
+            url: '/pages/index/index'
+          });
 					uni.showToast({
 						title: err,
 						icon: 'none',