htc 4 days ago
parent
commit
6612e29923
1 changed files with 10 additions and 8 deletions
  1. 10 8
      pages/home.vue

+ 10 - 8
pages/home.vue

@@ -103,7 +103,7 @@
 			<view class="kr-box adffcac">
 				<image :src="imgBase+'remind_close.png'" @click="questionnaireKindShow=false"></image>
 				<view class="kr-title">温馨提示</view>
-				<view class="kr-p" style="margin-top: 32rpx;">你有一份<span>“PERILL团队评估级”</span>问卷待完成,请及时填写,</view>
+				<view class="kr-p" style="margin-top: 32rpx;">你有一份<span>“PERILL团队评估级”</span>问卷待完成,请及时填写,</view>
 				<view class="kr-p">以便我们为你提供精准分析</view>
 				<view class="kr-btn" @click="handleToFill">去填写</view>
 			</view>
@@ -143,23 +143,25 @@
 					console.log(e,'e');
 				}
 			}
-			if(options.shareTQId){
-				uni.setStorageSync('shareTQId',options.shareTQId)
+			if(options.shareType) uni.setStorageSync('channelType',options.shareType)
+			if(options.shareUserId) uni.setStorageSync('shareUserId',options.shareUserId)
+			if(options.shareTQId) uni.setStorageSync('shareTQId',options.shareTQId)
+			if(options.shareTQId||uni.getStorageSync('shareTQId')){
 				// 邀请进来的并且已经登录的
 				if(uni.getStorageSync('userInfo')){
 					this.$api.get('/wx/queShareCheck',{
-						channelType:uni.getStorageSync('channelType')|'',
-						phone:JSON.parse(uni.getStorageSync('userInfo')).mobile,
-						referrerId:uni.getStorageSync('shareUserId')|'',
-						teamQuestionnaireId:uni.getStorageSync('shareTQId')|'',
+						channelType:uni.getStorageSync('channelType')||'',
+						phone:JSON.parse(uni.getStorageSync('userInfo')).mobile||'',
+						referrerId:uni.getStorageSync('shareUserId')||'',
+						teamQuestionnaireId:uni.getStorageSync('shareTQId')||'',
 					}).then(({data:res})=>{
+						this.$showModal(JSON.stringify(res))
 						if(res.code===0) return this.questionnaireKindShow = true;
 						this.teamKindMsg = res.msg||'';
 						this.teamKindShow = true;
 					})
 				}
 			}
-			if(options.shareUserId) uni.setStorageSync('shareUserId',options.shareUserId)
 			if(uni.getStorageSync('token')){
 				this.getPerillPJ();
 				this.getPerillBG();