日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > vue >内容正文

vue

vue element-ui登录页面源码

發布時間:2023/12/10 vue 51 豆豆
生活随笔 收集整理的這篇文章主要介紹了 vue element-ui登录页面源码 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.


HTML

<!DOCTYPE html> <html><head><meta charset="utf-8" /><title>登錄</title><script src="static/Vue.jsv2.6.12.js" type="text/javascript" charset="utf-8"></script><script src="static/element-ui/lib/index.js" type="text/javascript" charset="utf-8"></script><link rel="stylesheet" type="text/css" href="static/element-ui/lib/theme-chalk/index.css" /></head><body><el-row type="flex" justify="end" id="bodylogin"><div class="login"><p class="denglu">登錄</p><el-form :label-position="labelPosition" label-width="60px" :model="form"><el-form-item label="賬號:"><el-input v-model="form.username" placeholder="請輸入賬號"></el-input></el-form-item><el-form-item label="密碼:"><el-input v-model="form.password" show-password placeholder="請輸入密碼"></el-input></el-form-item><el-form-item><el-button style="width: 150px;" type="primary" plain @click="onsubmit">登錄</el-button><el-button style="width: 150px;" type="primary" plain @click="regist">注冊</el-button></el-form-item></el-form></div></el-row></body><script src="js/login.js" type="text/javascript" charset="utf-8"></script><link rel="stylesheet" type="text/css" href="./css/login.css" /> </html>

JS

new Vue({el: "#bodylogin",data: {labelPosition: 'center',form: {username: '',password: '',}},methods: {/* 登錄發送請求 */onsubmit() {console.log("登錄" + this.form.username);console.log("密碼" + this.form.password);},regist(){ console.log("ddd")window.location.href = "/login/regist.html";}} });

CSS

.login {/* 背景圖片 */background-image: url(../static/新建文件夾/17.png);background-size: 100% 100%;/* background-color: powderblue; */margin-top: 10rem;border-radius: 12px;/* 內邊距 */padding: 20px;text-align: center;box-shadow: 0 8px 5px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04); }/* 登錄文字 */ .denglu {color: white;font-size: 20px; }/* 背景圖片 */ body {background-image: url(../static/新建文件夾/8.png);background-size: 100% 100%;background-attachment: fixed; } .label-position{background-color: #000000; }

在這里插入圖片描述

需要引入vue js element-ui 如果沒有的,可以從我靜態資源下載,這里放不下

總結

以上是生活随笔為你收集整理的vue element-ui登录页面源码的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。