Commit 2cb756d8 by 刘海龙

1111

parent 6f2b4e0f
......@@ -59,7 +59,7 @@
<div class="imgItem" @click="addImg('front_view')">
<img :src="form.front_view ? form.front_view : upload_image">
</div>
<div class="imgItem" @click="addImg('back_view')">
<div v-if="isFile" class="imgItem" @click="addImg('back_view')">
<img :src="form.back_view ? form.back_view : upload_image2">
</div>
<div class="imgItem" @click="addImg('handset_view')">
......@@ -69,8 +69,8 @@
<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-if="isFile" 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" 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="file3" name="image" type="file" style="display: none;" accept="image/*" @change="upload"/>
</div>
<!-- 按钮 -->
......@@ -193,7 +193,7 @@
},
upload: function () {
layer.msg("上传图片方法调用了");
let _this = this;
var _this = this;
let saveName, id = '';
if (_this.uploadName === 'front_view') {
id = 'file';
......
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