diff --git a/Host/Views.Mobile/User/IndexInfo.cshtml b/Host/Views.Mobile/User/IndexInfo.cshtml
index 69bfa28..0b16b3f 100644
--- a/Host/Views.Mobile/User/IndexInfo.cshtml
+++ b/Host/Views.Mobile/User/IndexInfo.cshtml
@@ -258,8 +258,9 @@
@@ -497,11 +498,10 @@
}
- var vm = new Vue({
+ var vm = new Vue({
el:'#upload',
data:{
describe:'',
- id_code:'',
status:false,
},
created:function(){
@@ -509,6 +509,7 @@
},
methods:{
upload_file() {
+ var xieyi = document.getElementById("xieyi").files[0];
if(!this.status) {
alert("请勾选同意协议!");
return;
@@ -517,18 +518,16 @@
alert("业务描述必须填写!");
return;
}
- var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
- if(reg.test(this.id_code) === false)
- {
- alert("身份证输入不合法");
- return false;
- }
+ if (!xieyi) {
+ alert("手持身份证必须上传!");
+ }
var form_data = new FormData();
form_data.append('cookie',document.cookie);
form_data.append('describe',this.describe);
form_data.append('id_code',this.id_code);
form_data.append('status',this.status);
+ form_data.append('xieyi',xieyi);
$.ajax({
type: 'POST',
diff --git a/Host/Views/User/upload.cshtml b/Host/Views/User/upload.cshtml
index 87fd58b..700095c 100644
--- a/Host/Views/User/upload.cshtml
+++ b/Host/Views/User/upload.cshtml
@@ -17,9 +17,11 @@
+