|
|
@ -25,7 +25,6 @@ |
|
|
</fui-input> |
|
|
</fui-input> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view style="width: 95%;height: 30rpx;"></view> |
|
|
|
|
|
<view style="width: 95%;margin:30rpx auto;"> |
|
|
<view style="width: 95%;margin:30rpx auto;"> |
|
|
<fui-input |
|
|
<fui-input |
|
|
@click="picker_show_loginType=true" |
|
|
@click="picker_show_loginType=true" |
|
|
@ -98,7 +97,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
async init(){ |
|
|
async init(){ |
|
|
|
|
|
//条件编译 微信小程序 |
|
|
|
|
|
//#ifdef MP-WEIXIN |
|
|
await this.getMiNiWxOpenId() |
|
|
await this.getMiNiWxOpenId() |
|
|
|
|
|
//#endif |
|
|
}, |
|
|
}, |
|
|
input(e) { |
|
|
input(e) { |
|
|
console.log(e) |
|
|
console.log(e) |
|
|
@ -172,6 +174,7 @@ export default { |
|
|
'login_type': 2, |
|
|
'login_type': 2, |
|
|
'mini_wx_openid':this.mini_wx_openid,//微信小程序openid |
|
|
'mini_wx_openid':this.mini_wx_openid,//微信小程序openid |
|
|
} |
|
|
} |
|
|
|
|
|
res = await apiRoute.xy_login(params) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(!res.code){ |
|
|
if(!res.code){ |
|
|
@ -259,8 +262,8 @@ export default { |
|
|
this.password1= '123123' //密码 |
|
|
this.password1= '123123' //密码 |
|
|
}else{ |
|
|
}else{ |
|
|
//学生端 |
|
|
//学生端 |
|
|
this.user= '' //账户 |
|
|
this.user= '15335526445' //账户 |
|
|
this.password1= '' //密码 |
|
|
this.password1= '123123' //密码 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|