<style>
	.zixunDetail{
		background-color: #fff;
		padding:0 15px 15px 15px;
	}
	.zixunDetail .ziDetailList{
		display: flex;
		width:100%;
		border-bottom:1px solid #F2F3F6;
		height:50px;
		font-size:14px;
		align-items: center;
		justify-content: space-between;
	}
	.zixunDetail .ziproDeleft{
		color:#7F7F7F;
		margin-left:5px;
	}
	.zixunDetail .ziproDeRight{
		color:#111111;
		margin-right:5px;
	}
	.zixunDetail .zixunQuestion{
		min-height: 150px;
		background-color: #F7F7F7;
		padding:10px;
		color:#111111;
		line-height: 22px;
		border-radius: 3px;
		font-size: 13px;
	}
</style>
<template>
	<view class="zixunDetail">
		<view class="ziDetailList">
			<view class="ziproDeleft">公司名称</view>
			<view class="ziproDeRight">{{dataList.CompanyName}}</view>
		</view>
		<view class="ziDetailList">
			<view class="ziproDeleft">联系人</view>
			<view class="ziproDeRight">{{dataList.Principal}}</view>
		</view>
		<view class="ziDetailList">
			<view class="ziproDeleft">联系方式</view>
			<view class="ziproDeRight">{{dataList.Mobile}}</view>
		</view>
		<view class="ziDetailList">
			<view class="ziproDeleft">E-mail</view>
			<view class="ziproDeRight">{{dataList.EMail}}</view>
		</view>
		<view class="ziDetailList">
			<view class="ziproDeleft">FAT海关编码</view>
			<view class="ziproDeRight">{{dataList.FatCode}}</view>
		</view>
		<view class="ziDetailList">
			<view class="ziproDeleft">咨询标题</view>
			<view class="ziproDeRight">{{dataList.FatTitle}}</view>
		</view>
		<view class="ziDetailList" style="border-bottom:0;">
			<view class="ziproDeleft">咨询问题</view>
		</view>
		<view class="zixunQuestion">
			{{dataList.FatQuestion}}
		</view>
		<template v-if="dataList.AskStatus==1">
			<view class="ziDetailList">
				<view class="ziproDeleft">回复状态</view>
				<view class="ziproDeRight">{{dataList.AskStatusStr}}</view>
			</view>
			<view class="ziDetailList" style="border-bottom:0;">
				<view class="ziproDeleft">回复内容</view>
			</view>
			<view class="zixunQuestion">
				{{dataList.FatContent}}
			</view>
		</template>
	</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/GetCommerceAsk",
						data: this.msg,
					},
					(res) => {
						if (res.resultCode == 1) {
							this.dataList = res.data;
						}
					}
				);
			}
		}
	}
</script>