<script>
	import userlogin from "@/common/userLocation.js"
	export default {
		onLaunch: function() {
			let isindex = uni.getStorageSync('isindex')
			if (!isindex) {
				uni.setStorageSync('isindex', true)
				uni.reLaunch({
					url:"/pages/index/adIndex"
				})
			}
		},
		// onLaunch: function(e) {
		// 	let that = this;
		// 	// #ifdef MP-WEIXIN
		// 	// uni.login({
		// 	// 	provider: 'weixin',
		// 	// 	success(ret) {
		// 	// 		uni.$u.http.post('/api/common/mobile', {
		// 	// 			code: ret.code
		// 	// 		}, {
		// 	// 			custom: {
		// 	// 				toast: false,
		// 	// 				catch: true
		// 	// 			}
		// 	// 		}).then((res) => {
		// 	// 			console.log(res);
		// 	// 			// uni.setStorageSync('token', res.result.token || '')
		// 	// 			// that.$isResolve()
		// 	// 		}).catch((res) => {
		// 	// 			console.log(res);
		// 	// 			// let token = uni.getStorageSync('token') || '';
		// 	// 			// if (token == '') {
		// 	// 			// 	uni.reLaunch({
		// 	// 			// 		url: '/pages/index/login'
		// 	// 			// 	})
		// 	// 			// }
		// 	// 			// that.$isResolve()
		// 	// 		});
		// 	// 	}
		// 	// })
		// 	// #endif
		// },
		onShow: function() {},
		onHide: function() {

		},
		globalData: {

		}

	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	@import "@/common/demo.scss";

	page {
		background-color: #F7F8FA;
		height: 100% !important;
	}

	.Flex {
		display: flex;
	}

	.Flexcenter {
		display: flex;
		align-items: center;
	}

	.wrap {
		flex-wrap: wrap;
	}

	.Allbtn {
		margin: 0 auto;
		margin-top: 40rpx;
		width: 702rpx;
		height: 88rpx;
		line-height: 88rpx;
		border-radius: 16rpx;
		opacity: 1;
		background: #3375d8;
		color: #ffffff;
		font-size: 32rpx;
		font-weight: 500;
		font-family: "PingFang SC";
		text-align: center;
	}

	.publicpop {
		padding: 48rpx 48rpx 24rpx 48rpx;
		box-sizing: border-box;
		background: #ffffff;
		border-radius: 32rpx;

		.publictitle {
			color: #0d1013e6;
			font-size: 30rpx;
			font-weight: 400;
			text-align: center;
			font-family: "PingFang SC";
		}

		.publicbtn {
			display: flex;
			align-items: center;
			opacity: 1;
			box-sizing: border-box;
			margin-top: 72rpx;
			justify-content: center;

			.left {
				width: 264rpx;
				height: 76rpx;
				line-height: 76rpx;
				border-radius: 16rpx;
				opacity: 1;
				background: #f5f7fa;
				color: #0d1013e6;
				font-size: 32rpx;
				font-weight: 500;
				font-family: "PingFang SC";
				text-align: center;
			}

			.right {
				width: 264rpx;
				height: 76rpx;
				line-height: 76rpx;
				border-radius: 16rpx;
				opacity: 1;
				background: #2071ea;
				color: #FFFFFF;
				font-size: 32rpx;
				font-weight: 500;
				font-family: "PingFang SC";
				text-align: center;
			}
		}
	}
</style>