|
|
@ -5,15 +5,15 @@ |
|
|
|
// brestUrl: 'http://192.168.3.4:9302/brest', |
|
|
|
// brestUrl: 'http://192.168.3.4:9302/brest', |
|
|
|
// imgUrl: 'https://192.168.3.4:9301/filesystem/', |
|
|
|
// imgUrl: 'https://192.168.3.4:9301/filesystem/', |
|
|
|
//正式 |
|
|
|
//正式 |
|
|
|
// url: 'https://hsg.dctpay.com/crest', |
|
|
|
url: 'https://hsg.dctpay.com/crest', |
|
|
|
// imgUrl: 'https://hsg.dctpay.com/filesystem/', |
|
|
|
imgUrl: 'https://hsg.dctpay.com/filesystem/', |
|
|
|
// brestUrl: 'https://hsg.dctpay.com/brest', |
|
|
|
brestUrl: 'https://hsg.dctpay.com/brest', |
|
|
|
// imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/', |
|
|
|
imageWxImg: 'https://hsg.dctpay.com/filesystem/wxApplets/', |
|
|
|
//测试 |
|
|
|
//测试 |
|
|
|
url: 'https://hsgcs.dctpay.com/crest', |
|
|
|
// url: 'https://hsgcs.dctpay.com/crest', |
|
|
|
brestUrl: 'https://hsgcs.dctpay.com/brest', |
|
|
|
// brestUrl: 'https://hsgcs.dctpay.com/brest', |
|
|
|
imgUrl: 'https://hsgcs.dctpay.com/filesystem/', |
|
|
|
// imgUrl: 'https://hsgcs.dctpay.com/filesystem/', |
|
|
|
imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/', |
|
|
|
// imageWxImg: 'https://hsgcs.dctpay.com/filesystem/wxApplets/', |
|
|
|
userInfo: "", |
|
|
|
userInfo: "", |
|
|
|
brestUserInfo: '', |
|
|
|
brestUserInfo: '', |
|
|
|
bresthighAgent: '', |
|
|
|
bresthighAgent: '', |
|
|
@ -27,9 +27,9 @@ |
|
|
|
latitude: '', |
|
|
|
latitude: '', |
|
|
|
balancePrice: '', |
|
|
|
balancePrice: '', |
|
|
|
balanceCardNo: '', |
|
|
|
balanceCardNo: '', |
|
|
|
identificationCode: '', |
|
|
|
identificationCode: '', |
|
|
|
//公司id |
|
|
|
//公司id |
|
|
|
companyId:'', |
|
|
|
companyId: '', |
|
|
|
// h5获取信息 |
|
|
|
// h5获取信息 |
|
|
|
h5code: '', |
|
|
|
h5code: '', |
|
|
|
//门店ID |
|
|
|
//门店ID |
|
|
@ -58,103 +58,123 @@ |
|
|
|
pelletoilList: '' |
|
|
|
pelletoilList: '' |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
onLaunch: function() { |
|
|
|
onLaunch: function() {}, |
|
|
|
}, |
|
|
|
onShow: function() { |
|
|
|
onShow: function() { |
|
|
|
// #ifdef H5 |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
uni.getStorage({ |
|
|
|
uni.getStorage({ |
|
|
|
key: 'openId', |
|
|
|
key: 'openId', |
|
|
|
success(e) { |
|
|
|
success(e) { |
|
|
|
if (e.data) { |
|
|
|
if (e.data) { |
|
|
|
that.globalData.openId = e.data; |
|
|
|
that.globalData.openId = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
uni.getStorage({ |
|
|
|
uni.getStorage({ |
|
|
|
key: 'user', |
|
|
|
key: 'user', |
|
|
|
success(e) { |
|
|
|
success(e) { |
|
|
|
if (e.data) { |
|
|
|
if (e.data) { |
|
|
|
that.globalData.userInfo = e.data; |
|
|
|
that.globalData.userInfo = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
uni.getStorage({ |
|
|
|
uni.getStorage({ |
|
|
|
key: 'token', |
|
|
|
key: 'token', |
|
|
|
success(e) { |
|
|
|
success(e) { |
|
|
|
if (e.data) { |
|
|
|
if (e.data) { |
|
|
|
that.globalData.token = e.data; |
|
|
|
that.globalData.token = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uni.getStorage({ |
|
|
|
uni.getStorage({ |
|
|
|
key: 'accountId', |
|
|
|
key: 'accountId', |
|
|
|
success(e) { |
|
|
|
success(e) { |
|
|
|
if (e.data) { |
|
|
|
if (e.data) { |
|
|
|
that.globalData.accountId = e.data; |
|
|
|
that.globalData.accountId = e.data; |
|
|
|
that.globalData.accountType = e.data; |
|
|
|
that.globalData.accountType = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
uni.getStorage({ |
|
|
|
uni.getStorage({ |
|
|
|
key: 'gasKey', |
|
|
|
key: 'gasKey', |
|
|
|
success(e) { |
|
|
|
success(e) { |
|
|
|
if (e.data) { |
|
|
|
if (e.data) { |
|
|
|
that.globalData.gasKey = e.data; |
|
|
|
that.globalData.gasKey = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
uni.getStorage({ |
|
|
|
uni.getStorage({ |
|
|
|
key: 'staffCode', |
|
|
|
key: 'staffCode', |
|
|
|
success(e) { |
|
|
|
success(e) { |
|
|
|
if (e.data) { |
|
|
|
if (e.data) { |
|
|
|
if (that.globalData.accountId == '000001&key' || that.globalData.accountId == |
|
|
|
if (that.globalData.accountId == '000001&key' || that.globalData.accountId == |
|
|
|
'000000&gasKey' || that.globalData.accountId == '000009&key' || that.globalData.accountId == '0000010&key') { |
|
|
|
'000000&gasKey' || that.globalData.accountId == '000009&key' || that.globalData |
|
|
|
that.globalData.staffCode = e.data; |
|
|
|
.accountId == '0000010&key') { |
|
|
|
} else { |
|
|
|
that.globalData.staffCode = e.data; |
|
|
|
that.globalData.mchId = e.data; |
|
|
|
} else { |
|
|
|
} |
|
|
|
that.globalData.mchId = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
uni.getStorage({ |
|
|
|
|
|
|
|
key: 'cityId', |
|
|
|
uni.getStorage({ |
|
|
|
success(e) { |
|
|
|
key: 'cityId', |
|
|
|
if (e.data) { |
|
|
|
success(e) { |
|
|
|
that.globalData.cityId = e.data; |
|
|
|
if (e.data) { |
|
|
|
} |
|
|
|
that.globalData.cityId = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
uni.getStorage({ |
|
|
|
uni.getStorage({ |
|
|
|
key: 'companyId', |
|
|
|
key: 'cityName', |
|
|
|
success(e) { |
|
|
|
success(e) { |
|
|
|
if (e.data) { |
|
|
|
if (e.data) { |
|
|
|
that.globalData.companyId = e.data; |
|
|
|
that.globalData.cityName = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
uni.getStorage({ |
|
|
|
uni.getStorage({ |
|
|
|
key: 'latitude', |
|
|
|
key: 'qianzhuCityName', |
|
|
|
success(e) { |
|
|
|
success(e) { |
|
|
|
if (e.data) { |
|
|
|
if (e.data) { |
|
|
|
that.globalData.latitude = e.data; |
|
|
|
that.globalData.qianzhuCityName = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
uni.getStorage({ |
|
|
|
|
|
|
|
key: 'longitude', |
|
|
|
uni.getStorage({ |
|
|
|
success(e) { |
|
|
|
key: 'companyId', |
|
|
|
if (e.data) { |
|
|
|
success(e) { |
|
|
|
that.globalData.longitude = e.data; |
|
|
|
if (e.data) { |
|
|
|
} |
|
|
|
that.globalData.companyId = e.data; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uni.getStorage({ |
|
|
|
|
|
|
|
key: 'latitude', |
|
|
|
|
|
|
|
success(e) { |
|
|
|
|
|
|
|
if (e.data) { |
|
|
|
|
|
|
|
that.globalData.latitude = e.data; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
uni.getStorage({ |
|
|
|
|
|
|
|
key: 'longitude', |
|
|
|
|
|
|
|
success(e) { |
|
|
|
|
|
|
|
if (e.data) { |
|
|
|
|
|
|
|
that.globalData.longitude = e.data; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
// #endif |
|
|
|
}, |
|
|
|
}, |
|
|
|
onHide: function() {} |
|
|
|
onHide: function() {} |
|
|
|
} |
|
|
|
} |
|
|
|