<template>
	<view class="add-luntan-over u-flex-col u-col-center">
		<u-navbar :safeAreaInsetTop='true' title="帖子详情" @leftClick="toluntan" :placeholder = 'true'>
		</u-navbar>
		<view class="over-title u-flex">
			<image src="static/addluntanover.png" mode=""></image>
			<text>发布成功</text>
		</view>
		<view class="over-tips">
			内容审核通过后将对所有人可见
		</view>
		<view class="over-btn" @click="toluntan">
			去查看
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				type: ''
			}
		},
		onLoad(options) {
			console.log(options);
			this.id = options.id
			this.type = options.type
		},
		methods: {
			toluntan() {
				if (this.type == 1) {
					uni.switchTab({
						url: '/pages/luntan/luntan'
					})
				} else {
					uni.navigateTo({
						url: "/pagesC/quanzi-info?id=" + this.id
					})
				}
			}
		}
	}
</script>

<style lang="scss">
	.add-luntan-over {
		padding: 80rpx 0;

		.over-btn {
			width: 606rpx;
			line-height: 92rpx;
			background: #0C66C2;
			border-radius: 12rpx;
			text-align: center;
			font-size: 32rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
		}

		.over-tips {
			font-size: 28rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #666666;
			margin-bottom: 102rpx;
		}

		.over-title {
			margin-bottom: 44rpx;

			image {
				width: 46rpx;
				height: 56rpx;
				margin-right: 10rpx;
				margin-top: -20rpx;
			}

			text {
				font-size: 40rpx;
				font-family: PingFangSC-Medium, PingFang SC;
				font-weight: 500;
				color: #222222;
			}
		}
	}
</style>