master
parent
2dec808df0
commit
c1be05aa9d
@ -1,31 +1,39 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export function listCommondepartment(params) {
|
export function listCommondepartment(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/admin/other/admin-department-list',
|
url: '/api/admin/other/admin-department-list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params:params
|
params:params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function listCommonuser(params) {
|
export function listCommonuser(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/admin/other/admin-user-list',
|
url: '/api/admin/other/admin-user-list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params:params
|
params:params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function remoteStatistic(params) {
|
export function remoteStatistic(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/api/admin/other/remot-statistic',
|
url: '/api/admin/other/remot-statistic',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params:params
|
params:params
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function sendSms (params) {
|
||||||
|
return request({
|
||||||
|
url: "/api/admin/auth/send-sms",
|
||||||
|
method: "get",
|
||||||
|
params
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,202 @@
|
|||||||
|
<template>
|
||||||
|
<div class="map-container">
|
||||||
|
<div id="map2">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="info-window" ref="safetyInfoWindow" v-show="isShowWindow">
|
||||||
|
<el-descriptions border :column="2">
|
||||||
|
<el-descriptions-item label="资产名称">
|
||||||
|
{{ row.zichanmingcheng }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="检查记录">
|
||||||
|
{{ row.jianchajilu }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="资产名称">
|
||||||
|
{{ (row.land_id_lands_id_relation && row.house_id_houses_id_relation) ? (row.land_id ? row.land_id_lands_id_relation.name : row.house_id_houses_id_relation.name) : "" }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="资产类型">
|
||||||
|
{{ row.zichanleixing }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
isShowWindow: false,
|
||||||
|
row: {},
|
||||||
|
markerList: [],
|
||||||
|
cluster: ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
leases () {
|
||||||
|
return this.$store.state.bigdata.safety;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
pickRow({ row }) {
|
||||||
|
this.isShowWindow = true;
|
||||||
|
this.row = row;
|
||||||
|
let location = row.land_id_lands_id_relation ? row.land_id_lands_id_relation.zichanweizhi : row.house_id_houses_id_relation.zichanweizhi;
|
||||||
|
if (location) {
|
||||||
|
let lat, lng;
|
||||||
|
[lng, lat] = location.split(",");
|
||||||
|
this.map.panTo([lng, lat]);
|
||||||
|
this.map.setZoom(30);
|
||||||
|
this.infoWindow.open(this.map, [lng, lat]);
|
||||||
|
} else {
|
||||||
|
this.map.panTo(this.center);
|
||||||
|
this.infoWindow.open(this.map, this.center);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
init(adcode = ["320200"]) {
|
||||||
|
|
||||||
|
this.map = new AMap.Map("map2", {
|
||||||
|
pitch: 50,
|
||||||
|
viewMode: "3D",
|
||||||
|
center: [120.283692, 31.614211],
|
||||||
|
rotation: -12, //初始地图顺时针旋转的角度
|
||||||
|
zoom: 20,
|
||||||
|
mapStyle: "amap://styles/blue"
|
||||||
|
});
|
||||||
|
this.infoWindow = new AMap.InfoWindow({
|
||||||
|
isCustom: true,
|
||||||
|
autoMove: true,
|
||||||
|
avoid: [20, 20, 20, 20],
|
||||||
|
content: this.$refs["safetyInfoWindow"],
|
||||||
|
closeWhenClickMap: true,
|
||||||
|
offset: new AMap.Pixel(-10, -10),
|
||||||
|
});
|
||||||
|
this.map.on('click',e => {
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
setMapMarker() {
|
||||||
|
this.map.remove(this.markerList);
|
||||||
|
this.markerList = [];
|
||||||
|
|
||||||
|
this.leases.forEach((item) => {
|
||||||
|
let location = item.land_id_lands_id_relation ? item.land_id_lands_id_relation.zichanweizhi : item.house_id_houses_id_relation.zichanweizhi;
|
||||||
|
if (location) {
|
||||||
|
let lat, lng;
|
||||||
|
[lng, lat] = location.split(",");
|
||||||
|
let marker = new AMap.Marker({
|
||||||
|
icon: "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",
|
||||||
|
position: [Number(lng), Number(lat)],
|
||||||
|
offset: new AMap.Pixel(-13, -30),
|
||||||
|
});
|
||||||
|
let markerContent = document.createElement("div");
|
||||||
|
markerContent.setAttribute("class", "map-marker");
|
||||||
|
markerContent.onclick = () => {
|
||||||
|
this.pickRow({ row: item });
|
||||||
|
};
|
||||||
|
let markerImg = document.createElement("img");
|
||||||
|
markerImg.src = "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png";
|
||||||
|
let markerSpan = document.createElement("span");
|
||||||
|
markerSpan.setAttribute("class", "map-marker__text");
|
||||||
|
markerSpan.innerText =
|
||||||
|
item.zichanmingcheng?.length > 4
|
||||||
|
? item.zichanmingcheng.slice(0, 2) +
|
||||||
|
".." +
|
||||||
|
item.zichanmingcheng.slice(item.zichanmingcheng.length - 2)
|
||||||
|
: item.zichanmingcheng;
|
||||||
|
markerContent.appendChild(markerImg);
|
||||||
|
markerContent.appendChild(markerSpan);
|
||||||
|
marker.setContent(markerContent);
|
||||||
|
this.markerList.push(marker);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.map.add(this.markerList);
|
||||||
|
|
||||||
|
this.addCluster();
|
||||||
|
},
|
||||||
|
addCluster() {
|
||||||
|
if (this.cluster) {
|
||||||
|
this.cluster.setMap(null);
|
||||||
|
}
|
||||||
|
this.cluster = new AMap.MarkerClusterer(this.map, this.markerList, {
|
||||||
|
gridSize: 50, // 设置网格像素大小
|
||||||
|
//renderClusterMarker: this.renderClusterMarker, // 自定义聚合点样式
|
||||||
|
//renderMarker: this.renderMarker, // 自定义非聚合点样式
|
||||||
|
});
|
||||||
|
},
|
||||||
|
renderMarker(context) {
|
||||||
|
let content =
|
||||||
|
'<div style="background-color: hsla(180, 100%, 50%, 0.3); height: 18px; width: 18px; border: 1px solid hsl(180, 100%, 40%); border-radius: 12px; box-shadow: hsl(180, 100%, 50%) 0px 0px 3px;"></div>';
|
||||||
|
let offset = new AMap.Pixel(-9, -9);
|
||||||
|
context.marker.setContent(content);
|
||||||
|
context.marker.setOffset(offset);
|
||||||
|
},
|
||||||
|
renderClusterMarker(context) {
|
||||||
|
let factor = Math.pow(context.count / this.list.length, 1 / 18);
|
||||||
|
let div = document.createElement("div");
|
||||||
|
let Hue = 180 - factor * 180;
|
||||||
|
let bgColor = "hsla(" + Hue + ",100%,40%,0.7)";
|
||||||
|
let fontColor = "hsla(" + Hue + ",100%,90%,1)";
|
||||||
|
let borderColor = "hsla(" + Hue + ",100%,40%,1)";
|
||||||
|
let shadowColor = "hsla(" + Hue + ",100%,90%,1)";
|
||||||
|
div.style.backgroundColor = bgColor;
|
||||||
|
let size = Math.round(
|
||||||
|
30 + Math.pow(context.count / this.list.length, 1 / 5) * 20
|
||||||
|
);
|
||||||
|
div.style.width = div.style.height = size + "px";
|
||||||
|
div.style.border = "solid 1px " + borderColor;
|
||||||
|
div.style.borderRadius = size / 2 + "px";
|
||||||
|
div.style.boxShadow = "0 0 5px " + shadowColor;
|
||||||
|
div.innerHTML = context.count;
|
||||||
|
div.style.lineHeight = size + "px";
|
||||||
|
div.style.color = fontColor;
|
||||||
|
div.style.fontSize = "14px";
|
||||||
|
div.style.textAlign = "center";
|
||||||
|
context.marker.setOffset(new AMap.Pixel(-size / 2, -size / 2));
|
||||||
|
context.marker.setContent(div);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
leases () {
|
||||||
|
if (this.map) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.setMapMarker();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.init()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.map-container {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
#map2 {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style lang="scss">
|
||||||
|
.map-marker {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
&__text {
|
||||||
|
background: #fff;
|
||||||
|
zoom: 0.75;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 4px;
|
||||||
|
white-space: nowrap;
|
||||||
|
filter: drop-shadow(2px 2px 5px #00000055);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -1,251 +1,272 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="login-container">
|
<div class="login-container">
|
||||||
|
|
||||||
<vue-particles color="#ffffff" :particleOpacity="0.7" :particlesNumber="80" shapeType="circle" :particleSize="4"
|
<vue-particles color="#ffffff" :particleOpacity="0.7" :particlesNumber="80" shapeType="circle" :particleSize="4"
|
||||||
linesColor="#ffffff" :linesWidth="1" :lineLinked="true" :lineOpacity="0.4" :linesDistance="150" :moveSpeed="3"
|
linesColor="#ffffff" :linesWidth="1" :lineLinked="true" :lineOpacity="0.4" :linesDistance="150" :moveSpeed="3"
|
||||||
:hoverEffect="true" hoverMode="grab" :clickEffect="true" clickMode="push"> </vue-particles>
|
:hoverEffect="true" hoverMode="grab" :clickEffect="true" clickMode="push"> </vue-particles>
|
||||||
|
|
||||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on"
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on"
|
||||||
label-position="left">
|
label-position="left">
|
||||||
|
|
||||||
<div class="title-container">
|
<div class="title-container">
|
||||||
<h3 class="title">{{title}}</h3>
|
<h3 class="title">{{title}}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<span class="svg-container">
|
<span class="svg-container">
|
||||||
<svg-icon icon-class="user" />
|
<svg-icon icon-class="user" />
|
||||||
</span>
|
</span>
|
||||||
<el-input ref="username" v-model="loginForm.username" placeholder="请输入登录名" name="username" type="text"
|
<el-input ref="username" v-model="loginForm.username" placeholder="请输入登录名" name="username" type="text"
|
||||||
tabindex="1" auto-complete="on" />
|
tabindex="1" auto-complete="on" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item prop="password">
|
<el-form-item prop="password">
|
||||||
<span class="svg-container">
|
<span class="svg-container">
|
||||||
<svg-icon icon-class="password" />
|
<svg-icon icon-class="password" />
|
||||||
</span>
|
</span>
|
||||||
<el-input :key="passwordType" ref="password" v-model="loginForm.password" :type="passwordType"
|
<el-input :key="passwordType" ref="password" v-model="loginForm.password" :type="passwordType"
|
||||||
placeholder="请输入密码" name="password" tabindex="2" auto-complete="on" @keyup.enter.native="handleLogin" />
|
placeholder="请输入密码" name="password" tabindex="2" auto-complete="on" @keyup.enter.native="handleLogin" />
|
||||||
<span class="show-pwd" @click="showPwd">
|
<span class="show-pwd" @click="showPwd">
|
||||||
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
|
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
|
||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;"
|
<el-form-item prop="verification">
|
||||||
@click.native.prevent="handleLogin">登录</el-button>
|
<div style="display: flex;">
|
||||||
|
<span class="svg-container">
|
||||||
|
<svg-icon icon-class="message" />
|
||||||
</el-form>
|
</span>
|
||||||
</div>
|
<el-input ref="username" v-model="loginForm.verification" placeholder="请输入验证码" name="username" type="text"
|
||||||
</template>
|
tabindex="1" auto-complete="on" />
|
||||||
|
<el-button type="primary" size="small" @click="sendSms">发送验证</el-button>
|
||||||
<script>
|
</div>
|
||||||
import {
|
</el-form-item>
|
||||||
validUsername
|
|
||||||
} from '@/utils/validate'
|
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;"
|
||||||
|
@click.native.prevent="handleLogin">登录</el-button>
|
||||||
const defaultSettings = require('../../../src/settings.js')
|
|
||||||
export default {
|
|
||||||
name: 'Login',
|
</el-form>
|
||||||
data() {
|
</div>
|
||||||
const validateUsername = (rule, value, callback) => {
|
</template>
|
||||||
if (!validUsername(value)) {
|
|
||||||
callback(new Error('请正确输入登录名'))
|
<script>
|
||||||
} else {
|
import {
|
||||||
callback()
|
validUsername
|
||||||
}
|
} from '@/utils/validate'
|
||||||
}
|
|
||||||
const validatePassword = (rule, value, callback) => {
|
const defaultSettings = require('../../../src/settings.js')
|
||||||
if (value.length < 6) {
|
export default {
|
||||||
callback(new Error('密码输入错误'))
|
name: 'Login',
|
||||||
} else {
|
data() {
|
||||||
callback()
|
const validateUsername = (rule, value, callback) => {
|
||||||
}
|
if (!validUsername(value)) {
|
||||||
}
|
callback(new Error('请正确输入登录名'))
|
||||||
return {
|
} else {
|
||||||
title: "",
|
callback()
|
||||||
loginForm: {
|
}
|
||||||
username: '',
|
}
|
||||||
password: ''
|
const validatePassword = (rule, value, callback) => {
|
||||||
},
|
if (value.length < 6) {
|
||||||
loginRules: {
|
callback(new Error('密码输入错误'))
|
||||||
username: [{
|
} else {
|
||||||
required: true,
|
callback()
|
||||||
trigger: 'blur',
|
}
|
||||||
validator: validateUsername
|
}
|
||||||
}],
|
return {
|
||||||
password: [{
|
title: "",
|
||||||
required: true,
|
loginForm: {
|
||||||
trigger: 'blur',
|
username: '',
|
||||||
validator: validatePassword
|
password: '',
|
||||||
}]
|
verification: ''
|
||||||
},
|
},
|
||||||
loading: false,
|
loginRules: {
|
||||||
passwordType: 'password',
|
username: [{
|
||||||
redirect: undefined
|
required: true,
|
||||||
}
|
trigger: 'blur',
|
||||||
},
|
validator: validateUsername
|
||||||
watch: {
|
}],
|
||||||
$route: {
|
password: [{
|
||||||
handler: function(route) {
|
required: true,
|
||||||
this.redirect = route.query && route.query.redirect
|
trigger: 'blur',
|
||||||
},
|
validator: validatePassword
|
||||||
immediate: true
|
}],
|
||||||
}
|
// verification: [{
|
||||||
},
|
// required: true,
|
||||||
created() {
|
// trigger: 'blur',
|
||||||
this.title = defaultSettings.title;
|
// message: '请输入验证码'
|
||||||
},
|
// }]
|
||||||
methods: {
|
},
|
||||||
showPwd() {
|
loading: false,
|
||||||
if (this.passwordType === 'password') {
|
passwordType: 'password',
|
||||||
this.passwordType = ''
|
redirect: undefined
|
||||||
} else {
|
}
|
||||||
this.passwordType = 'password'
|
},
|
||||||
}
|
watch: {
|
||||||
this.$nextTick(() => {
|
$route: {
|
||||||
this.$refs.password.focus()
|
handler: function(route) {
|
||||||
})
|
this.redirect = route.query && route.query.redirect
|
||||||
|
},
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.title = defaultSettings.title;
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
sendSms () {
|
||||||
|
|
||||||
},
|
},
|
||||||
//处理登录
|
|
||||||
handleLogin() {
|
showPwd() {
|
||||||
this.$refs.loginForm.validate(valid => {
|
if (this.passwordType === 'password') {
|
||||||
if (valid) {
|
this.passwordType = ''
|
||||||
this.loading = true
|
} else {
|
||||||
this.$store.dispatch('user/login', this.loginForm).then(() => {
|
this.passwordType = 'password'
|
||||||
|
}
|
||||||
this.$router.push({
|
this.$nextTick(() => {
|
||||||
path: this.redirect || '/'
|
this.$refs.password.focus()
|
||||||
})
|
})
|
||||||
this.loading = false
|
},
|
||||||
}).catch(() => {
|
//处理登录
|
||||||
this.loading = false
|
handleLogin() {
|
||||||
})
|
this.$refs.loginForm.validate(valid => {
|
||||||
} else {
|
if (valid) {
|
||||||
console.log('error submit!!')
|
this.loading = true
|
||||||
return false
|
this.$store.dispatch('user/login', this.loginForm).then(() => {
|
||||||
}
|
|
||||||
})
|
this.$router.push({
|
||||||
}
|
path: this.redirect || '/'
|
||||||
}
|
})
|
||||||
}
|
this.loading = false
|
||||||
</script>
|
}).catch(() => {
|
||||||
|
this.loading = false
|
||||||
<style lang="scss">
|
})
|
||||||
#particles-js {
|
} else {
|
||||||
width: 100%;
|
console.log('error submit!!')
|
||||||
height: 99%;
|
return false
|
||||||
position: absolute;
|
}
|
||||||
}
|
})
|
||||||
|
}
|
||||||
/* 修复input 背景不协调 和光标变色 */
|
}
|
||||||
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
|
}
|
||||||
|
</script>
|
||||||
$bg:#122583;
|
|
||||||
$light_gray:#122583;
|
<style lang="scss">
|
||||||
$cursor: #122583;
|
#particles-js {
|
||||||
|
width: 100%;
|
||||||
@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
|
height: 99%;
|
||||||
.login-container .el-input input {
|
position: absolute;
|
||||||
color: $cursor;
|
}
|
||||||
}
|
|
||||||
}
|
/* 修复input 背景不协调 和光标变色 */
|
||||||
|
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
|
||||||
/* reset element-ui css */
|
|
||||||
.login-container {
|
$bg:#122583;
|
||||||
.el-input {
|
$light_gray:#122583;
|
||||||
display: inline-block;
|
$cursor: #122583;
|
||||||
height: 47px;
|
|
||||||
width: 85%;
|
@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
|
||||||
|
.login-container .el-input input {
|
||||||
input {
|
color: $cursor;
|
||||||
background: transparent;
|
}
|
||||||
border: 0px;
|
}
|
||||||
-webkit-appearance: none;
|
|
||||||
border-radius: 0px;
|
/* reset element-ui css */
|
||||||
padding: 12px 5px 12px 15px;
|
.login-container {
|
||||||
color: $light_gray;
|
.el-input {
|
||||||
height: 47px;
|
display: inline-block;
|
||||||
caret-color: $cursor;
|
height: 47px;
|
||||||
|
width: 85%;
|
||||||
&:-webkit-autofill {
|
|
||||||
//box-shadow: 0 0 0px 1000px $bg inset !important;
|
input {
|
||||||
//-webkit-text-fill-color: $cursor !important;
|
background: transparent;
|
||||||
}
|
border: 0px;
|
||||||
}
|
-webkit-appearance: none;
|
||||||
}
|
border-radius: 0px;
|
||||||
|
padding: 12px 5px 12px 15px;
|
||||||
.el-form-item {
|
color: $light_gray;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
height: 47px;
|
||||||
background: rgba(0, 0, 0, 0.1);
|
caret-color: $cursor;
|
||||||
border-radius: 5px;
|
|
||||||
color: #454545;
|
&:-webkit-autofill {
|
||||||
}
|
//box-shadow: 0 0 0px 1000px $bg inset !important;
|
||||||
}
|
//-webkit-text-fill-color: $cursor !important;
|
||||||
</style>
|
}
|
||||||
|
}
|
||||||
<style lang="scss" scoped>
|
}
|
||||||
$bg:#122583;
|
|
||||||
$dark_gray:#122583;
|
.el-form-item {
|
||||||
$light_gray:#122583;
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
|
background: rgba(0, 0, 0, 0.1);
|
||||||
.login-container {
|
border-radius: 5px;
|
||||||
min-height: 100%;
|
color: #454545;
|
||||||
width: 100%;
|
}
|
||||||
//background-color: $bg;
|
}
|
||||||
background: url("../../assets/bg.jpg") no-repeat;
|
</style>
|
||||||
overflow: hidden;
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
.login-form {
|
$bg:#122583;
|
||||||
position: relative;
|
$dark_gray:#122583;
|
||||||
width: 520px;
|
$light_gray:#122583;
|
||||||
max-width: 100%;
|
|
||||||
padding: 20px 35px 0;
|
.login-container {
|
||||||
margin: 160px auto;
|
min-height: 100%;
|
||||||
overflow: hidden;
|
width: 100%;
|
||||||
background-color: #fff;
|
//background-color: $bg;
|
||||||
}
|
background: url("../../assets/bg.jpg") no-repeat;
|
||||||
|
overflow: hidden;
|
||||||
.tips {
|
|
||||||
font-size: 14px;
|
.login-form {
|
||||||
color: #fff;
|
position: relative;
|
||||||
margin-bottom: 10px;
|
width: 520px;
|
||||||
|
max-width: 100%;
|
||||||
span {
|
padding: 20px 35px 0;
|
||||||
&:first-of-type {
|
margin: 160px auto;
|
||||||
margin-right: 16px;
|
overflow: hidden;
|
||||||
}
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
.tips {
|
||||||
.svg-container {
|
font-size: 14px;
|
||||||
padding: 6px 5px 6px 15px;
|
color: #fff;
|
||||||
color: $dark_gray;
|
margin-bottom: 10px;
|
||||||
vertical-align: middle;
|
|
||||||
width: 30px;
|
span {
|
||||||
display: inline-block;
|
&:first-of-type {
|
||||||
}
|
margin-right: 16px;
|
||||||
|
}
|
||||||
.title-container {
|
}
|
||||||
position: relative;
|
}
|
||||||
|
|
||||||
.title {
|
.svg-container {
|
||||||
font-size: 26px;
|
padding: 6px 5px 6px 15px;
|
||||||
color: $light_gray;
|
color: $dark_gray;
|
||||||
margin: 0px auto 40px auto;
|
vertical-align: middle;
|
||||||
text-align: center;
|
width: 30px;
|
||||||
font-weight: bold;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
.title-container {
|
||||||
.show-pwd {
|
position: relative;
|
||||||
position: absolute;
|
|
||||||
right: 10px;
|
.title {
|
||||||
top: 7px;
|
font-size: 26px;
|
||||||
font-size: 16px;
|
color: $light_gray;
|
||||||
color: $dark_gray;
|
margin: 0px auto 40px auto;
|
||||||
cursor: pointer;
|
text-align: center;
|
||||||
user-select: none;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.show-pwd {
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
top: 7px;
|
||||||
|
font-size: 16px;
|
||||||
|
color: $dark_gray;
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in new issue