Commit 7b39d937 authored by zhengke's avatar zhengke

修改

parent 890d75d8
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
.copyrightset .el-button--small { .copyrightset .el-button--small {
padding: 9px 25px; padding: 9px 25px;
} }
</style> </style>
<template> <template>
<div class="copyrightset"> <div class="copyrightset">
...@@ -38,14 +37,14 @@ ...@@ -38,14 +37,14 @@
<el-form-item label="底部版权图标"> <el-form-item label="底部版权图标">
<div> <div>
<el-tooltip class="item" effect="dark" content="建议尺寸:160*50" placement="top-start"> <el-tooltip class="item" effect="dark" content="建议尺寸:160*50" placement="top-start">
<el-upload class="avatar-uploader" action="" accept="image/jpeg,image/gif,image/png,image/bmp" <el-button size="small" @click="choicImg=true">选择图片</el-button>
:show-file-list="false" :http-request="UploadImage">
<el-button size="small">选择图片</el-button>
</el-upload>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="indexApp_image"> <div class="zk_pic_box" @click="choicImg=true" flex="main:center cross:center" style="width:100px;height:100px;margin-top:10px;"
<img v-if="copyRightMsg.CopyRightImg" :src="copyRightMsg.CopyRightImg" alt="" /> :style="{backgroundImage:'url(' + copyRightMsg.CopyRightImg + ')'}">
<i v-if="copyRightMsg.CopyRightImg==''" class="el-icon-picture-outline"></i>
<el-button type="danger" v-if="copyRightMsg.CopyRightImg!=''" class="image-delete" size="mini"
icon="el-icon-close" @click.stop="copyRightMsg.CopyRightImg=''" circle></el-button>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="底部版权链接"> <el-form-item label="底部版权链接">
...@@ -66,15 +65,22 @@ ...@@ -66,15 +65,22 @@
<el-button size="small" type="danger" @click="getMenu()">确 定</el-button> <el-button size="small" type="danger" @click="getMenu()">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 选择图片文件 -->
<el-dialog title="选择文件" :visible.sync="choicImg" width="1240px">
<ChooseImg @SelectId="SelectId"></ChooseImg>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import chooseMenu from "../common/chooseMenu.vue"; import chooseMenu from "../common/chooseMenu.vue";
import ChooseImg from "@/components/global/ChooseImg.vue";
export default { export default {
data() { data() {
return { return {
//是否线下链接弹窗 //是否线下链接弹窗
isShowLink: false, isShowLink: false,
//选择图片弹窗
choicImg:false,
//修改版权MSG //修改版权MSG
copyRightMsg: { copyRightMsg: {
MallBaseId: 0, //小程序Id MallBaseId: 0, //小程序Id
...@@ -86,7 +92,8 @@ ...@@ -86,7 +92,8 @@
}; };
}, },
components: { components: {
chooseMenu chooseMenu,
ChooseImg
}, },
created() { created() {
...@@ -99,12 +106,9 @@ ...@@ -99,12 +106,9 @@
this.isShowLink = false; this.isShowLink = false;
}, },
//选择图片 //选择图片
UploadImage(file) { SelectId(msg) {
this.UploadFileToTencent(this.FileType().UserImg, file.file, res => { this.copyRightMsg.CopyRightImg = this.getIconLink(msg.url);
if (res.resultCode == 1) { this.choicImg = false;
this.copyRightMsg.CopyRightImg = res.FileUrl;
}
})
}, },
//版权信息 //版权信息
GetCopyRight() { GetCopyRight() {
......
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