|
|
@@ -13,8 +13,8 @@
|
|
|
<view>
|
|
|
<input @focus="password=''" v-model="password" class="experInput" placeholder="密码" type="password" />
|
|
|
</view>
|
|
|
- <view style="margin-top:50upx;">
|
|
|
- <button class="admin-button-com small default buttonText" @click="loginFun">登陆</button>
|
|
|
+ <view style="margin-top:40upx;">
|
|
|
+ <button class="admin-button-com small blue buttonText" @click="loginFun">登陆</button>
|
|
|
</view>
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
<view style="margin-top:35upx;">
|
|
|
@@ -23,7 +23,7 @@
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef APP-PLUS -->
|
|
|
- <view style="margin-top:35upx;">
|
|
|
+ <view style="margin-top:50upx;">
|
|
|
<button class="admin-button-com small blue buttonText" @click="mobileLogin()">本机号码一键登录</button>
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
@@ -136,10 +136,10 @@ export default {
|
|
|
mobileLogin(){
|
|
|
let that = this
|
|
|
|
|
|
- if(this.hasMobileNet == false){
|
|
|
- that.$msg('请关闭wifi,打开移动流量,再登录')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(this.hasMobileNet == false){
|
|
|
+ // that.$msg('请关闭wifi,打开移动流量,再登录')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
|
|
|
uni.showLoading({mask:true})
|
|
|
uni.preLogin({
|
|
|
@@ -191,11 +191,15 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
fail(res){
|
|
|
- console.log(res)
|
|
|
+
|
|
|
// 登录失败
|
|
|
//关闭一键登录弹出窗口
|
|
|
uni.closeAuthView()
|
|
|
- uni.hideLoading()
|
|
|
+ console.log(res)
|
|
|
+ setTimeout(function(){
|
|
|
+ uni.showToast({ title: '登录失败,请打开移动流量,关闭wifi,再登录', duration: 3000, icon:'none' })
|
|
|
+ },1000)
|
|
|
+
|
|
|
},
|
|
|
complete: (res) => {
|
|
|
console.log(res)
|
|
|
@@ -307,7 +311,7 @@ export default {
|
|
|
height: 50upx;
|
|
|
.experInput{
|
|
|
height: 80upx;
|
|
|
- width: 80%;
|
|
|
+ width: 550upx;
|
|
|
margin-bottom:38upx;
|
|
|
display: inline-block;
|
|
|
vertical-align: middle;
|
|
|
@@ -325,7 +329,7 @@ export default {
|
|
|
padding: 0 20upx;
|
|
|
vertical-align: middle;
|
|
|
font-size: 32upx;
|
|
|
- width: 80%;
|
|
|
+ width: 550upx;
|
|
|
height:90upx;
|
|
|
}
|
|
|
.logo{
|