diff --git a/app/admin/view/shop/local_store/edit.html b/app/admin/view/shop/local_store/edit.html index 4c275aa8..451252e3 100755 --- a/app/admin/view/shop/local_store/edit.html +++ b/app/admin/view/shop/local_store/edit.html @@ -653,35 +653,6 @@ } }); - // 上传身份证正面 - var uploadInst = likeupload.render({ - elem: '#id-front' //绑定元素 - ,url: "{:url('shop.LocalStore/uploadImage')}" //上传接口 - ,accept: 'images' - ,data: {type: 'id_card'} - ,exts: "jpg|png|jpeg" - ,before: function(obj){ //obj参数包含的信息,跟 choose回调完全一致,可参见上文。 - layer.load(); //上传loading - } - ,done: function(res, index, upload){ - if (res.code === 1) { - var template = '
'; - template += 'img'; - template += '
x
'; - $("#id-front").parent().before(template) - - $("input[name='idFront']").val(res.data.file) - } else { - layer.msg('上传错误'); - return false; - } - layer.closeAll('loading'); //关闭loading - } - ,error: function(index, upload){ - layer.closeAll('loading'); //关闭loading - } - }); - // 上传身份证反面 var uploadInst = likeupload.render({ elem: '#id-back' //绑定元素