htc 4 ngày trước cách đây
mục cha
commit
3914890ffb
2 tập tin đã thay đổi với 22 bổ sung5 xóa
  1. 21 4
      pages/home.vue
  2. 1 1
      pages/login.vue

+ 21 - 4
pages/home.vue

@@ -95,9 +95,7 @@
 			<view class="kr-box adffcac">
 				<image :src="imgBase+'remind_close.png'" @click="teamKindShow=false"></image>
 				<view class="kr-title">温馨提示</view>
-				<view class="kr-p" style="margin-top: 32rpx;">你尚未加入<span>(问卷ID:{{87999}})</span>的团队</view>
-				<view class="kr-p">因此无法填写此问卷</view>
-				<view class="kr-p">请联系问卷创建者<span>{{'刘怡然'}}</span>将你加入团队</view>
+				<view class="kr-p" style="margin-top: 32rpx;">{{teamKindMsg}}</view>
 				<view class="kr-btn" @click="teamKindShow=false">我知道了</view>
 			</view>
 		</view>
@@ -130,6 +128,7 @@
 				],
 				newUserFreeShow:false,
 				teamKindShow:false,
+				teamKindMsg:'',
 				questionnaireKindShow:false,
 			}
 		},
@@ -144,7 +143,22 @@
 					console.log(e,'e');
 				}
 			}
-			if(options.shareTQId) uni.setStorageSync('shareTQId',options.shareTQId)
+			if(options.shareTQId){
+				uni.setStorageSync('shareTQId',options.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')|'',
+					}).then(({data: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();
@@ -189,6 +203,9 @@
 			},
 			handleToFill(){
 				this.questionnaireKindShow = false;
+				uni.navigateTo({
+					url:'/pagesHome/questionnaire?type=receive'
+				})
 			},
 			handleFree(){
 				uni.reLaunch({

+ 1 - 1
pages/login.vue

@@ -243,7 +243,7 @@
 							&:last-child{
 								font-weight: 400;
 								font-size: 28rpx;
-								color: #646464;
+								color: #667E90;
 								line-height: 47rpx;
 							}
 						}