<template>
	<view>
		<view>
			是否邀请进入本页面
		</view>
		<view>
			{{isyaoqing?'是':'否'}}
		</view>
		<!-- <button @click="fenxiang">分享图片</button> -->
		<!-- <image src="../../static/bj.png"></image> -->
		<!-- <Uitabbar selectpage="2" /> -->
	</view>
</template>

<script>
	import Uitabbar from '../../components/uitabbar/uitabbar.vue'
	export default {
		components:{
			Uitabbar
		},
		data() {
			return {
				isyaoqing:false
			}
		},
		onLoad:function(val){
			if(val.id){
				this.isyaoqing=true
				console.log('用户被邀请');
			}
		},
		methods: {
			fenxiang(){
				// uni.showShareMenu({
				// 	imageUrl:'https://res.wx.qq.com/wxdoc/dist/assets/img/demo.ef5c5bef.jpg'
				// })
				//#ifdef MP-WEIXIN
				 wx.downloadFile({
				   url: 'https://res.wx.qq.com/wxdoc/dist/assets/img/demo.ef5c5bef.jpg',
				   success: (res) => {
				     wx.showShareImageMenu({
				       path: res.tempFilePath
				     })
				   }
				 })
				//#endif
			}
		}
	}
</script>

<style lang="scss">
page{
	background-color: linear-gradient(102deg, #34EEFF, #A28BFA);
	padding-top: 100upx;
}
</style>
