purchase-let/unpackage/dist/dev/mp-weixin/pages/index/index.wxss

353 lines
7.8 KiB
Plaintext
Raw Normal View History

2024-04-25 18:02:30 +08:00
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.content {
background-color: #fff;
}
2024-04-29 10:44:50 +08:00
.navbar {
padding: 0 20rpx;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 22rpx;
color: #777;
}
.navbar .nav-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.navbar .nav-item image {
height: 40rpx;
width: 40rpx;
}
2024-04-25 18:02:30 +08:00
.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;
2024-04-28 18:08:57 +08:00
overflow: hidden;
2024-04-25 18:02:30 +08:00
}
.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 {
2024-04-28 18:08:57 +08:00
padding: 20rpx 20rpx;
2024-04-25 18:02:30 +08:00
font-size: 22rpx;
display: grid;
2024-04-28 18:08:57 +08:00
grid-template-columns: repeat(5, 1fr);
2024-04-25 18:02:30 +08:00
justify-content: center;
grid-gap: 20rpx;
}
.cateOne .list .item {
width: 120rpx;
2024-04-28 18:08:57 +08:00
margin: 0 auto;
2024-04-25 18:02:30 +08:00
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;
2024-04-28 18:08:57 +08:00
overflow: hidden;
2024-04-25 18:02:30 +08:00
}
.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 {
2024-04-28 18:08:57 +08:00
padding: 20rpx 30rpx;
2024-04-25 18:02:30 +08:00
font-size: 22rpx;
display: grid;
2024-04-28 18:08:57 +08:00
grid-template-columns: repeat(3, 1fr);
2024-04-25 18:02:30 +08:00
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 {
2024-04-29 10:44:50 +08:00
height: calc(100vh - var(--window-top) - var(--window-bottom) - 500rpx);
2024-04-25 18:02:30 +08:00
width: 170rpx;
box-sizing: border-box;
2024-04-28 18:08:57 +08:00
background-color: #f6f6f6;
2024-04-25 18:02:30 +08:00
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 {
2024-04-29 10:44:50 +08:00
height: calc(100vh - var(--window-top) - 500rpx);
2024-04-25 18:02:30 +08:00
width: 580rpx;
box-sizing: border-box;
position: relative;
overflow: hidden;
}
.scroll-box .right .classify {
height: 150rpx;
background-color: #fff;
2024-04-28 18:08:57 +08:00
border-bottom: 1rpx solid #f6f6f6;
2024-04-25 18:02:30 +08:00
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;
}
2024-04-27 18:02:43 +08:00
.scroll-box .right .classify .order-by .order-active {
color: #20b128;
}
2024-04-25 18:02:30 +08:00
.scroll-box .right .list {
2024-04-29 10:44:50 +08:00
height: calc(100vh - var(--window-top) - 600rpx);
2024-04-25 18:02:30 +08:00
}
.scroll-box .right .list .shop-item {
padding: 20rpx;
2024-04-28 18:08:57 +08:00
border-bottom: 1rpx solid #f6f6f6;
2024-04-25 18:02:30 +08:00
background-color: #fff;
display: flex;
}
.scroll-box .right .list .shop-item .shop-img {
height: 160rpx;
width: 160rpx;
margin-right: 20rpx;
border-radius: 14rpx;
2024-04-28 18:08:57 +08:00
overflow: hidden;
2024-04-25 18:02:30 +08:00
}
.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;
2024-04-29 10:44:50 +08:00
}
.fiexd-btn-box {
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
height: 140rpx;
height: calc(constant(safe-area-inset-bottom) + 140rpx);
/* 适用于iOS设备 */
height: calc(env(safe-area-inset-bottom) + 140rpx);
/* 适用于Android设备 */
padding-top: 40rpx;
}
.fiexd-btn-box .price-info .row {
display: flex;
font-size: 26rpx;
align-items: center;
}
.fiexd-btn-box .price-info .row > view {
margin-right: 15rpx;
}
.fiexd-btn-box .price-info .row .price {
color: #F55726;
}
.fiexd-btn-box .btn {
width: 200rpx;
}
.fiexd-btn-box .cart {
position: absolute;
top: -40rpx;
left: 40rpx;
}
.fiexd-btn-box .cart image {
width: 80rpx;
height: 80rpx;
2024-04-29 18:14:58 +08:00
}
.fiexd-btn-box .cart .badge {
position: absolute;
top: 0;
right: 0;
background-color: #F55726;
color: #fff;
border-radius: 50%;
width: 26rpx;
height: 26rpx;
text-align: center;
line-height: 26rpx;
font-size: 18rpx;
2024-04-25 18:02:30 +08:00
}