跳转提示

This commit is contained in:
luyuan 2020-08-10 17:03:15 +08:00
parent e3407b1046
commit 0c8e81f484
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 33 additions and 26 deletions

View File

@ -181,7 +181,6 @@
me.loginIn(res.data.token); // me.loginIn(res.data.token); //
// //
uni.setStorageSync('user_info',res.data); uni.setStorageSync('user_info',res.data);
if (res.data.member.has_labels) { if (res.data.member.has_labels) {
uni.switchTab({ uni.switchTab({
url: '/pages/index/index' url: '/pages/index/index'

View File

@ -256,32 +256,40 @@ export default {
}, },
methods: { methods: {
customers(){ customers(){
function Friend(uuid, name, avatar,time = "", text = "",date = "") { if(!this.$store.state.hasLogin){
this.uuid = uuid; this.$refs.uToast.show({
this.name = name; title: "请先登录",
this.avatar = avatar; type: 'warning'
this.online = false;
this.unReadMessage = 0;
this.text = text;
this.time = time;
this.date = date
}
console.log(123)
this.$u.api.getAtwillUserInfo({
id:this.storeid
}).then((res)=>{
console.log(res)
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
this.$u.route({
url:"/pageD/privateChat/privateChat",
params:{
id:JSON.stringify(user)
}
}) })
}).catch((err)=>{ }else{
console.log(err) function Friend(uuid, name, avatar,time = "", text = "",date = "") {
}) this.uuid = uuid;
this.name = name;
this.avatar = avatar;
this.online = false;
this.unReadMessage = 0;
this.text = text;
this.time = time;
this.date = date
}
console.log(123)
this.$u.api.getAtwillUserInfo({
id:this.storeid
}).then((res)=>{
console.log(res)
let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
this.$u.route({
url:"/pageD/privateChat/privateChat",
params:{
id:JSON.stringify(user)
}
})
}).catch((err)=>{
console.log(err)
})
}
}, },
setSwiperList(list) { setSwiperList(list) {
let img = []; let img = [];