main.js 433 字节
Newer Older
芊里 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
export default (callback,options)=>{
	options = options||{"width":600,"height":600};
	uni.chooseImage({
		sizeType:['original'],
		count:1,
		...options,
		complete:({tempFiles:[{path}]})=> {
			uni.navigateTo({
				url:'/common/uploadCutImageToUnicloud/uploadCutImageToUnicloud?path='+path+"&options="+JSON.stringify(options),
				animationType:'fade-in',
				events:{
					url(url){
						callback(url)
					}
				}
			})
		}
	})
}