286 lines
6.6 KiB
Plaintext
286 lines
6.6 KiB
Plaintext
/**
|
||
* 这里是uni-app内置的常用样式变量
|
||
*
|
||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||
*
|
||
*/
|
||
/**
|
||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||
*
|
||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||
*/
|
||
/* 颜色变量 */
|
||
/* 行为相关颜色 */
|
||
/* 文字基本颜色 */
|
||
/* 背景颜色 */
|
||
/* 边框颜色 */
|
||
/* 尺寸变量 */
|
||
/* 文字尺寸 */
|
||
/* 图片尺寸 */
|
||
/* Border Radius */
|
||
/* 水平间距 */
|
||
/* 垂直间距 */
|
||
/* 透明度 */
|
||
/* 文章场景相关 */
|
||
.content {
|
||
background-color: #fff;
|
||
}
|
||
.head-view {
|
||
background-color: #fff;
|
||
height: 180rpx;
|
||
width: 750rpx;
|
||
}
|
||
.head-view .list {
|
||
height: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 0 20rpx;
|
||
font-size: 22rpx;
|
||
}
|
||
.head-view .list .item {
|
||
width: 120rpx;
|
||
flex-shrink: 0;
|
||
margin-right: 20rpx;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
.head-view .list .item .c-img {
|
||
height: 100rpx;
|
||
width: 100rpx;
|
||
flex-shrink: 0;
|
||
border-radius: 50%;
|
||
border: 2px solid transparent;
|
||
}
|
||
.head-view .list .item .c-text {
|
||
width: 100%;
|
||
text-align: center;
|
||
box-sizing: border-box;
|
||
padding: 2rpx 4rpx 3rpx 4rpx;
|
||
border-radius: 50rpx;
|
||
margin-top: 5rpx;
|
||
}
|
||
.head-view .list .item-active .c-img {
|
||
border: 2px solid #20b128;
|
||
}
|
||
.head-view .list .item-active .c-text {
|
||
background-color: #20b128;
|
||
color: #fff;
|
||
}
|
||
.r-btn {
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
height: 100%;
|
||
width: 60rpx;
|
||
font-size: 24rpx;
|
||
background-color: #fff;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-shadow: -10rpx 0 60rpx 1rpx rgba(0, 0, 0, 0.3);
|
||
}
|
||
.cateOne {
|
||
background-color: #fff;
|
||
}
|
||
.cateOne .head-title {
|
||
color: #666666;
|
||
font-size: 30rpx;
|
||
height: 80rpx;
|
||
line-height: 80rpx;
|
||
padding-left: 30rpx;
|
||
}
|
||
.cateOne .list {
|
||
padding: 20rpx 0;
|
||
font-size: 22rpx;
|
||
display: grid;
|
||
grid-template-columns: auto auto auto auto auto;
|
||
justify-content: center;
|
||
grid-gap: 20rpx;
|
||
}
|
||
.cateOne .list .item {
|
||
width: 120rpx;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
.cateOne .list .item .c-img {
|
||
height: 100rpx;
|
||
width: 100rpx;
|
||
flex-shrink: 0;
|
||
border-radius: 50%;
|
||
border: 2px solid transparent;
|
||
}
|
||
.cateOne .list .item .c-text {
|
||
width: 100%;
|
||
text-align: center;
|
||
box-sizing: border-box;
|
||
padding: 2rpx 4rpx 3rpx 4rpx;
|
||
border-radius: 50rpx;
|
||
margin-top: 5rpx;
|
||
}
|
||
.cateOne .list .item-active .c-img {
|
||
border: 2px solid #20b128;
|
||
}
|
||
.cateOne .list .item-active .c-text {
|
||
background-color: #20b128;
|
||
color: #fff;
|
||
}
|
||
.cateOne .classify-list {
|
||
padding: 20rpx 0;
|
||
font-size: 22rpx;
|
||
display: grid;
|
||
grid-template-columns: auto auto auto;
|
||
justify-content: center;
|
||
grid-gap: 20rpx;
|
||
}
|
||
.cateOne .classify-list .classify-list-item {
|
||
flex-shrink: 0;
|
||
text-align: center;
|
||
width: 150rpx;
|
||
height: 42rpx;
|
||
line-height: 42rpx;
|
||
background: #F6F6F6;
|
||
border-radius: 22rpx 22rpx 22rpx 22rpx;
|
||
border: 1rpx solid transparent;
|
||
}
|
||
.cateOne .classify-list .item-active {
|
||
border: 1rpx solid #20b128;
|
||
color: #20b128;
|
||
background-color: rgba(32, 177, 40, 0.1);
|
||
}
|
||
.scroll-box {
|
||
display: flex;
|
||
}
|
||
.scroll-box .left {
|
||
height: calc(100vh - var(--window-top) - var(--window-bottom) - 180rpx);
|
||
width: 170rpx;
|
||
box-sizing: border-box;
|
||
background-color: #eee;
|
||
font-size: 24rpx;
|
||
}
|
||
.scroll-box .left .item {
|
||
height: 96rpx;
|
||
line-height: 96rpx;
|
||
text-align: center;
|
||
}
|
||
.scroll-box .left .item-active {
|
||
background-color: #fff;
|
||
position: relative;
|
||
color: #20b128;
|
||
}
|
||
.scroll-box .left .item-active::before {
|
||
content: "";
|
||
background-color: #20b128;
|
||
width: 6rpx;
|
||
height: 48rpx;
|
||
border-radius: 10rpx;
|
||
position: absolute;
|
||
left: 0;
|
||
top: 50%;
|
||
transform: translate(0, -50%);
|
||
}
|
||
.scroll-box .right {
|
||
height: calc(100vh - var(--window-top) - var(--window-bottom) - 180rpx);
|
||
width: 580rpx;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
.scroll-box .right .classify {
|
||
height: 150rpx;
|
||
background-color: #fff;
|
||
border-bottom: 1rpx solid #eee;
|
||
position: relative;
|
||
font-size: 24rpx;
|
||
}
|
||
.scroll-box .right .classify .classify-list {
|
||
display: flex;
|
||
padding: 20rpx;
|
||
}
|
||
.scroll-box .right .classify .classify-list .classify-list-item {
|
||
flex-shrink: 0;
|
||
text-align: center;
|
||
width: 108rpx;
|
||
height: 42rpx;
|
||
line-height: 42rpx;
|
||
background: #F6F6F6;
|
||
border-radius: 22rpx 22rpx 22rpx 22rpx;
|
||
margin-right: 20rpx;
|
||
border: 1rpx solid transparent;
|
||
}
|
||
.scroll-box .right .classify .classify-list .item-active {
|
||
border: 1rpx solid #20b128;
|
||
color: #20b128;
|
||
background-color: rgba(32, 177, 40, 0.1);
|
||
}
|
||
.scroll-box .right .classify .done {
|
||
height: 90rpx;
|
||
width: 60rpx;
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
background-color: #fff;
|
||
}
|
||
.scroll-box .right .classify .order-by {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
align-items: center;
|
||
}
|
||
.scroll-box .right .classify .order-by .item {
|
||
padding-right: 20rpx;
|
||
}
|
||
.scroll-box .right .classify .order-by .order-active {
|
||
color: #20b128;
|
||
}
|
||
.scroll-box .right .list {
|
||
height: calc(100vh - var(--window-top) - var(--window-bottom) - 180rpx - 150rpx);
|
||
}
|
||
.scroll-box .right .list .shop-item {
|
||
padding: 20rpx;
|
||
border-bottom: 1rpx solid #eee;
|
||
background-color: #fff;
|
||
display: flex;
|
||
}
|
||
.scroll-box .right .list .shop-item .shop-img {
|
||
height: 160rpx;
|
||
width: 160rpx;
|
||
margin-right: 20rpx;
|
||
border-radius: 14rpx;
|
||
}
|
||
.scroll-box .right .list .shop-item .shop-content {
|
||
width: 380rpx;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
}
|
||
.scroll-box .right .list .shop-item .shop-content .title .name {
|
||
font-size: 28rpx;
|
||
}
|
||
.scroll-box .right .list .shop-item .shop-content .title .tip {
|
||
color: #999;
|
||
font-size: 24rpx;
|
||
margin: 12rpx 0;
|
||
}
|
||
.scroll-box .right .list .shop-item .shop-content .price {
|
||
font-size: 30rpx;
|
||
font-weight: bold;
|
||
color: #F55726;
|
||
}
|
||
.scroll-box .right .list .shop-item .shop-content .price-btn {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
}
|
||
.scroll-box .right .list .shop-item .shop-content .price-btn .btn {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.scroll-box .right .list .shop-item .shop-content .price-btn .btn .num {
|
||
width: 60rpx;
|
||
text-align: center;
|
||
} |