Commit c2c3251c by 刘海龙

111

parent 62220e5a
...@@ -129,6 +129,8 @@ ...@@ -129,6 +129,8 @@
this.uploadName = name; this.uploadName = name;
if (this.uploadName === 'front_view') { if (this.uploadName === 'front_view') {
$("#file").click(); $("#file").click();
layer.msg("重置了file1");
$('#file').val('');
} }
if (this.uploadName === 'back_view') { if (this.uploadName === 'back_view') {
$("#file2").click(); $("#file2").click();
...@@ -170,18 +172,12 @@ ...@@ -170,18 +172,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;
layer.msg("重置了file1");
$('#file').val('');
} }
if (_this.uploadName === 'back_view') { if (_this.uploadName === 'back_view') {
_this.form.back_view = str.data.url; _this.form.back_view = str.data.url;
$('#file2').val('');
layer.msg("重置了file2");
} }
if (_this.uploadName === 'handset_view') { if (_this.uploadName === 'handset_view') {
_this.form.handset_view = str.data.url; _this.form.handset_view = str.data.url;
$('#file3').val('');
layer.msg("重置了file3");
} }
_this.checkSubmit(); _this.checkSubmit();
layer.close(loadingIndex); layer.close(loadingIndex);
......
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