.pageHome { width: 100%; height: 100vh; overflow: hidden; .pageIndex { width: 100%; height: calc(100vh - 190px); padding: 0 10px; box-sizing: border-box; background-color: #fff; .tabs { height: 40px; border-bottom: 1px solid #f0f0f0; color: #333; display: flex; justify-content: space-between; align-items: center; .tab { width: 50%; display: flex; justify-content: center; height: 100%; font-size: 14px; line-height: 40px; font-weight: 600; text { position: relative; height: 100%; &:before { content: ''; position: absolute; bottom: -1rpx; left: 0; right: 0; height: 2px; background-color: #EB5A10; visibility: hidden; } } } .active { color: #EB5A10; text { &:before { visibility: visible; } } } } .search { margin: 10px 0; display: flex; justify-content: space-between; align-items: center; .icon { width: 30px; height: 30px; margin-left: 6px; } } .content { height: calc(100% - 90px); box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch; .main { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; padding-bottom: 5px; } .infoList { border-radius: 5px; background-color: #fff; box-sizing: border-box; overflow: hidden; border: 1px solid #f0f0f0; position: relative; .infoImg { width: 100%; height: 90px; } .info-box { line-height: 20px; font-size: 12px; color: #999999; padding: 0 10px 5px; .name { line-height: 24px; font-size: 14px; font-weight: 600; color: #161616; overflow: hidden; //超出隐藏 text-overflow: ellipsis; //超出文本设置为... white-space: nowrap; } .describe { height: 20px; overflow: hidden; //超出隐藏 text-overflow: ellipsis; //超出文本设置为... white-space: nowrap; } .info { height: 20px; display: flex; justify-content: space-between; align-content: center; } } .tags { position: absolute; left: 0; width: 100%; overflow: hidden; padding: 0 10px; top: 0; text-align: right; box-sizing: border-box; .tag { display: inline-block; width: 42px; height: 16px; margin-left: 10px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 400; color: #fff; } } } } } }