Commit 50dd1501 by xinla

基础类文件结构调整,粘性底部等

1 parent a42bffd7
/**
* 通用css样式布局处理
*/
*,
*:before,
*:after {
box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
blockquote,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
fieldset,
legend,
button,
input,
textarea,
th,
td {
margin: 0;
padding: 0;
}
html {
height: 100%;
font-size: 14px;
line-height: 1.15;
color: #333;
}
body {
height: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
overflow: hidden;
}
li {
list-style: none;
}
/** 原子类 **/
/* flex */
.flex {
display: flex !important;
}
.fxauto {
flex: auto !important;
}
.fxnone {
flex: none !important;
}
.fxbw {
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.fcbw {
display: flex;
align-items: center;
justify-content: space-between;
}
.ais {
align-items: stretch !important;
}
.ait {
align-items: flex-start !important;
}
.aic {
align-items: center !important;
}
/* align */
.fl {
float: left;
position: relative;
}
.fr {
float: right;
position: relative;
}
.al {
text-align: left;
}
.ac {
text-align: center;
}
.ar {
text-align: right;
}
/* padding 5px series */
.pt5 {
padding-top: 5px;
}
.pr5 {
padding-right: 5px;
}
.pb5 {
padding-bottom: 5px;
}
.pl5 {
padding-left: 5px;
}
.pad5 {
padding: 5px;
}
/* padding 10px series */
.pt10 {
padding-top: 10px;
}
.pr10 {
padding-right: 10px;
}
.pb10 {
padding-bottom: 10px;
}
.pl10 {
padding-left: 10px;
}
.pad10 {
padding: 10px;
}
/* padding 20px series */
.pt20 {
padding-top: 20px;
}
.pr20 {
padding-right: 20px;
}
.pb20 {
padding-bottom: 20px;
}
.pl20 {
padding-left: 20px;
}
.pad20 {
padding: 20px;
}
/* margin 5px series */
.mt5 {
margin-top: 5px;
}
.mr5 {
margin-right: 5px;
}
.mb5 {
margin-bottom: 5px;
}
.ml5 {
margin-left: 5px;
}
.mar5 {
margin: 5px;
}
/* margin 10px series */
.mt10 {
margin-top: 10px;
}
.mr10 {
margin-right: 10px;
}
.mb10 {
margin-bottom: 10px;
}
.ml10 {
margin-left: 10px;
}
.mar10 {
margin: 10px;
}
/* margin 15px series */
.mt15 {
margin-top: 15px;
}
.mr15 {
margin-right: 15px;
}
.mb15 {
margin-bottom: 15px;
}
.ml15 {
margin-left: 15px;
}
.ml15 {
margin-left: 15px;
}
/* margin 20px series */
.mt20 {
margin-top: 20px;
}
.mr20 {
margin-right: 20px;
}
.mb20 {
margin-bottom: 20px;
}
.ml20 {
margin-left: 20px;
}
.mar20 {
margin: 20px;
}
/* . */
.mb8 {
margin-bottom: 8px !important;
}
.mt0 {
margin-top: 0 !important;
}
.mb0 {
margin-bottom: 0 !important;
}
.cp {
cursor: pointer !important;
}
.lh1 {
line-height: 1 !important;
}
.hide {
display: none !important;
}
.bgw {
background: white !important;
}
.bgnone {
background: none !important;
}
.overhide {
overflow: hidden !important;
}
.overauto {
overflow: auto !important;
}
.blod {
font-weight: bold !important;
}
/* bfc模型 / 闭合清楚浮动 */
.bfc-o {
overflow: hidden;
position: relative;
}
.bfc-d {
display: inline-block;
vertical-align: top;
position: relative;
}
.bfc-p {
position: absolute;
}
/* fixed */
.tf,
.bf {
position: fixed;
width: 100%;
left: 0;
height: 50px;
z-index: 999;
}
.tf {
top: 0;
}
.bf {
bottom: 0;
}
/* mask */
.mask {
position: fixed;
width: 100%;
height: 100%;
background: rgba(39, 39, 39, 0.76);
left: 0;
bottom: 0;
margin: auto;
z-index: 9;
}
/* 上下左右居中 */
.cc {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
overflow: auto;
}
/* 单行文字溢出省略号 */
.toe {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* pc端主体显示宽度区域 */
.main-size {
min-width: 1366px;
max-width: 1920px;
margin: 0 auto;
}
/* 暗黑模式 Dark mode */
@media (prefers-color-scheme: dark) {
body,
img,
video {
filter: invert(1) hue-rotate(180deg);
}
/* 不使用暗黑模式 */
.no-dark {
position: relative;
}
.no-dark::before {
content: ' ';
position: absolute;
display: block;
height: 100%;
width: 100%;
backdrop-filter: invert(1) hue-rotate(180deg);
}
}
...@@ -79,10 +79,18 @@ export default { ...@@ -79,10 +79,18 @@ export default {
// } // }
.app-main { .app-main {
position: relative; position: relative;
overflow-y: hidden;
flex: auto;
}
.page {
// background: #fff;
// border-radius: var(--border-radius-big);
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;
max-height: calc(100% - 20px);
margin: 20px 0 0; margin: 20px 0 0;
padding: 0 20px; padding: 0 20px;
flex: auto;
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
visibility: hidden; visibility: hidden;
} }
...@@ -90,12 +98,6 @@ export default { ...@@ -90,12 +98,6 @@ export default {
visibility: visible; visibility: visible;
} }
} }
.page {
// background: #fff;
border-radius: var(--border-radius-big);
overflow: hidden;
}
.fixed-header + .app-main { .fixed-header + .app-main {
padding-top: 50px; padding-top: 50px;
} }
......
...@@ -249,7 +249,7 @@ export default { ...@@ -249,7 +249,7 @@ export default {
// background: linear-gradient(315deg, #07c160 0%, #90de45 100%); // background: linear-gradient(315deg, #07c160 0%, #90de45 100%);
// box-shadow: 0px 15px 20px 0px rgba(64, 64, 64, 0.12); // box-shadow: 0px 15px 20px 0px rgba(64, 64, 64, 0.12);
// border-radius: var(--border-radius); // border-radius: var(--border-radius);
margin: 0 0 30px; margin: 0 0 5vh;
display: grid; display: grid;
grid: auto/auto auto auto; grid: auto/auto auto auto;
justify-content: space-evenly; justify-content: space-evenly;
......
/** @import url(/static/common.css);
* 通用css样式布局处理
*/
*,
*:before,
*:after {
box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
blockquote,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
fieldset,
legend,
button,
input,
textarea,
th,
td {
margin: 0;
padding: 0;
}
html { /* 可以在此定义适用于自己团队的项目型基础公共类 */
height: 100%;
font-size: 14px;
line-height: 1.15;
color: #333;
}
body {
height: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
overflow: hidden;
}
li {
list-style: none;
}
/** 原子类 **/
/* flex */
.flex {
display: flex;
}
.fxat {
flex: auto;
}
.fxbw {
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.fcbw {
display: flex;
align-items: center;
justify-content: space-between;
}
.ais {
align-items: stretch;
}
.ait {
align-items: flex-start;
}
.aic {
align-items: center;
}
/* align */
.fl {
float: left;
position: relative;
}
.fr {
float: right;
position: relative;
}
.al {
text-align: left;
}
.ac {
text-align: center;
}
.ar {
text-align: right;
}
/* padding 5px series */
.pt5 {
padding-top: 5px;
}
.pr5 {
padding-right: 5px;
}
.pb5 {
padding-bottom: 5px;
}
.pl5 {
padding-left: 5px;
}
.pad5 {
padding: 5px;
}
/* padding 10px series */
.pt10 {
padding-top: 10px;
}
.pr10 {
padding-right: 10px;
}
.pb10 {
padding-bottom: 10px;
}
.pl10 {
padding-left: 10px;
}
.pad10 {
padding: 10px;
}
/* padding 20px series */
.pt20 {
padding-top: 20px;
}
.pr20 {
padding-right: 20px;
}
.pb20 {
padding-bottom: 20px;
}
.pl20 {
padding-left: 20px;
}
.pad20 {
padding: 20px;
}
/* margin 5px series */
.mt5 {
margin-top: 5px;
}
.mr5 {
margin-right: 5px;
}
.mb5 {
margin-bottom: 5px;
}
.ml5 {
margin-left: 5px;
}
.mar5 {
margin: 5px;
}
/* margin 10px series */
.mt10 {
margin-top: 10px;
}
.mr10 {
margin-right: 10px;
}
.mb10 {
margin-bottom: 10px;
}
.ml10 {
margin-left: 10px;
}
.mar10 {
margin: 10px;
}
/* margin 15px series */
.mt15 {
margin-top: 15px;
}
.mr15 {
margin-right: 15px;
}
.mb15 {
margin-bottom: 15px;
}
.ml15 {
margin-left: 15px;
}
.ml15 {
margin-left: 15px;
}
/* margin 20px series */
.mt20 {
margin-top: 20px;
}
.mr20 {
margin-right: 20px;
}
.mb20 {
margin-bottom: 20px;
}
.ml20 {
margin-left: 20px;
}
.mar20 {
margin: 20px;
}
/* . */
.mb8 {
margin-bottom: 8px;
}
.mt0 {
margin-top: 0 !important;
}
.mb0 {
margin-bottom: 0 !important;
}
.cp {
cursor: pointer;
}
.lh1 {
line-height: 1;
}
.hide {
display: none;
}
.bgw {
background: white;
}
.bgnone {
background: none !important;
}
.blod {
font-weight: bold;
}
/* bfc模型 / 闭合清楚浮动 */
.bfc-o {
overflow: hidden;
position: relative;
}
.bfc-d {
display: inline-block;
vertical-align: top;
position: relative;
}
.bfc-p {
position: absolute;
}
/* fixed */
.tf,
.bf {
position: fixed;
width: 100%;
left: 0;
height: 50px;
z-index: 999;
}
.tf {
top: 0;
}
.bf {
bottom: 0;
}
/* mask */
.mask {
position: fixed;
width: 100%;
height: 100%;
background: rgba(39, 39, 39, 0.76);
left: 0;
bottom: 0;
margin: auto;
z-index: 9;
}
/* 上下左右居中 */
.cc {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
overflow: auto;
}
/* 单行文字溢出省略号 */
.toe {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* pc端主体显示宽度区域 */
.main-size {
min-width: 1366px;
max-width: 1920px;
margin: 0 auto;
}
/* 暗黑模式 Dark mode */
@media (prefers-color-scheme: dark) {
body,
img,
video {
filter: invert(1) hue-rotate(180deg);
}
/* 不使用暗黑模式 */
.no-dark {
position: relative;
}
.no-dark::before {
content: ' ';
position: absolute;
display: block;
height: 100%;
width: 100%;
backdrop-filter: invert(1) hue-rotate(180deg);
}
}
...@@ -215,6 +215,19 @@ div:focus { ...@@ -215,6 +215,19 @@ div:focus {
&tip-color { &tip-color {
color: #999; color: #999;
} }
// 粘性底部
&footer-sticky {
position: sticky;
display: flex;
align-items: center;
justify-content: center;
height: 60px;
bottom: 0;
background: #fff;
box-shadow: 0px -4px 20px 0px rgba(28, 49, 111, 0.1);
border-radius: var(--border-radius-big);
margin-top: var(--card-margin);
}
&pad20 { &pad20 {
padding: 20px; padding: 20px;
......
<template> <template>
<div class="flex" v-loading="loading"> <div class="flex" v-loading="loading">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card fxat mr20"> <el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card fxauto mr20">
<el-form-item label="活码名称" prop="taskName"> <el-form-item label="活码名称" prop="taskName">
<el-input v-model="form.taskName" maxlength="30" show-word-limit placeholder="请输入名称" clearable /> <el-input v-model="form.taskName" maxlength="30" show-word-limit placeholder="请输入名称" clearable />
</el-form-item> </el-form-item>
......
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
<template> <template>
<div class="flex" v-loading="loading"> <div class="flex" v-loading="loading">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card fxat mr20"> <el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card fxauto mr20">
<el-form-item label="活码名称" prop="codeName"> <el-form-item label="活码名称" prop="codeName">
<el-input v-model="form.codeName" maxlength="30" show-word-limit placeholder="请输入" clearable></el-input> <el-input v-model="form.codeName" maxlength="30" show-word-limit placeholder="请输入" clearable></el-input>
</el-form-item> </el-form-item>
......
<template> <template>
<div class="flex" v-loading="loading"> <div class="flex" v-loading="loading">
<el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card fxat mr20"> <el-form :model="form" ref="form" :rules="rules" label-width="100px" class="g-card fxauto mr20">
<el-form-item label="任务名称" prop="taskName"> <el-form-item label="任务名称" prop="taskName">
<el-input <el-input
type="textarea" type="textarea"
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
</script> </script>
<template> <template>
<div class="flex" v-loading="loading"> <div class="flex" v-loading="loading">
<el-form :model="form" ref="form" label-width="100px" class="g-card fxat mr20"> <el-form :model="form" ref="form" label-width="100px" class="g-card fxauto mr20">
<el-form-item label="类型" prop="codeType"> <el-form-item label="类型" prop="codeType">
<el-radio-group v-model="form.codeType" @change="codeTypeChange"> <el-radio-group v-model="form.codeType" @change="codeTypeChange">
<el-radio v-for="(value, key, index) in type" :key="index" :label="+key">{{ value }}</el-radio> <el-radio v-for="(value, key, index) in type" :key="index" :label="+key">{{ value }}</el-radio>
......
...@@ -109,11 +109,11 @@ ...@@ -109,11 +109,11 @@
</template> </template>
</el-form-item> </el-form-item>
</div> </div>
<el-form-item style="text-align: right" v-if="!isDetail"> </el-form>
<div class="g-footer-sticky" v-if="!isDetail">
<el-button plain @click="cancelFn">取消</el-button> <el-button plain @click="cancelFn">取消</el-button>
<el-button type="primary" @click="submitFn" :loading="submitLoading" :disabled="submitLoading">确定</el-button> <el-button type="primary" @click="submitFn" :loading="submitLoading" :disabled="submitLoading">确定</el-button>
</el-form-item> </div>
</el-form>
<!-- <SelectWeUser <!-- <SelectWeUser
key="123" key="123"
:visible.sync="dialogVisibleSelectUser" :visible.sync="dialogVisibleSelectUser"
......
<template> <template>
<div> <div>
<div class="tab flex"> <div class="tab flex">
<div class="g-card mr20 fxat"> <div class="g-card mr20 fxauto">
<div class="g-card-title"> <div class="g-card-title">
门店导购码 门店导购码
<span class="desc mr10">根据客户最近位置,引导添加最近门店的导购</span> <span class="desc mr10">根据客户最近位置,引导添加最近门店的导购</span>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="g-card mt0 fxat"> <div class="g-card mt0 fxauto">
<div class="g-card-title"> <div class="g-card-title">
门店群活码 门店群活码
<span class="desc mr10">根据客户最近位置,引导添加最近门店的客户群</span> <span class="desc mr10">根据客户最近位置,引导添加最近门店的客户群</span>
......
...@@ -97,14 +97,14 @@ export default { ...@@ -97,14 +97,14 @@ export default {
</script> </script>
<template> <template>
<el-container v-loading="loading"> <el-container direction="vertical" v-loading="loading">
<el-header class="g-card mb10" height="108px"> <div class="g-card fxnone">
<el-steps :active="currentActive" align-center finish-status="success"> <el-steps :active="currentActive" align-center finish-status="success">
<el-step title="短链类型"></el-step> <el-step title="短链类型"></el-step>
<el-step title="内容设置"></el-step> <el-step title="内容设置"></el-step>
<el-step title="生成短链"></el-step> <el-step title="生成短链"></el-step>
</el-steps> </el-steps>
</el-header> </div>
<el-form v-show="currentActive == 0" label-suffix=":" label-width="" class="g-card" style="padding-right: 18%"> <el-form v-show="currentActive == 0" label-suffix=":" label-width="" class="g-card" style="padding-right: 18%">
<el-form-item label="跳转类型"> <el-form-item label="跳转类型">
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
</div> </div>
</div> </div>
<el-footer class="mt20 ar" style="padding: 0" height=""> <div class="g-footer-sticky">
<template v-if="currentActive == 0"> <template v-if="currentActive == 0">
<el-button plain @click="$router.back()">取消</el-button> <el-button plain @click="$router.back()">取消</el-button>
<el-button type="primary" @click="goStep(currentActive++)">下一步</el-button> <el-button type="primary" @click="goStep(currentActive++)">下一步</el-button>
...@@ -182,7 +182,7 @@ export default { ...@@ -182,7 +182,7 @@ export default {
<template v-else-if="currentActive == 2"> <template v-else-if="currentActive == 2">
<el-button type="primary" @click="$router.back()">完成</el-button> <el-button type="primary" @click="$router.back()">完成</el-button>
</template> </template>
</el-footer> </div>
</el-container> </el-container>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!