|
@ -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){
|