123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <template>
- <view>
- <view class="list">
- <view class="item" v-for="item in 4">
- <view class="left">
- <image
- src="https://cdn.colorhub.me/139XSdzUuzRcgRk1ghrmwbWetE762tokLPfgdsEoE94/rs:auto:280:0:0/g:ce/bG9jYWw6Ly8vOWYv/ZTQvMzE3OTEzMzcy/ZWU5ODI4OTU5MDgw/MmVjMjViNWI2YjQy/MzNkOWZlNC5qcGVn.jpg"
- mode="aspectFill"></image>
- </view>
- <view class="right">
- <view class="title">
- <view class="name">梅花井煤矿</view>
- <view class="tip">拼图</view>
- </view>
- <view class="text">标题标题标题标题标题标题标题标题标题标题标题</view>
- <view class="content">
- <view class="time">2021.12.03</view>
- <view class="box">
- <view class="line">
- <view class="line_box"></view>
- </view>
- <view class="num">36%</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: "t-o-news-tab-3",
- data() {
- return {
- };
- }
- }
- </script>
- <style lang="scss">
- .list {
- box-sizing: border-box;
- padding: 0 25rpx;
- .item {
- width: 700rpx;
- margin-bottom: 20rpx;
- box-sizing: border-box;
- padding: 20rpx;
- padding-top: 24rpx;
- background-color: #FFFFFF;
- display: flex;
- .left {
- width: 180rpx;
- image {
- width: 180rpx;
- height: 180rpx;
- border-radius: 10rpx;
- }
- }
- .right {
- width: 450rpx;
- margin-left: 20rpx;
- .title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .name {
- font-size: 26rpx;
- color: #f39800;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .tip {
- width: 75rpx;
- text-align: center;
- font-size: 24rpx;
- color: #f39800;
- border: 1rpx solid #f39800;
- border-radius: 10rpx;
- }
- }
- .text {
- height: 80rpx;
- margin-top: 8rpx;
- font-size: 28rpx;
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .content {
- .time {
- margin-right: 60rpx;
- text-align: right;
- font-size: 24rpx;
- color: #999999;
- }
- .box {
- display: flex;
- align-items: center;
- .line {
- width: 400rpx;
- height: 6rpx;
- background-color: #E4E4E4;
- border-radius: 10rpx;
- .line_box {
- width: 36%;
- height: 6rpx;
- background-color: #009FE8;
- border-radius: 10rpx;
- }
- }
- .num {
- margin-left: 10rpx;
- font-size: 24rpx;
- color: #009FE8;
- }
- }
- }
- }
- }
- }
- </style>
|