跳转提示

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,6 +256,12 @@ export default {
}, },
methods: { methods: {
customers(){ customers(){
if(!this.$store.state.hasLogin){
this.$refs.uToast.show({
title: "请先登录",
type: 'warning'
})
}else{
function Friend(uuid, name, avatar,time = "", text = "",date = "") { function Friend(uuid, name, avatar,time = "", text = "",date = "") {
this.uuid = uuid; this.uuid = uuid;
this.name = name; this.name = name;
@ -282,6 +288,8 @@ export default {
}).catch((err)=>{ }).catch((err)=>{
console.log(err) console.log(err)
}) })
}
}, },
setSwiperList(list) { setSwiperList(list) {
let img = []; let img = [];