boxMadeImg.wxml 4.2 KB

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