瀏覽代碼

修复图片选择不了原因

lulihong 6 年之前
父節點
當前提交
13cca33549
共有 1 個文件被更改,包括 9 次插入7 次删除
  1. 9 7
      html/yszx/js/add-consult.js

+ 9 - 7
html/yszx/js/add-consult.js

@ -139,13 +139,15 @@ function validate(data) {
}
function chooseImage(){
    wx.chooseImage({
        count: 9-getImages().length,
        success: function (res) {
            for (var i in res.localIds) {
                appendFile(res.localIds[i]);
            }        
        }
	wx.ready(function(){
	    wx.chooseImage({
	        count: 9-getImages().length,
	        success: function (res) {
	            for (var i in res.localIds) {
	                appendFile(res.localIds[i]);
	            }        
	        }
	    });
    });
}
function uploadImage(data){