You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
1.3 KiB

1 year ago
  1. <!--pagesA/selectFace/selectFace.wxml-->
  2. <view class='show' bindtouchstart='start' bindtouchmove='move' style='width:{{screenW}}px;height:{{screenW}}px;'>
  3. <!-- <scroll-view scroll-x='true' scroll-y='true' style='height:{{screenW}}px' bindscroll='scroll'>
  4. <image src='{{imgSrc}}' style=' width:{{width}}px; height:{{height}}px'></image>
  5. </scroll-view> -->
  6. <!-- <view class='cut' style='width:{{cut_}}px; height:{{cut_}}px'></view>
  7. <canvas canvas-id='canvas' style='width:{{width}}px; height:{{height}}px;opacity: 0;'></canvas>
  8. -->
  9. <canvas canvas-id='myCanvas'></canvas>
  10. <movable-area scale-area hidden="{{hidden}}">
  11. <movable-view x="{{x}}" y="{{y}}" direction="all" out-of-bounds bindchange="onChange" bindscale="onScale" scale scale-min="0.5" scale-max="4" scale-value="{{scale}}" style="left:{{image.initialX}}px;top:{{image.initialY}}px;width:{{image.initialWidth}}px;height:{{image.initialHeight}}px">
  12. <image src='{{src.path}}' mode='scaleToFill'></image>
  13. </movable-view>
  14. </movable-area>
  15. </view>
  16. <view class="d-position-fixed d-flex pa-2 bg-fff operate d-flex">
  17. <van-button type="info" round class="w-50 px-2 box-sizing-border" bindtap="takePhoto">选取图片</van-button>
  18. <van-button type="info" round class="w-50 px-2 box-sizing-border" bindtap="crop">确定</van-button>
  19. </view>