|
@@ -163,7 +163,7 @@
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
<div class="breadcrumb"><span class="iconfont"></span><span><a href="">{$Think.lang.homepage}</a></span> <span class="arrow">></span> <span>{$Think.lang.merchant_entry_application}</span> </div>
|
|
<div class="breadcrumb"><span class="iconfont"></span><span><a href="">{$Think.lang.homepage}</a></span> <span class="arrow">></span> <span>{$Think.lang.merchant_entry_application}</span> </div>
|
|
-<div class="main">
|
|
|
|
|
|
+<div class="main" >
|
|
<div class="sidebar">
|
|
<div class="sidebar">
|
|
<div class="title">
|
|
<div class="title">
|
|
<h3>{$Think.lang.merchant_entry_application}</h3>
|
|
<h3>{$Think.lang.merchant_entry_application}</h3>
|
|
@@ -349,6 +349,10 @@
|
|
{/if}
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+<!-- <img hidden id="a1" type="hidden" src="111">-->
|
|
|
|
+ <input type="hidden" id="a1" value="">
|
|
|
|
+<!-- <input type="hidden" id="bbb" value="">-->
|
|
<span class="w400">
|
|
<span class="w400">
|
|
<input type="text" style="width:0;opacity: 0" name="member_idcard_image3" id="member_idcard_image3"
|
|
<input type="text" style="width:0;opacity: 0" name="member_idcard_image3" id="member_idcard_image3"
|
|
value="{$member_info.member_idcard_image3}" {if in_array($member_info.member_auth_state,array(1,3))}disabled="" {/if}>
|
|
value="{$member_info.member_idcard_image3}" {if in_array($member_info.member_auth_state,array(1,3))}disabled="" {/if}>
|
|
@@ -392,6 +396,9 @@ $(document).ready(function(){
|
|
});
|
|
});
|
|
|
|
|
|
$('#form_company_info').validate({
|
|
$('#form_company_info').validate({
|
|
|
|
+ // submitHandler: function (form) {
|
|
|
|
+ // ds_ajaxpost('form_company_info','url',"{:url('Sellerjoininc2c/step22')}");
|
|
|
|
+ // },
|
|
errorPlacement: function(error, element){
|
|
errorPlacement: function(error, element){
|
|
element.nextAll('span').first().after(error);
|
|
element.nextAll('span').first().after(error);
|
|
},
|
|
},
|
|
@@ -437,6 +444,9 @@ $(document).ready(function(){
|
|
business_licence_start: {
|
|
business_licence_start: {
|
|
required: true
|
|
required: true
|
|
},
|
|
},
|
|
|
|
+ member_idcard_image2: {
|
|
|
|
+ required:true
|
|
|
|
+ }
|
|
|
|
|
|
},
|
|
},
|
|
messages : {
|
|
messages : {
|
|
@@ -480,6 +490,9 @@ $(document).ready(function(){
|
|
business_licence_start: {
|
|
business_licence_start: {
|
|
required: '{$Think.lang.select_effective_date}'
|
|
required: '{$Think.lang.select_effective_date}'
|
|
},
|
|
},
|
|
|
|
+ member_idcard_image2 : {
|
|
|
|
+ required: '错误'
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -591,20 +604,23 @@ $(document).ready(function(){
|
|
})
|
|
})
|
|
}
|
|
}
|
|
function dropImage(id){
|
|
function dropImage(id){
|
|
- var index=layer.confirm("{$Think.lang.ds_ensure_del}", {
|
|
|
|
- btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
|
|
|
|
- title: false,
|
|
|
|
- }, function () {
|
|
|
|
- layer.close(index)
|
|
|
|
- $.getJSON('{:url('MemberAuth/image_drop')}',{file_name:id},function(res){
|
|
|
|
|
|
+ $.getJSON('{:url('MemberAuth/image_drop2')}',{file_name:id},function(res){
|
|
if(res.code!=10000){
|
|
if(res.code!=10000){
|
|
layer.alert(res.message);
|
|
layer.alert(res.message);
|
|
}else{
|
|
}else{
|
|
- $('#'+id).val('')
|
|
|
|
- $('#img_'+id+'_url').attr('src',"{$Think.BASE_SITE_ROOT}/static/home/images/"+id+".png")
|
|
|
|
|
|
+ console.log(res)
|
|
|
|
+ // $('#'+id).val('')
|
|
|
|
+ // $('#img_'+id+'_url').attr('src',"{$Think.BASE_SITE_ROOT}/static/home/images/"+id+".png")
|
|
|
|
+ if (res.result.image2 != '') {
|
|
|
|
+ $('#img_member_idcard_image2_url').attr('src',res.result.image2)
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ if (res.result.image3 != '') {
|
|
|
|
+ $('#img_member_idcard_image3_url').attr('src',res.result.image3)
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- })
|
|
|
|
- })
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
function ajaxFileUpload(url, id)
|
|
function ajaxFileUpload(url, id)
|
|
{
|
|
{
|
|
@@ -636,49 +652,77 @@ $(document).ready(function(){
|
|
}
|
|
}
|
|
$(document).ready(function () {
|
|
$(document).ready(function () {
|
|
var url = '{:url("MemberAuth/image_upload2")}';
|
|
var url = '{:url("MemberAuth/image_upload2")}';
|
|
|
|
+
|
|
$('#form_company_info').find('input[type="file"]').unbind().change(function () {
|
|
$('#form_company_info').find('input[type="file"]').unbind().change(function () {
|
|
var id = $(this).attr('id');
|
|
var id = $(this).attr('id');
|
|
|
|
+ // localstroage.setItem(id,url)
|
|
ajaxFileUpload(url, id);
|
|
ajaxFileUpload(url, id);
|
|
|
|
+ // alert($('#member_idcard_image3').val())
|
|
|
|
+
|
|
});
|
|
});
|
|
- $('#form_company_info').validate({
|
|
|
|
- submitHandler: function (form) {
|
|
|
|
- ds_ajaxpost('member_form','url','{:url('MemberAuth/index')}');
|
|
|
|
- },
|
|
|
|
- rules: {
|
|
|
|
- member_truename: {
|
|
|
|
- required: true
|
|
|
|
- },
|
|
|
|
- member_idcard: {
|
|
|
|
- required: true,
|
|
|
|
- },
|
|
|
|
- member_idcard_image1: {
|
|
|
|
- required: true,
|
|
|
|
- },
|
|
|
|
- member_idcard_image2: {
|
|
|
|
- required: true,
|
|
|
|
- },
|
|
|
|
- member_idcard_image3: {
|
|
|
|
- required: true,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- messages: {
|
|
|
|
- member_truename: {
|
|
|
|
- required: '{$Think.lang.member_truename_require}'
|
|
|
|
- },
|
|
|
|
- member_idcard: {
|
|
|
|
- required: '{$Think.lang.member_idcard_require}',
|
|
|
|
- },
|
|
|
|
- member_idcard_image1: {
|
|
|
|
- required: '{$Think.lang.member_idcard_image1_require}',
|
|
|
|
- },
|
|
|
|
- member_idcard_image2: {
|
|
|
|
- required: '{$Think.lang.member_idcard_image2_require}',
|
|
|
|
- },
|
|
|
|
- member_idcard_image3: {
|
|
|
|
- required: '{$Think.lang.member_idcard_image3_require}',
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ dropImage('member_idcard_image2')
|
|
|
|
+ // $('#member_idcard_image2').value='';
|
|
|
|
+ // console.log($('#member_idcard_image2'))
|
|
|
|
+ // console.log('111',window.location.host)
|
|
|
|
+ // $('#img_member_idcard_image2_url').attr('src',"{get_member_idcard_image('"+$('#member_idcard_image2').val()+"')");
|
|
|
|
+ // $('#img_member_idcard_image3_url').attr('src',"http://"+window.location.host+"/uploads/home/idcard_image/"+$('#member_idcard_image3').val());
|
|
|
|
+ // console.log(document.getElementById('member_idcard_image2'))
|
|
|
|
+ // console.log('adasdsd')
|
|
|
|
+
|
|
|
|
+ // alert($("input[name='business_licence_number']").val())
|
|
|
|
+ // alert($('#member_idcard_image3').val())
|
|
|
|
+ //去判断 图片有没有, 有的话 展示
|
|
|
|
+ // if ($('#member_idcard_image2_url').val().isEmpty) {
|
|
|
|
+ // alert(1)
|
|
|
|
+ // // $('#img_member_idcard_image2_url').attr('src',$('#member_idcard_image2_url').attr('src'))
|
|
|
|
+ // }
|
|
|
|
+ // if (!$('#member_idcard_image3_url').attr('src') !== undefined) {
|
|
|
|
+ // alert($('#member_idcard_image3_url').attr('src'))
|
|
|
|
+ // $('#img_member_idcard_image3_url').attr('src',$('#member_idcard_image3_url').attr('src'))
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // $('#form_company_info').validate({
|
|
|
|
+ // submitHandler: function (form) {
|
|
|
|
+ // ds_ajaxpost('member_form','url','{:url('MemberAuth/index')}');
|
|
|
|
+ // },
|
|
|
|
+ // rules: {
|
|
|
|
+ // member_truename: {
|
|
|
|
+ // required: true
|
|
|
|
+ // },
|
|
|
|
+ // member_idcard: {
|
|
|
|
+ // required: true,
|
|
|
|
+ // },
|
|
|
|
+ // member_idcard_image1: {
|
|
|
|
+ // required: true,
|
|
|
|
+ // },
|
|
|
|
+ // member_idcard_image2: {
|
|
|
|
+ // required: true,
|
|
|
|
+ // },
|
|
|
|
+ // member_idcard_image3: {
|
|
|
|
+ // required: true,
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
|
|
+ // messages: {
|
|
|
|
+ // member_truename: {
|
|
|
|
+ // required: '{$Think.lang.member_truename_require}'
|
|
|
|
+ // },
|
|
|
|
+ // member_idcard: {
|
|
|
|
+ // required: '{$Think.lang.member_idcard_require}',
|
|
|
|
+ // },
|
|
|
|
+ // member_idcard_image1: {
|
|
|
|
+ // required: '{$Think.lang.member_idcard_image1_require}',
|
|
|
|
+ // },
|
|
|
|
+ // member_idcard_image2: {
|
|
|
|
+ // required: '{$Think.lang.member_idcard_image2_require}',
|
|
|
|
+ // },
|
|
|
|
+ // member_idcard_image3: {
|
|
|
|
+ // required: '{$Think.lang.member_idcard_image3_require}',
|
|
|
|
+ // },
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|