<template>
	<view></view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onShow() {
			// 从第三方小程序返回后
			const oTherMiniprogramIsBack = uni.getStorageSync('oTherMiniprogramIsBack')
			if(oTherMiniprogramIsBack) {
				uni.showModal({
					title: '是否返回盐都小程序',
					success: () => {
						uni.removeStorageSync('oTherMiniprogramIsBack')
						uni.navigateBack();
					}
				})
			}
		},
		onLoad(option) {
			let data = JSON.parse(option.data)
			if(data && data.type == 'xcx') {
				uni.navigateToMiniProgram({
					shortLink: data.url,
					success(res) {
						uni.setStorageSync('oTherMiniprogramIsBack', 1)
					}
				})
			}
		}
	}
</script>

<style>
</style>