<template>
	<view class="u-page">
		<view class="se-pt-50 se-pb-40 se-px-40 se-bgc-green se-c-white se-pos">
			<view class="se-flex">
				<image src="@/static/image/header.png" class="se-br-p-50 se-w-100 se-h-100" mode=""></image>
				<view class="se-ml-20 se-flex se-flex-v-sa se-flex-ai-fs">
					<view class="se-flex">
						<text class="se-fw-6 se-fs-30">热心小肖</text>
						<!-- <view class="se-flex se-flex-ai-c se-ml-20">
							<image class="se-a-25 se-mr-10" src="@/static/image/pencil.png" mode=""></image>
							<text class="se-fs-22">修改资料</text>
						</view> -->
					</view>
					<view class="se-fs-24 se-display-ib">
						<text>手机号:</text>
						<text class="se-ml-20">13189698114</text>
					</view>
				</view>
			</view>
		</view>
		<view class="se-m-30 se-mt-30 se-pl-30 se-pr-20 se-br-20 se-bgc-white">
			<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onReservation()">
				<view class="se-flex se-flex-ai-c">
					<image class="se-a-30" src="@/static/image/482011.png" mode=""></image>
					<text class="se-ml-20 se-fs-24 se-fw-5">预约信息</text>
				</view>
				<view class="se-flex se-flex-ai-c">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
			<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onRelease">
				<view class="se-flex se-flex-ai-c">
					<image class="se-a-30" src="@/static/image/482014.png" mode=""></image>
					<text class="se-ml-20 se-fs-24 se-fw-5">我的发布</text>
				</view>
				<view class="se-flex se-flex-ai-c">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
			<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onApply()">
				<view class="se-flex se-flex-ai-c">
					<image class="se-a-30" src="@/static/image/482013.png" mode=""></image>
					<text class="se-ml-20 se-fs-24 se-fw-5">我的寻车申请</text>
				</view>
				<view class="se-flex se-flex-ai-c">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
			<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onInvite">
				<view class="se-flex se-flex-ai-c">
					<image class="se-a-30" src="@/static/image/482012.png" mode=""></image>
					<text class="se-ml-20 se-fs-24 se-fw-5">我的邀请</text>
				</view>
				<view class="se-flex se-flex-ai-c">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
			<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onRecommend">
				<view class="se-flex se-flex-ai-c">
					<image class="se-a-30" src="@/static/image/482012.png" mode=""></image>
					<text class="se-ml-20 se-fs-24 se-fw-5">我的推荐</text>
				</view>
				<view class="se-flex se-flex-ai-c">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
			<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onCustomerService">
				<view class="se-flex se-flex-ai-c">
					<image class="se-a-30" src="@/static/image/470868.png" mode=""></image>
					<text class="se-ml-20 se-fs-24 se-fw-5">在线客服</text>
				</view>
				<view class="se-flex se-flex-ai-c">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
			<view class="se-py-30 se-px-20 se-flex se-flex-h-sb se-b-b" @click="onVersion">
				<view class="se-flex se-flex-ai-c">
					<image class="se-a-30" src="@/static/image/470868.png" mode=""></image>
					<text class="se-ml-20 se-fs-24 se-fw-5">关于我们</text>
				</view>
				<view class="se-flex se-flex-ai-c">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
			<view class="se-py-30 se-px-20 se-flex se-flex-h-sb" @click="onLogOut">
				<view class="se-flex se-flex-ai-c">
					<text class="se-fs-24 se-fw-5">退出登录</text>
				</view>
				<view class="se-flex se-flex-ai-c">
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			onInvite(){
				uni.navigateTo({
					url:"/pages_subpack/invite/index"
				})
			},
			onRecommend(){
				uni.navigateTo({
					url:"/pages_subpack/recommend/index"
				})
			},
			onRelease(){
				uni.navigateTo({
					url:"/pages_subpack/release/index"
				})
			},
			onApply(){
				uni.navigateTo({
					url:"/pages_subpack/apply/index"
				})
			},
			onSystem(){
				uni.navigateTo({
					url:"/pages_subpack/system/index"
				})
			},
			onReservation(){
				uni.navigateTo({
					url:"/pages/reservation/index"
				})
			},
			onVersion(){
				uni.navigateTo({
					url:"/pages_subpack/version/index"
				})
			},
			onLogOut(){
				uni.showModal({
					title:"温馨提示",
					content:"确定退出当前登录",
					cancelText:"取消",
					confirmText:"确定",
					success:(res)=> {
						console.info(res)
						if(res.confirm==true){
							uni.removeStorageSync("userInfo")
							uni.removeStorageSync("token")
							uni.removeStorageSync("sessionKey")
							uni.navigateTo({
								url:"/pages/auth/index"
							})
						}
					}
				})
				
			},
			onCustomerService(){
				let that = this
				// let obj = that.$utils.getkeyContent('phone')
				if (uni.canIUse('makePhoneCall')) {
					uni.makePhoneCall({
					  phoneNumber: "13156957887", // 电话号码
					  success: function () {
						console.log('拨打电话成功');
					  },
					  fail: function () {
						console.log('拨打电话失败');
					  }
					});
				} else {
					console.log('你的设备不支持拨打电话功能');
				}
				
			}
		}
	}
</script>

<style>
	page {
		background-color: #f5f5f5 !important;
	}

	.se-grid {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr 1fr;
		gap: 10rpx;
		padding-bottom: 4rpx;
	}
</style>