madeFont.wxml 3.2 KB

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