|
@@ -396,6 +396,10 @@
|
|
|
this.scrollTop = e.scrollTop;
|
|
|
},
|
|
|
onShow() {
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中',
|
|
|
+ mask: true
|
|
|
+ })
|
|
|
// console.log(111111111)
|
|
|
if (uni.getStorageSync('pcUserInfo')) {
|
|
|
// console.log(2222222)
|
|
@@ -483,22 +487,26 @@
|
|
|
|
|
|
// }
|
|
|
// });
|
|
|
+ console.log(uni.getStorageSync('compName1'))
|
|
|
if(uni.getStorageSync('compName1')){
|
|
|
+ console.log(11111111)
|
|
|
that.compName = uni.getStorageSync('compName1').company
|
|
|
}
|
|
|
that.$api.doRequest('get', '/commonUser/getCompOwn', {
|
|
|
phone: that.userInfo.phone
|
|
|
}).then(res => {
|
|
|
if (res.data.data) {
|
|
|
+ uni.hideLoading()
|
|
|
that.companyList = res.data.data
|
|
|
- uni.setStorageSync('companyList', that.companyList)
|
|
|
+ // uni.setStorageSync('companyList', that.companyList)
|
|
|
console.log("that.3333")
|
|
|
console.log(that.companyList)
|
|
|
if (that.companyList.length > 0) {
|
|
|
if (!that.compName) {
|
|
|
+ console.log(111111111111)
|
|
|
that.compName = that.companyList[0].compName
|
|
|
uni.setStorageSync('compName1', {company:that.companyList[0].compName})
|
|
|
- }
|
|
|
+ }
|
|
|
console.log("this.compName")
|
|
|
console.log(that.compName)
|
|
|
that.haveCompany = true
|