feat: 优化tab组件

This commit is contained in:
王奥斯 2021-10-27 17:32:09 +08:00
parent d71e91cba7
commit 3cf88a1d68
3 changed files with 8 additions and 49 deletions

View File

@ -80,7 +80,7 @@ export default {
width: 100%; width: 100%;
position: relative; position: relative;
position: absolute; position: absolute;
bottom: 0px; bottom: -54px;
left: 0px; left: 0px;
z-index: 2; z-index: 2;
} }

View File

@ -6,19 +6,6 @@
<!-- <span>关注我们</span> --> <!-- <span>关注我们</span> -->
<!-- <span>店铺信息</span> --> <!-- <span>店铺信息</span> -->
</p> </p>
<!-- <img
draggable="false"
v-show="datas.botLogo"
:src="datas.botLogo"
style="width: 110px; margin-left: 35%; margin-top: 10px"
/> -->
<!-- <p class="yinjia" :style="{ 'margin-top': datas ? '0px' : '10px' }">
<img
draggable="false"
class="logo"
src="@/assets/images/Robot.png"
/><span></span>
</p> -->
</div> </div>
</template> </template>

View File

@ -27,13 +27,13 @@
<el-button @click="reloads" type="danger" <el-button @click="reloads" type="danger"
><i class="el-icon-delete-solid el-icon--left"></i>重置</el-button ><i class="el-icon-delete-solid el-icon--left"></i>重置</el-button
> >
<el-button @click="Preservation" <!-- <el-button @click="Preservation"
><i class="el-icon-s-claim el-icon--left"></i>保存</el-button ><i class="el-icon-s-claim el-icon--left"></i>保存</el-button
> > -->
<el-button @click="catJson">查看JSON </el-button> <el-button @click="catJson">查看JSON </el-button>
<el-button @click="upperShelf" type="primary" <!-- <el-button @click="upperShelf" type="primary"
><i class="el-icon-upload el-icon--left"></i>上架</el-button ><i class="el-icon-upload el-icon--left"></i>上架</el-button
> > -->
</div> </div>
</section> </section>
@ -144,7 +144,7 @@
</span> </span>
<span <span
class="active" class="active"
v-show="rightcom!='componenmanagement'&&rightcom!='decorate'" v-show="rightcom != 'componenmanagement' && rightcom != 'decorate'"
> >
<i class="iconfont icon-zujian" /> <i class="iconfont icon-zujian" />
组件设置 组件设置
@ -283,7 +283,6 @@ export default {
/* 取消加载 */ /* 取消加载 */
loading.close() loading.close()
let datas = res.data.shopTemplate let datas = res.data.shopTemplate
//idnull, //idnull,
@ -294,8 +293,6 @@ export default {
this.pageComponents = JSON.parse(datas.component) this.pageComponents = JSON.parse(datas.component)
console.log(this.pageComponents, '--------------------pageComponents') console.log(this.pageComponents, '--------------------pageComponents')
// TODO:
// this.mergeComponents()
if (datas.templateJson) { if (datas.templateJson) {
console.log('----------home datas1') console.log('----------home datas1')
@ -322,24 +319,6 @@ export default {
}, },
methods: { methods: {
//
mergeComponents() {
// item item componentsData
this.pageComponents.forEach((item, index) => {
if (componentProperties.get(item.component)) {
//
this.$set(
this.pageComponents,
index,
this.$common.assiginObj(
componentProperties.get(item.component),
item
)
)
}
})
},
dropDownButton(res) { dropDownButton(res) {
// //
if (res === '1') { if (res === '1') {
@ -392,9 +371,6 @@ export default {
message: '上架成功', message: '上架成功',
type: 'success', type: 'success',
}) })
/* this.$alert('', '', {
confirmButtonText: '确定',
}); */
this.$router.push({ path: 'establishShop' }) this.$router.push({ path: 'establishShop' })
this.id = null this.id = null
}) })
@ -409,9 +385,9 @@ export default {
<br/> <br/>
"name": "${this.pageSetup.name}", "name": "${this.pageSetup.name}",
<br/> <br/>
"templateJson": ${JSON.stringify(this.pageSetup)}, "templateJson": '${JSON.stringify(this.pageSetup)}',
<br/> <br/>
"component": ${JSON.stringify(this.pageComponents)}, "component": '${JSON.stringify(this.pageComponents)}',
<br/> <br/>
}`, }`,
'查看JSON', '查看JSON',
@ -467,8 +443,6 @@ export default {
/* 取消加载 */ /* 取消加载 */
loadings.close() loadings.close()
this.$message({ this.$message({
message: '上传成功', message: '上传成功',
type: 'success', type: 'success',
@ -518,7 +492,6 @@ export default {
type: 'success', type: 'success',
}) })
/* 获取图片链接 */ /* 获取图片链接 */
callBack(res.data.src) callBack(res.data.src)
}) })
@ -1170,5 +1143,4 @@ export default {
transform: translate(8px, 8px); transform: translate(8px, 8px);
opacity: 0; opacity: 0;
} }
</style> </style>