页面切图
This commit is contained in:
@@ -2,22 +2,35 @@
|
||||
<Cn-page :loading="loading">
|
||||
<view slot="body">
|
||||
<view class="index">
|
||||
<!-- <uni-forms ref="form" :label-width="80" :modelValue="formData" :rules="rules">
|
||||
<uni-forms-item label="漏打日期" name="missingDate" required>
|
||||
<uni-datetime-picker type="date" return-type="string" v-model="formData.missingDate" />
|
||||
<uni-forms ref="form" :modelValue="formData" :rules="rules">
|
||||
<uni-forms-item name="phone">
|
||||
<uni-easyinput type="number" v-model="formData.phone" placeholder="请输入手机号" />
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="补卡类别" name="multipleDhoice" required>
|
||||
<uni-data-checkbox v-model="formData.multipleDhoice" :localdata="range" />
|
||||
<uni-forms-item name="code">
|
||||
<view class="login-box-input mt40">
|
||||
<uni-easyinput type="number" v-model="formData.code" placeholder="请输入验证码" />
|
||||
<view class="ml40"
|
||||
style="margin-left:40rpx;font-size: 28rpx; color: #666; width: 200rpx; text-align: center"
|
||||
v-if="waitTime > 0">{{ waitTime + 's后重新获取' }}</view>
|
||||
<button class="login-box-input-btn" v-else @click="getCode" size="mini">获取验证码</button>
|
||||
</view>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="漏打卡原因" name="reasonsForMissingPunch" required>
|
||||
<uni-data-checkbox v-model="formData.reasonsForMissingPunch" :localdata="range2" />
|
||||
<uni-forms-item name="password">
|
||||
<uni-easyinput type="text" v-model="formData.password" placeholder="请输入新的登录密码" />
|
||||
</uni-forms-item>
|
||||
<uni-forms-item name="remarks" label="备注" required>
|
||||
<uni-easyinput type="textarea" v-model="formData.remarks" placeholder="请输入" />
|
||||
<uni-forms-item name="password2">
|
||||
<uni-easyinput type="text" v-model="formData.password2" placeholder="请再次确认密码" />
|
||||
</uni-forms-item>
|
||||
</uni-forms> -->
|
||||
<!-- <uni-steps :options="list2" active-color="#007AFF" direction="column" /> -->
|
||||
</uni-forms>
|
||||
<button type="default" class="submit-btn" @click="submit">提交</button>
|
||||
<view class="login-box-tips">
|
||||
<view style="color:#999">说明:密码长度为6-18位</view>
|
||||
</view>
|
||||
<view class="login-box-tips">
|
||||
<view style="color:#999">点击提交即表示同意</view>
|
||||
<navigator url="/pages/login/agreement" hover-class="none">《用户协议》</navigator>
|
||||
<navigator url="/pages/login/policy" hover-class="none">《个人信息保护政策》</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</Cn-page>
|
||||
@@ -28,64 +41,44 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
alias: "missingPunchApplication",
|
||||
waitTime: 0,
|
||||
// 表单数据
|
||||
formData: {
|
||||
created: "",
|
||||
createdId: "",
|
||||
viewRecordList: [],
|
||||
applicant: "",
|
||||
createdDate: "",
|
||||
applicantId: "",
|
||||
applicationNo: "",
|
||||
multipleDhoice: "",
|
||||
reasonsForMissingPunch: "",
|
||||
remarks: ""
|
||||
phone: '',
|
||||
code: '',
|
||||
password: '',
|
||||
password2: ''
|
||||
},
|
||||
defId: "",
|
||||
list2: [],
|
||||
range: [
|
||||
{ value: "上午上班", text: "上午上班" },
|
||||
{ value: "下午上班", text: "下午上班" }
|
||||
],
|
||||
// 漏打卡原因
|
||||
range2: [
|
||||
{ value: "忘记打卡", text: "忘记打卡" },
|
||||
{ value: "机器故障", text: "机器故障" },
|
||||
{ value: "因公外出", text: "因公外出" },
|
||||
{ value: "指纹丢失", text: "指纹丢失" },
|
||||
{ value: "其他", text: "其他" }
|
||||
],
|
||||
rules: {
|
||||
missingDate: {
|
||||
phone: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请选择漏打日期"
|
||||
errorMessage: "请填写手机号"
|
||||
}
|
||||
]
|
||||
},
|
||||
multipleDhoice: {
|
||||
code: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请填写补卡类别"
|
||||
errorMessage: "请填写验证码"
|
||||
}
|
||||
]
|
||||
},
|
||||
reasonsForMissingPunch: {
|
||||
password: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请选择漏打卡原因"
|
||||
errorMessage: "请填写新密码"
|
||||
}
|
||||
]
|
||||
},
|
||||
remarks: {
|
||||
password2: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请填写备注"
|
||||
errorMessage: "请填写确认密码"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -95,6 +88,23 @@ export default {
|
||||
onLoad () {
|
||||
},
|
||||
methods: {
|
||||
getCode () {
|
||||
this.waitTime = 60
|
||||
this.inter = setInterval(() => {
|
||||
if (this.waitTime == 0) {
|
||||
clearInterval(this.inter)
|
||||
} else {
|
||||
this.waitTime--
|
||||
}
|
||||
}, 1000)
|
||||
},
|
||||
submit () {
|
||||
this.$refs.form.validate((valid) => {
|
||||
console.log(valid);
|
||||
if (valid) {
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -106,5 +116,44 @@ export default {
|
||||
background: $uni-theme-blue;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.login-box-tips {
|
||||
margin-top: 60rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
|
||||
.login-box-input {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #f0f0f0;
|
||||
|
||||
.login-box-input-icon {
|
||||
width: 40rpx;
|
||||
margin-right: 40rpx;
|
||||
}
|
||||
|
||||
.login-box-input-main {
|
||||
font-size: 28rpx;
|
||||
flex: 1;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
|
||||
.login-box-input-btn {
|
||||
width: 200rpx;
|
||||
margin-left: 40rpx;
|
||||
background: $uni-theme-blue;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.login-box-input-img {
|
||||
margin-left: 40rpx;
|
||||
background: skyblue;
|
||||
height: 80rpx;
|
||||
width: 200rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user