|
@@ -39,10 +39,11 @@ App({
|
|
imghttp:'https://www.xsip.cn/fileManager/downloadFile?fileId='
|
|
imghttp:'https://www.xsip.cn/fileManager/downloadFile?fileId='
|
|
}, // 生产环境地址
|
|
}, // 生产环境地址
|
|
}
|
|
}
|
|
- const accountInfo = wx.getAccountInfoSync();
|
|
|
|
|
|
+ const accountInfo = wx.getAccountInfoSync();
|
|
const envVersion = accountInfo.miniProgram.envVersion;
|
|
const envVersion = accountInfo.miniProgram.envVersion;
|
|
that.globalData.localImagePath = Path[envVersion].localImagePath;
|
|
that.globalData.localImagePath = Path[envVersion].localImagePath;
|
|
that.globalData.imghttp = Path[envVersion].imghttp;
|
|
that.globalData.imghttp = Path[envVersion].imghttp;
|
|
|
|
+ that.globalData.version = accountInfo.miniProgram.version;
|
|
},
|
|
},
|
|
globalData: {
|
|
globalData: {
|
|
userInfo: null,
|
|
userInfo: null,
|
|
@@ -55,7 +56,8 @@ App({
|
|
windowWidth:0,
|
|
windowWidth:0,
|
|
phone:'0755-82839168',
|
|
phone:'0755-82839168',
|
|
localImagePath:'',//发布是'.',本地开发是''
|
|
localImagePath:'',//发布是'.',本地开发是''
|
|
- imghttp:'https://www.xsip.cn/fileManager/downloadFile?fileId='
|
|
|
|
|
|
+ imghttp:'https://www.xsip.cn/fileManager/downloadFile?fileId=',
|
|
|
|
+ version:''
|
|
},
|
|
},
|
|
getPersonRights(){
|
|
getPersonRights(){
|
|
api.getPersonRights({},false).then(res=>{
|
|
api.getPersonRights({},false).then(res=>{
|