Commit efffda76 by 刘海龙

111

parent f17effaf
......@@ -68,9 +68,9 @@
<!-- <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"/> -->
<input id="file" name="image" type="file" v-if="ishowFile" style="display: none;" accept="image/*" @change="upload"/>
<input id="file2" name="image" type="file" v-if="ishowFile2" style="display: none;" accept="image/*" @change="upload"/>
<input id="file3" name="image" type="file" v-if="ishowFile3" style="display: none;" accept="image/*" @change="upload"/>
<input id="file" name="image" type="file" 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>
<!-- 按钮 -->
......@@ -106,9 +106,6 @@
isNew: '{$isNew}',
uploadName: '',
isSubmit: true,
ishowFile: true,
ishowFile2: true,
ishowFile3: true,
upload_image: '__PUBLIC__/appapi/img/iconCard-1.png',
upload_image2: '__PUBLIC__/appapi/img/iconCard-2.png',
upload_image3: '__PUBLIC__/appapi/img/iconCard-3.png',
......@@ -186,15 +183,13 @@
this.uploadName = name;
if (this.uploadName === 'front_view') {
$("#file").click();
this.ishowFile = false // 销毁
console.log($("#file").val)
}
if (this.uploadName === 'back_view') {
$("#file2").click();
this.ishowFile2 = false // 销毁
}
if (this.uploadName === 'handset_view') {
$("#file3").click();
this.ishowFile3 = false // 销毁
}
},
upload: function () {
......@@ -232,15 +227,12 @@
} else {
if (_this.uploadName === 'front_view') {
_this.form.front_view = str.data.url;
this.ishowFile = true // 重建
}
if (_this.uploadName === 'back_view') {
_this.form.back_view = str.data.url;
this.ishowFile2= true // 重建
}
if (_this.uploadName === 'handset_view') {
_this.form.handset_view = str.data.url;
this.ishowFile3 = true // 重建
}
_this.checkSubmit();
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