<template>
	<view>
		<uni-list>
				<uni-list-item title="我的信息" clickable  @click="onClick" ></uni-list-item>
				<uni-list-item title="我的收藏" :show-extra-icon="true" :extra-icon="gift-filled" link to="/pages/userInfo/myCollection/myCollection"></uni-list-item>
				<uni-list-item title="常见问题" :show-extra-icon="true" :extra-icon="extraIcon1" link to="/pages/userInfo/question/question"></uni-list-item>
				<uni-list-item title="联系我们" link to="/pages/userInfo/contactUs/contactUs"></uni-list-item>
				<uni-list-item title="设置" link to="/pages/userInfo/setting/setting"></uni-list-item>
				<uni-list-item title="分享" clickable @click="getLink()"></uni-list-item>
		</uni-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			getLink(){
				// uni.showModal({
				// 	content: '啦啦啦分享啦',
				// 	showCancel: false
				// });
				uni.login({
				  // provider: 'toutiao',
				  success: function (info) {
				    console.log(info.code);
				    // 获取用户信息
				    uni.getUserInfo({
				      provider: 'weixin',
				      success: function (infoRes) {
						console.log('encry数据为：'+infoRes.encryptedData);
						console.log('iv数据为：'+infoRes.iv);
				        console.log('用户昵称为：' + infoRes.userInfo.nickName);
				      }
				    });
				  }
				});
			}
		}
	}
</script>

<style>

</style>
