|
@@ -501,7 +501,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
- console.log(options)
|
|
|
|
|
|
+ console.log('options',options)
|
|
if(options.invite){
|
|
if(options.invite){
|
|
uni.setStorageSync('invited',options.invite);
|
|
uni.setStorageSync('invited',options.invite);
|
|
}
|
|
}
|
|
@@ -510,10 +510,13 @@
|
|
title:'加载中'
|
|
title:'加载中'
|
|
})
|
|
})
|
|
this.$api.public.aliossCdn({}).then(cdnRes=>{
|
|
this.$api.public.aliossCdn({}).then(cdnRes=>{
|
|
|
|
+ console.log('cdnRes',cdnRes)
|
|
this.$store.commit('setImageCdn',cdnRes.data.pictureCdn);
|
|
this.$store.commit('setImageCdn',cdnRes.data.pictureCdn);
|
|
this.$store.commit('setVideoCdn',cdnRes.data.videoCdn);
|
|
this.$store.commit('setVideoCdn',cdnRes.data.videoCdn);
|
|
uni.setStorageSync('imageCdn',cdnRes.data.pictureCdn);
|
|
uni.setStorageSync('imageCdn',cdnRes.data.pictureCdn);
|
|
uni.setStorageSync('videoCdn',cdnRes.data.videoCdn);
|
|
uni.setStorageSync('videoCdn',cdnRes.data.videoCdn);
|
|
|
|
+ }).catch((error)=>{
|
|
|
|
+ console.log('error---aliossCdn',error)
|
|
});
|
|
});
|
|
this.login();
|
|
this.login();
|
|
this.computedScollviewHeight();
|
|
this.computedScollviewHeight();
|
|
@@ -554,6 +557,7 @@
|
|
login(){
|
|
login(){
|
|
const that=this;
|
|
const that=this;
|
|
if(uni.getStorageSync('isLogin')==='yes'){
|
|
if(uni.getStorageSync('isLogin')==='yes'){
|
|
|
|
+ console.log('uni.getStorageSync(isLogin)',uni.getStorageSync('isLogin'))
|
|
this.getMineData();
|
|
this.getMineData();
|
|
this.computedLocation();
|
|
this.computedLocation();
|
|
return;
|
|
return;
|
|
@@ -566,6 +570,7 @@
|
|
jsCode:res.code
|
|
jsCode:res.code
|
|
}
|
|
}
|
|
}).then(result=>{
|
|
}).then(result=>{
|
|
|
|
+ console.log('result',result)
|
|
if(result.status==='Succ'){
|
|
if(result.status==='Succ'){
|
|
uni.setStorageSync('openId',result.data.wxLoginInfo.openId);
|
|
uni.setStorageSync('openId',result.data.wxLoginInfo.openId);
|
|
uni.setStorageSync('unionId',result.data.wxLoginInfo.unionId);
|
|
uni.setStorageSync('unionId',result.data.wxLoginInfo.unionId);
|
|
@@ -584,10 +589,12 @@
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ }).catch((error)=>{
|
|
|
|
+ console.log('uni.login',error)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
fail: (err) => {
|
|
fail: (err) => {
|
|
- console.log(err)
|
|
|
|
|
|
+ console.log('免密登录',err)
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -629,6 +636,8 @@
|
|
userID:String(user.id),
|
|
userID:String(user.id),
|
|
userSig:this.$store.state.IMloadSig
|
|
userSig:this.$store.state.IMloadSig
|
|
})
|
|
})
|
|
|
|
+ }).catch((err)=>{
|
|
|
|
+ console.log('IM.loadSig',err)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onTIMError(error) {
|
|
onTIMError(error) {
|