Commit a1c9ea46 by 刘海龙

1111

parent 3047bea1
...@@ -157,6 +157,7 @@ ...@@ -157,6 +157,7 @@
saveName = 'auth_' + uid + '_3'; saveName = 'auth_' + uid + '_3';
} }
var loadingIndex = layer.load(2); var loadingIndex = layer.load(2);
$(document).off('change',id).on('change',id,function(){
$.ajaxFileUpload({ $.ajaxFileUpload({
url: './index.php?g=Appapi&m=Auth&a=upload', url: './index.php?g=Appapi&m=Auth&a=upload',
secureuri: false, secureuri: false,
...@@ -173,15 +174,12 @@ ...@@ -173,15 +174,12 @@
} else { } else {
if (_this.uploadName === 'front_view') { if (_this.uploadName === 'front_view') {
_this.form.front_view = str.data.url; _this.form.front_view = str.data.url;
$(document).off('change','#file').on('change','#file');
} }
if (_this.uploadName === 'back_view') { if (_this.uploadName === 'back_view') {
_this.form.back_view = str.data.url; _this.form.back_view = str.data.url;
$(document).off('change','#file1').on('change','#file1');
} }
if (_this.uploadName === 'handset_view') { if (_this.uploadName === 'handset_view') {
_this.form.handset_view = str.data.url; _this.form.handset_view = str.data.url;
$(document).off('change','#file2').on('change','#file2');
} }
_this.checkSubmit(); _this.checkSubmit();
layer.close(loadingIndex); layer.close(loadingIndex);
...@@ -192,6 +190,7 @@ ...@@ -192,6 +190,7 @@
console.log(data); console.log(data);
} }
}); });
});
}, },
submit: function () { submit: function () {
let data = this.form; let data = this.form;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment