lilei 1 рік тому
батько
коміт
c473280d3e
4 змінених файлів з 6 додано та 2 видалено
  1. 1 1
      api/request.js
  2. 1 0
      pages/login/login.vue
  3. 1 0
      pages/login/phoneLogin.vue
  4. 3 1
      store/index.js

+ 1 - 1
api/request.js

@@ -36,7 +36,7 @@ function request(options,hasNoToken) {
       if (_obj.url.indexOf('checkLogin') > -1) {
       if (_obj.url.indexOf('checkLogin') > -1) {
         resolve(res.data);
         resolve(res.data);
       } else if (res.data.status === '900010' || isCloseUser) {
       } else if (res.data.status === '900010' || isCloseUser) {
-		if(!showCommonTips==1){
+		if(!showCommonTips){
 			uni.setStorageSync('showCommonTips',1)
 			uni.setStorageSync('showCommonTips',1)
 			uni.showModal({
 			uni.showModal({
 				title: '提示',
 				title: '提示',

+ 1 - 0
pages/login/login.vue

@@ -82,6 +82,7 @@
 					}
 					}
 				})
 				})
 			}
 			}
+			uni.removeStorageSync('showStoreAuthTips')
 		},
 		},
         methods: {
         methods: {
 			...mapMutations(['login']),
 			...mapMutations(['login']),

+ 1 - 0
pages/login/phoneLogin.vue

@@ -79,6 +79,7 @@
 			//#ifdef MP-WEIXIN
 			//#ifdef MP-WEIXIN
 			  this.$store.dispatch('wxLogin', 'weixin')
 			  this.$store.dispatch('wxLogin', 'weixin')
 			//#endif
 			//#endif
+			uni.removeStorageSync('showStoreAuthTips')
 		},
 		},
 		methods: {
 		methods: {
 			...mapMutations(['login']),
 			...mapMutations(['login']),

+ 3 - 1
store/index.js

@@ -176,7 +176,9 @@ const store = new Vuex.Store({
 				console.log(res)
 				console.log(res)
 				context.commit('setStoreAuthInfo',res.data || null)
 				context.commit('setStoreAuthInfo',res.data || null)
 				if(res.status == 200){
 				if(res.status == 200){
-					if(res.data&&res.data.auditStatus=='PASS'){
+					const showStoreAuthTips = uni.getStorageSync('showStoreAuthTips')
+					if(res.data&&res.data.auditStatus=='PASS'&&!showStoreAuthTips){
+						uni.setStorageSync('showStoreAuthTips',1)
 						uni.showModal({
 						uni.showModal({
 							title: '提示',
 							title: '提示',
 							content: '门店认证审核已通过,请重新登录!',
 							content: '门店认证审核已通过,请重新登录!',