oneMade.wxml 2.1 KB

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