|
@@ -8,6 +8,7 @@ Page({
|
|
|
cType: {},
|
|
|
loading: true,
|
|
|
"content": {
|
|
|
+ nocache: true,
|
|
|
"pageNumber": 1,
|
|
|
"pageTotal": 1,
|
|
|
"tradefield": "",
|
|
@@ -29,6 +30,9 @@ Page({
|
|
|
}]
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ this.setData({
|
|
|
+ userrole: wx.getStorageSync('userrole')
|
|
|
+ })
|
|
|
this.getBrand()
|
|
|
this.getNum();
|
|
|
this.getDomain();
|
|
@@ -186,6 +190,7 @@ Page({
|
|
|
},
|
|
|
|
|
|
getNum() {
|
|
|
+ if (this.data.userrole == '业务员') return;
|
|
|
_Http.basic({
|
|
|
"id": 20220927093202,
|
|
|
"content": {}
|
|
@@ -196,6 +201,6 @@ Page({
|
|
|
});
|
|
|
},
|
|
|
onShow() {
|
|
|
- if (getApp().globalData.num) this.selectComponent("#Float").setNum(getApp().globalData.num)
|
|
|
+ if (this.data.userrole != '业务员' && getApp().globalData.num) this.selectComponent("#Float").setNum(getApp().globalData.num)
|
|
|
}
|
|
|
})
|