优化登录
parent
81129e442a
commit
315c0ee66d
|
@ -188,6 +188,7 @@
|
||||||
this.$requst.post('/api/v1/user/login',{code:code}).then(res => {
|
this.$requst.post('/api/v1/user/login',{code:code}).then(res => {
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
console.log(res,'进入登录信息');
|
console.log(res,'进入登录信息');
|
||||||
|
uni.setStorageSync('token',res.data.token) //缓存token
|
||||||
if(res.data.is_active==1){
|
if(res.data.is_active==1){
|
||||||
this.isActive = true;
|
this.isActive = true;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -327,6 +327,7 @@ var _default =
|
||||||
this.$requst.post('/api/v1/user/login', { code: code }).then(function (res) {
|
this.$requst.post('/api/v1/user/login', { code: code }).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
console.log(res, '进入登录信息');
|
console.log(res, '进入登录信息');
|
||||||
|
uni.setStorageSync('token', res.data.token); //缓存token
|
||||||
if (res.data.is_active == 1) {
|
if (res.data.is_active == 1) {
|
||||||
_this5.isActive = true;
|
_this5.isActive = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,31 @@
|
||||||
"libVersion": "2.25.4",
|
"libVersion": "2.25.4",
|
||||||
"appid": "wxf6f7c457ee92d2ac",
|
"appid": "wxf6f7c457ee92d2ac",
|
||||||
"projectname": "小区闲置",
|
"projectname": "小区闲置",
|
||||||
"condition": {},
|
"condition": {
|
||||||
|
"search": {
|
||||||
|
"current": -1,
|
||||||
|
"list": []
|
||||||
|
},
|
||||||
|
"conversation": {
|
||||||
|
"current": -1,
|
||||||
|
"list": []
|
||||||
|
},
|
||||||
|
"game": {
|
||||||
|
"current": -1,
|
||||||
|
"list": []
|
||||||
|
},
|
||||||
|
"miniprogram": {
|
||||||
|
"current": 0,
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"path": "",
|
||||||
|
"query": "",
|
||||||
|
"id": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"editorSetting": {
|
"editorSetting": {
|
||||||
"tabIndent": "insertSpaces",
|
"tabIndent": "insertSpaces",
|
||||||
"tabSize": 2
|
"tabSize": 2
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||||
|
"condition": {
|
||||||
|
"miniprogram": {
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"pathName": "pages/login/login",
|
||||||
|
"query": "",
|
||||||
|
"launchMode": "default",
|
||||||
|
"scene": null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue