99 lines
2.2 KiB
Vue
99 lines
2.2 KiB
Vue
|
|
<template>
|
||
|
|
<view class="hot-section">
|
||
|
|
<view class="hot-top">
|
||
|
|
<view class="title">风口概念</view>
|
||
|
|
<view class="time">近一个月热门</view>
|
||
|
|
</view>
|
||
|
|
<view class="tag-box">
|
||
|
|
<view class="tag tag-active">医药生物</view>
|
||
|
|
<view class="tag">医药生物</view>
|
||
|
|
<view class="tag">医药生物</view>
|
||
|
|
<view class="tag">医药生物</view>
|
||
|
|
</view>
|
||
|
|
<view class="tag-content">
|
||
|
|
<view class="content"
|
||
|
|
>据称中国科技巨头赴海外训练AI模型以获取英伟达芯片据称中国科技巨头赴海外训练AI模型以获取英伟达芯片据称中国科技巨头赴海外训练AI模型以获取英伟达芯片
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</view>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { ref } from "vue";
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style scoped lang="scss">
|
||
|
|
.hot-section {
|
||
|
|
width: 710rpx;
|
||
|
|
height: 257rpx;
|
||
|
|
margin: 0 20rpx 20rpx;
|
||
|
|
padding: 30rpx 30rpx 0 30rpx;
|
||
|
|
background-image: url("@/assets/images/page/5_pic@2x.png");
|
||
|
|
background-repeat: no-repeat;
|
||
|
|
background-size: 100% auto;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
.hot-top {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
margin-bottom: 24rpx;
|
||
|
|
|
||
|
|
.title {
|
||
|
|
font-family: "AlimamaShuHeiTi, AlimamaShuHeiTi";
|
||
|
|
font-weight: bold;
|
||
|
|
font-size: 32rpx;
|
||
|
|
color: #111111;
|
||
|
|
line-height: 45rpx;
|
||
|
|
}
|
||
|
|
.time {
|
||
|
|
font-family: "PingFangSC, PingFang SC";
|
||
|
|
font-weight: 400;
|
||
|
|
font-size: 24rpx;
|
||
|
|
color: #666666;
|
||
|
|
line-height: 33rpx;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.tag-box {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10rpx;
|
||
|
|
margin-bottom: 20rpx;
|
||
|
|
|
||
|
|
.tag {
|
||
|
|
position: relative;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
padding: 2rpx 8rpx;
|
||
|
|
border-radius: 4rpx;
|
||
|
|
border: 1px solid #bb875d;
|
||
|
|
font-size: 22rpx;
|
||
|
|
color: #c18252;
|
||
|
|
line-height: 30rpx;
|
||
|
|
text-align: left;
|
||
|
|
font-style: normal;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.tag-content {
|
||
|
|
width: 100%;
|
||
|
|
|
||
|
|
.content {
|
||
|
|
display: -webkit-box;
|
||
|
|
-webkit-line-clamp: 2;
|
||
|
|
-webkit-box-orient: vertical;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
word-break: break-all;
|
||
|
|
font-family: "PingFangSC, PingFang SC";
|
||
|
|
font-weight: 500;
|
||
|
|
font-size: 28rpx;
|
||
|
|
color: #111111;
|
||
|
|
line-height: 40rpx;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|