|
@@ -33,6 +33,21 @@ App({
|
|
|
})
|
|
})
|
|
|
wx.setStorageSync('userauth', res.data);
|
|
wx.setStorageSync('userauth', res.data);
|
|
|
});
|
|
});
|
|
|
|
|
+ this.globalData.http.sColors = require("./utils/defaultColors")
|
|
|
|
|
+ _Http.basic({
|
|
|
|
|
+ "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
|
|
+ "method": "optiontypeselect",
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "typename": "statuscolors"
|
|
|
|
|
+ }
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if (res.code != '1') return;
|
|
|
|
|
+ res.data.forEach(v => {
|
|
|
|
|
+ _Http.sColors[v.value] = v.remarks
|
|
|
|
|
+ })
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.globalData.http.sColors = require("./utils/defaultColors")
|
|
|
}
|
|
}
|
|
|
if (!wx.getStorageSync('languagecode')) wx.setStorageSync('languagecode', 'ZH');
|
|
if (!wx.getStorageSync('languagecode')) wx.setStorageSync('languagecode', 'ZH');
|
|
|
this.globalData.Language.getLanguages(wx.getStorageSync('languagecode'));
|
|
this.globalData.Language.getLanguages(wx.getStorageSync('languagecode'));
|