Commit 0938ab3f authored by zhengke's avatar zhengke

增加

parent 95398f16
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -196,6 +196,7 @@
<navigationIcon v-if="item.Id=='nav'" :navData="item" @getSord="getSord" :index="index" :dataLeng="dataList.length"></navigationIcon>
<banner v-if="item.Id=='banner'" :banData="item" @getSord="getSord" :index="index" :dataLeng="dataList.length"></banner>
<rubik v-if="item.Id=='rubik'" :rubData="item" @getSord="getSord" :index="index" :dataLeng="dataList.length"></rubik>
<goods v-if="item.Id=='goods'" :goodData="item" @getSord="getSord" :index="index" :dataLeng="dataList.length"></goods>
</div>
</div>
</div>
......@@ -203,7 +204,7 @@
</div>
</div>
<div class="tpEdit_btmMenu">
<el-button type="primary" size="small">保存</el-button>
<el-button type="primary" size="small" @click="getAllData()">保存</el-button>
</div>
</div>
</template>
......@@ -212,6 +213,7 @@
import navigationIcon from "../sallCenter/plugin/navigationIcon.vue"
import banner from "../sallCenter/plugin/banner.vue"
import rubik from "../sallCenter/plugin/rubik.vue"
import goods from "../sallCenter/plugin/goods.vue"
export default {
data() {
return {
......@@ -228,7 +230,8 @@
search,
navigationIcon,
banner,
rubik
rubik,
goods,
},
methods: {
//获取左侧菜单
......@@ -283,7 +286,6 @@
}
}
this.dataList.push(navObj);
console.log(this.dataList,'this.dataList');
break;
case 'banner':
let banObj={
......@@ -314,6 +316,44 @@
}
this.dataList.push(rubObj);
break;
case 'goods':
let goodsObj={
Id:'goods',
isCked:false,
data:{
showCat: false,
catPosition: 'top',
catStyle: 1,
catList: [],
list: [],
addGoodsType: 0,
goodsLength: 10,
listStyle: 1,
goodsCoverProportion: '1-1',
fill: 1,
goodsStyle: 1,
textStyle: 1,
showGoodsName: true,
showGoodsPrice: true,
showBuyBtn: true,
buyBtn: 'cart',
buyBtnStyle: 1,
buyBtnText: '购买',
buttonColor: '#ff4544',
showGoodsTag: false,
customizeGoodsTag: false,
goodsTagPicUrl: '',
showImg: false,
backgroundColor: '#fff',
backgroundPicUrl: '',
position: 5,
mode: 1,
backgroundHeight: 100,
backgroundWidth: 100,
}
}
this.dataList.push(goodsObj);
break;
}
},
//给子组件调用 重新排序上移下移
......@@ -339,6 +379,10 @@
x.isCked=false;
})
item.isCked=true;
},
//点击保存
getAllData(){
console.log(this.dataList,'dataListtt');
}
},
mounted() {
......
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