|
|
@@ -146,6 +146,7 @@
|
|
|
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')&&uni.getStorageSync('shareUserId')==JSON.parse(uni.getStorageSync('userInfo')).id) return
|
|
|
// 邀请进来的并且已经登录的
|
|
|
if(uni.getStorageSync('userInfo')){
|
|
|
this.$api.get('/wx/queShareCheck',{
|
|
|
@@ -154,11 +155,13 @@
|
|
|
referrerId:uni.getStorageSync('shareUserId')||'',
|
|
|
teamQuestionnaireId:uni.getStorageSync('shareTQId')||'',
|
|
|
}).then(({data:res})=>{
|
|
|
- if(res.code===0&&res.data==1) this.questionnaireKindShow = true;
|
|
|
- else if(res.code!==0){
|
|
|
+ this.$showModal(`queShareCheck接口入参channelType:${uni.getStorageSync('channelType')},
|
|
|
+ referrerId:${uni.getStorageSync('shareUserId')},teamQuestionnaireId:${uni.getStorageSync('shareTQId')}
|
|
|
+ ------返回数据res:${JSON.stringify(res)}`)
|
|
|
+ if(res.code!==0){
|
|
|
this.teamKindMsg = res.msg||'';
|
|
|
this.teamKindShow = true;
|
|
|
- }
|
|
|
+ }else if(res.code===0&&res.data==1) this.questionnaireKindShow = true;
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
@@ -193,15 +196,15 @@
|
|
|
getPerillPJ(){
|
|
|
this.$api.get('/core/teammember/que/questionnaireStats').then(res=>{
|
|
|
if(res.data.code!==0) return
|
|
|
- this.perillPJ = res.data.data;
|
|
|
- this.perillPJ.sum = (this.perillPJ.completed||0)+(this.perillPJ.uncompleted||0);
|
|
|
+ this.perillPJ = res.data.data||{};
|
|
|
+ this.perillPJ.sum = (this.perillPJ?.completed||0)+(this.perillPJ?.uncompleted||0);
|
|
|
})
|
|
|
},
|
|
|
getPerillBG(){
|
|
|
this.$api.get('/core/report/reportStats').then(res=>{
|
|
|
if(res.data.code!==0) return
|
|
|
- this.perillBG = res.data.data;
|
|
|
- this.perillBG.sum = (this.perillBG.received||0)+(this.perillBG.sent||0);
|
|
|
+ this.perillBG = res.data.data||{};
|
|
|
+ this.perillBG.sum = (this.perillBG?.received||0)+(this.perillBG?.sent||0);
|
|
|
})
|
|
|
},
|
|
|
getWjList(){
|