1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!-- <canvas canvas-id='madeContent' class='made-content'> -->
- <!-- <canvas canvas-id='myCanvasImg' class='made-img' style='width:{{dataPositionObj.width}};height:{{dataPositionObj.height}};margin:{{dataPositionObj.top}} 0 0 {{dataPositionObj.left}}'>
- <canvas canvas-id='myCanvasFont' class='made-font' style='width:{{dataPositionObj.width}};height:{{dataPositionObj.height}}'></canvas>
- </canvas> -->
- <!-- </canvas> -->
- <view class='content'>
- <view class='made-content'>
- <view class='made-img-box'>
- <image class='made-img-image' src='{{obverseImgObject[isActive]}}' mode="aspectFill"></image>
- <made-solid prop-position="{{dataPositionObj}}" prop-size="{{propSize}}">
- <view class='f-box f-align-items-center f-justify-content-center made-prompt ' wx:if="{{touchStatic}}">{{fontContent}}</view>
- <view class='made-box'>
- <!-- img -->
- <view wx:if="{{!touchStatic}}" class='edit-content' style='top:{{imgTouch.y}}px;left:{{imgTouch.x}}px;width:{{dataPositionObj.width}}rpx;height:{{dataPositionObj.height}}rpx'>
- <view animation="{{imgAnimationData}}">
- <image src="{{imgTouch.src}}" mode="aspectFit" style='width:{{imgTouch.width}}rpx;height:{{imgTouch.height}}rpx'></image>
- </view>
- </view>
- <!-- font -->
- <view wx:if="{{!touchStatic}}" class='made-prompt made-font' style='color:{{fontTouch.isColor}};font-size:{{fontTouch.fontSize}}px;width:{{dataPositionObj.width}}rpx;height:{{dataPositionObj.height}}rpx'>
- <view class='font-content' style='top:{{fontTouch.y}}px;left:{{fontTouch.x}}px'>
- <view animation="{{fontAnimationData}}">{{fontTouch.fontContent}}</view>
- </view>
- </view>
- </view>
- </made-solid>
- </view>
- </view>
- <view class='btn-box'>
- <view class='f-box f-justify-content-between'>
- <button type="default" hover-class="none" bindtap="changeCup" data-id='1' class='{{isActive === "1" ? "active" : ""}}' size="mini">正面</button>
- <button type="default" hover-class="none" bindtap="changeCup" data-id='2' class='{{isActive === "2" ? "active" : ""}}' size="mini">背面</button>
- </view>
- <view class='f-box f-justify-content-between'>
- <button type="default" hover-class="none" bindtap="changeCup" data-id='3' class='{{isActive === "3" ? "active" : ""}}' size="mini">手柄</button>
- <button type="default" hover-class="none" bindtap="changeCup" data-id='4' class='{{isActive === "4" ? "active" : ""}}' size="mini">杯底</button>
- </view>
- </view>
- <view class='footer f-box f-justify-content-between'>
- <!-- url="/customized/pages/made/madeImg/madeImg" -->
- <!-- url="/customized/pages/made/madeFont/madeFont" -->
- <view class='f-item footer-btn' bindtap='addImgRouter'>添加图片</view>
- <view class='f-item footer-btn' bindtap='addFontRouter'>添加文字</view>
- <view url="" class='f-item footer-btn'>完成设计</view>
- </view>
- </view>
|