<template>
	<view class="success">

		<image src="../../static/images/success.png" mode=""></image>
		<view class="tip">
			发布成功!
		</view>
		<view class="text">
			恭喜您创建活动并发布完成，后期您将收到发布
			内容是否通过审核。
		</view>
		<view class="back" @click="back">
			返回首页
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			if(this.is_weixin()){
				this.navTitle()
			}
		},
		methods: {
			//判断是否是微信
			is_weixin() {
				let ua = navigator.userAgent.toLowerCase();
				return ua.indexOf('micromessenger') != -1;
			},
			navTitle() {
				let navTitle = document.getElementsByTagName('uni-page-head');
				navTitle[0].style.display = 'none'
			},
			back() {
				uni.reLaunch({
					url: '../index/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.success {
		text-align: center;

		image {
			width: 90px;
			height: 90px;
			margin: 0 auto;
			margin-top: 30%;
		}

		.tip {
			font-size: 12px;
			font-family: PingFang SC;
			font-weight: 400;
			line-height: 20px;
			color: #282828;
			margin-top: 5px;
			opacity: 1;
		}

		.text {
			font-size: 14px;
			font-family: PingFang SC;
			font-weight: 400;
			line-height: 20px;
			margin: 0 40px;
			margin-top: 22px;
			color: #6C6C6C;
			opacity: 1;
			text-align: left;
		}

		.back {
			width: 108px;
			height: 35px;
			line-height: 35px;
			margin: 0 auto;
			margin-top: 50px;
			border: 1px solid #707070;
			opacity: 1;
			border-radius: 21px;
		}
	}
</style>
