<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">
		<template v-if="type==0">
			<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>
		</template>
		<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:{},
				type:0
			}
		},
		created() {},
		mounted() {
			
		},
		onLoad(option) {
			if(option.t){
				this.type=option.t
			}
			this.pageTitle = this.type==0?this.pageTitle:'投诉建议详情'
			this.msg.Id = option.Id;
			this.getList();
			uni.setNavigationBarTitle({
				title: this.pageTitle,
			});
		},
		methods: {
			getList(){
				this.request2({
						url: "/api/AppletTrade/GetCommerceAsk",
						data: this.msg,
					},
					(res) => {
						if (res.resultCode == 1) {
							this.dataList = res.data;
						}
					}
				);
			}
		}
	}
</script>