news-list.vue
2.18 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
96
97
98
99
100
<template>
<view class="ComCss">
<view class="flex-box" @click="newsDetails">
<view class="leftCss">
<view class="topCss overflow-two-lines">
{{newItem.title}}
</view>
<view class="bomCss overflow-one-lines">
<view class="overflow-one-lines" style="width: 130rpx;"> {{ getDictDataLabel(DICT_TYPE.SYS_PLATE_NAME, newItem.plateName) || "" }} </view>
<view class="">|</view>
<view class="overflow-one-lines"> {{newItem.organizeName || ""}} </view>
</view>
</view>
<view class="rightCss">
<u--image class="imgCss" :showLoading="true" width="232rpx" height="176rpx" radius="10" :src="newItem.pictureUrl?newItem.pictureUrl:src"></u--image>
</view>
</view>
</view>
</template>
<script>
import logoImg from '@/static/images/empty/logo.png'
export default {
name: "news-list",
props: {
newItem:{
type:Object
}
},
data() {
return {
src: logoImg
};
},
methods:{
newsDetails(){
console.log("跳转");
uni.navigateTo({
url:'/pages/market/newsDetails?id=' + this.newItem.infoId
})
}
}
}
</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;
justify-content: space-between;
align-items: center;
height:32rpx;
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>