Browse Source

修复图片选择不了原因

lulihong 6 years ago
parent
commit
13cca33549
1 changed files with 9 additions and 7 deletions
  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){