Browse Source

--

featrue/v4.2
huziyuan 5 years ago
parent
commit
b1b7d107a9
2 changed files with 79 additions and 77 deletions
  1. 8
      pages/index/index.js
  2. 148
      project.config.json

8
pages/index/index.js

@ -168,6 +168,9 @@ Page({
zconfig.header = { 'Authorization': 'QNT ' + result.data.token } zconfig.header = { 'Authorization': 'QNT ' + result.data.token }
pconfig.header = { 'Authorization': 'QNT ' + result.data.token } pconfig.header = { 'Authorization': 'QNT ' + result.data.token }
mconfig.header = { 'Authorization': 'QNT ' + result.data.token } mconfig.header = { 'Authorization': 'QNT ' + result.data.token }
this.dataset({
isTokenHaveStatus:true
})
// 登录流程完成; // 登录流程完成;
if(!util.isEmpty(result.data.userToken)){ if(!util.isEmpty(result.data.userToken)){
this.handleUserToken(result.data.userToken) this.handleUserToken(result.data.userToken)
@ -238,12 +241,11 @@ Page({
this.onResume() this.onResume()
} }
// wx.navigateTo({ url: '/pages/home/tab1/index' }) // wx.navigateTo({ url: '/pages/home/tab1/index' })
if (this.data.isTokenHaveStatus) {
getBaseInfo().then(result => { getBaseInfo().then(result => {
this.setData({ this.setData({
hasShowedLoginTag: result.data.hasShowedLoginTag hasShowedLoginTag: result.data.hasShowedLoginTag
}) })
if (this.data.hasShowedLoginTag == false) {
if (this.data.hasShowedLoginTag == true) {
this.updateUserInfoFct({ this.updateUserInfoFct({
hasShowedLoginTag: true hasShowedLoginTag: true
}) })
@ -252,7 +254,7 @@ Page({
}) })
} }
}) })
}
}, },
updateUserInfoFct: function (model) { updateUserInfoFct: function (model) {

148
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
}
]
}
}
} }
Loading…
Cancel
Save