Commit e879c1a7 by 刘海龙

11

parent c2c3251c
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
:class="[form.handset_view ? 'zhengjz' : 'addTipsimg']"> :class="[form.handset_view ? 'zhengjz' : 'addTipsimg']">
<div v-show="form.handset_view ? false : true" class="addTips_wz">手持证件照</div> <div v-show="form.handset_view ? false : true" class="addTips_wz">手持证件照</div>
</div> </div>
<input id="file" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload(this)" /> <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(this)" /> <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(this)" /> <input id="file3" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload" />
</div> </div>
<!-- 按钮 --> <!-- 按钮 -->
...@@ -172,6 +172,7 @@ ...@@ -172,6 +172,7 @@
} 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;
$('#file').replaceWith('input id="file" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload"');
} }
if (_this.uploadName === 'back_view') { if (_this.uploadName === 'back_view') {
_this.form.back_view = str.data.url; _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