madeImg.wxml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <view class='container'>
  2. <view class='made-content'>
  3. <view class='made-img-box'>
  4. <image class='made-image' src='{{obverseImgObject[imgTouch.isActive]}}'></image>
  5. <made-solid prop-position="{{dataPositionObj}}" prop-size="{{propSize}}">
  6. <view class='f-box f-align-items-center f-justify-content-center made-prompt' wx:if="{{!madeStatic}}">{{fontContent}}</view>
  7. <view class='made-box'>
  8. <!-- img -->
  9. <view wx:if="{{madeStatic}}" class='edit-content' style='top:{{imgTouch.y}}px;left:{{imgTouch.x}}px'>
  10. <!-- <view class='iconfont icon-guanbi1 c-white icon-close' bindtap='imgDelete'></view> -->
  11. <view bindtouchstart="fontTouchstart" animation="{{animationData}}" bindtouchmove="fontTouchmove" bindtouchend="fontTouchend">
  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="{{fontTouch.fontSize}}" bindtouchstart="touchstart" bindtouchmove="touchmove" bindtouchend="touchend" class='made-prompt made-font' style='color:{{fontTouch.isColor}};font-size:{{fontTouch.fontSize}}px;font-weight:{{fontTouch.bold}};'>
  17. <view class='font-content' style='top:{{fontTouch.y}}px;left:{{fontTouch.x}}px;' 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. <!-- 上传后的图片 -->
  26. <view class='upload-box'>
  27. <view class='f-box'>
  28. <!-- <view class='upload-list'><button hover-class="none" class='upload-btn f-box f-align-items-center'>点击上传图片</button></view> -->
  29. <scroll-view class="scroll-view_H f-box" scroll-x style="width: 100%">
  30. <view wx:for="{{imageArray}}" wx:for-index="idx" wx:for-item="itemName" class='scroll-item {{itemName.id === imageId ? "active" : ""}}'><image src="{{host}}{{itemName.customGoodsImg}}" data-id='{{itemName.id}}' data-src='{{host}}{{itemName.customGoodsImg}}' mode="aspectFit" bindtap='selectImgBtn'></image></view>
  31. </scroll-view>
  32. </view>
  33. </view>
  34. <!-- slider -->
  35. <view class='slider-box' wx:if="{{madeStatic}}">
  36. <!-- 大小 -->
  37. <view class='f-box f-align-items-center mar-l20 mar-r20'>
  38. <view class='f-s30'>放大</view>
  39. <view class="body-view f-item">
  40. <slider bindchanging="imgEnlarge" block-color="#00af66" block-size="16" min="20" max="1000" value='{{imgTouch.width}}' show-value/>
  41. </view>
  42. </view>
  43. <view class='f-box f-align-items-center mar-l20 mar-r20'>
  44. <!-- 度数 -->
  45. <view class='f-s30'>旋转</view>
  46. <view class="body-view f-item">
  47. <slider bindchanging="imgRotate" block-color="#00af66" block-size="16" min="0" max="360" value='{{imgTouch.angle}}' show-value/>
  48. </view>
  49. </view>
  50. </view>
  51. <view class='public-prompt'>该预览为仿真效果图,具体请以实物为准</view>
  52. <view class='footer' hover-class='none'>
  53. <view class='footer-box f-box'>
  54. <navigator open-type="navigateBack" class="f-box f-align-items-center f-justify-content-center footer-icon">
  55. <block>
  56. <icon class='f-box' type="clear" />
  57. </block>
  58. </navigator>
  59. <!-- <view class='f-item footer-upload-btn bg-orange c-white' bindtap='uploadImg' hover-class="none">上传图片</view> -->
  60. <view class='f-item footer-upload-btn bg-orange c-white' bindtap='imgDelete' hover-class="none">清除图片</view>
  61. <view class='f-item footer-add-btn bg-green c-white' bindtap='addImg' hover-class="none">添加图片</view>
  62. <view class="f-box f-align-items-center footer-icon f-justify-content-center" hover-class="none" bindtap='madeConfirm'>
  63. <block>
  64. <icon class='f-box' color="#00af66" type="success"/>
  65. </block>
  66. </view>
  67. </view>
  68. </view>
  69. </view>