madeFont.wxml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!--pages/customized/made/madeFont/madeFont.wxml-->
  2. <view class='made-content'>
  3. <!-- <canvas canvas-id='madeContent' class='made-content'></canvas> -->
  4. <view class='made-img-box'>
  5. <image src='{{obverseImgObject[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="{{!touch.fontSize}}">{{touch.fontContent}}</view>
  8. <view wx:else class='made-prompt made-font' style='color:{{touch.isColor}};font-size:{{touch.fontSize}}px'>
  9. <view class='font-content' style='top:{{touch.y}}px;left:{{touch.x}}px'>
  10. <view class='iconfont icon-guanbi1 c-white icon-close' bindtap='fontDelete'></view>
  11. <view bindtouchstart="fontTouchstart" animation="{{animationData}}" bindtouchmove="fontTouchmove" bindtouchend="fontTouchend">{{touch.fontContent}}</view>
  12. </view>
  13. </view>
  14. </made-solid>
  15. </view>
  16. </view>
  17. <view class='public-prompt'>该预览为仿真效果图,具体请以实物为准</view>
  18. <view class='footer f-box'>
  19. <navigator open-type="navigateBack" class="f-box f-align-items-center f-justify-content-center footer-icon">
  20. <block>
  21. <icon class='f-box' type="clear" />
  22. </block>
  23. </navigator>
  24. <view class='f-item footer-add-btn' bindtap='addFont'>添加文字</view>
  25. <view class="f-box f-align-items-center footer-icon f-justify-content-center" bindtap='madeConfirm'>
  26. <block>
  27. <icon class='f-box' type="success" />
  28. </block>
  29. </view>
  30. </view>
  31. <!-- slider -->
  32. <view class='slider-box' wx:if="{{touch.fontSize}}">
  33. <!-- 大小 -->
  34. <view class='f-box f-align-items-center mar-l20 mar-r20'>
  35. <view class='f-s30'>放大</view>
  36. <view class="body-view f-item">
  37. <slider bindchanging="fontEnlarge" block-color="#00af66" block-size="16" min="20" max="200" value='{{touch.fontSize}}' show-value/>
  38. </view>
  39. </view>
  40. <view class='f-box f-align-items-center mar-l20 mar-r20'>
  41. <!-- 度数 -->
  42. <view class='f-s30'>旋转</view>
  43. <view class="body-view f-item">
  44. <slider bindchanging="fontRotate" block-color="#00af66" block-size="16" min="0" max="360" value='{{touch.angle}}' show-value/>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 文字层 -->
  49. <view class='font-ceng' wx:if="{{addFontStatic}}">
  50. <view class="f-box f-justify-content-between">
  51. <view class='font-cancel f-s32 c-white mar-l20 mar-t20' bindtap='fontCancel'>取消</view>
  52. <view class='font-confirm f-s32 c-white mar-r20 mar-t20' bindtap='fontConfirm'>完成</view>
  53. </view>
  54. <view class='c-white f-box f-justify-content-center f-s26'>仅支持手机自带字体样式</view>
  55. <view class="input-box">
  56. <input placeholder-style="color:#fff" style='color:{{touch.isColor}}' placeholder="可编辑文字" bindinput="bindinput" auto-focus />
  57. </view>
  58. <view class='font-color f-box f-justify-content-around'>
  59. <view wx:for="{{fontColorArray}}" class='{{touch.isColor === item ? "isColor" : ""}}' data-color="{{item}}" bindtap='selectColor'>
  60. <view style='background:{{item}}' class='font-item'></view>
  61. </view>
  62. </view>
  63. <!-- 自带字体样式 -->
  64. <view></view>
  65. </view>