news-list.vue
1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<template>
<view class="ComCss">
<view class="flex-box" @click="newsDetails">
<view class="leftCss">
<view class="topCss overflow-two-lines">
壳液牌发布最新版《液化天燃
气(LNS)前景》
</view>
<view class="bomCss overflow-one-lines">
<view class="overflow-one-lines"> 行业动态 </view>
<view class="">|</view>
<view class="overflow-one-lines"> 中国燃气控股有限公司 </view>
</view>
</view>
<view class="rightCss">
<u--image class="imgCss" :showLoading="true" width="232rpx" height="176rpx" radius="10" :src="src"></u--image>
</view>
</view>
</view>
</template>
<script>
export default {
name: "news-list",
props: {
},
data() {
return {
src: 'https://cdn.uviewui.com/uview/album/1.jpg'
};
},
methods:{
newsDetails(){
console.log("跳转");
uni.navigateTo({
url:'/pages/market/newsDetails'
})
}
}
}
</script>
<style lang="scss">
.ComCss {
width: 100%;
height: 176rpx;
margin: 48rpx 0;
}
.flex-box {
display: flex;
justify-content: space-between;
margin: 0 34rpx;
}
.leftCss {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
}
.topCss {
background-color: rgba(255, 255, 255, 0);
box-sizing: border-box;
font-family: '苹方 中等', '苹方', sans-serif;
color: #333333;
text-align: left;
line-height: normal;
font-size: 32rpx;
}
.bomCss {
display: flex;
background-color: rgba(255, 255, 255, 0);
box-sizing: border-box;
font-family: '苹方 中等', '苹方', sans-serif;
color: #999db0;
text-align: left;
line-height: normal;
font-size: 24rpx;
}
.rightCss {
width: 232rpx;
height: 176rpx;
}
.imgCss {
width: 232rpx;
height: 176rpx;
}
</style>