You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
147 lines
3.2 KiB
147 lines
3.2 KiB
3 years ago
|
@charset "UTF-8";
|
||
|
/**
|
||
|
* 这里是uni-app内置的常用样式变量
|
||
|
*
|
||
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||
|
*
|
||
|
*/
|
||
|
/**
|
||
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||
|
*
|
||
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||
|
*/
|
||
|
/* uni.scss */
|
||
|
/* 颜色变量 */
|
||
|
/* 行为相关颜色 */
|
||
|
.sh-title-card {
|
||
|
width: 750rpx;
|
||
|
}
|
||
|
.title-box {
|
||
|
width: 710rpx;
|
||
|
height: 88rpx;
|
||
|
margin: 0 auto;
|
||
|
position: relative;
|
||
|
border-radius: 30rpx;
|
||
|
}
|
||
|
.title-box .title-bg {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
}
|
||
|
.title-box .title-text {
|
||
|
position: absolute;
|
||
|
top: 50%;
|
||
|
left: 50%;
|
||
|
-webkit-transform: translate(-50%, -50%);
|
||
|
transform: translate(-50%, -50%);
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
.goods-box {
|
||
|
width: 345rpx;
|
||
|
background: #fff;
|
||
|
padding-bottom: 20rpx;
|
||
|
border-radius: 20rpx;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
.goods-box .img-box {
|
||
|
width: 345rpx;
|
||
|
height: 345rpx;
|
||
|
overflow: hidden;
|
||
|
position: relative;
|
||
|
}
|
||
|
.goods-box .img-box .tag-img {
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
z-index: 2;
|
||
|
width: 80rpx;
|
||
|
height: 40rpx;
|
||
|
}
|
||
|
.goods-box .img-box .img {
|
||
|
width: 345rpx;
|
||
|
height: 345rpx;
|
||
|
background-color: #ccc;
|
||
|
}
|
||
|
.goods-box .tip {
|
||
|
width: 346rpx;
|
||
|
line-height: 56rpx;
|
||
|
background: #f6f2ea;
|
||
|
font-size: 22rpx;
|
||
|
font-family: PingFang SC;
|
||
|
font-weight: 400;
|
||
|
color: #a8700d;
|
||
|
padding: 0 20rpx;
|
||
|
}
|
||
|
.goods-box .title {
|
||
|
font-size: 24rpx;
|
||
|
font-family: PingFang SC;
|
||
|
font-weight: 500;
|
||
|
line-height: 36rpx;
|
||
|
height: 72rpx;
|
||
|
margin: 20rpx 20rpx 10rpx;
|
||
|
}
|
||
|
.goods-box .price-box {
|
||
|
padding: 10rpx 20rpx 0;
|
||
|
width: 344rpx;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
.goods-box .price-box .sales {
|
||
|
font-size: 20rpx;
|
||
|
font-family: PingFang SC;
|
||
|
font-weight: 400;
|
||
|
color: #999999;
|
||
|
line-height: 20rpx;
|
||
|
margin-bottom: 20rpx;
|
||
|
}
|
||
|
.goods-box .price-box .current {
|
||
|
font-size: 30rpx;
|
||
|
font-weight: 500;
|
||
|
color: #e1212b;
|
||
|
line-height: 30rpx;
|
||
|
margin-bottom: 20rpx;
|
||
|
}
|
||
|
.goods-box .price-box .current:before {
|
||
|
content: '¥';
|
||
|
font-size: 26rpx;
|
||
|
}
|
||
|
.goods-box .price-box .original {
|
||
|
font-size: 22rpx;
|
||
|
font-weight: 400;
|
||
|
text-decoration: line-through;
|
||
|
color: #999999;
|
||
|
margin-left: 14rpx;
|
||
|
line-height: 22rpx;
|
||
|
margin-bottom: 10rpx;
|
||
|
}
|
||
|
.goods-box .price-box .original:before {
|
||
|
content: '¥';
|
||
|
font-size: 20rpx;
|
||
|
}
|
||
|
.goods-box .price-box .tag-box .discount {
|
||
|
line-height: 28rpx;
|
||
|
border: 1rpx solid #e1212b;
|
||
|
border-radius: 8rpx;
|
||
|
font-size: 18rpx;
|
||
|
font-family: PingFang SC;
|
||
|
font-weight: 500;
|
||
|
color: #e1212b;
|
||
|
padding: 0 8rpx;
|
||
|
margin-right: 10rpx;
|
||
|
}
|
||
|
.hot-goods .goods-list {
|
||
|
-webkit-flex-wrap: wrap;
|
||
|
flex-wrap: wrap;
|
||
|
width: 710rpx;
|
||
|
}
|
||
|
.hot-goods .goods-list .goods-item {
|
||
|
margin-right: 20rpx;
|
||
|
margin-bottom: 20rpx;
|
||
|
width: 345rpx;
|
||
|
box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22);
|
||
|
border-radius: 20rpx;
|
||
|
}
|
||
|
.hot-goods .goods-list .goods-item:nth-child(2n) {
|
||
|
margin-right: 0;
|
||
|
}
|
||
|
|