安装协议表单-修改样式
This commit is contained in:
parent
df890e5531
commit
0eddb14efb
|
|
@ -21,8 +21,9 @@
|
|||
@success="handleUploadSuccess"
|
||||
/>
|
||||
</uv-form-item>
|
||||
<uv-form-item label="签名区域">
|
||||
<view style="width: auto; height: 300rpx; background-color: #8f939c">
|
||||
<text>签名区域</text>
|
||||
<uv-form-item>
|
||||
<view style="width: auto; height: 500rpx; background-color: #8f939c">
|
||||
<l-signature
|
||||
ref="signatureRef"
|
||||
:openSmooth="openSmooth"
|
||||
|
|
@ -32,14 +33,18 @@
|
|||
></l-signature>
|
||||
</view>
|
||||
</uv-form-item>
|
||||
|
||||
<uv-button
|
||||
customStyle="margin-top: 10px"
|
||||
text="提交"
|
||||
text="清空签名"
|
||||
type="error"
|
||||
@click="onClick('clear')"
|
||||
></uv-button>
|
||||
<uv-button
|
||||
customStyle="margin-top: 10px"
|
||||
text="提交协议"
|
||||
type="primary"
|
||||
@click="submit"
|
||||
></uv-button>
|
||||
<uv-button customStyle="margin-top: 10px" text="重置" type="error" @click="reset"></uv-button>
|
||||
</uv-form>
|
||||
<uv-action-sheet
|
||||
ref="sexSelect"
|
||||
|
|
@ -142,19 +147,7 @@ export default {
|
|||
this.$refs.form.clearValidate()
|
||||
this.userInfo.businessLicense = ''
|
||||
},
|
||||
// 性别选择
|
||||
showSexSelect() {
|
||||
this.$refs.sexSelect.open()
|
||||
this.hideKeyboard()
|
||||
},
|
||||
// 性别选择返回结果
|
||||
sexSelect(e) {
|
||||
this.userInfo.sex = e.name
|
||||
// 对部分表单字段进行校验
|
||||
this.$refs.form.validateField('sex', err => {
|
||||
// 处理错误后的逻辑
|
||||
})
|
||||
},
|
||||
|
||||
hideKeyboard() {
|
||||
uni.hideKeyboard()
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user