登录组件基地址修改
This commit is contained in:
parent
5827bd02df
commit
25a01d399e
3
main.js
3
main.js
|
|
@ -54,6 +54,9 @@ Vue.prototype.wxLogin = async function(){
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Vue.prototype.$u.http.setConfig({
|
||||||
|
baseUrl: 'http://192.168.2.7:4501'
|
||||||
|
})
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,8 @@
|
||||||
"selectedColor": "#48893B",
|
"selectedColor": "#48893B",
|
||||||
"borderStyle": "white",
|
"borderStyle": "white",
|
||||||
"backgroundColor": "#ffffff",
|
"backgroundColor": "#ffffff",
|
||||||
"list": [{
|
"list": [
|
||||||
|
{
|
||||||
"selectedIconPath": "/static/tabbar/oneactive.png",
|
"selectedIconPath": "/static/tabbar/oneactive.png",
|
||||||
"iconPath": "/static/tabbar/one.png",
|
"iconPath": "/static/tabbar/one.png",
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@
|
||||||
};
|
};
|
||||||
wxLoginAsync()
|
wxLoginAsync()
|
||||||
.then(async (data) => {
|
.then(async (data) => {
|
||||||
this.$u.post("/app/auth/wxLogin",data).then((res) => {
|
this.$u.post("/wxLogin",data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
console.log(res,'resres');
|
console.log(res,'resres');
|
||||||
wx.setStorageSync('token', res.token);
|
wx.setStorageSync('token', res.token);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user