update about api

This commit is contained in:
cmxdd
2020-07-30 19:49:12 +08:00
parent 5094efd41e
commit 22ea59f5c5
16 changed files with 1298 additions and 809 deletions

View File

@@ -89,9 +89,35 @@ export default {
},
// 跳转发布页面
navto(url) {
this.$u.route({
url: `/pages/${url}`
});
// 判断直播权限
if(url=="release/tosign"){
this.$u.api.canlive({}).then(res => {
console.log(res);
if (res.errCode != 0) {
this.$refs.uToast.show({
title: res.message,
type: 'error'
});
} else {
if(res.data.live_stataes==0){
this.$u.route({
url: `/pages/${url}`
});
}else{
this.$refs.uToast.show({
title: "当前用户没有直播权限",
type: 'error'
});
}
}
});
}else{
this.$u.route({
url: `/pages/${url}`
});
}
}
},
}