|
@@ -431,14 +431,14 @@ Page({
|
|
|
|
|
|
this.cropper = this.selectComponent("#image-cropper");
|
|
|
this.cropper.imgReset();
|
|
|
- let image = options.param ?? {}
|
|
|
+ let image = options.param
|
|
|
+ console.log("裁剪页:", image)
|
|
|
if (image.pic) {
|
|
|
let json = JSON.parse(image)
|
|
|
this.hasImage(json)
|
|
|
} else {
|
|
|
console.log("没有图片")
|
|
|
this.checkAndRequestImagePermission()
|
|
|
- this.upload(); //上传壁纸
|
|
|
}
|
|
|
// this.setData({
|
|
|
// scr:json,
|
|
@@ -498,6 +498,9 @@ Page({
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ } else {
|
|
|
+ // 发送失败
|
|
|
+ _this.failSend(true)
|
|
|
}
|
|
|
break;
|
|
|
case EnumCmdEvent.wallPaperMD5:
|