1.配置横屏
{
"path": "你的页面路径",
"style": {
navigationBarTitleText": "签名",
"pageOrientation": "landscape",
"enablePullDownRefresh": false,
"disableScroll": true
}
},
2.手写签名生成图片
<template>
<view
class="container">
<view class="canvas_box">
<view class="canvas_tips"> 签字区 </view>
<canvas
canvas-id="canvas_id"
class="canvas_content"
disable-scroll="true"
@touchstart="touchStart"
@touchmove="touchMove"
@touchend="touchEnd"
@touchcancel="touchEnd"
@error="canvasIdErrorCallback"
></canvas>
</view>
<view class="bottom_vie