瀏覽代碼

feature:修改壁纸页空白的问题

zeng.chen 6 月之前
父節點
當前提交
4a9e3c55ff
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      pages/piano/cropper/cropper.js

+ 5 - 2
pages/piano/cropper/cropper.js

@@ -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: