feat(WechatSmallProject): 新增 微信小程序 课程(包含实验1-4)
This commit is contained in:
74
WechatSmallProject/test4/pages/shoplist/shoplist.wxss
Normal file
74
WechatSmallProject/test4/pages/shoplist/shoplist.wxss
Normal file
@@ -0,0 +1,74 @@
|
||||
/* 页面整体 */
|
||||
page {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
/* 列表项 */
|
||||
.shop-item {
|
||||
display: flex;
|
||||
padding: 20rpx;
|
||||
margin: 20rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 16rpx;
|
||||
box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
/* 图片区域 */
|
||||
.thumb {
|
||||
width: 180rpx;
|
||||
height: 180rpx;
|
||||
margin-right: 20rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.thumb image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 12rpx;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
/* 右侧信息 */
|
||||
.info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* 标题 */
|
||||
.shop-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
margin-bottom: 10rpx;
|
||||
|
||||
/* 超出两行省略 */
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 文字通用 */
|
||||
.info text {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
|
||||
/* 电话高亮 */
|
||||
.info text:nth-child(2) {
|
||||
color: #2a7fff;
|
||||
}
|
||||
|
||||
/* 地址稍微淡一点 */
|
||||
.info text:nth-child(3) {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* 营业时间 */
|
||||
.info text:nth-child(4) {
|
||||
color: #999;
|
||||
font-size: 22rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user