corizhang 2023-09-22 17:36:06 +08:00
parent 6af2186fce
commit e275897b7b
2 changed files with 80 additions and 10 deletions

46
qrcode_test/xiaoshuo.html Normal file
View File

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style type="text/css">
.leftBox {
width: 58px;
text-align: center;
}
.tools {
height: 48px;
border: 1px solid #999999;
padding-top: 12px;
font-size: 12px;
margin-top: -1px;
color: #999999;
}
span {
line-height: 48px;
}
</style>
</head>
<body>
<!-- 左侧菜单 -->
<div class="leftBox">
<div class="tools">
<span>书架</span>
</div>
<div class="tools">
<span>书架</span>
</div>
<div class="tools">
<span>书架</span>
</div>
<div class="tools">
<span>书架</span>
</div>
</div>
<!-- 中间正文 -->
<div class="centerBox"></div>
<!-- 右侧菜单 -->
<div class="rightBox"></div>
</body>
</html>

View File

@ -8,20 +8,20 @@
</head>
<body>
<div id="root">
<form>
<form @submit.prevent="demo">
<label for="demo">账号:</label>
<input type="text" id="demo"><br>
<input type="text" id="demo" v-model="userInfo.account"><br>
<label for="pwd">密码:</label>
<input type="password" id="pwd"><br>
<input type="password" id="pwd" v-model="userInfo.password"><br>
性别:
<input type="radio" name="gender">
<input type="radio" name="gender"><br>
<input type="radio" name="gender" v-model="userInfo.gender" value="male">
<input type="radio" name="gender" v-model="userInfo.gender" value="female"><br>
hobby:
learning <input type="checkbox">
gamming <input type="checkbox">
shopping <input type="checkbox"><br>
learning <input type="checkbox" v-model="userInfo.hobby" value="learning">
gamming <input type="checkbox" v-model="userInfo.hobby" value="gamming">
shopping <input type="checkbox" v-model="userInfo.hobby" value="shopping"><br>
books
<select>
<select v-model="userInfo.books">
<option value="">chose your book</option>
<option value="swdj">死亡赌局</option>
<option value="cjsj">超级手机</option>
@ -30,8 +30,32 @@
</select><br>
Others:
<textarea ></textarea><br>
阅读并接受<a href="#">《用户协议》</a>
<input type="checkbox" v-model="userInfo.agree">阅读并接受<a href="#">《用户协议》</a><br>
<input type="submit">
</form>
</div>
</body>
<script type="text/javascript">
Vue.config.productionTip = false
const vm = new Vue({
el:'#root',
data:{
userInfo:{
account:"",
password:"",
gender:"male",
books:"swdj",
hobby:[],
agree:""
}
},
methods: {
demo(){
console.log(JSON.stringify(this.userInfo))
}
},
})
</script>
</html>