跳转提示

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); //
//
uni.setStorageSync('user_info',res.data);
if (res.data.member.has_labels) {
uni.switchTab({
url: '/pages/index/index'

View File

@ -256,32 +256,40 @@ export default {
},
methods: {
customers(){
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)
}
if(!this.$store.state.hasLogin){
this.$refs.uToast.show({
title: "请先登录",
type: 'warning'
})
}).catch((err)=>{
console.log(err)
})
}else{
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) {
let img = [];