|
|
@@ -283,10 +283,17 @@ Page({
|
|
|
this.setData({
|
|
|
isLogin: true
|
|
|
})
|
|
|
- this.getNewDetail()
|
|
|
- this.getVoyageDetail()
|
|
|
- this.getCarLoadRecordList()
|
|
|
- this.getDischargeList()
|
|
|
+ if ((wx.getStorageSync('isClient') && wx.getStorageSync('sharePermission') || !(wx.getStorageSync('isClient')))) {
|
|
|
+ this.getNewDetail()
|
|
|
+ this.getVoyageDetail()
|
|
|
+ this.getCarLoadRecordList()
|
|
|
+ this.getDischargeList()
|
|
|
+ } else {
|
|
|
+ wx.showToast({
|
|
|
+ icon: "none",
|
|
|
+ title: '暂无查看权限'
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
wx.showToast({
|
|
|
icon: "none",
|
|
|
@@ -309,10 +316,17 @@ Page({
|
|
|
this.setData({
|
|
|
isLogin: true
|
|
|
})
|
|
|
- this.getNewDetail()
|
|
|
- this.getVoyageDetail()
|
|
|
- this.getCarLoadRecordList()
|
|
|
- this.getDischargeList()
|
|
|
+ if ((wx.getStorageSync('isClient') && wx.getStorageSync('sharePermission') || !(wx.getStorageSync('isClient')))) {
|
|
|
+ this.getNewDetail()
|
|
|
+ this.getVoyageDetail()
|
|
|
+ this.getCarLoadRecordList()
|
|
|
+ this.getDischargeList()
|
|
|
+ } else {
|
|
|
+ wx.showToast({
|
|
|
+ icon: "none",
|
|
|
+ title: '暂无查看权限'
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
},
|