Commit 544efc71 authored by zhengke's avatar zhengke

修改

parent ffcccc22
...@@ -583,6 +583,8 @@ ...@@ -583,6 +583,8 @@
"path":"zixunList" //咨询信息 "path":"zixunList" //咨询信息
},{ },{
"path":"activeInnerDetail" //活动详情 "path":"activeInnerDetail" //活动详情
},{
"path":"newsInDetail" //新闻详情
}] } }] }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -2,15 +2,16 @@ ...@@ -2,15 +2,16 @@
.koraNewsList{ .koraNewsList{
display: flex; display: flex;
width:100%; width:100%;
height:100px;
padding:10px; padding:10px;
border-bottom: 1px solid #F4F4F4; border-bottom: 1px solid #F4F4F4;
flex:1; flex:1;
} }
.newsLeft{ .newsLeft{
width:140px; width:153px;
height:80px; height:115px;
flex-shrink:0; flex-shrink:0;
border-radius: 3px;
overflow: hidden;
} }
.newsLeft img{ .newsLeft img{
width:100%; width:100%;
...@@ -19,7 +20,7 @@ ...@@ -19,7 +20,7 @@
.koranewRight{ .koranewRight{
position: relative; position: relative;
width:100%; width:100%;
margin-left:15px; margin-left:12px;
} }
.koraDate{ .koraDate{
position: absolute; position: absolute;
...@@ -29,10 +30,10 @@ ...@@ -29,10 +30,10 @@
} }
.koraRName{ .koraRName{
color:#404040; color:#404040;
font-size:15px; font-size:14px;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 3;
overflow: hidden; overflow: hidden;
} }
.koraNewsSearch { .koraNewsSearch {
...@@ -49,7 +50,8 @@ ...@@ -49,7 +50,8 @@
color: #fff; color: #fff;
text-align: center; text-align: center;
line-height: 34px; line-height: 34px;
border-radius: 2px; border-radius: 3px;
margin-top:0.5px;
margin-right: 20px; margin-right: 20px;
display: inline-block; display: inline-block;
} }
...@@ -65,7 +67,7 @@ ...@@ -65,7 +67,7 @@
<scroll-view v-else :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" <scroll-view v-else :scroll-y="true" :enable-back-to-top="true" :enable-flex="true"
@scrolltolower="lower" :style="{ 'height': `calc(100%)`}"> @scrolltolower="lower" :style="{ 'height': `calc(100%)`}">
<view> <view>
<view class="koraNewsList" v-for="(item,index) in dataList" :key="index"> <view class="koraNewsList" v-for="(item,index) in dataList" :key="index" @click="goNewsDetail(item)">
<view class="newsLeft"> <view class="newsLeft">
<img :src="item.CoverImg" alt=""/> <img :src="item.CoverImg" alt=""/>
</view> </view>
...@@ -86,7 +88,7 @@ ...@@ -86,7 +88,7 @@
export default { export default {
data() { data() {
return { return {
pageTitle: "最新动向", pageTitle: "新闻",
msg:{ msg:{
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
...@@ -141,6 +143,13 @@ ...@@ -141,6 +143,13 @@
this.status = "nomore"; this.status = "nomore";
} }
}, },
//跳转至新闻详情
goNewsDetail(item){
console.log(item,'item');
uni.navigateTo({
url: '/pages/kotra/newsInDetail?Id=' + item.Id
});
}
} }
} }
</script> </script>
<style>
.newsInDetail .acdetailTop{
width:100%;
height:auto;
background-color: #fff;
padding:15px;
}
.newsInDetail .acdetailImg{
width:100%;
height:190px;
border-radius: 3px;
overflow: hidden;
}
.newsInDetail .acdetaiTitle{
margin:15px auto;
color:#0B0B0B;
font-size:16px;
font-weight: bold;
text-align: center;
}
.newsInDetail .acdetaiWriter{
display: flex;
justify-content: space-between;
color:#B9B9B9;
font-size:12px;
font-weight: bold;
margin-top:10px;
align-items: center;
}
.newsInDetail .acdetaiLine{
width:100%;
height:10px;
background-color: #F3F5F7;
}
.newsInDetail .acdetailBottom{
width:100%;
min-height:283px;
padding:15px;
background-color: #fff;
}
.newsInDetail .newsInDetail_Intro{
color:#404040;
font-size:14px;
line-height: 25px;
margin-top:20px;
}
</style>
<template>
<view class="newsInDetail" style="height:100vh;">
<view class="acdetailTop">
<view class="acdetailImg">
<img :src="dataList.CoverImg" alt="" style="width:100%;height:100%;"/>
</view>
<view class="acdetaiTitle">{{dataList.Title}}</view>
<view class="acdetaiWriter">
<view>行业:{{dataList.Industry}}</view>
</view>
<view class="acdetaiWriter">
<view>发布:{{dataList.PublishTimeStr}}</view>
</view>
</view>
<view class="acdetaiLine"></view>
<view class="acdetailBottom">
<u-divider color="#0B0B0B;" half-width="50" border-color="#0B0B0B" fontSize="35">详情内容</u-divider>
<view class="newsInDetail_Intro" v-html="dataList.NewsInfo"></view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
pageTitle: '新闻详情',
msg: {
Id:0
},
dataList:{}
}
},
created() {},
mounted() {
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
onLoad(option) {
this.msg.Id = option.Id;
this.getList();
},
methods: {
getList(){
this.request2({
url: "/api/AppletTrade/GetCommerceNews",
data: this.msg,
},
(res) => {
if (res.resultCode == 1) {
this.dataList = res.data
}
}
);
}
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment