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

商户申请

... ... @@ -134,8 +134,6 @@
<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}
... ... @@ -150,8 +148,6 @@
$(res.localIds).each(function (key, localId) {
uploadImages(localId,1);
});
console.log(html1);
$('#dom1').prepend(html1);
}
});
});
... ... @@ -164,7 +160,6 @@
$(res.localIds).each(function (key, localId) {
uploadImages(localId,2);
});
$('#dom2').prepend(html2);
}
});
});
... ... @@ -182,21 +177,23 @@
console.log(res);
if(res.code == 1){
if(type == 1){
html1 += "<div class=\"images\">\n" +
var html = "<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){
html2 += "<div class=\"images\">\n" +
var html = "<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);
}
}
},
... ...