<template>
	<view class="container qualifications" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0' }">
		<view class="remarks-content">
			<view class="list-view-title">
				<view class="list-view-h1"
					>机构名称:<text>{{ reportParams.questionMan }}</text></view
				>
			</view>
			<view class="list-view-title">
				<view class="list-view-h1"
					>联系人:<text>{{ reportParams.questionMan }}</text></view
				>
			</view>
			<view class="list-view-title">
				<view class="list-view-h1">咨询人：{{ reportParams.questionMan }}</view>
			</view>
			<view class="list-view-title"> <view class="list-view-h1">报备时间：2020-08-08</view> </view>
			<view class="list-view-title"> <view class="list-view-h1">报备商品：</view> </view>
			<view class="tui-remarks-content">
				<view class="tui-remarks-goods">
					<view class="goods-image">
						<image
							src="https://img.caimei365.com/group1/M00/03/FC/rB-lGGInLUKAJAR0AAOvlb8lQKk394.jpg"
							mode=""
						></image>
					</view>
					<view class="goods-main">
						<view class="name">
							易可美贻贝粘蛋白私密修复精华水易可美贻贝粘蛋白私密修复精华水易可美贻贝粘蛋白私密修复精华水
						</view>
						<view class="shop"> 供应商：华熙生物 </view>
					</view>
				</view>
			</view>
			<view class="list-view-title">
				<view class="list-view-h1"
					>报备事由：<text
						>报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由报备事由</text
					></view
				>
			</view>
		</view>
	</view>
</template>

<script>
import { mapState, mapMutations } from 'vuex'
import authorize from '@/common/config/authorize.js'
import { uploadFileImage, uploadFilePdfDocDocx } from '@/services/public.js'

var isPreviewImg
export default {
	data() {
		return {
			isIphoneX: this.$store.state.isIphoneX,
			productActions: [],
			reportParams: {},
			reportId: 0,
			categorys: '产品，二手，耗材'
		}
	},
	onLoad(option) {
		console.log(option)
		this.reportId = option.reportId
		this.userReportDetails(this.reportId)
	},
	filters: {
		followupFilters(value) {
			// 订单来源
			const map = {
				1: '跟进中',
				2: '跟进完成',
				3: '已放弃'
			}
			return map[value]
		},
		pinceFilters(value) {
			// 意向
			const map = {
				1: '敏感',
				2: '适中',
				3: '不敏感',
				4: '不明确'
			}
			return map[value]
		},
		intenActionsFilters(value) {
			// 意向
			const map = {
				1: '意向强烈',
				2: '意向一般',
				3: '意向平淡',
				4: '随便看看'
			}
			return map[value]
		}
	},
	methods: {
		...mapMutations(['login']),
		userReportDetails(reportId) {
			//报备详情
			this.UserService.userReportDetails({
				reportId: reportId
			})
				.then(response => {
					this.reportParams = response.data
				})
				.catch(error => {
					this.$util.msg(error.msg, 2000)
				})
		}
	},
	onShow() {}
}
</script>

<style lang="scss">
page {
	height: auto;
	background: #ffffff;
}
.remarks-content {
	width: 100%;
	height: auto;
	box-sizing: border-box;
	padding: 0 24rpx;
	padding-bottom: 80rpx;
	.list-view-title {
		width: 100%;
		height: auto;
		margin-bottom: 16rpx;
		margin-top: 40rpx;
		.list-view-h1 {
			line-height: 40rpx;
			font-size: $font-size-30;
			color: #333333;
			text-align: left;
			font-weight: bold;
			text {
				color: #666666;
				font-weight: normal;
			}
		}
	}
	.tui-remarks-content {
		width: 100%;
		height: auto;
		margin-bottom: 24rpx;
		.tui-remarks-goods{
			width: 100%;
			height: 180rpx;
			box-sizing: border-box;
			background-color: #F7F7F7;
			padding: 26rpx;
			border-radius: 6rpx;
			.goods-image{
				width: 128rpx;
				height: 128rpx;
				float: left;
				image{
					width: 128rpx;
					height: 128rpx;
					display: block;
					border-radius: 4rpx;
				}
			}
			.goods-main{
				width: 522rpx;
				height: 128rpx;
				box-sizing: border-box;
				padding: 0 32rpx;
				float: right;
				.name{
					width: 100%;
					height: 60rpx;
					box-sizing: border-box;
					line-height: 60rpx;
					color: #333333;
					text-overflow: ellipsis;
					overflow: hidden;
					display: -webkit-box;
					-webkit-line-clamp: 1;
					line-clamp: 1;
					-webkit-box-orient: vertical;
					font-size: 26rpx;
				}
				.shop{
					line-height: 60rpx;
					color: #999999;
					font-size: 26rpx;
				}
			}
		}
	}
	.list-view {
		width: 100%;
		height: auto;
		margin-top: 20rpx;
		.list-view-text {
			width: 100%;
			float: left;
			.input {
				width: 500rpx;
				height: 50rpx;
				box-sizing: border-box;
				line-height: 50rpx;
				color: #333333;
				text-overflow: ellipsis;
				overflow: hidden;
				display: -webkit-box;
				-webkit-line-clamp: 1;
				line-clamp: 1;
				-webkit-box-orient: vertical;
				float: left;
				font-size: 26rpx;
			}
			.delbtn {
				width: 96rpx;
				height: 44rpx;
				border-radius: 8rpx;
				font-size: $font-size-24;
				color: #e15616;
				line-height: 44rpx;
				text-align: center;
				float: left;
				&.down {
					color: #1890f9;
				}
			}
		}
	}
}
</style>
