Commit 34927298 by 冷斌

fix bug

parent ffb2e62e
......@@ -17,6 +17,11 @@ class LoginController extends HomebaseController
{
$this->display();
}
public function login()
{
$this->display();
}
}
......@@ -16,8 +16,7 @@
<div class="Phone_login">
<img src="__PUBLIC__/appapi/pay/img/phone.png" >
<p>手机号登录</p>
<p @click="login">手机号登录</p>
</div>
<!-- <div class="wayBox">-->
......@@ -44,8 +43,8 @@
},
methods: {
//事件
subMit() {
login() {
window.location.href = '/index.php?g=Appapi&m=Login&a=login';
}
},
watch: {
......
<!DOCTYPE html>
<html lang="en">
<head>
<title>登录</title>
<tc_include file="Appapi/Public/head2"/>
</head>
<body>
<div class="app" id="app">
<div class="zh_login">
<!-- 顶部导航栏 -->
<div class="topbar">
<img class="topbar_img" src="__PUBLIC__/appapi/pay/img/nav_fanhui.png" alt="">
</div>
<div class="body">
<div class="theme">账号登录</div>
<div class="form">
<div class="form_item">
<img src="__PUBLIC__/appapi/pay/img/zhanghao.png" >
<input v-model="account" class="inputStyle" type="text" @change="checked" placeholder="请输入手机号" />
</div>
<div class="form_item">
<img src="__PUBLIC__/appapi/pay/img/mima.png" >
<input v-model="password" class="inputStyle" type="password" @change="checked" placeholder="请输入8~16位密码" />
</div>
</div>
<div class="Btn-box">
<button type="button" class="btnStyle" v-if = "is_Submit==1">登录</button>
<button type="button" class="btnStyle_sure" v-else >登录</button>
<div class="yzm_login">验证码登录</div>
</div>
</div>
</div>
</div>
<script>
var vm = new Vue({
el: '#app',
data: {
//数据集
account: '', //账号
password: '', // 密码
is_Submit: 1, // 1信息不全 2可以提交
},
methods: {
//事件
checked(){
if(this.account && this.password){
this.is_Submit = 2
}else{
this.is_Submit = 1
}
},
subMit() {
}
},
watch: {
//数据监测函数
},
created: function() {
//加载触发函数
}
});
</script>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment