参考:微信小程序实现在线画板https://blog.csdn.net/IT_czh/article/details/84623110
wxml
<!--index.wxml-->
<!-- 弹出框 -->
<view class='alert' hidden='{
{alertShow}}' bindtap="alertClick">
<!-- catchtap 阻止冒泡事件 -->
<view class="alert-main" catchtap='qwe'>
<form bindsubmit='fabuProject'>
<view class="timu qwe">
<view>题目:</view>
<input type="text" name="name" placeholder='1-6个字(例:中国)'/>
</view>
<view class="tishi qwe">
<view>提示:</view>
<input type="text" name="notice" placeholder='1-10个字(例:国家)'/>
</view>
<view class='form-btn qwe'>
<button form-type='submit'>提交</button>
<button form-type='reset'>重置</button>
</view>
</form>
</view>
</view>
<!-- 内容主题 -->
<view class="container">
<!-- 绘图区域 -->
<view class="canvas">
<canvas hidden='{
{!alertShow}}' class="mycanvas bxz-bb w100p" canva