Commit 7b39d937 authored by zhengke's avatar zhengke

修改

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