提交 8e309f3f 编写于 作者: 芊里

剪裁图片

上级 86e9b09b
......@@ -49,8 +49,12 @@
console.log(url);
this.uploadUserInfo({avatar:url});
})
let options = {
width:uni.upx2px(700),
height:uni.upx2px(700)
}
uni.navigateTo({
url:'./uploadCutImageToUnicloud?path=' + res.tempFilePaths[0],
url:'./uploadCutImageToUnicloud?path=' + res.tempFilePaths[0] + `&options=${JSON.stringify(options)}`,
});
}
})
......
<template>
<view class="content" >
<limeClipper :width="options.width" :scale-ratio="2" :height="options.height" :image-url="path"
<limeClipper :width="options.width" :scale-ratio="2" :isLockWidth="true" :isLockHeight="true" :height="options.height" :image-url="path"
@success="successFn" @cancel="cancel" />
</view>
</template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册