优化:个人中心 - 非代理人员不可见代理中心按钮
This commit is contained in:
parent
db7616da07
commit
fbc78b88b6
|
|
@ -352,6 +352,7 @@
|
||||||
MyMenus: [],
|
MyMenus: [],
|
||||||
is_promoter: 0, //推广人开关 1开
|
is_promoter: 0, //推广人开关 1开
|
||||||
is_exchange_saff: false,// 是否为兑换管理员
|
is_exchange_saff: false,// 是否为兑换管理员
|
||||||
|
is_agent: false,// 是否为代理人员
|
||||||
extension_status: 0,
|
extension_status: 0,
|
||||||
copyright: {
|
copyright: {
|
||||||
copyright_status: 1
|
copyright_status: 1
|
||||||
|
|
@ -448,6 +449,10 @@
|
||||||
filterMenus: function(item){
|
filterMenus: function(item){
|
||||||
let that = this;
|
let that = this;
|
||||||
if(item.url=='/pages/users/user_money/index') item.isShow = that.balance_func_status == 1
|
if(item.url=='/pages/users/user_money/index') item.isShow = that.balance_func_status == 1
|
||||||
|
else if(item.url == '/pages/agent/center'){
|
||||||
|
console.log('是否为代理人员:',that.is_agent)
|
||||||
|
item.isShow = that.is_agent || false;
|
||||||
|
}
|
||||||
else if(item.url=='/pages/users/user_spread_user/index'){
|
else if(item.url=='/pages/users/user_spread_user/index'){
|
||||||
if(that.extension_status == 0){
|
if(that.extension_status == 0){
|
||||||
item.isShow = false
|
item.isShow = false
|
||||||
|
|
@ -535,6 +540,7 @@
|
||||||
that.userInfo = res.data;
|
that.userInfo = res.data;
|
||||||
that.is_promoter = res.data.is_promoter;
|
that.is_promoter = res.data.is_promoter;
|
||||||
that.is_exchange_saff = res.data.is_exchange_saff || false;
|
that.is_exchange_saff = res.data.is_exchange_saff || false;
|
||||||
|
that.is_agent = res.data.is_agent || false;
|
||||||
that.extension_status = res.data.extension_status;
|
that.extension_status = res.data.extension_status;
|
||||||
that.getMyMenus();
|
that.getMyMenus();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue