<template>
	<c-tabbar :current="3">
	<view class="margin-bottom-lg">
		<!-- 顶部操作条 -->
		<cu-custom :bgColor="'bg-main-color'">
			<block slot="content">我的消息</block>
		</cu-custom>
		<bg-toast :icon="'repair'" :msg="'开发中'"></bg-toast>
	</view>
	</c-tabbar>
</template>

<script>
	import bgToast from '@/components/default-toast/bg-toast.vue';
	import CTabbar from '@/components/CTabbar.vue';
	
	export default {
		name: 'msgPage',
		components: {
			bgToast,
			CTabbar
		},
		data() {
			return {
				
			}
		},
		async onShareAppMessage(e) {
			let shareInfo = null;
			if (e && e.target && e.target.dataset) {
				shareInfo = e.target.dataset.shareInfo;
			}
			if (!this.curUserInfo) {
				this.curUserInfo = await this.$request.getCurUserNoCache();
				if (!this.curUserInfo) {
					uni.showToast({
						title: '请前往“我的”完成登录',
						icon: 'none'
					})
					return;
				}
			}
			if (!shareInfo) {
				shareInfo = {
					title: '家政服务就找工圈子',
					path: '/pages/index/home?distributor=' + this.curUserInfo.customerId,
					imageUrl: 'http://gqz.opsoul.com/sys/group-selfie.png'
				}
			}
			return shareInfo;
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
