<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>
