diff --git a/pages/index/index.js b/pages/index/index.js index 5fe860e..392cdd9 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -168,6 +168,9 @@ Page({ zconfig.header = { 'Authorization': 'QNT ' + result.data.token } pconfig.header = { 'Authorization': 'QNT ' + result.data.token } mconfig.header = { 'Authorization': 'QNT ' + result.data.token } + this.dataset({ + isTokenHaveStatus:true + }) // 登录流程完成; if(!util.isEmpty(result.data.userToken)){ this.handleUserToken(result.data.userToken) @@ -238,12 +241,11 @@ Page({ this.onResume() } // wx.navigateTo({ url: '/pages/home/tab1/index' }) - if (this.data.isTokenHaveStatus) { getBaseInfo().then(result => { this.setData({ hasShowedLoginTag: result.data.hasShowedLoginTag }) - if (this.data.hasShowedLoginTag == false) { + if (this.data.hasShowedLoginTag == true) { this.updateUserInfoFct({ hasShowedLoginTag: true }) @@ -252,7 +254,7 @@ Page({ }) } }) - } + }, updateUserInfoFct: function (model) { diff --git a/project.config.json b/project.config.json index 9aab4b0..c2b69e5 100644 --- a/project.config.json +++ b/project.config.json @@ -1,76 +1,76 @@ { - "description": "项目配置文件", - "packOptions": { - "ignore": [] - }, - "setting": { - "urlCheck": true, - "es6": true, - "enhance": true, - "postcss": true, - "preloadBackgroundData": false, - "minified": true, - "newFeature": true, - "coverView": true, - "nodeModules": false, - "autoAudits": false, - "showShadowRootInWxmlPanel": true, - "scopeDataCheck": false, - "uglifyFileName": true, - "checkInvalidKey": true, - "checkSiteMap": true, - "uploadWithSourceMap": true, - "compileHotReLoad": false, - "useMultiFrameRuntime": true, - "useApiHook": true, - "useApiHostProcess": true, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "enableEngineNative": false, - "bundle": false, - "useIsolateContext": true, - "useCompilerModule": true, - "userConfirmedUseCompilerModuleSwitch": true, - "userConfirmedBundleSwitch": false, - "packNpmManually": false, - "packNpmRelationList": [], - "minifyWXSS": true - }, - "compileType": "miniprogram", - "libVersion": "2.14.4", - "appid": "wx7a4a8415e6821108", - "projectname": "zhitongbao-mini", - "debugOptions": { - "hidedInDevtools": [] - }, - "isGameTourist": false, - "simulatorType": "wechat", - "simulatorPluginLibVersion": {}, - "scripts": { - "beforeCompile": "" - }, - "condition": { - "plugin": { - "list": [] - }, - "game": { - "list": [] - }, - "gamePlugin": { - "list": [] - }, - "miniprogram": { - "list": [ - { - "name": "pages/login/index", - "pathName": "pages/login/index", - "query": "", - "scene": 1047 - } - ] - } - } + "description": "项目配置文件", + "packOptions": { + "ignore": [] + }, + "setting": { + "urlCheck": true, + "es6": true, + "enhance": true, + "postcss": true, + "preloadBackgroundData": false, + "minified": true, + "newFeature": true, + "coverView": true, + "nodeModules": false, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "uglifyFileName": true, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "useMultiFrameRuntime": true, + "useApiHook": true, + "useApiHostProcess": true, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "enableEngineNative": false, + "bundle": false, + "useIsolateContext": true, + "useCompilerModule": true, + "userConfirmedUseCompilerModuleSwitch": true, + "userConfirmedBundleSwitch": false, + "packNpmManually": false, + "packNpmRelationList": [], + "minifyWXSS": true + }, + "compileType": "miniprogram", + "libVersion": "2.14.4", + "appid": "wx7a4a8415e6821108", + "projectname": "zhitongbao-mini", + "debugOptions": { + "hidedInDevtools": [] + }, + "isGameTourist": false, + "simulatorType": "wechat", + "simulatorPluginLibVersion": {}, + "scripts": { + "beforeCompile": "" + }, + "condition": { + "plugin": { + "list": [] + }, + "game": { + "list": [] + }, + "gamePlugin": { + "list": [] + }, + "miniprogram": { + "list": [ + { + "name": "pages/login/index", + "pathName": "pages/login/index", + "query": "", + "scene": 1047 + } + ] + } + } } \ No newline at end of file