<template>
	<view class="content">
		<view class="container">
			<headers :titles="titles"><uni-icons type="arrow-left" color="#fff" size="22px"></uni-icons></headers>
			<view class="box_">

				<view class="title_">{{formData.title}}</view>
				<view class="h-size">{{formData.content}}</view>
				<view class="r-size">{{formData.createDate}}</view>
			</view>

		</view>

	</view>
</template>

<script>
	import headers from '../../components/header/headers.vue'
	import request from '../../utils/request.js'
	export default {
		data() {
			return {
				titles: "通知",
				tabindex: 0,
				tablist: [
					"收款信息",
					"系统公告"
				],
				formData: {},
				show: false,
				status: 'loading',
				id: null
			}
		},
		onLoad(option) {
			this.id = option.id
		},
		onShow() {
			this.getDetail()
		},
		components: {
			headers
		},
		methods: {
			getDetail() {
				request({
					url: 'app/uaMer/notificationDetail/' + this.id,
					method: 'post'
				}).then(res => {
					this.formData = res.notification

				})
			},
			goback() {
				uni.navigateBack()
			}
		}
	}
</script>

<style scoped lang="scss">
	.content {
		background: #fff;
		height: 100vh;
	}

	.container {
		width: 100%;
		background: #fff;
		box-sizing: border-box;
		padding-top: 88px;
	}

	.tab-box {
		width: 100%;
		background: #fff;
		height: 50px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.gang {
		width: 20px;
		height: 4px;
		// background: #E4612E;
		margin: 0 auto;
	}

	.t_ {
		color: #E4612E !important;
	}

	.b_ {
		background: #E4612E !important;
	}

	.w-box {
		width: 50%;
		height: 100%;
	}

	.w-title {
		color: #9a9a9a;
		margin: 10px auto;
		text-align: center;
	}

	.box_ {
		width: 100%;
		box-sizing: border-box;
		padding: 15px;
		background: #fff;

		position: relative;
	}

	.title_ {
		font-size: 40rpx;
		font-weight: bold;
		margin-bottom: 25rpx;
	}

	.h-size {
		font-size: 30rpx;
		color: #9c9c9c;
		margin-bottom: 5px;
	}

	.r-size {
		width: 100%;
		font-size: 25rpx;
		color: #9c9c9c;
		text-align: right;
	}

	.qiu {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: #0099fa;
		position: absolute;
		right: 15px;
		top: 15px;
	}
</style>
