赞
踩
首先非常感觉大佬的图片裁剪插件 image-cropper,下面就是大佬的地址
文章地址https://developers.weixin.qq.com/community/develop/article/doc/000aecd2f38df8efb55a0250b5bc13
大佬Demo地址:https://github.com/wx-plugin/image-cropper-demo
image-cropper插件github地址:https://github.com/wx-plugin/image-cropper
1.功能强大。
2.性能超高超流畅,大图毫无卡顿感。
3.组件化,使用简单。
4.点击中间窗口实时查看裁剪结果。
先在component中创建 image-cropper插件文件夹,再把上面四文件个放入文件夹中
"usingComponents": {
"image-cropper": "../image-cropper/image-cropper"
},
"navigationBarTitleText": "裁剪图片",
"disableScroll": true
<image-cropper id="image-cropper" limit_move="{
{true}}" disable_rotate="{
{true}}" width="{
{width}}" height="{
{height}}" imgSrc="{
{src}}" bindload="cropperload" bindimageload="loadimage" bindtapcut="clickcut"></image-cropper>
Page({
data: {
src:''
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。