Commit 3215e507 by 李长胜

修改提交商品样式

1 parent 6ccef2ea
<template> <template>
<div class="container"> <div class="equity-wrap">
<div class="layout"> <div class="equity-wrap contain">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px" size="medium" :key="resetTime"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px" size="medium" :key="resetTime">
<div class="box"> <div class="box">
<!-- <back /> --> <!-- <back /> -->
...@@ -106,6 +106,16 @@ ...@@ -106,6 +106,16 @@
</div> </div>
</el-form> </el-form>
</div> </div>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="onSubmit('save')" size="small">创建</el-button>
<el-button type="primary" @click="$router.go(-1)" size="small">取消</el-button>
</div>
</div> </div>
</template> </template>
...@@ -213,6 +223,9 @@ export default { ...@@ -213,6 +223,9 @@ export default {
} }
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getListWithPageOutGoods() this.getListWithPageOutGoods()
console.log(this.$route) console.log(this.$route)
let id = this.$route.query.id let id = this.$route.query.id
...@@ -411,9 +424,22 @@ export default { ...@@ -411,9 +424,22 @@ export default {
} }
} }
} }
// <style src="@a/css/tao.css"></style>
</script> </script>
<style src="@a/css/tao.css"></style>
<style scoped> <style lang="scss" scoped>
.footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
width: 100%;
bottom: 0px;
height: 64px;
background: #ffffff;
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.uploader-del-icon { .uploader-del-icon {
position: absolute; position: absolute;
width: 28px; width: 28px;
...@@ -424,4 +450,69 @@ export default { ...@@ -424,4 +450,69 @@ export default {
top: 0px; top: 0px;
right: -28px; right: -28px;
} }
.box .title {
padding: 20px 0;
font-weight: 700;
}
.box .el-form-item {
width: 500px;
}
.box .el-form-item .el-input-group__prepend,
.box .el-form-item .el-input-group__append {
background-color: transparent;
border: none;
}
.box .el-form-item .el-input--suffix .el-input__inner {
padding-right: 45px;
}
.box .el-form-item .el-input__suffix {
right: 20px;
}
.box .editor {
width: 800px;
}
.box .avatar-uploader {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
width: 148px;
height: 148px;
}
.box .avatar-uploader-file {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}
.box .avatar-uploader:hover {
border-color: #409EFF;
}
.box .avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 148px;
height: 148px;
line-height: 148px;
text-align: center;
}
.box .avatar {
width: 148px;
height: 148px;
display: block;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!