...
|
...
|
@@ -38,7 +38,7 @@ |
|
|
营业执照<i>*</i>
|
|
|
</div>
|
|
|
<div class="submit_img">
|
|
|
<div class="submit_img_add">
|
|
|
<div class="submit_img_add upload_one">
|
|
|
<img src="__CDN__/assets/advertising/img/add.png" alt="">
|
|
|
</div>
|
|
|
{foreach name="$data.business_images" item="b_i"}
|
...
|
...
|
@@ -57,7 +57,7 @@ |
|
|
其他证件
|
|
|
</div>
|
|
|
<div class="submit_img">
|
|
|
<div class="submit_img_add">
|
|
|
<div class="submit_img_add upload_two">
|
|
|
<img src="__CDN__/assets/advertising/img/add.png" alt="">
|
|
|
</div>
|
|
|
{foreach name="$data.other_images" item="o_i"}
|
...
|
...
|
@@ -83,19 +83,31 @@ |
|
|
{$jssdk}
|
|
|
);
|
|
|
wx.ready(function () {
|
|
|
$('.upload').click(function () {
|
|
|
$('.upload_one').click(function () {
|
|
|
wx.chooseImage({
|
|
|
count: 1, // 默认9
|
|
|
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
|
|
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
|
|
success: function (res) {
|
|
|
$(res.localIds).each(function (key, localId) {
|
|
|
uploadImages(localId);
|
|
|
uploadImages(localId,1);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
function uploadImages(localId) {
|
|
|
$('.upload_two').click(function () {
|
|
|
wx.chooseImage({
|
|
|
count: 1, // 默认9
|
|
|
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
|
|
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
|
|
|
success: function (res) {
|
|
|
$(res.localIds).each(function (key, localId) {
|
|
|
uploadImages(localId,2);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
function uploadImages(localId,type) {
|
|
|
wx.uploadImage({
|
|
|
localId: localId,
|
|
|
isShowProgressTips: 1,
|
...
|
...
|
@@ -108,6 +120,11 @@ |
|
|
success:function(res){
|
|
|
console.log(res);
|
|
|
if(res.code == 1){
|
|
|
if(type == 1){
|
|
|
|
|
|
}else if(type == 2){
|
|
|
|
|
|
}
|
|
|
$('.upload').find('img').attr('src',res.data);
|
|
|
$('#avatar').val(res.data);
|
|
|
}
|
...
|
...
|
|