Commit 10804025 by liuhailong

aaa

parent 0e69e9b6
...@@ -29,26 +29,26 @@ ...@@ -29,26 +29,26 @@
<div class="scimgBox"> <div class="scimgBox">
<div class="imgItem" @click="addImg('front_view')"> <div class="imgItem" @click="addImg('front_view')">
<img :src="form.front_view ? form.front_view : upload_image" <img :src="front_view ? front_view : upload_image"
:class="[form.front_view ? 'zhengjz' : 'addTipsimg']" v-model="form.front_view"> :class="[front_view ? 'zhengjz' : 'addTipsimg']">
<div v-show="form.front_view ? false : true" class="addTips_wz">上传证件人像面</div> <div v-show="front_view ? false : true" class="addTips_wz">上传证件人像面</div>
</div> </div>
<div class="imgItem" @click="addImg('back_view')"> <div class="imgItem" @click="addImg('back_view')">
<img :src="form.back_view ? form.back_view : upload_image" <img :src="back_view ? back_view : upload_image"
:class="[form.back_view ? 'zhengjz' : 'addTipsimg']" v-model="form.back_view"> :class="[back_view ? 'zhengjz' : 'addTipsimg']">
<div v-show="form.back_view ? false : true" class="addTips_wz">上传证件国徽面</div> <div v-show="back_view ? false : true" class="addTips_wz">上传证件国徽面</div>
</div> </div>
<div class="imgItem" @click="addImg('handset_view')"> <div class="imgItem" @click="addImg('handset_view')">
<img :src="form.handset_view ? form.handset_view : upload_image" <img :src="handset_view ? handset_view : upload_image"
:class="[form.handset_view ? 'zhengjz' : 'addTipsimg']" v-model="form.handset_view"> :class="[handset_view ? 'zhengjz' : 'addTipsimg']">
<div v-show="form.handset_view ? false : true" class="addTips_wz">手持证件照</div> <div v-show="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"/> <!-- <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="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="file3" name="image" type="file" v-show="false" class="upload" accept="image/*" @change="upload"/> -->
<input id="file" name="image" type="file" style="display: none;" class="upload" accept="image/*" @click="upload"/> <input id="file" name="image" type="file" style="display: none;" class="upload" accept="image/*" @change="upload"/>
<input id="file2" name="image" type="file" style="display: none;" class="upload" accept="image/*" @click="upload"/> <input id="file2" name="image" type="file" style="display: none;" class="upload" accept="image/*" @change="upload"/>
<input id="file3" name="image" type="file" style="display: none;" class="upload" accept="image/*" @click="upload"/> <input id="file3" name="image" type="file" style="display: none;" class="upload" accept="image/*" @change="upload"/>
</div> </div>
<!-- 按钮 --> <!-- 按钮 -->
...@@ -78,6 +78,9 @@ ...@@ -78,6 +78,9 @@
back_view: '', back_view: '',
handset_view: '' handset_view: ''
}, },
front_view: '',
back_view: '',
handset_view: ''
uploadName: '', uploadName: '',
isSubmit: true, isSubmit: true,
upload_image: '__PUBLIC__/appapi/img/add_r@2x.png', upload_image: '__PUBLIC__/appapi/img/add_r@2x.png',
...@@ -168,12 +171,15 @@ ...@@ -168,12 +171,15 @@
data = data.replace(/<[^>]+>/g, ""); data = data.replace(/<[^>]+>/g, "");
var str = JSON.parse(data); var str = JSON.parse(data);
if (_this.uploadName === 'front_view') { if (_this.uploadName === 'front_view') {
_this.front_view = str.data.url;
_this.form.front_view = str.data.url; _this.form.front_view = str.data.url;
} }
if (_this.uploadName === 'back_view') { if (_this.uploadName === 'back_view') {
_this.back_view = str.data.url;
_this.form.back_view = str.data.url; _this.form.back_view = str.data.url;
} }
if (_this.uploadName === 'handset_view') { if (_this.uploadName === 'handset_view') {
_this.handset_view = str.data.url;
_this.form.handset_view = str.data.url; _this.form.handset_view = str.data.url;
} }
_this.checkSubmit(); _this.checkSubmit();
......
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