Commit c44aa117 by 刘海龙

111

parent 0407d485
......@@ -129,8 +129,8 @@
this.uploadName = name;
if (this.uploadName === 'front_view') {
$("#file").click();
layer.msg("重置了file1");
$('#file').val('');
var file = document.getElementById('file');
file.outerHTML = file.outerHTML; //重新初始化了file的html
}
if (this.uploadName === 'back_view') {
$("#file2").click();
......@@ -172,7 +172,6 @@
} else {
if (_this.uploadName === 'front_view') {
_this.form.front_view = str.data.url;
$('#file').replaceWith('<input id="file" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload" />');
}
if (_this.uploadName === 'back_view') {
_this.form.back_view = str.data.url;
......
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