签订协议页面修改,确认后跳转签名页面

This commit is contained in:
WindowBird 2025-09-11 15:52:45 +08:00
parent ff4aa4d667
commit a4c2efa42a

View File

@ -1,6 +1,5 @@
<template>
<view class="page">
<uv-button throttleTime="1000" type="primary " @click="openProtocol">点击查看协议</uv-button>
<uv-form ref="form" :model="userInfo" :rules="rules" labelPosition="left" labelWidth="auto">
<uv-form-item borderBottom label="电话:" prop="phone">
<uv-input v-model="userInfo.phone" border="none"></uv-input>
@ -14,45 +13,62 @@
<uv-form-item borderBottom label="统一社会信用代码:" prop="code">
<uv-input v-model="userInfo.code" border="none"></uv-input>
</uv-form-item>
<uv-form-item label="营业执照">
<view class="license">
<text>营业执照</text>
</view>
<uv-form-item>
<image-uploader
ref="uploader"
:height="'150rpx'"
:width="'150rpx'"
:height="'400rpx'"
:width="'auto'"
@success="handleUploadSuccess"
/>
</uv-form-item>
<text>签名区域</text>
<uv-form-item>
<view style="width: auto; height: 500rpx; background-color: #8f939c">
<l-signature
ref="signatureRef"
:openSmooth="openSmooth"
:penColor="penColor"
:penSize="penSize"
disableScroll
></l-signature>
</view>
</uv-form-item>
<!-- <text>签名区域</text>-->
<!-- <uv-form-item>-->
<!-- <view style="width: auto; height: 500rpx; background-color: #8f939c">-->
<!-- <l-signature-->
<!-- ref="signatureRef"-->
<!-- :openSmooth="openSmooth"-->
<!-- :penColor="penColor"-->
<!-- :penSize="penSize"-->
<!-- disableScroll-->
<!-- ></l-signature>-->
<!-- </view>-->
<!-- </uv-form-item>-->
<view class="btn-signature">
<uv-button
customStyle="margin-top: 10px"
text="清空签名"
type="error"
@click="onClick('clear')"
></uv-button>
throttleTime="1000"
type="primary "
@click="openProtocol"
>点击查看协议
</uv-button>
<uv-button
customStyle="margin-top: 10px"
text="确认签名"
text="已阅读协议并去签名"
type="primary"
@click="onClick('save')"
></uv-button>
<uv-button
customStyle="margin-top: 10px"
text="提交协议"
type="primary"
@click="submit"
></uv-button>
@click="goToSignature"
>
</uv-button>
<!-- <uv-button-->
<!-- customStyle="margin-top: 10px"-->
<!-- text="清空签名"-->
<!-- type="error"-->
<!-- @click="onClick('clear')"-->
<!-- ></uv-button>-->
<!-- <uv-button-->
<!-- customStyle="margin-top: 10px"-->
<!-- text="确认签名"-->
<!-- type="primary"-->
<!-- @click="onClick('save')"-->
<!-- ></uv-button>-->
<!-- <uv-button-->
<!-- customStyle="margin-top: 10px"-->
<!-- text="提交协议"-->
<!-- type="primary"-->
<!-- @click="submit"-->
<!-- ></uv-button>-->
</view>
</uv-form>
</view>
@ -132,6 +148,9 @@ export default {
},
})
},
goToSignature() {
uni.navigateTo(/pages/)
},
handleUploadSuccess(result) {
console.log('图片上传成功:', result.url)
this.userInfo.businessLicenseUrl = result.url
@ -235,4 +254,12 @@ export default {
align-items: center;
justify-content: space-around;
}
.license {
margin-top: 50rpx;
display: flex;
align-items: center;
justify-content: center;
width: 690rpx;
}
</style>