This commit is contained in:
zoujiandong
2025-06-19 19:06:50 +08:00
parent 5aaa605a13
commit 5a887c8dea
18 changed files with 985 additions and 91 deletions
+1
View File
@@ -6,6 +6,7 @@ Page({
* 页面的初始数据
*/
data: {
showPaint:false,
hasChoosedImg: false,
canvasWidth: 0,
showBars: false,
+1 -1
View File
@@ -1,6 +1,6 @@
<!--painting-2.wxml-->
<view class="page" style="background-color: #000;height:100vh;" catch:tap="hideBarsHandler">
<canvas canvas-id="myCanvas" disable-scroll="true" bindtouchstart="touchStart"
<canvas type="2d" id="myCanvas" disable-scroll="true" bindtouchstart="touchStart"
bindtouchmove="touchMove" bindtouchend="touchEnd" wx:if="{{hasChoosedImg}}"
style="height: {{(canvasHeightLen == 0) ? canvasHeight : canvasHeightLen}}px; width: {{canvasWidth}}px; background: url('{{background}}');background-position: 0 0; background-size: {{canvasWidth}}px {{canvasHeight}}px"
/>
+1
View File
@@ -55,6 +55,7 @@ page {
.space {
display: flex;
justify-content: space-between;
text-shadow: 2px 2px 1px #000000;
}
.bottom {
width: 750rpx;