Commit 62220e5a by 刘海龙

111

parent feac6ef3
......@@ -43,9 +43,9 @@
:class="[form.handset_view ? 'zhengjz' : 'addTipsimg']">
<div v-show="form.handset_view ? false : true" class="addTips_wz">手持证件照</div>
</div>
<input id="file" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload" />
<input id="file2" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload" />
<input id="file3" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload" />
<input id="file" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload(this)" />
<input id="file2" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload(this)" />
<input id="file3" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload(this)" />
</div>
<!-- 按钮 -->
......@@ -137,7 +137,7 @@
$("#file3").click();
}
},
upload: function () {
upload: function (e) {
layer.msg("上传方法图片调用了");
let _this = this;
let saveName, id = '';
......@@ -176,10 +176,12 @@
if (_this.uploadName === 'back_view') {
_this.form.back_view = str.data.url;
$('#file2').val('');
layer.msg("重置了file2");
}
if (_this.uploadName === 'handset_view') {
_this.form.handset_view = str.data.url;
$('#file3').val('');
layer.msg("重置了file3");
}
_this.checkSubmit();
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