|
@@ -13,7 +13,23 @@
|
|
<el-col :span="24" class="main">
|
|
<el-col :span="24" class="main">
|
|
<div class="w_1200">
|
|
<div class="w_1200">
|
|
<el-col :span="24" class="info">
|
|
<el-col :span="24" class="info">
|
|
- 德鲁
|
|
|
|
|
|
+ <el-col :span="24" class="top">
|
|
|
|
+ 登录
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24" class="form">
|
|
|
|
+ <el-form :model="form" :rules="rules" ref="form" label-width="100px" class="demo-ruleForm">
|
|
|
|
+ <el-form-item label="手机号" prop="phone">
|
|
|
|
+ <el-input v-model="form.phone" placeholder="请输入手机号" maxlength="11"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="密码" prop="passwd">
|
|
|
|
+ <el-input v-model="form.passwd" placeholder="请输入密码" show-password></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-col :span="24" style="text-align:center;">
|
|
|
|
+ <el-button type="primary" @click="submitForm('form')">登录</el-button>
|
|
|
|
+ <!-- <el-button @click="resetForm('ruleForm')">重置</el-button> -->
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-form>
|
|
|
|
+ </el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -41,10 +57,27 @@ export default {
|
|
foot,
|
|
foot,
|
|
},
|
|
},
|
|
data: function() {
|
|
data: function() {
|
|
- return {};
|
|
|
|
|
|
+ return {
|
|
|
|
+ form: {},
|
|
|
|
+ rules: {
|
|
|
|
+ phone: [{ required: true, message: '请输入手机号', trigger: 'blur' }],
|
|
|
|
+ passwd: [{ required: true, message: '请输入密码', trigger: 'blur' }],
|
|
|
|
+ },
|
|
|
|
+ };
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
- methods: {},
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ submitForm(formName) {
|
|
|
|
+ this.$refs[formName].validate(valid => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ alert('submit!');
|
|
|
|
+ } else {
|
|
|
|
+ console.log('error submit!!');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
pageTitle() {
|
|
pageTitle() {
|
|
@@ -73,6 +106,15 @@ export default {
|
|
.info {
|
|
.info {
|
|
min-height: 600px;
|
|
min-height: 600px;
|
|
background: #fff;
|
|
background: #fff;
|
|
|
|
+ padding: 0 20px;
|
|
|
|
+ .top {
|
|
|
|
+ text-align: center;
|
|
|
|
+ padding: 50px 0;
|
|
|
|
+ font-size: 40px;
|
|
|
|
+ }
|
|
|
|
+ .form {
|
|
|
|
+ padding: 0 0 20px 0;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.foot {
|
|
.foot {
|