作者 王晓刚
1 个管道 的构建 通过 耗费 15 秒

商户申请

... ... @@ -134,6 +134,8 @@
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script>
$(function(){
var html1 = '';
var html2 = '';
var host = "http://"+window.location.host;
wx.config(
{$jssdk}
... ... @@ -148,6 +150,7 @@
$(res.localIds).each(function (key, localId) {
uploadImages(localId,1);
});
$('#dom1').prepend(html1);
}
});
});
... ... @@ -160,6 +163,7 @@
$(res.localIds).each(function (key, localId) {
uploadImages(localId,2);
});
$('#dom2').prepend(html2);
}
});
});
... ... @@ -177,23 +181,21 @@
console.log(res);
if(res.code == 1){
if(type == 1){
var html = "<div class=\"images\">\n" +
html1 += "<div class=\"images\">\n" +
" <img src=\""+res.data+"\" class=\"images_one\"/>\n" +
" <input type=\"hidden\" class=\"business_images\" value=\""+res.data+"\"/>\n" +
" <div class=\"close_img\">\n" +
" <img src=\"__CDN__/assets/advertising/img/close.png\"/>\n" +
" </div>\n" +
" </div>";
$('#dom1').prepend(html);
}else if(type == 2){
var html = "<div class=\"images\">\n" +
html2 += "<div class=\"images\">\n" +
" <img src=\""+res.data+"\" class=\"images_two\"/>\n" +
" <input type=\"hidden\" class=\"other_images\" value=\""+res.data+"\"/>\n" +
" <div class=\"close_img\">\n" +
" <img src=\"__CDN__/assets/advertising/img/close.png\"/>\n" +
" </div>\n" +
" </div>";
$('#dom2').prepend(html);
}
}
},
... ...