Commit e8a7b9e2 authored by 黄奎's avatar 黄奎

页面修改

parent 166269ff
...@@ -16,11 +16,10 @@ ...@@ -16,11 +16,10 @@
@click="msg.pageIndex=1,getList()"> </span> @click="msg.pageIndex=1,getList()"> </span>
</div> </div>
<br> <br>
<el-button @click="saveSort()" size="small" type="primary">保存排序</el-button>
<div v-loading="loading" flex="dir:left box:mean" class="cat-list" style="margin-top:20px;"> <div v-loading="loading" flex="dir:left box:mean" class="cat-list" style="margin-top:20px;">
<el-card class="card-item-box" shadow="never"> <el-card class="card-item-box" shadow="never">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>一级分类</span> <span>一级分类</span> <el-button @click="saveSort()" size="small" type="primary" style="float:right">保存排序</el-button>
</div> </div>
<draggable flex v-model="dataFirst"> <draggable flex v-model="dataFirst">
<div @click="getChild(item,index)" v-for="(item,index) in dataFirst" <div @click="getChild(item,index)" v-for="(item,index) in dataFirst"
...@@ -53,7 +52,7 @@ ...@@ -53,7 +52,7 @@
</el-card> </el-card>
<el-card class="card-item-box" shadow="never"> <el-card class="card-item-box" shadow="never">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>二级分类</span> <span>二级分类</span><el-button @click="saveSort()" size="small" type="primary" style="float:right">保存排序</el-button>
</div> </div>
<draggable flex v-model="dataSecond"> <draggable flex v-model="dataSecond">
<div @click="getSecond(item,index)" v-for="(item,index) in dataSecond" <div @click="getSecond(item,index)" v-for="(item,index) in dataSecond"
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
</el-card> </el-card>
<el-card class="card-item-box" shadow="never"> <el-card class="card-item-box" shadow="never">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>三级分类</span> <span>三级分类</span><el-button @click="saveSort()" size="small" type="primary" style="float:right">保存排序</el-button>
</div> </div>
<draggable flex v-model="dataThird"> <draggable flex v-model="dataThird">
<div @click="getThird(index)" v-for="(item,index) in dataThird" <div @click="getThird(index)" v-for="(item,index) in dataThird"
......
...@@ -280,6 +280,8 @@ ...@@ -280,6 +280,8 @@
@comDelPlugin="comDelPlugin" :index="index" :dataLeng="dataList.length"></imageText> @comDelPlugin="comDelPlugin" :index="index" :dataLeng="dataList.length"></imageText>
<topic v-if="item.Id=='topic'" :topicData="item" @getSord="getSord" @comDelPlugin="comDelPlugin" <topic v-if="item.Id=='topic'" :topicData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></topic> :index="index" :dataLeng="dataList.length"></topic>
<shopinfo v-if="item.Id=='shop-info'" :shopinfoData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="dataList.length"></shopinfo>
</div> </div>
</div> </div>
</div> </div>
...@@ -386,6 +388,7 @@ ...@@ -386,6 +388,7 @@
import quickNav from "../sallCenter/plugin/quick-nav.vue" import quickNav from "../sallCenter/plugin/quick-nav.vue"
import imageText from "../sallCenter/plugin/image-text.vue" import imageText from "../sallCenter/plugin/image-text.vue"
import topic from "../sallCenter/plugin/topic.vue" import topic from "../sallCenter/plugin/topic.vue"
import shopinfo from "../sallCenter/plugin/shopinfo.vue"
import ChooseImg from "@/components/global/ChooseImg.vue"; import ChooseImg from "@/components/global/ChooseImg.vue";
export default { export default {
...@@ -453,12 +456,13 @@ ...@@ -453,12 +456,13 @@
quickNav, quickNav,
imageText, imageText,
topic, topic,
shopinfo,
ChooseImg ChooseImg
}, },
methods: { methods: {
//选择图片 //选择图片
SelectId(msg) { SelectId(msg) {
this.bgMsg.data.backgroundPicUrl =this.getIconLink(msg.url); this.bgMsg.data.backgroundPicUrl = this.getIconLink(msg.url);
this.choicImg = false; this.choicImg = false;
}, },
choose(num, position) { choose(num, position) {
...@@ -469,7 +473,7 @@ ...@@ -469,7 +473,7 @@
SetBgInfo() { SetBgInfo() {
var isExists = false; var isExists = false;
var existsIndex = 0; var existsIndex = 0;
this.dataList.forEach((item,index) => { this.dataList.forEach((item, index) => {
if (item.Id == "background") { if (item.Id == "background") {
isExists = true; isExists = true;
existsIndex = index; existsIndex = index;
...@@ -518,7 +522,6 @@ ...@@ -518,7 +522,6 @@
this.apipost("/api/Tenant/GetPlugInList", {}, res => { this.apipost("/api/Tenant/GetPlugInList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.allComponents = res.data.data; this.allComponents = res.data.data;
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
...@@ -1235,6 +1238,21 @@ ...@@ -1235,6 +1238,21 @@
} }
this.dataList.push(quickObj); this.dataList.push(quickObj);
break; break;
//门店用户信息
case 'shop-info':
let shopInfoObj = {
Id: 'shop-info',
isCked: false,
data: {
headImg: "", //头像
headName: "赞羊小店", //用户信息
headInfo: "赞美生活,样样满意", //用户介绍
backgroundPicUrl: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/shopinfo.jpg', //背景图片
backgroundColor: '#ffffff', //背景颜色
}
};
this.dataList.push(shopInfoObj);
break;
} }
}, },
//给子组件调用 重新排序上移下移 //给子组件调用 重新排序上移下移
......
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