This commit is contained in:
2022-11-16 17:11:24 +08:00
parent 7339ee7ce9
commit c58ebcba3e
5 changed files with 294 additions and 41 deletions

View File

@@ -1,13 +1,13 @@
<template>
<view class="zd_content bg">
<view class="p1">欢迎来到</view>
<template>
<view class="zd_content bg">
<view class="p1">欢迎来到</view>
<view class="p2">海亮铜箔手持系统</view>
<view class="input-box">
<input class="large-input" type="text" placeholder="请输入用户名" v-model="user">
<view class="input-box">
<input class="large-input" type="text" placeholder="请输入用户名" v-model="user">
</view>
<div class="input-box">
<input class="large-input" :password="!showPassword" placeholder="请输入密码" v-model="password">
<span class="iconfont icon_eye_close" :class="[showPassword ? 'icon_eye_active' : '']" @tap="changePassword">&#xe6a0;</span>
<div class="input-box">
<input class="large-input" :password="!showPassword" placeholder="请输入密码" v-model="password">
<span class="iconfont icon_eye_close" :class="[showPassword ? 'icon_eye_active' : '']" @tap="changePassword">&#xe6a0;</span>
</div>
<view class="radio-box">
<view class="radio-wrap">
@@ -18,26 +18,26 @@
<text class="setup-text" @tap="isUpdate">升级版本</text>
</view>
<button class="login-btn" :disabled="disabled" @tap="toLogin">确认登录</button>
<!-- <button class="login-btn" @tap="test">打印</button> -->
</view>
</template>
<!-- <button class="login-btn" @tap="test">打印</button> -->
</view>
</template>
<script>
import {getCLodop, getPrinterList} from "@/utils/CLodopfuncs.js"
import { RSAencrypt } from '@/utils/jsencrypt.js'
import {handLogin} from '@/utils/getData2.js'
export default {
data() {
return {
data() {
return {
user: this.$store.getters.loginName ? this.$store.getters.loginName : '',
password: '',
showPassword: false,
saveUser: this.$store.getters.loginName ? true : false,
disabled: false
}
disabled: false
}
},
created () {
},
},
methods: {
isUpdate () {
uni.navigateTo({
@@ -55,7 +55,7 @@
// 根据需求插入打印代码
LODOP.PRINT(); // 打印
// LODOP.PREVIEW()
},
},
toSaveUser() {
this.saveUser = !this.saveUser
},
@@ -104,27 +104,27 @@
} catch (e) {
this.disabled = false
}
}
}
}
</script>
}
}
}
</script>
<style lang="stylus" scoped>
@import '../../common/style/mixin.styl';
.p1
_font(60rpx,75rpx,#444)
padding-top: 90rpx
.p2
_font(50rpx,1,#444)
.p1
_font(60rpx,75rpx,#444)
padding-top: 90rpx
.p2
_font(50rpx,1,#444)
padding: 40rpx 0 25rpx
.input-box
_fj()
_fj()
margin-top 68rpx
height 75rpx
border-bottom 1rpx solid #e2e2e2
height 75rpx
border-bottom 1rpx solid #e2e2e2
.large-input
_wh(calc(100% - 40rpx), 74rpx)
_font(32rpx,74rpx,#999)
_font(32rpx,74rpx,#999)
padding-left 10rpx
.radio-box
_fj()
@@ -143,11 +143,11 @@
.bg
background-color: #fff;
_bis('../../static/image/login_bg.png', 100%,,bottom)
.login-btn
width 100%
border-radius 46rpx
_font(36rpx,92rpx,#fff,,center)
.login-btn
width 100%
border-radius 46rpx
_font(36rpx,92rpx,#fff,,center)
background-color $red
.zd_content
height: 100%
</style>
</style>