摘要: 一、自定义弹框组件 1、组件定义 在components目录下创建dialog文件夹,然后选择文件夹,右键,点击"新建Component",就会创建四个文件。如下所示: wxml <!--components/dialog/index.wxml--> <view wx:if="{{isShow}}" 阅读全文
posted @ 2024-01-29 15:39 周文豪 阅读(130) 评论(0) 推荐(0) 编辑
摘要: wxml <view> <button bindtap='createQrcode' type="primary" style="width: 400rpx;margin-top: 400rpx;">生成二维码</button> <canvas id='qrcode' type="2d" style 阅读全文
posted @ 2024-01-29 10:53 周文豪 阅读(35) 评论(0) 推荐(0) 编辑