Commit 081e431c by 刘海龙

111

parent 2cb756d8
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
<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="form.front_view ? form.front_view : upload_image">
</div> </div>
<div v-if="isFile" class="imgItem" @click="addImg('back_view')"> <div class="imgItem" @click="addImg('back_view')">
<img :src="form.back_view ? form.back_view : upload_image2"> <img :src="form.back_view ? form.back_view : upload_image2">
</div> </div>
<div class="imgItem" @click="addImg('handset_view')"> <div class="imgItem" @click="addImg('handset_view')">
...@@ -69,8 +69,8 @@ ...@@ -69,8 +69,8 @@
<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" v-if="isFile" style="display: none;" accept="image/*" @change="upload"/> <input id="file" name="image" type="file" v-if="isFile" style="display: none;" accept="image/*" @change="upload"/>
<input id="file2" name="image" type="file" style="display: none;" accept="image/*" @change="upload"/> <input id="file2" name="image" type="file" v-if="isFile" style="display: none;" accept="image/*" @change="upload"/>
<input id="file3" name="image" type="file" style="display: none;" accept="image/*" @change="upload"/> <input id="file3" name="image" type="file" v-if="isFile" style="display: none;" accept="image/*" @change="upload"/>
</div> </div>
<!-- 按钮 --> <!-- 按钮 -->
...@@ -231,9 +231,11 @@ ...@@ -231,9 +231,11 @@
} }
if (_this.uploadName === 'back_view') { if (_this.uploadName === 'back_view') {
_this.form.back_view = str.data.url; _this.form.back_view = str.data.url;
_this.isFile = true
} }
if (_this.uploadName === 'handset_view') { if (_this.uploadName === 'handset_view') {
_this.form.handset_view = str.data.url; _this.form.handset_view = str.data.url;
_this.isFile = true
} }
_this.checkSubmit(); _this.checkSubmit();
layer.close(loadingIndex); 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