Commit 2554629b by 刘海龙

111

parent 7c4e2087
......@@ -43,9 +43,9 @@
:class="[form.handset_view ? 'zhengjz' : 'addTipsimg']">
<div v-show="form.handset_view ? false : true" class="addTips_wz">手持证件照</div>
</div>
<div id="file" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload"></div>
<div id="file2" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload"></div>
<div id="file3" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload"></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" /> -->
</div>
<!-- 按钮 -->
......@@ -127,15 +127,16 @@
},
addImg: function (name) {
this.uploadName = name;
if (this.uploadName === 'front_view') {
$("#file").click();
}
if (this.uploadName === 'back_view') {
$("#file2").click();
}
if (this.uploadName === 'handset_view') {
$("#file3").click();
}
// if (this.uploadName === 'front_view') {
// $("#file").click();
// }
// if (this.uploadName === 'back_view') {
// $("#file2").click();
// }
// if (this.uploadName === 'handset_view') {
// $("#file3").click();
// }
this.upload()
},
upload: function () {
let _this = this;
......
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