电子签名优化

This commit is contained in:
bb_pan 2025-08-21 14:30:31 +08:00
parent eb0632db03
commit bd66735d4f
2 changed files with 17 additions and 3 deletions

View File

@ -6,6 +6,9 @@
@touchend="touchend" @touchend="touchend"
disable-scroll="true"/> disable-scroll="true"/>
<view class="fun-box"> <view class="fun-box">
<div class="hint">
请在下方空白区域横向书写签名
</div>
<view class="fun-box-btn clear flex" @click="clear"> <view class="fun-box-btn clear flex" @click="clear">
<text>清空</text> <text>清空</text>
</view> </view>
@ -162,10 +165,12 @@ const clear = () => {
height: 100vh; height: 100vh;
top: 0; top: 0;
left: 0; left: 0;
background-color: #fff;
.scroll-view { .scroll-view {
width: 100%; width: calc(100% - 120rpx);
height: 100%; height: 99.6%;
background-color: #FFFFFF; background-color: #FFFFFF;
border: 2px solid #333;
} }
.fun-box { .fun-box {
position: absolute; position: absolute;
@ -194,10 +199,19 @@ const clear = () => {
} }
.confirm { .confirm {
background-color: #409EFF; background-color: #409EFF;
margin: 3px 0;
} }
.cancel { .cancel {
background-color: #F67D7D; background-color: #F67D7D;
} }
.hint {
width: 225px;
transform: rotate(90deg);
position: absolute;
top: -160px;
right: -82px;
color: #F67D7D;
}
} }
} }

View File

@ -5,7 +5,7 @@
</div> </div>
<div class="img" v-else>暂无数据</div> <div class="img" v-else>暂无数据</div>
<div class="tips"> <div class="tips">
个人电子签名维护,支持手机拍照上传图片以及手写签名推荐使用手写签名 个人电子签名维护,支持手机拍照上传图片以及手写签名推荐使用手写签名请横向书写签名
</div> </div>
<div class="btns"> <div class="btns">
<button class="btn" type="primary" @click="handlePhoto">拍照/上传</button> <button class="btn" type="primary" @click="handlePhoto">拍照/上传</button>