boxMade.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <view class='content'>
  2. <view class='made-content'>
  3. <view class='made-img-box'>
  4. <image class='made-img-image' src='{{obverseImgObject[isActive]}}' mode="aspectFill"></image>
  5. <made-solid prop-box="{{box}}" prop-position="{{dataPositionObj}}" prop-size="{{propSize}}">
  6. <view class='f-box f-align-items-center f-justify-content-center made-prompt ' style='text-align:center' wx:if="{{touchStatic}}">{{fontContent}}</view>
  7. <view class='made-box'>
  8. <!-- img -->
  9. <view wx:if="{{!touchStatic}}" class='edit-content' style='top:{{imgTouch.y}}px;left:{{imgTouch.x}}px'>
  10. <view animation="{{imgAnimationData}}">
  11. <image src="{{imgTouch.src}}" mode="aspectFit" style='width:{{imgTouch.width}}rpx;height:{{imgTouch.height}}rpx'></image>
  12. </view>
  13. </view>
  14. <!-- font -->
  15. <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}};'>
  16. <view class='font-content' style='top:{{fontTouch.y}}px;left:{{fontTouch.x}}px;width:{{dataPositionObj.width}}rpx;height:{{dataPositionObj.height}}rpx;' animation="{{fontAnimationData}}">
  17. <view id='touchFont' style='font-weight:{{fontTouch.bold ? "bold":""}}'>{{fontTouch.fontContent}}</view>
  18. </view>
  19. </view>
  20. </view>
  21. </made-solid>
  22. </view>
  23. </view>
  24. <view class='btn-box'>
  25. <view class='f-box f-justify-content-between'>
  26. <button type="default" hover-class="none" bindtap="changeCup" data-id='5' class='{{isActive === "5" ? "active" : ""}}' size="mini">正面</button>
  27. <button type="default" hover-class="none" bindtap="changeCup" data-id='6' class='{{isActive === "6" ? "active" : ""}}' size="mini">背面</button>
  28. </view>
  29. </view>
  30. <view class='footer' hover-class="none">
  31. <view class='footer-box f-box f-justify-content-between f-align-items-center'>
  32. <view class='f-item footer-btn' bindtap='addImgRouter' hover-class="none">添加图片</view>
  33. <view class='f-item footer-btn' bindtap='addFontRouter' hover-class="none">添加文字</view>
  34. <view class='f-item footer-btn' bindtap='finishDesign' hover-class="none">完成设计</view>
  35. </view>
  36. </view>
  37. </view>
  38. <text class='font-height' style='font-size:{{simulation.fontSize}}px;position:fixed;top:999999999999999999999rpx;' id='simulation'>{{simulation.fontContent}}</text>