Commit a689cf1b authored by zhengke's avatar zhengke

修改样式

parent 54d427be
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
轮播图管理 轮播图管理
</div> </div>
<div class="content clearfix"> <div class="content clearfix">
<div class="app-banner-list" style="float:left;" @click="isShowLunbo=true"> <div class="app-banner-list" style="float:left;" @click="isShowLunbo=true,clearMsg()">
<div class="el-card app-banner-list-item" style="text-align:center;"> <div class="el-card app-banner-list-item" style="text-align:center;">
<div class="el-card__body" style="padding: 0px;"> <div class="el-card__body" style="padding: 0px;">
<i class="el-icon-plus app-banner-add-icon"></i> <i class="el-icon-plus app-banner-add-icon"></i>
...@@ -17,9 +17,11 @@ ...@@ -17,9 +17,11 @@
<div class="app-banner-list" v-for="(item,index) in dataList" :key="index"> <div class="app-banner-list" v-for="(item,index) in dataList" :key="index">
<div class="el-card app-banner-list-item"> <div class="el-card app-banner-list-item">
<div style="padding:0"> <div style="padding:0">
<div style="position: relative;"><img class="banner_topImg" :src="getIconLink(item.NavImg)" alt=""> <div style="position: relative;">
<a @click="EditRole(item)">修改</a> <img class="banner_topImg" :src="getIconLink(item.NavImg)" alt="">
<el-tooltip slot="label" class="item" effect="dark" content="修改" placement="top">
<img class="editImg" src="../../assets/img/userman/edit.png" alt="" @click="EditRole(item)">
</el-tooltip>
<el-tooltip slot="label" class="item" effect="dark" content="删除" placement="top"> <el-tooltip slot="label" class="item" effect="dark" content="删除" placement="top">
<img class="delImg" src="../../assets/img/userman/del.png" alt="" @click="RemmoveRole(item)"> <img class="delImg" src="../../assets/img/userman/del.png" alt="" @click="RemmoveRole(item)">
</el-tooltip> </el-tooltip>
...@@ -35,7 +37,7 @@ ...@@ -35,7 +37,7 @@
</div> </div>
</template> </template>
<!-- 选择图片文件 --> <!-- 选择图片文件 -->
<el-dialog title="轮播图编辑" :visible.sync="isShowLunbo" width="960px"> <el-dialog :title="commonTitle" :visible.sync="isShowLunbo" width="960px">
<el-form label-width="100px" :model="addMsg" :rules="rules" ref="addMsg"> <el-form label-width="100px" :model="addMsg" :rules="rules" ref="addMsg">
<el-form-item label="标题"> <el-form-item label="标题">
<el-input type="text" v-model="addMsg.NavName" size="small" maxlength="100"></el-input> <el-input type="text" v-model="addMsg.NavName" size="small" maxlength="100"></el-input>
...@@ -57,7 +59,7 @@ ...@@ -57,7 +59,7 @@
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="isShowLunbo = false" size="small">取消</el-button> <el-button @click="isShowLunbo = false" size="small">取消</el-button>
<el-button type="primary" @click="addShuffImg" size="small">提交</el-button> <el-button type="primary" @click="submitform('addMsg')" size="small">提交</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 选择图片文件 --> <!-- 选择图片文件 -->
...@@ -81,6 +83,7 @@ ...@@ -81,6 +83,7 @@
data() { data() {
return { return {
loading: false, loading: false,
commonTitle:'',
//添加图片弹窗 //添加图片弹窗
isShowLunbo: false, isShowLunbo: false,
//选择图片弹窗 //选择图片弹窗
...@@ -124,6 +127,7 @@ ...@@ -124,6 +127,7 @@
}, },
//清空消息 //清空消息
clearMsg() { clearMsg() {
this.commonTitle='添加轮播图';
this.addMsg.Id = 0; this.addMsg.Id = 0;
this.addMsg.NavName = ''; this.addMsg.NavName = '';
this.addMsg.NavLink = ''; this.addMsg.NavLink = '';
...@@ -146,7 +150,6 @@ ...@@ -146,7 +150,6 @@
this.apipost("/api/Tenant/GetMallNavList", {}, res => { this.apipost("/api/Tenant/GetMallNavList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data this.dataList = res.data.data
console.log("this.dataList", this.dataList)
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
...@@ -164,6 +167,7 @@ ...@@ -164,6 +167,7 @@
}, },
//修改 //修改
EditRole(item) { EditRole(item) {
this.commonTitle='轮播图编辑';
this.apipost("/api/Tenant/GetMallNav", { this.apipost("/api/Tenant/GetMallNav", {
Id: item.Id Id: item.Id
}, res => { }, res => {
...@@ -257,10 +261,18 @@ ...@@ -257,10 +261,18 @@
margin-top: 10px; margin-top: 10px;
} }
.shuffing .editImg {
display: none;
position: absolute;
bottom: 30px;
right: 80px;
padding: 0px;
}
.shuffing .delImg { .shuffing .delImg {
display: none; display: none;
position: absolute; position: absolute;
bottom: 20px; bottom: 30px;
right: 20px; right: 20px;
padding: 0px; padding: 0px;
} }
...@@ -268,6 +280,9 @@ ...@@ -268,6 +280,9 @@
.shuffing .app-banner-list:hover .delImg { .shuffing .app-banner-list:hover .delImg {
display: block; display: block;
} }
.shuffing .app-banner-list:hover .editImg {
display: block;
}
.shuffing .banner_btmDiv { .shuffing .banner_btmDiv {
height: 90px; height: 90px;
......
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