Commit 82d24547 authored by 黄奎's avatar 黄奎

页面修改

parent 20f83abc
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<el-table-column prop="address" label="操作"> <el-table-column prop="address" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="info" plain @click="EditMall(scope.row)">编辑 </el-button> <el-button size="mini" type="info" plain @click="EditMall(scope.row)">编辑 </el-button>
<el-button size="mini" type="info" plain @click="upCopyRight=true">版权</el-button> <el-button size="mini" type="info" plain @click="GetCopyRight(scope.row)">版权</el-button>
<el-button size="mini" type="info" plain @click="RemmoveMall(scope.row)">禁用</el-button> <el-button size="mini" type="info" plain @click="RemmoveMall(scope.row)">禁用</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
<el-dialog title="修改版权" :visible.sync="upCopyRight" width="500px"> <el-dialog title="修改版权" :visible.sync="upCopyRight" width="500px">
<el-form :model="copyRightMsg" ref="copyRightMsg" label-width="150px"> <el-form :model="copyRightMsg" ref="copyRightMsg" label-width="150px">
<el-form-item label="底部版权文字"> <el-form-item label="底部版权文字">
<el-input type="text" style="width:250px" size="small" maxlength="100" v-model="copyRightMsg.Name"> <el-input type="text" style="width:250px" size="small" maxlength="100" v-model="copyRightMsg.CopyRightWord">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="底部版权图标"> <el-form-item label="底部版权图标">
...@@ -265,17 +265,17 @@ ...@@ -265,17 +265,17 @@
</el-tooltip> </el-tooltip>
</div> </div>
<div class="indexApp_image"> <div class="indexApp_image">
<img v-if="copyRightMsg.img" :src="copyRightMsg.img" alt=""/> <img v-if="copyRightMsg.CopyRightImg" :src="copyRightMsg.CopyRightImg" alt="" />
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="底部版权链接"> <el-form-item label="底部版权链接">
<el-input type="password" style="width:250px" size="small" maxlength="25" v-model="copyRightMsg.Url"> <el-input style="width:250px" size="small" maxlength="25" v-model="copyRightMsg.CopyRightLink">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="upCopyRight = false">取 消</el-button> <el-button size="small" @click="upCopyRight = false">取 消</el-button>
<el-button size="small" type="primary" @click="upPassWord()">确 定</el-button> <el-button size="small" type="primary" @click="UpdateCopyRight()">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
...@@ -410,7 +410,7 @@ ...@@ -410,7 +410,7 @@
val: '', val: '',
dialogVisible: false, dialogVisible: false,
upDatePwd: false, upDatePwd: false,
upCopyRight:false, upCopyRight: false,
addMsg: {}, addMsg: {},
qMsg: { qMsg: {
pageIndex: 1, pageIndex: 1,
...@@ -433,10 +433,11 @@ ...@@ -433,10 +433,11 @@
Password2: '' Password2: ''
}, },
//修改版权MSG //修改版权MSG
copyRightMsg:{ copyRightMsg: {
Name:'', MallBaseId: 0, //小程序Id
img:'', CopyRightWord: '', //版权文字
Url:'' CopyRightImg: '', //版权图片
CopyRightLink: '', //版权链接
}, },
rules: { rules: {
name: [{ name: [{
...@@ -661,13 +662,40 @@ ...@@ -661,13 +662,40 @@
}) })
}, },
//选择图片 //选择图片
UploadImage(file){ UploadImage(file) {
this.UploadFileToTencent(this.FileType().UserImg, file.file, res => { this.UploadFileToTencent(this.FileType().UserImg, file.file, res => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.copyRightMsg.img = res.FileUrl; this.copyRightMsg.CopyRightImg = res.FileUrl;
} }
}) })
},
//版权信息
GetCopyRight(item) {
this.upCopyRight = true;
this.copyRightMsg.MallBaseId = item.MallBaseId;
this.apipost("/api/Tenant/GetMiniPrograme", {
MallBaseId: item.MallBaseId,
}, res => {
if (res.data.resultCode == 1) {
this.copyRightMsg.CopyRightWord = res.data.data.CopyRightWord;
this.copyRightMsg.CopyRightImg = res.data.data.CopyRightImg;
this.copyRightMsg.CopyRightLink = res.data.data.CopyRightLink;
} else {
this.Info(res.data.message);
} }
})
},
//修改版权
UpdateCopyRight() {
this.apipost("/api/Tenant/SetMiniProgrameCopyRight", this.copyRightMsg, res => {
if (res.data.resultCode == 1) {
this.getMiniPrograme();
this.upCopyRight = false;
} else {
this.Info(res.data.message);
}
})
},
}, },
mounted() { mounted() {
this.init(); this.init();
...@@ -850,11 +878,15 @@ ...@@ -850,11 +878,15 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.indexApp_image{
width:160px; .indexApp_image {
height:50px; width: 160px;
height: 50px;
} }
.indexApp_image img{
width:100%;height:100%; .indexApp_image img {
width: 100%;
height: 100%;
} }
</style> </style>
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