1234567891011121314151617181920212223242526 |
- <!--templates/cropper/cropper.wxml-->
- <template name="cropper">
- <view class='cropper-container'>
- <view class='cropper-wrapper'>
- <canvas
- class="cropper"
- disable-scroll="true"
- bindtouchstart="cropperTouchStart"
- bindtouchmove="cropperTouchMove"
- bindtouchend="cropperTouchEnd"
- style="width:{{width}}px; height:{{height}}px; background-color: rgba(0, 0, 0, 0.8);"
- canvas-id="{{id}}">
-
- <cover-view class="cropper-buttons">
- <cover-view class="cropper-btn" bindtap="cropperCancel">取消</cover-view>
- <cover-view class="cropper-btn" bindtap="cropperSucess">确定</cover-view>
- </cover-view>
- </canvas>
- </view>
- <!-- <view class="cropper-buttons">
- <view class="cropper-btn" bindtap="cropperCancel">取消</view>
- <view class="cropper-btn" bindtap="cropperReselect">重新选择</view>
- <view class="cropper-btn" bindtap="cropperSucess">确定</view>
- </view> -->
- </view>
- </template>
|