6.19
This commit is contained in:
@@ -6,6 +6,7 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
showPaint:false,
|
||||
hasChoosedImg: false,
|
||||
canvasWidth: 0,
|
||||
showBars: false,
|
||||
|
||||
@@ -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"
|
||||
/>
|
||||
|
||||
@@ -55,6 +55,7 @@ page {
|
||||
.space {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
text-shadow: 2px 2px 1px #000000;
|
||||
}
|
||||
.bottom {
|
||||
width: 750rpx;
|
||||
|
||||
Reference in New Issue
Block a user