madeImg.wxml 3.0 KB

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