|
|
@@ -6,46 +6,6 @@ import {
|
|
|
} from './utils/language';
|
|
|
App({
|
|
|
onLaunch(options) {
|
|
|
- //小程序跳转进入
|
|
|
- if (options.query.userMsg) {
|
|
|
- wx.removeStorageSync('userMsg')
|
|
|
- wx.removeStorageSync('auth')
|
|
|
- wx.removeStorageSync('userauth');
|
|
|
- wx.removeStorageSync('templetList');
|
|
|
- wx.setStorageSync('userMsg', JSON.parse(options.query.userMsg));
|
|
|
- wx.setStorageSync('auth', JSON.parse(options.query.auth));
|
|
|
- wx.setStorageSync('siteP', JSON.parse(options.query.site));
|
|
|
- wx.setStorageSync('templetList', JSON.parse(options.query.templetList));
|
|
|
- wx.removeStorageSync('languagecode');
|
|
|
- wx.setStorageSync('languagecode', options.query.languagecode);
|
|
|
- //获取用户权限
|
|
|
- this.globalData.http.basic({
|
|
|
- "classname": "sysmanage.develop.userauth.userauth",
|
|
|
- "method": "query_userauth",
|
|
|
- content: {
|
|
|
- nocache: true
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- console.log("跳转进入查询权限", res)
|
|
|
- if (res.code != '1') return wx.showToast({
|
|
|
- title: '权限查询失败,请稍后再试',
|
|
|
- icon: "none"
|
|
|
- })
|
|
|
- wx.setStorageSync('userauth', res.data);
|
|
|
- });
|
|
|
- _Http.basic({
|
|
|
- "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
- "method": "optiontypeselect",
|
|
|
- "content": {
|
|
|
- "typename": "statuscolors"
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- if (res.code != '1') return;
|
|
|
- res.data.forEach(v => {
|
|
|
- this.globalData.sColors[v.value] = v.remarks
|
|
|
- })
|
|
|
- });
|
|
|
- }
|
|
|
},
|
|
|
initSocket() {
|
|
|
let that = this;
|