1016 lines
28 KiB
Vue
Executable File
1016 lines
28 KiB
Vue
Executable File
<template>
|
||
<view class="login-content">
|
||
<view class="greay-layer" @click="hideNetSet"></view>
|
||
<view class="login-page">
|
||
<view class="top" style="flex:1 1 ;">
|
||
<image class="logo-img" src="../../../static/login/logo.png"></image>
|
||
</view>
|
||
<view class="login" v-show="!showNetSet">
|
||
<view>
|
||
<view class="login-title">
|
||
<view class="login-title-text">
|
||
<text>登录</text>
|
||
<text>LOGIN IN</text>
|
||
</view>
|
||
<image src="../../../static/login/pic-login.png"></image>
|
||
</view>
|
||
<view class="login-info" @click="GetDBaliseList" style="margin-top: 43.47rpx;flex: 1 1;">
|
||
<image src="../../../static/login/icon-db.png"></image>
|
||
<view>
|
||
<xfl-selectlogin :list="dbList" :defaultSelectText="dbSelectText" ref="dbList"
|
||
:clearable="false" :showItemNum="5" :isCanInput="false" @change="changeDB"/>
|
||
</view>
|
||
</view>
|
||
<view :class="[unameFocus?'login-info-uname-focus':'login-info-uname']">
|
||
<image src="../../../static/login/icon-uname.png"></image>
|
||
<view>
|
||
<input placeholder="输入用户名" placeholder-class="defult-input" style="font-size: 30.79rpx"
|
||
v-model="userName" @input="checkInput" @focus="userNameFocus" @blur="userNameBlur"/>
|
||
</view>
|
||
<image src="../../../static/login/icon-clear.png" @click="clearUname"></image>
|
||
</view>
|
||
<view :class="[psdFocus?'login-info-psd-focus':'login-info-psd']">
|
||
<image src="../../../static/login/icon-psd.png"></image>
|
||
<view>
|
||
<input v-show="!isShowPSW" placeholder="输入密码" placeholder-class="defult-input" style="font-size: 30.79rpx"
|
||
password="true" @input="OnPasswordInput" v-model="passWord" @confirm="Login"
|
||
@focus="passWordFocus" @blur="passWordBlur"/>
|
||
<input v-show="isShowPSW" placeholder="输入密码" placeholder-class="defult-input" style="font-size: 30.79rpx"
|
||
@input="OnPasswordInput" v-model="passWord" @confirm="Login"
|
||
@focus="passWordFocus" @blur="passWordBlur"/>
|
||
</view>
|
||
<image v-show="!isShowPSW" src="../../../static/login/icon-hpsd.png" @click="showPSD"></image>
|
||
<image v-show="isShowPSW" src="../../../static/login/icon-vpsd.png" @click="showPSD"></image>
|
||
</view>
|
||
<view class="net-setting">
|
||
<view @click="netSet">网络设置 <text style="color: red;margin-left: 15rpx">{{perrMsg}}</text></view>
|
||
|
||
<view style="display: flex">
|
||
<checkbox-group @change="changeRemberStatus" style="width: 60rpx">
|
||
<checkbox value="cb" :checked="isRemember" style="transform:scale(0.7)"/>
|
||
</checkbox-group>
|
||
<view>是否记住密码</view>
|
||
</view>
|
||
</view>
|
||
<view class="login-btn" :disabled="disabled" @click="Login">登录</view>
|
||
</view>
|
||
</view>
|
||
<!-- 分享应用弹窗 -->
|
||
<view class="opsoft-card-dialog card-shadow" v-if="dialogShow">
|
||
<view class="opsoft-card-title">
|
||
<view class="text">网络分享</view>
|
||
<view class="icon" @click="dialogShow = false">x</view>
|
||
</view>
|
||
|
||
<view class="opsoft-card-content">
|
||
<view class="" style="display: flex;flex-direction: column;justify-content: center;align-items: center">
|
||
<!--<canvas canvas-id="qrcode" style="opacity: 0;position: absolute;left: 0;top: 0;" />-->
|
||
<uqrcode ref="uQRCode" :text="shareStr" cid="asdfsdf" mode="canvas" :size="120"/>
|
||
|
||
<view style="margin-top: 10px">扫一扫, 共享网络设置</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="opsoft-card-footer">
|
||
<view class="button" @click="saveBarcode">保存二维码</view>
|
||
<view class="button" @click="dialogShow = false">取消</view>
|
||
<!--<view class="button" @click="dialogShow = false">取消</view>-->
|
||
<!--<view class="button" @click="dialogShow = false">取消</view>-->
|
||
</view>
|
||
</view>
|
||
<!-- 网络设置 -->
|
||
<view class="login" v-show="showNetSet">
|
||
<view class="login-title" @click="hideNetSet">
|
||
<view class="login-title-text">
|
||
<text>网络设置</text>
|
||
<text>NETWORK SETTINGS</text>
|
||
</view>
|
||
<image src="../../../static/login/pic-setting.png"></image>
|
||
</view>
|
||
<view class="login-info" style="margin-top: 72.46rpx;font-size: 25.36rpx;">
|
||
<text class="set-text">网络地址</text>
|
||
<view style="display: flex;justify-content: space-between">
|
||
<input placeholder="请输入网址/Ip" placeholder-class="defult-input" style="font-size: 25.36rpx;"
|
||
v-model="ip" @input="ipInput" focus="ipFocus"/>
|
||
<image src="../../../static/img/scan-blue.png" alt="" @click="scanBarcode"/>
|
||
</view>
|
||
</view>
|
||
<view class="login-info">
|
||
<text class="set-text">网络端口</text>
|
||
<view>
|
||
<input placeholder="请输入端口" placeholder-class="defult-input" style="font-size: 25.36rpx;"
|
||
v-model="post" @input="partInput" focus="postFocus"/>
|
||
</view>
|
||
</view>
|
||
<view class="login-info">
|
||
<text class="set-text">看板端口</text>
|
||
<view>
|
||
<input placeholder="请输入端口" placeholder-class="defult-input" style="font-size: 25.36rpx;"
|
||
v-model="kbPost" @input="kbInput" focus="kbPostFocus"/>
|
||
</view>
|
||
</view>
|
||
<!-- <view class="login-info">
|
||
<text class="set-text">虚拟目录</text>
|
||
<view>
|
||
<input placeholder="请输入网址" placeholder-class="defult-input" style="font-size: 25.36rpx;"
|
||
v-model="virtualPath" @input="pathInput" focus="virtualFocus"/>
|
||
</view>
|
||
</view> -->
|
||
<view class="setting-btn" :disabled="btnDisable" @click="ConfirmClick" style="margin-top: 85.14rpx;">确定</view>
|
||
<view class="setting-btn" :disabled="btnDisable" @click="shareNetwork" style="margin-top: 20rpx">网络分享</view>
|
||
</view>
|
||
</view>
|
||
<opsoft-dialog-notice
|
||
:dialogNoticeShow="showDialog"
|
||
:dialogNoticeType="dialogNoticeType"
|
||
:dialogNoticeTitle="dialogNoticeTitle"
|
||
:dialogNoticeContent="dialogNoticeContent"
|
||
@dialogNoticeConfirmClick="dialogNoticeConfirmClick"
|
||
>
|
||
</opsoft-dialog-notice>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import uniPopupDialogMessage from '@/components/uni-popup/uni-popup-dialog-message.vue'
|
||
import faIcon from "@/components/fa-icon/fa-icon.vue"
|
||
import md5 from '@/common/md5.js';
|
||
import xflSelectlogin from '@/components/xfl-selectlogin/xfl-selectlogin.vue'
|
||
import opsoftDialogNotice from '@/components/opsoft-dialog-notice/opsoft-dialog-notice.vue';
|
||
import errorStrUntil from '@/common/errorStrUntil.js';
|
||
import {
|
||
mapState,
|
||
mapMutations
|
||
} from 'vuex';
|
||
|
||
export default {
|
||
data() {
|
||
return {
|
||
userName: '',
|
||
passWord: '',
|
||
// 是否记住明文密码
|
||
isRemember: false,
|
||
dbAlise: '',
|
||
index: 0,
|
||
dbList:[],
|
||
dbSelectText:'选择账套',
|
||
indexOrg: 0,
|
||
orgid:"",
|
||
orgList:[],
|
||
orgSelectText:'选择组织',
|
||
perrMsg: '',
|
||
disabled: true,
|
||
messageContent: "",
|
||
dialogDuration: 3000,
|
||
|
||
showNetSet:false,
|
||
unameFocus:false,
|
||
psdFocus:false,
|
||
isShowPSW:false,
|
||
reportUrl: '',
|
||
ip: '',
|
||
post: '',
|
||
kbPost: '',
|
||
virtualPath: '',
|
||
btnDisable: true,
|
||
current: '',
|
||
ipFocus: true,
|
||
postFocus: true,
|
||
kbPostFocus: true,
|
||
virtualFocus: true,
|
||
halfHeight:"",
|
||
dialogNoticeContent:'',
|
||
dialogNoticeTitle:'',
|
||
dialogNoticeType:'',
|
||
showDialog:false,
|
||
// 控制网络分享弹窗
|
||
dialogShow: false,
|
||
shareStr: '' // 二维码显示内容
|
||
}
|
||
},
|
||
|
||
components: {
|
||
faIcon,
|
||
uniPopupDialogMessage,
|
||
xflSelectlogin,
|
||
opsoftDialogNotice
|
||
},
|
||
|
||
computed: {
|
||
...mapState(['hasLogin', 'userInfo', 'deptInfos', 'customerInfos', 'supplierInfos', 'sysParameters','hasConnect', 'dbInfo'])
|
||
},
|
||
|
||
onLoad: function(data) {
|
||
//0=全部;1=WMS;2=看板;3=检验;4=设备;5=汇报
|
||
uni.setStorageSync("appType", 0);
|
||
const res = uni.getSystemInfoSync();
|
||
this.halfHeight = res.windowHeight/0.552-836.95-79.71;
|
||
console.log(this.$global);
|
||
if(!this.$global.globalData.requestUrl.length) {
|
||
this.perrMsg="请完成网络设置!"
|
||
}
|
||
else {
|
||
this.userName = uni.getStorageSync('userName');
|
||
this.dbSelectText = uni.getStorageSync('dbAlise');
|
||
this.dbAlise = uni.getStorageSync('dbAlise');
|
||
this.checkInput();
|
||
}
|
||
|
||
},
|
||
|
||
methods: {
|
||
dialogProps(err,type){
|
||
err = errorStrUntil.handle(err);
|
||
this.showDialog = true;
|
||
this.dialogNoticeType = 'error';
|
||
this.dialogNoticeTitle = '异常提示';
|
||
if(type=='save'){
|
||
this.dialogNoticeType = 'success';
|
||
this.dialogNoticeTitle = '保存成功';
|
||
}
|
||
this.dialogNoticeContent = err;
|
||
},
|
||
dialogNoticeConfirmClick(){
|
||
this.showDialog = false;
|
||
},
|
||
// 扫码获取 网址 端口
|
||
scanBarcode() {
|
||
let _self = this;
|
||
// let arr = '1231231-123123-1231'.split('-')
|
||
// _self.ip = arr[0];
|
||
// _self.post = arr[1];
|
||
// _self.kbPost = arr[2];
|
||
// _self.dialogShow = false;
|
||
// return
|
||
|
||
uni.scanCode({
|
||
success:function(res) {
|
||
// uni.showToast({
|
||
// title: res.result
|
||
// })
|
||
console.log(res.result)
|
||
let arr = res.result.split('-')
|
||
_self.ip = arr[0];
|
||
_self.post = arr[1];
|
||
_self.kbPost = arr[2];
|
||
_self.dialogShow = false;
|
||
_self.checkInputSet();
|
||
}
|
||
})
|
||
},
|
||
// 保存二维码
|
||
saveBarcode() {
|
||
// uni.showToast({
|
||
// title: this.$refs.uQRCode.makeing,
|
||
// icon: 'none'
|
||
// })
|
||
this.$refs.uQRCode.save({
|
||
success: res => {
|
||
// console.log('makeing', this.$refs.uQRCode.makeing)
|
||
uni.showToast({
|
||
title: '保存成功',
|
||
icon: 'none'
|
||
})
|
||
},
|
||
fail: res => {
|
||
console.log(res)
|
||
// console.log('makeing', this.$refs.uQRCode.makeing)
|
||
uni.showToast({
|
||
title: '保存失败',
|
||
icon: 'none'
|
||
})
|
||
}
|
||
})
|
||
},
|
||
shareNetwork() {
|
||
// todo shareStr change
|
||
this.shareStr = `${this.ip}-${this.post}-${this.kbPost}`
|
||
this.dialogShow = true;
|
||
},
|
||
clearUname(){
|
||
if(this.userName.length!=0){
|
||
this.userName = "";
|
||
this.perrMsg = "请输入用户名"
|
||
}
|
||
},
|
||
GetDBaliseList: function() {
|
||
console.log("-----GetDBaliseList-----");
|
||
let _self = this;
|
||
this.dbList= [];
|
||
uni.showLoading({
|
||
mask: true
|
||
});
|
||
this.$request.post('/Service/GetDBInfo').then(res => {
|
||
uni.hideLoading()
|
||
// _self.dbList = JSON.parse(res);
|
||
_self.dbList = res;
|
||
if(_self.dbList && (_self.dbList.length>0)) {
|
||
_self.dbList.forEach(
|
||
(item, index) => {
|
||
item.value = item.DataBaseAias;
|
||
});
|
||
!_self.dbAlise && uni.getStorage({
|
||
key: 'dbAlise',
|
||
success: (res) => {
|
||
// 显示账套缓存
|
||
_self.dbList.forEach((item, index) => {
|
||
if (item.value === res.data) {
|
||
_self.dbAlise = res.data
|
||
// _self.index = index
|
||
// console.log(_self.$refs, _self.$ref)
|
||
_self.$refs.dbList.setSelectText(res.data)
|
||
_self.dbSelectText = res.data
|
||
_self.disabled = false
|
||
}
|
||
});
|
||
|
||
}
|
||
})
|
||
} else{
|
||
_self.dbList = [];
|
||
}
|
||
console.log(_self.dbList);
|
||
}).catch(err =>{
|
||
uni.hideLoading();
|
||
this.dialogProps(err)
|
||
});
|
||
},
|
||
|
||
bindDBAliseChange: function(e) {
|
||
this.index = e.target.value;
|
||
if (this.dbAliseArry.length > 0) {
|
||
this.dbAlise = this.dbAliseArry[this.index].key;
|
||
let userData = uni.getStorageSync(this.dbAlise);
|
||
}
|
||
this.checkInput();
|
||
console.log(this.dbAlise);
|
||
this.indexOrg = 0;
|
||
},
|
||
|
||
OnPasswordInput: function(e) {
|
||
this.passWord = e.target.value;
|
||
if (this.passWord.length > 0 && this.passWord.length < 6) {
|
||
this.perrMsg = "*密码长度必须大于6位";
|
||
} else {
|
||
this.perrMsg = "";
|
||
}
|
||
this.checkInput();
|
||
},
|
||
|
||
checkInput: function() {
|
||
this.perrMsg=""
|
||
if (this.dbAlise=="" || this.userName.length==0) {
|
||
this.disabled = true;
|
||
if(this.dbAlise ==""){
|
||
this.perrMsg = "请选择账套"
|
||
}
|
||
if(this.userName.length==0){
|
||
this.perrMsg = "请输入用户名"
|
||
}
|
||
}else {
|
||
this.disabled = false;
|
||
}
|
||
},
|
||
|
||
Login: function(e) {
|
||
if(this.disabled){
|
||
return false;
|
||
}
|
||
uni.showLoading({
|
||
mask: true
|
||
});
|
||
if(!this.orgid) {
|
||
this.orgid = "";
|
||
}
|
||
uni.setStorageSync('orgid',this.orgid);
|
||
const _self = this;
|
||
|
||
let params = {
|
||
userid: this.userName,
|
||
password: md5.md5(this.passWord),
|
||
dbaias: this.dbAlise,
|
||
errtype:''
|
||
}
|
||
uni.setStorageSync('RequestToken', params);
|
||
|
||
this.$request.post('/Authentication/RequestToken', params).then(res => {
|
||
uni.hideLoading();
|
||
var datalist = res
|
||
var userInfo = datalist;
|
||
let errorMsg;
|
||
|
||
switch (parseInt(datalist.errtype)) {
|
||
case 1:
|
||
errorMsg = '用户不存在';
|
||
break;
|
||
case 2:
|
||
errorMsg = '账号或密码错误';
|
||
break;
|
||
case 3:
|
||
errorMsg = '软件将过服务到期日,请提前申请或购买下一年度服务';
|
||
break;
|
||
case 4:
|
||
errorMsg = '软件服务到期日已过,请申请或购买下一年度服务';
|
||
break;
|
||
case 5:
|
||
errorMsg = '软件未注册请先注册再使用';
|
||
break;
|
||
case 11: //当前用户无手机端浏览权限
|
||
errorMsg = '当前用户无手机端浏览权限';
|
||
break;
|
||
case 100:
|
||
errorMsg = '当前用户与组织不匹配';
|
||
break;
|
||
}
|
||
|
||
|
||
if (datalist.errtype==3||datalist.errtype==4||datalist.errtype==8) {
|
||
uni.setStorageSync('token',userInfo.token);
|
||
uni.setStorageSync('dbAlise',this.dbAlise); // 账套
|
||
uni.setStorageSync('userName',this.userName); // 用户名
|
||
uni.setStorageSync('loginInfo',userInfo); //登录信息
|
||
// todo 是否勾选记住明文密码
|
||
if (this.isRemember) {
|
||
uni.setStorageSync('password',this.passWord);
|
||
} else {
|
||
uni.setStorageSync('password', '');
|
||
}
|
||
|
||
this.getSupplierList();
|
||
this.getCustomerList();
|
||
this.getDeptList();
|
||
|
||
uni.setStorageSync('ifLogin', true)
|
||
|
||
uni.navigateTo({
|
||
url: '../../tabbar/home/home'
|
||
});
|
||
} else {
|
||
if (!errorMsg) {
|
||
errorMsg = "服务器未返回token: errtype=" + res.errtype ;
|
||
}
|
||
this.dialogProps(errorMsg)
|
||
}
|
||
}).catch(err => {
|
||
uni.hideLoading();
|
||
this.dialogProps(err);
|
||
});
|
||
|
||
this.$forceUpdate();
|
||
},
|
||
|
||
/**
|
||
* 记住密码状态变更
|
||
*/
|
||
changeRemberStatus(e) {
|
||
// console.log(e.detail.value)
|
||
|
||
if (e.detail.value.length > 0 && e.detail.value[0] == 'cb') {
|
||
this.isRemember = true;
|
||
} else {
|
||
this.isRemember = false;
|
||
}
|
||
|
||
// console.log(this.isRemember);
|
||
},
|
||
|
||
getDeptList: function(){
|
||
let params;
|
||
this.$request.get('/SysConfigData/QueryResource',{
|
||
params:{
|
||
basicType:1,
|
||
basicNO:'',
|
||
orgId:'',
|
||
currentTranTypeq:''
|
||
}
|
||
}).then(res => {
|
||
let datalist = res;
|
||
this.saveDeptInfos(datalist);
|
||
}).catch(err => {
|
||
uni.hideLoading();
|
||
this.dialogProps(err)
|
||
});
|
||
},
|
||
|
||
getCustomerList: function(){
|
||
let params;
|
||
this.$request.get('/SysConfigData/QueryResource',{
|
||
params:{
|
||
basicType:3,
|
||
basicNO:'',
|
||
orgId:''
|
||
}
|
||
}).then(res => {
|
||
let datalist = res;
|
||
this.saveCustomerInfos(datalist);
|
||
}).catch(err => {
|
||
uni.hideLoading();
|
||
this.dialogProps(err)
|
||
});
|
||
|
||
},
|
||
|
||
getSupplierList: function(){
|
||
let params;
|
||
this.$request.get('/SysConfigData/QueryResource',{
|
||
params:{
|
||
basicType:2,
|
||
basicNO:'',
|
||
orgId:''
|
||
}
|
||
}).then(res => {
|
||
let datalist = res;
|
||
this.saveSupplierInfos(datalist);
|
||
}).catch(err => {
|
||
uni.hideLoading();
|
||
this.dialogProps(err)
|
||
});
|
||
},
|
||
|
||
dialogConfirm:function(done){
|
||
done();
|
||
},
|
||
|
||
netSet:function(){
|
||
this.ShowData();
|
||
this.showNetSet = true;
|
||
},
|
||
hideNetSet:function(){
|
||
this.showNetSet = false;
|
||
},
|
||
ShowData: function() {
|
||
this.post = uni.getStorageSync('requestPort');
|
||
this.ip = uni.getStorageSync('requestIp');
|
||
this.virtualPath = uni.getStorageSync('requestPath');
|
||
this.checkInputSet();
|
||
},
|
||
|
||
checkInputSet: function() {
|
||
if (this.ip.length > 0) {
|
||
this.btnDisable = false;
|
||
} else {
|
||
this.btnDisable = true;
|
||
}
|
||
},
|
||
|
||
ConfirmClick: function() {
|
||
var _self = this;
|
||
if(this.btnDisable){
|
||
return false;
|
||
}
|
||
setTimeout(
|
||
function function_name () {
|
||
_self.$nextTick(function(){
|
||
_self.ipFocus = true;
|
||
_self.postFocus = true;
|
||
_self.virtualFocus = true;
|
||
_self.kbPostFocus = true;
|
||
setTimeout(
|
||
function function_name () {
|
||
_self.save();
|
||
},
|
||
300
|
||
);
|
||
})
|
||
},
|
||
100
|
||
);
|
||
|
||
|
||
},
|
||
|
||
ipInput: function(event) {
|
||
this.ip = event.target.value;
|
||
this.checkInputSet();
|
||
},
|
||
|
||
partInput: function(event) {
|
||
this.post = event.target.value;
|
||
this.checkInputSet();
|
||
},
|
||
|
||
kbInput: function(event) {
|
||
this.kbPost = event.target.value;
|
||
this.checkInputSet();
|
||
},
|
||
|
||
pathInput: function(event) {
|
||
this.virtualPath = event.target.value;
|
||
this.checkInputSet();
|
||
},
|
||
isStartWithNum: function(numStr) {
|
||
try {
|
||
//var num = numStr.charAt(0); // 获取首个字符
|
||
const num = numStr.charCodeAt(0); // 获取首个字符的code值
|
||
return (48 <= num && num <= 57);
|
||
}
|
||
catch {
|
||
return false;
|
||
}
|
||
},
|
||
save: function() {
|
||
let _self = this;
|
||
let request = this.ip;
|
||
if (!request.startsWith('http')) {
|
||
request= 'http://'+this.ip
|
||
}
|
||
if(this.post!='80' && this.isStartWithNum(this.post)) {
|
||
request += ':' + this.post;
|
||
} else {
|
||
request += this.post;
|
||
}
|
||
request += '/O3/v1';
|
||
this.reportUrl = request;
|
||
//缓存账套配置
|
||
this.$global.setGlobalObj({
|
||
requestUrl: request
|
||
});
|
||
uni.setStorageSync('requestPort',this.post);
|
||
uni.setStorageSync('requestIp',this.ip);
|
||
|
||
this.showNetSet = false;
|
||
this.dbList = [];
|
||
this.orgList = [];
|
||
this.perrMsg = "";
|
||
this.dialogProps('保存成功',"save")
|
||
this.GetDBaliseList();
|
||
|
||
},
|
||
|
||
changeDB({ newVal, oldVal, index, orignItem }){
|
||
this.dbAlise = newVal;
|
||
this.checkInput();
|
||
},
|
||
changeOrg({ newVal, oldVal, index, orignItem }){
|
||
this.orgid = orignItem.orgKey;
|
||
this.checkInput();
|
||
},
|
||
showPSD(){
|
||
this.psdFocus = true;
|
||
this.isShowPSW = !this.isShowPSW;
|
||
},
|
||
userNameFocus(){
|
||
this.unameFocus = true;
|
||
this.psdFocus = false;
|
||
},
|
||
userNameBlur(){
|
||
this.unameFocus = false;
|
||
},
|
||
passWordFocus(){
|
||
this.psdFocus = true;
|
||
this.unameFocus = false;
|
||
},
|
||
passWordBlur(){
|
||
this.psdFocus = false;
|
||
},
|
||
|
||
...mapMutations(['login', 'logout', 'saveCustomerInfos', 'saveDeptInfos',
|
||
'saveSysParameters', 'saveSupplierInfos', 'updateCacheByStorage','connectDB'])
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style>
|
||
.login-content{
|
||
width: 100%;
|
||
height: 100%;
|
||
background-image: url(../../../static/login/phoneBG.png);
|
||
overflow-y: hidden;
|
||
background-repeat: no-repeat;
|
||
background-size: 100%;
|
||
}
|
||
.login-page{
|
||
height: 100%;
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.greay-layer{
|
||
width: 100%;
|
||
height: 100%;
|
||
position: fixed;
|
||
top: 0;
|
||
bottom: 0;
|
||
right: 0;
|
||
left: 0;
|
||
background-color: #2D4A9D;
|
||
opacity: 0.3;
|
||
}
|
||
.top{
|
||
width: 100%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
.logo-img{
|
||
height: 253.62rpx;
|
||
width: 206.52rpx;
|
||
}
|
||
.login{
|
||
height: 836.95rpx;
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
/* position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0; */
|
||
background: #FFFFFF;
|
||
border-radius: 36.23upx 36.23rpx 0 0;
|
||
opacity: 0.95;
|
||
/* z-index: 100; */
|
||
justify-content: start;
|
||
}
|
||
.login-title{
|
||
display: flex;
|
||
flex-direction: row;
|
||
position: relative;
|
||
width: 100%;
|
||
height: 126.81rpx;
|
||
/* margin-left: 43.47rpx; */
|
||
/* margin-right: 43.47rpx; */
|
||
margin-top: 57.97rpx;
|
||
/* overflow-x: hidden; */
|
||
}
|
||
.login-title image{
|
||
height: 126.81rpx;
|
||
width: 126.81rpx;
|
||
position: absolute;
|
||
right: 43.47rpx;
|
||
}
|
||
.login-title-text{
|
||
display: flex;
|
||
flex-direction: column;
|
||
margin-left: 43.47rpx;
|
||
}
|
||
.login-title-text text{
|
||
font-size: 20px;
|
||
font-family: PingFangSC-Medium, PingFang SC;
|
||
font-weight: 500;
|
||
color: #323232;
|
||
|
||
}
|
||
.login-info{
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
justify-content: start;
|
||
height:90.57rpx ;
|
||
line-height: 90.57rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
border-bottom: #F1F1F1 solid 1.81rpx;
|
||
}
|
||
.login-info image{
|
||
height: 32.6rpx;
|
||
width: 32.6rpx;
|
||
}
|
||
.login-info view{
|
||
margin-left: 21.73rpx;
|
||
width: 100%;
|
||
}
|
||
.login-info-psd{
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
justify-content: start;
|
||
height:90.57rpx ;
|
||
line-height: 90.57rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
border-bottom: #F1F1F1 solid 1.81rpx;
|
||
}
|
||
.login-info-psd-focus{
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
justify-content: start;
|
||
height:90.57rpx ;
|
||
line-height: 90.57rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
border-bottom: #4889FD solid 1.81rpx;
|
||
}
|
||
.login-info-psd image{
|
||
height: 32.6rpx;
|
||
width: 32.6rpx;
|
||
}
|
||
.login-info-psd view{
|
||
margin-left: 21.73rpx;
|
||
width: 100%;
|
||
}
|
||
.login-info-psd-focus image{
|
||
height: 32.6rpx;
|
||
width: 32.6rpx;
|
||
}
|
||
.login-info-psd-focus view{
|
||
margin-left: 21.73rpx;
|
||
width: 100%;
|
||
}
|
||
.login-info-uname{
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
justify-content: start;
|
||
height:90.57rpx ;
|
||
line-height: 90.57rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
border-bottom: #F1F1F1 solid 1.81rpx;
|
||
}
|
||
.login-info-uname-focus{
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
justify-content: start;
|
||
height:90.57rpx ;
|
||
line-height: 90.57rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
border-bottom: #4889FD solid 1.81rpx;
|
||
}
|
||
.login-info-uname image{
|
||
height: 32.6rpx;
|
||
width: 32.6rpx;
|
||
}
|
||
.login-info-uname view{
|
||
margin-left: 21.73rpx;
|
||
width: 100%;
|
||
}
|
||
.login-info-uname-focus image{
|
||
height: 32.6rpx;
|
||
width: 32.6rpx;
|
||
}
|
||
.login-info-uname-focus view{
|
||
margin-left: 21.73rpx;
|
||
width: 100%;
|
||
}
|
||
.set-text{
|
||
width:159.42rpx;
|
||
height: 39.85rpx;
|
||
font-size: 28.98rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #5B5B5B;
|
||
line-height: 39.85rpx;
|
||
}
|
||
.defult-input{
|
||
font-size: 30.79rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #A1A1A1;
|
||
}
|
||
.net-setting{
|
||
display: flex;
|
||
justify-content: space-between;
|
||
height: 30.79rpx;
|
||
margin-top: 23.55rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
font-size: 14px;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #5B94FD;
|
||
}
|
||
.login-btn{
|
||
height: 86.95rpx;
|
||
line-height: 86.95rpx;
|
||
background: #035DFF;
|
||
border-radius: 9.05rpx;
|
||
margin-top: 43.47rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
font-size: 18px;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #FFFFFF;
|
||
text-align: center;
|
||
}
|
||
.login-btn[disabled]{
|
||
height: 86.95rpx;
|
||
line-height: 86.95rpx;
|
||
background: #89B3FF;
|
||
border-radius: 9.05rpx;
|
||
margin-top: 43.47rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
font-size: 32.6rpx;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #FFFFFF;
|
||
text-align: center;
|
||
}
|
||
.setting-btn[disabled]{
|
||
height: 86.95rpx;
|
||
line-height: 86.95rpx;
|
||
background: #89B3FF;
|
||
border-radius: 9.05rpx;
|
||
margin-top: 43.47rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
font-size: 18px;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #FFFFFF;
|
||
text-align: center;
|
||
}
|
||
.setting-btn{
|
||
height: 86.95rpx;
|
||
line-height: 86.95rpx;
|
||
background: #035DFF;
|
||
border-radius: 9.05rpx;
|
||
margin-top: 33.47rpx;
|
||
margin-left: 43.47rpx;
|
||
margin-right: 43.47rpx;
|
||
font-size: 18px;
|
||
font-family: PingFangSC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
color: #FFFFFF;
|
||
text-align: center;
|
||
}
|
||
</style>
|
||
|
||
<style scoped lang="scss">
|
||
$pagePadding: 20px;
|
||
$primaryColor: #4662ff; // 按钮颜色
|
||
.opsoft-card-dialog {
|
||
position: absolute;
|
||
margin: auto auto;
|
||
width: 550rpx;
|
||
top: 50%;
|
||
left: 50%;
|
||
z-index: 1000;
|
||
transform: translate(-50%, -50%);
|
||
|
||
min-height: 200px;
|
||
background-color: #fff;
|
||
border-radius: 16px;
|
||
/* width: 434.78rpx; */
|
||
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
|
||
.opsoft-card-title {
|
||
text-align: left;
|
||
padding: 0 30rpx;
|
||
|
||
height: 72.46rpx;
|
||
// line-height: 72.46rpx;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
border-bottom: 1px solid #d7d7d7;
|
||
|
||
.text {
|
||
font-size: 32.61rpx;
|
||
}
|
||
}
|
||
|
||
.opsoft-card-content {
|
||
margin: 10px;
|
||
font-size: 25.36rpx;
|
||
|
||
.box {
|
||
border: 1px solid #d7d7d7;
|
||
text-align: center;
|
||
height: 150rpx;
|
||
line-height: 150rpx;
|
||
// color: #d7d7d7;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
|
||
.img {
|
||
width: 60rpx;
|
||
height: 60rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
.opsoft-card-footer {
|
||
display: flex;
|
||
// flex: 1;
|
||
justify-content: space-around;
|
||
margin-bottom: 15rpx;
|
||
|
||
.button {
|
||
// width: 50%;
|
||
padding: 0 15rpx;
|
||
text-align: center;
|
||
height: 72.46rpx;
|
||
line-height: 66.23rpx;
|
||
border-radius: 0;
|
||
background-color: $primaryColor;
|
||
color: #fff;
|
||
border-radius: 15rpx;
|
||
// border: 0.5px solid rgba(235, 237, 240, 1);
|
||
font-family: 思源黑体;
|
||
}
|
||
}
|
||
}
|
||
|
||
.card-shadow {
|
||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.12);
|
||
}
|
||
</style> |