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