<template>
	<view class="page">
		<image class="ai_pp" mode="widthFix" src="../../static/home/ai_pipei.jpg"></image>

		<image class="pp_title" mode="widthFix" src="../../static/home/pp_title.png"></image>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				title: '',
				list: [],
			}
		},
		onLoad() {
			let that = this;
			setTimeout(function() {
				that.loadData();
			}, 2000);
		},
		onShow() {},
		methods: {
			goHome(uid) {
				uni.redirectTo({
					url: '/pages/index/peopleHome?uid=' + uid
				})
			},
			loadData() {
				console.log({
					uuid: getApp().globalData.uuid,
					skey: getApp().globalData.skey
				});
				uni.request({
					url: this.$apiHost + '/Index/aiPP',
					data: {
						uuid: getApp().globalData.uuid
					},
					header: {
						"content-type": "application/json",
						'sign': getApp().globalData.headerSign
					},
					success: (res) => {
						console.log("----:", res.data);
						this.goHome(res.data.userID);
					},
					complete: (com) => {
						// uni.hideLoading();
					},
					fail: (e) => {
						console.log("----e:", e);
					}
				});
			},
		}
	}
</script>

<style scoped lang="scss">
	@import 'ai_pp.scss';
</style>