Browse Source

修改添加图片

wangyong 5 years ago
parent
commit
fe7b63befd

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

@@ -239,6 +239,7 @@ Page({
     // 'touch.src': e.currentTarget.dataset.src,
     // madeStatic: true, // 表示已经有图片
     // this.getScale(this, e.currentTarget.dataset.src);
+    this.addImg();
   },
   getScale(that, src) { // 获取图片的比例
     wx.getImageInfo({

+ 1 - 1
customized/pages/boxMade/boxMadeImg/boxMadeImg.wxml

@@ -63,7 +63,7 @@
     </navigator>
     <!-- <view class='f-item footer-upload-btn bg-orange c-white' bindtap='uploadImg' hover-class="none">上传图片</view> -->
     <view class='f-item footer-upload-btn bg-orange c-white' bindtap='imgDelete' hover-class="none">清除图片</view>
-    <view class='f-item footer-add-btn bg-green c-white' bindtap='addImg' hover-class="none">添加图片</view>
+    <!-- <view class='f-item footer-add-btn bg-green c-white' bindtap='addImg' hover-class="none">添加图片</view> -->
     <view class="f-box f-align-items-center footer-icon f-justify-content-center"  hover-class="none" bindtap='madeConfirm'>
       <block>
         <icon class='f-box' color="#00af66" type="success"/>

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

@@ -249,6 +249,7 @@ Page({
       imageId: e.currentTarget.dataset.id,
       imageSrc: e.currentTarget.dataset.src
     })
+    this.addImg();
     // 'touch.src': e.currentTarget.dataset.src,
     // madeStatic: true, // 表示已经有图片
     // this.getScale(this, e.currentTarget.dataset.src);

+ 1 - 1
customized/pages/made/madeImg/madeImg.wxml

@@ -62,7 +62,7 @@
     </navigator>
     <!-- <view class='f-item footer-upload-btn bg-orange c-white' bindtap='uploadImg' hover-class="none">上传图片</view> -->
     <view class='f-item footer-upload-btn bg-orange c-white' bindtap='imgDelete' hover-class="none">清除图片</view>
-    <view class='f-item footer-add-btn bg-green c-white' bindtap='addImg' hover-class="none">添加图片</view>
+    <!-- <view class='f-item footer-add-btn bg-green c-white' bindtap='addImg' hover-class="none">添加图片</view> -->
     <view class="f-box f-align-items-center footer-icon f-justify-content-center"  hover-class="none" bindtap='madeConfirm'>
       <block>
         <icon class='f-box' color="#00af66" type="success"/>

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

@@ -234,6 +234,7 @@ Page({
       imageId: e.currentTarget.dataset.id,
       imageSrc: e.currentTarget.dataset.src
     })
+    this.addImg();
   },
   getScale(that, src) { // 获取图片的比例
     wx.getImageInfo({

+ 1 - 1
customized/pages/oneMade/oneMadeImg/oneMadeImg.wxml

@@ -63,7 +63,7 @@
     </navigator>
     <!-- <view class='f-item footer-upload-btn bg-orange c-white' bindtap='uploadImg' hover-class="none">上传图片</view> -->
     <view class='f-item footer-upload-btn bg-orange c-white' bindtap='imgDelete' hover-class="none">清除图片</view>
-    <view class='f-item footer-add-btn bg-green c-white' bindtap='addImg' hover-class="none">添加图片</view>
+    <!-- <view class='f-item footer-add-btn bg-green c-white' bindtap='addImg' hover-class="none">添加图片</view> -->
     <view class="f-box f-align-items-center footer-icon f-justify-content-center"  hover-class="none" bindtap='madeConfirm'>
       <block>
         <icon class='f-box' color="#00af66" type="success"/>

+ 1 - 1
readme.md

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