Browse Source

上传图片默认定制页

sharp-agezi 5 years ago
parent
commit
e8a0fc7196

+ 6 - 0
customized/pages/boxMade/boxMadeImg/boxMadeImg.js

@@ -224,6 +224,12 @@ Page({
           },
           success(res) {
             console.log(res, '我上传完了')
+            let src = host + res.data
+            that.getScale(that, src);
+            that.setData({
+              'imgTouch.src': src,
+              madeStatic: true, // 表示已经有图片
+            })
             that.getImgList()
           }
         })

+ 6 - 0
customized/pages/made/madeImg/madeImg.js

@@ -237,6 +237,12 @@ Page({
           },
           success(res) {
             console.log(res, '我上传完了')
+            let src = host + res.data
+            that.getScale(that, src);
+            that.setData({
+              'imgTouch.src': src,
+              madeStatic: true, // 表示已经有图片
+            })
             that.getImgList()
           }
         })

+ 6 - 0
customized/pages/oneMade/oneMadeImg/oneMadeImg.js

@@ -222,6 +222,12 @@ Page({
           },
           success(res) {
             console.log(res, '我上传完了')
+            let src = host + res.data
+            that.getScale(that, src);
+            that.setData({
+              'imgTouch.src': src,
+              madeStatic: true, // 表示已经有图片
+            })
             that.getImgList()
           }
         })

+ 1 - 1
readme.md

@@ -17,4 +17,4 @@
       y = -高度/2
       fillRect(x,y,宽度,高度)
 ### 缺少详情页,字体加粗、字体定制
-v:3.1.6
+v:3.1.7