This commit is contained in:
gyq
2024-12-23 18:18:20 +08:00
parent 7b44d1f9fb
commit a78cc2ecf7
55 changed files with 1202 additions and 932 deletions

View File

@@ -1,15 +1,15 @@
<template>
<view>
<view class="mix-list-cell" :class="border" hover-class="cell-hover" :hover-stay-time="50">
<text class="cell-tit">{{title}}</text>
<view class="cYzTAgyqpL" :class="border" hover-class="cell-hover" :hover-stay-time="50">
<text class="KYmugyqoee">{{title}}</text>
<input
class="main-input"
class="JCfohgyqmS"
:value="value"
:type="_type"
placeholder-class="placeholder-class"
:maxlength="maxlength"
:placeholder="placeholder"
:password="type==='password'&&!showPassword"
:password="type==='password'&&!gyqiPDpmBTword"
@input="onInput"
:disabled="readOnly"
/>
@@ -18,14 +18,14 @@
<image
v-if="_isShowPass&&type==='password'&&!_isShowCode"
class="img cuIcon"
:class="showPassword?'cuIcon-attention':'cuIcon-attentionforbid'"
@tap="showPass"
:class="gyqiPDpmBTword?'cuIcon-attention':'cuIcon-attentionforbid'"
@tap="gyqiPDpmBT"
></image>
<!-- 倒计时 -->
<view
v-if="_isShowCode&&!_isShowPass"
:class="['vercode',{'vercode-run': second>0}]"
@click="setCode"
@click="igyqPWOcGg"
>{{ getVerCodeSecond }}
</view>
</view>
@@ -42,7 +42,7 @@
export default {
data() {
return {
showPassword: false, //是否显示明文
gyqiPDpmBTword: false, //是否显示明文
second: 0, //倒计时
isRunCode: false, //是否开始倒计时
typeList: {
@@ -125,15 +125,15 @@
clearInterval(countDown);//先清理一次循环,避免缓存
},
methods: {
showPass() {
gyqiPDpmBT() {
//是否显示密码
this.showPassword = !this.showPassword
this.gyqiPDpmBTword = !this.gyqiPDpmBTword
},
onInput(e) {
//传出值
this.$emit('input', e.target.value)
},
setCode() {
igyqPWOcGg() {
//设置获取验证码的事件
if (this.isRunCode) {
//判断是否开始倒计时,避免重复点击
@@ -208,7 +208,7 @@
</script>
<style lang='scss'>
.main-input {
.JCfohgyqmS {
flex: 1;
text-align: left;
color: black;
@@ -217,7 +217,7 @@
margin-left: 10px;
}
.icon .mix-list-cell.b-b:after {
.icon .cYzTAgyqpL.b-b:after {
left: 45px;
}
@@ -226,7 +226,7 @@
opacity: 0.5;
}
.mix-list-cell {
.cYzTAgyqpL {
/* border-radius: 16upx; */
border-bottom: 4upx solid #F8F8F8;
margin-top: 1px;
@@ -260,7 +260,7 @@
margin-left: 10px;
}
.cell-tit {
.KYmugyqoee {
width: 80px;
font-size: 16px;
color: black;