This commit is contained in:
parent
ea5e45b584
commit
98727fb651
|
@ -171,7 +171,7 @@
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
:on-success="handleAvatarSuccess"
|
:on-success="handleAvatarSuccess"
|
||||||
>
|
>
|
||||||
<div v-if="anchors.img_zip">
|
<div v-if="anchors.img_zip.length">
|
||||||
<div v-for="(item, index) in anchors.img_zip" class="img-box">
|
<div v-for="(item, index) in anchors.img_zip" class="img-box">
|
||||||
<i
|
<i
|
||||||
@click.stop="handleClose('img_zip', index)"
|
@click.stop="handleClose('img_zip', index)"
|
||||||
|
@ -192,7 +192,7 @@
|
||||||
</div>
|
</div>
|
||||||
<i v-else class="el-icon-plus avatar-uploader-icon" />
|
<i v-else class="el-icon-plus avatar-uploader-icon" />
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<span>{{ anchors.img_zip }}</span>
|
<!-- <span>{{ anchors.img_zip }}</span> -->
|
||||||
<div style="color: red">(请上传zip格式的文件图片)</div>
|
<div style="color: red">(请上传zip格式的文件图片)</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="上传行程">
|
<el-form-item label="上传行程">
|
||||||
|
@ -220,7 +220,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<i v-else class="el-icon-plus avatar-uploader-icon" /> -->
|
<i v-else class="el-icon-plus avatar-uploader-icon" /> -->
|
||||||
<div v-if="anchors.trip_zip">
|
<div v-if="anchors.trip_zip.length">
|
||||||
<div v-for="(item, index) in anchors.trip_zip" class="img-box">
|
<div v-for="(item, index) in anchors.trip_zip" class="img-box">
|
||||||
<i
|
<i
|
||||||
@click.stop="handleClose('trip_zip', index)"
|
@click.stop="handleClose('trip_zip', index)"
|
||||||
|
@ -241,7 +241,7 @@
|
||||||
</div>
|
</div>
|
||||||
<i v-else class="el-icon-plus avatar-uploader-icon" />
|
<i v-else class="el-icon-plus avatar-uploader-icon" />
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<span>{{ anchors.trip_zip }}</span>
|
<!-- <span>{{ item }}</span> -->
|
||||||
<span style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</span>
|
<span style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -324,7 +324,7 @@
|
||||||
inactive-color="#ff4949"
|
inactive-color="#ff4949"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="上传图片">
|
<!-- <el-form-item label="上传图片">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="avatar-uploader"
|
class="avatar-uploader"
|
||||||
action="admin/upload/index"
|
action="admin/upload/index"
|
||||||
|
@ -352,8 +352,8 @@
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<span>{{ anchors.img_zip }}</span>
|
<span>{{ anchors.img_zip }}</span>
|
||||||
<div style="color: red">(请上传zip格式的文件图片)</div>
|
<div style="color: red">(请上传zip格式的文件图片)</div>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item label="上传行程">
|
<!-- <el-form-item label="上传行程">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="avatar-uploader"
|
class="avatar-uploader"
|
||||||
action="admin/upload/index"
|
action="admin/upload/index"
|
||||||
|
@ -381,7 +381,7 @@
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<span>{{ anchors.trip_zip }}</span>
|
<span>{{ anchors.trip_zip }}</span>
|
||||||
<div style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</div>
|
<div style="color: red">(本行程请上传,ppt,word,pdf格式的文件)</div>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button v-loading="loading" type="primary" @click="onSave"
|
<el-button v-loading="loading" type="primary" @click="onSave"
|
||||||
|
@ -435,7 +435,7 @@ export default {
|
||||||
// this.onChange()
|
// this.onChange()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkIfUrlContainsImage(url) {
|
checkIfUrlContainsImage(url = "") {
|
||||||
const imageExtensions = [
|
const imageExtensions = [
|
||||||
".jpg",
|
".jpg",
|
||||||
".jpeg",
|
".jpeg",
|
||||||
|
|
Loading…
Reference in New Issue