|
@ -778,16 +778,18 @@ function viewImg(dom) {
|
|
var serverId = "";
|
|
var serverId = "";
|
|
var images = [];
|
|
var images = [];
|
|
function chooseImageWx(){
|
|
function chooseImageWx(){
|
|
wx.chooseImage({
|
|
|
|
count: 3,
|
|
|
|
success: function (res) {
|
|
|
|
for (var i in res.localIds) {
|
|
|
|
images.push(res.localIds[i]);
|
|
|
|
}
|
|
|
|
dd.showModal();
|
|
|
|
uploadImage();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
wx.ready(function(){
|
|
|
|
wx.chooseImage({
|
|
|
|
count: 3,
|
|
|
|
success: function (res) {
|
|
|
|
for (var i in res.localIds) {
|
|
|
|
images.push(res.localIds[i]);
|
|
|
|
}
|
|
|
|
dd.showModal();
|
|
|
|
uploadImage();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
}
|
|
}
|
|
function uploadImage(){
|
|
function uploadImage(){
|
|
if (images.length == 0) {
|
|
if (images.length == 0) {
|