<template>
	<div class="app-container qyzx-details">
		<div class="bottomlist">
			<ul class="bottomlist-content">
				<li class="bottomlist-list"  >
					<p class="list-titel" v-html="textList.title">
						 <!-- <div  v-else-if="item.projectName" ></div> -->
					</p>
					<div class="content-label">
						<span class="list-label list-label-zb" v-if="textList.province||textList.city||textList.district">
							{{textList.province}}
							<template v-if="textList.city">
								 -{{textList.city}}
							</template>
							<template v-if="textList.district">
								  -{{textList.district}}
							</template>
							
						</span>
						<span class="list-label list-label-lx" v-if="textList.objectType">{{textList.objectType}}</span>
						<span class="list-label list-label-lx" v-if="textList.buildingProjectType">{{textList.buildingProjectType}}</span>
						
					</div>
					<div  class="list-content">
						<p class="list-content-text">
							<span>招采单位：</span>
							<span v-if="textList.tenderee">
								<router-link  :to="scope.row.uipId?'/enterprise/' + encodeStr(scope.row.uipId) :'/company/' + encodeStr(scope.row.tendereeId) " tag="a" class="list-titel-a blue" v-html="scope.row.tenderee"></router-link>
							</span>
							<span v-else>--</span>
						</p>
						<p class="list-content-text">
							<span>预算金款：</span>
							<span v-if="textList.planTenderAmount">{{textList.planTenderAmount}}万元</span>
							<span  v-else>--</span>
						</p>
						<p class="list-content-text">
							<span>资金来源：</span>
							<span >{{textList.projecetCapitalSource||'--'}}</span>
							
						</p>
					</div>
					
					<div  class="list-content">
						<p class="list-content-text">
							<span>发布时间：</span>
							<span >{{textList.issueTime||'--'}}</span>
						</p>
						<p class="list-content-text">
							<span>预计招标时间：</span>
							<span >{{textList.planTenderDateStart||'--'}}</span>
						</p>
						<p class="list-content-text">
							<span>来源网站：</span>
							<span >{{textList.sourceName||'--'}}</span>
						</p>
					</div>
					
				</li>
			</ul>

		</div>

		<div class="content main3">
			<div class="common-title">原文信息</div>
			<div class="list-content-img"  @mouseenter="showimg=false" @mouseleave="showimg=true">
				<img v-if="showimg" src="@/assets/images/bxpro/original1.png">
				<img v-else src="@/assets/images/bxpro/original.png">
				<span>
					<a :href="textList.url"  target="_blank">原文链接</a>
				</span>
			</div>
			<div class="main3-box" v-html="textList.content">
				
				
			
			</div>
		</div>
	
	
	</div>
</template>

<script>
	import api from '@/api/radar/radar.js';
	import "@/assets/styles/public.css";
	import {encodeStr} from "@/assets/js/common.js"
	export default {

		name: 'BiddingDetails',
		data() {
			return {
				encodeStr,
				id: '',
				textList: {},
				showimg:true
			}
		},
		created() {
			this.id = this.$route.params.id;
			this.bidPlanDetail();
		},
		methods: {
			bidPlanDetail() {
				api.bidPlanDetail({
					id: this.id
				}).then(res => {
					// console.log(res);
					this.textList = res.data;
				}).catch(error => {
					
				});
			},

		}
	}
</script>

<style lang="scss" scoped>
	.bottomlist {
		width: 100%;
		background-color: #FFFFFF;

		border-radius: 4px 4px 4px 4px;

		.bottomlist-title {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 12px;
			padding: 16px;
			border-bottom: 1px solid #EFEFEF;

			.title-right {
				display: flex;
				align-items: center;

				p:first-child {
					font-size: 12px;
					font-weight: 400;
					color: #3D3D3D;
					margin-right: 10px;
				}

				p:last-child {
					display: flex;
					align-items: center;
					font-size: 14px;
					font-weight: 400;
					color: rgba(35, 35, 35, 0.8);
				}

				img {
					width: 18px;
					height: 18px;
				}
			}

		}

		.bottomlist-content {

			padding-bottom: 0px;
		}

		.bottomlist-list {
			padding: 16px;
			font-size: 14px;
			border-bottom: 1px solid #EFEFEF;
			padding-bottom: 14px;

			.list-titel {
				font-size: 16px;
				font-weight: 700;
				color: #3D3D3D;
				line-height: 19px;

				.list-titel-a {
					text-decoration: none;
					color: #3D3D3D;
				}

				a:hover,
				a:visited,
				a:link,
				a:active {
					color: #3D3D3D;
				}
			}

			.content-label {
				margin-top: 12px;

				.list-label {
					background: #F3F3FF;
					color: #8491E8;
					border-radius: 1px 1px 1px 1px;

					padding: 3px 7px;
					font-size: 12px;

				}
				.list-label {
					background: #F3F3FF;
					color: #8491E8;
					border-radius: 1px 1px 1px 1px;
					padding: 3px 7px;
					font-size: 12px;
					margin-right: 12px;
					font-weight: 400;
				
				}
				.list-label-zb{
					font-weight: 400;
					color: #8491E8;
					background: #F3F3FF;
				}
				.list-label-lx{
					font-weight: 400;
					color: #41A1FD;
					background: #E4F3FD;
				}
			}


			.list-content {
				margin-top: 6px;
				display: flex;
				justify-content: start;
				align-items: center;

				.list-content-text {
					margin-top: 7px;
					display: flex;
					justify-content: start;
					align-items: center;
					margin-right: 27px;
					font-size: 14px;

					span:first-child {
						font-weight: 400;
						color: rgba(35, 35, 35, 0.4);
						line-height: 15px
					}

					span:last-child {
						font-weight: 400;
						color: rgba(35, 35, 35, 0.8);
						line-height: 15px
					}

					.blue {
						color: #0081FF !important;
						cursor: pointer;

					}

				}


			}

			.list-addree {
				width: auto;
				background: #F3F4F5;
				display: inline-flex;
				margin-top: 7px;

				.list-content-text {
					margin-top: 0px;

					span {
						line-height: 30px !important;
					}
				}

				img {
					width: 14px;
					margin: 0 8px;

				}
			}


		}

		.bottomlist-list:hover {
			background: #F6F9FC;
			cursor: pointer;
		}

		.pagination {
			padding: 14px;

			.el-pagination {
				float: right;
			}
		}
	}

	.app-container {
		padding: 0;
	}

	.qyzx-details {
		.content {
			margin-top: 16px;
			background: #FFFFFF;
			padding: 16px;
			border-radius: 4px;
		}

		.common-title {
			margin-bottom: 8px;
		}


		.main3 {
			position: relative;
			.main3-box {
				margin-top: 22px;
				min-height: 400px;
				border: 1px solid #D8D8D8;

			}
			.list-content-img{
				position: absolute;
				top: 16px;
				right:14px ;
				color: #0081FF;
				display: flex;
				align-items: center;
				font-size: 14px;
				cursor: pointer;
				img{
					width: 14px;
					height: 14px;
					margin-right: 4px;
				}
			}
			.list-content-img:hover{
				color: #0067CC;
			}
		}


	}
</style>