made.wxml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!-- <canvas canvas-id='madeContent' class='made-content'> -->
  2. <!-- <canvas canvas-id='myCanvasImg' class='made-img' style='width:{{dataPositionObj.width}};height:{{dataPositionObj.height}};margin:{{dataPositionObj.top}} 0 0 {{dataPositionObj.left}}'>
  3. <canvas canvas-id='myCanvasFont' class='made-font' style='width:{{dataPositionObj.width}};height:{{dataPositionObj.height}}'></canvas>
  4. </canvas> -->
  5. <!-- </canvas> -->
  6. <!--
  7. <canvas canvas-id="comb-canvas" class="comb-content"></canvas>
  8. <canvas canvas-id='comb-img' class='comb-img'></canvas>
  9. <canvas canvas-id='comb-font' class='comb-font'></canvas> -->
  10. <view class='content'>
  11. <view class='made-content'>
  12. <view class='made-img-box'>
  13. <image class='made-img-image' src='{{obverseImgObject[isActive]}}' mode="aspectFill"></image>
  14. <made-solid prop-position="{{dataPositionObj}}" prop-size="{{propSize}}">
  15. <view class='f-box f-align-items-center f-justify-content-center made-prompt ' style='text-align:center' wx:if="{{touchStatic}}">{{fontContent}}</view>
  16. <view class='made-box'>
  17. <!-- img -->
  18. <view wx:if="{{!touchStatic}}" class='edit-content' style='top:{{imgTouch.y}}px;left:{{imgTouch.x}}px;width:{{dataPositionObj.width}}rpx;height:{{dataPositionObj.height}}rpx'>
  19. <view animation="{{imgAnimationData}}">
  20. <image src="{{imgTouch.src}}" mode="aspectFit" style='width:{{imgTouch.width}}rpx;height:{{imgTouch.height}}rpx'></image>
  21. </view>
  22. </view>
  23. <!-- font -->
  24. <view wx:if="{{!touchStatic}}" class='made-prompt made-font' style='color:{{fontTouch.isColor}};font-size:{{fontTouch.fontSize}}px;width:{{999999999999999999999999}}rpx;height:{{dataPositionObj.height}}rpx;font-weight:{{fontTouch.bold}};'>
  25. <view class='font-content' style='top:{{fontTouch.y}}px;left:{{fontTouch.x}}px;' animation="{{fontAnimationData}}">
  26. <view id='touchFont' style='font-weight:{{fontTouch.bold ? "bold":""}}'>{{fontTouch.fontContent}}</view>
  27. </view>
  28. </view>
  29. </view>
  30. </made-solid>
  31. </view>
  32. </view>
  33. <view class='btn-box'>
  34. <view class='f-box f-justify-content-between'>
  35. <button type="default" hover-class="none" bindtap="changeCup" data-id='1' class='{{isActive === "1" ? "active" : ""}}' size="mini">正面</button>
  36. <button type="default" hover-class="none" bindtap="changeCup" data-id='2' class='{{isActive === "2" ? "active" : ""}}' size="mini">背面</button>
  37. </view>
  38. <view class='f-box f-justify-content-between'>
  39. <button type="default" hover-class="none" bindtap="changeCup" data-id='3' class='{{isActive === "3" ? "active" : ""}}' size="mini">手柄</button>
  40. <button type="default" hover-class="none" bindtap="changeCup" data-id='4' class='{{isActive === "4" ? "active" : ""}}' size="mini">杯底</button>
  41. </view>
  42. </view>
  43. <view class='footer' hover-class="none">
  44. <view class='footer-box f-box f-justify-content-between f-align-items-center'>
  45. <view class='f-item footer-btn' bindtap='addImgRouter' hover-class="none">添加图片</view>
  46. <view class='f-item footer-btn' bindtap='addFontRouter' hover-class="none">添加文字</view>
  47. <view class='f-item footer-btn' bindtap='finishDesign' hover-class="none">完成设计</view>
  48. </view>
  49. </view>
  50. </view>
  51. <text class='font-height' style='font-size:{{simulation.fontSize}}px;position:fixed;top:999999999999999999999rpx;' id='simulation'>{{simulation.fontContent}}</text>
  52. <!-- <view style="position:fixed;top:999999999999999999999rpx;"> -->
  53. <!-- </view> -->