This commit is contained in:
faiz 2024-07-31 10:02:33 +08:00
parent 3d8812271e
commit 1092c313ca
1 changed files with 47 additions and 43 deletions

View File

@ -189,8 +189,8 @@
alt=""
/>
</div>
</div>
<i class="el-icon-plus avatar-uploader-icon" />
</div>
</el-upload>
<!-- <span>{{ anchors.img_zip }}</span> -->
<div style="color: red">(请上传zip格式的文件图片)</div>
@ -220,8 +220,8 @@
alt=""
/>
</div>
</div>
<i class="el-icon-plus avatar-uploader-icon" />
</div>
</el-upload>
<!-- <span>{{ item }}</span> -->
<span style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</span>
@ -306,64 +306,68 @@
inactive-color="#ff4949"
/>
</el-form-item>
<!-- <el-form-item label="上传图片">
<el-form-item label="上传图片">
<el-upload
class="avatar-uploader"
action="admin/upload/index"
:show-file-list="false"
:on-success="handleAvatarSuccess"
>
<div v-if="anchors.img_zip" class="img-box">
<div v-if="anchors.img_zip.length">
<div v-for="(item, index) in anchors.img_zip" class="img-box">
<i
@click.stop="handleClose('img_zip')"
@click.stop="handleClose('img_zip', index)"
class="close el-icon-close"
/>
<i
v-if="!checkIfUrlContainsImage(anchors.img_zip)"
v-if="!checkIfUrlContainsImage(item)"
class="el-icon-folder"
/>
<img
v-else
style="width: 100px; height: 100px"
:src="anchors.img_zip"
:src="item"
class="avatar"
alt=""
/>
</div>
<i v-else class="el-icon-plus avatar-uploader-icon" />
<i class="el-icon-plus avatar-uploader-icon" />
</div>
</el-upload>
<span>{{ anchors.img_zip }}</span>
<!-- <span>{{ anchors.img_zip }}</span> -->
<div style="color: red">(请上传zip格式的文件图片)</div>
</el-form-item> -->
<!-- <el-form-item label="上传行程">
</el-form-item>
<el-form-item label="上传行程">
<el-upload
class="avatar-uploader"
action="admin/upload/index"
:show-file-list="false"
:on-success="handleSuccess"
>
<div v-if="anchors.trip_zip" class="img-box">
<div v-if="anchors.trip_zip.length">
<div v-for="(item, index) in anchors.trip_zip" class="img-box">
<i
@click.stop="handleClose('trip_zip')"
@click.stop="handleClose('trip_zip', index)"
class="close el-icon-close"
/>
<i
v-if="!checkIfUrlContainsImage(anchors.trip_zip)"
v-if="!checkIfUrlContainsImage(item)"
class="el-icon-folder"
/>
<img
v-else
style="width: 100px; height: 100px"
:src="anchors.trip_zip"
:src="item"
class="avatar"
alt=""
/>
</div>
<i v-else class="el-icon-plus avatar-uploader-icon" />
<i class="el-icon-plus avatar-uploader-icon" />
</div>
</el-upload>
<span>{{ anchors.trip_zip }}</span>
<div style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</div>
</el-form-item> -->
<!-- <span>{{ item }}</span> -->
<span style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</span>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button v-loading="loading" type="primary" @click="onSave"