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%;
position: relative;
position: absolute;
bottom: 0px;
bottom: -54px;
left: 0px;
z-index: 2;
}

View File

@ -6,19 +6,6 @@
<!-- <span>关注我们</span> -->
<!-- <span>店铺信息</span> -->
</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>
</template>

View File

@ -27,13 +27,13 @@
<el-button @click="reloads" type="danger"
><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
>
> -->
<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
>
> -->
</div>
</section>
@ -283,7 +283,6 @@ export default {
/* 取消加载 */
loading.close()
let datas = res.data.shopTemplate
//idnull,
@ -294,8 +293,6 @@ export default {
this.pageComponents = JSON.parse(datas.component)
console.log(this.pageComponents, '--------------------pageComponents')
// TODO:
// this.mergeComponents()
if (datas.templateJson) {
console.log('----------home datas1')
@ -322,24 +319,6 @@ export default {
},
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) {
//
if (res === '1') {
@ -392,9 +371,6 @@ export default {
message: '上架成功',
type: 'success',
})
/* this.$alert('', '', {
confirmButtonText: '确定',
}); */
this.$router.push({ path: 'establishShop' })
this.id = null
})
@ -409,9 +385,9 @@ export default {
<br/>
"name": "${this.pageSetup.name}",
<br/>
"templateJson": ${JSON.stringify(this.pageSetup)},
"templateJson": '${JSON.stringify(this.pageSetup)}',
<br/>
"component": ${JSON.stringify(this.pageComponents)},
"component": '${JSON.stringify(this.pageComponents)}',
<br/>
}`,
'查看JSON',
@ -467,8 +443,6 @@ export default {
/* 取消加载 */
loadings.close()
this.$message({
message: '上传成功',
type: 'success',
@ -518,7 +492,6 @@ export default {
type: 'success',
})
/* 获取图片链接 */
callBack(res.data.src)
})
@ -1170,5 +1143,4 @@ export default {
transform: translate(8px, 8px);
opacity: 0;
}
</style>