<template>
	<view>
		<map :scale="scale" style="width: 750rpx; height: calc(100vh - env(safe-area-inset-bottom) * 2);"
		enable-3D="false" show-compass="false" enable-overlooking="false"
		:enable-satellite="false" :enable-traffic="false" show-location="false"
		:latitude="latitude" :longitude="longitude" :markers="markers">
		</map>
		<view class="cu-bar tabbar bg-white foot">
			<view class="action text-blue" @tap="goNavPage('/pages/index/index')">
				<view class="cuIcon-cu-image">
					<image src="../../static/tabbar/indexSelected.png"></image>
				</view>
				首页
			</view>
			<view class="action text-gray" @tap="goNavPage('/pages/comjobs/comjobs')">
				<view class="cuIcon-cu-image">
					<image src="../../static/tabbar/jobs.png"></image>
				</view>
				招聘
			</view>
			<!-- #ifndef MP-WEIXIN -->
			<view class="action text-gray videoimg" @tap="goNavPage('/pages/video/videolist')">
				<view class="cuIcon-cu-image">
					<image src="../../static/tabbar/video.png"></image>
				</view>
				微工作
			</view>
			<!-- #endif -->
			
			<view class="action text-gray" @tap="goNavPage('/pages/broker/agent')">
				<view class="cuIcon-cu-image">
					<image src="../../static/tabbar/broker.png"></image>
				</view>
				经纪人
			</view>
			
			<view class="action text-gray" @tap="goNavPage('/pages/my/my')">
				<view class="cuIcon-cu-image">
					<image src="../../static/tabbar/my.png"></image>
				</view>
				我的
			</view>
		</view>
	</view>
</template>

<script>
	var _this;
	export default {
		data() {
			return {
				scale: 12,
				title: '2', // String
				latitude: 24.815839,
				longitude: 118.579864,
				callout: {
					color: '#007AFF', // 文本颜色
					bgColor: '#563BFF', // 背景色
					display: "ALWAYS", // 'BYCLICK':点击显示; 'ALWAYS':常显
					fontSize: 15,
					textAlign: 'left', // 文本对齐方式。有效值: left, right, center
					padding: 10, // 文本边缘留白
					borderRadius: 5,
					content: '腾讯地图',
				},
				label: {
					content: 'Jeskson',
					color: '#000000',
					fontSize: 12,
					borderWidth: 12,
					borderColor: '#007AFF',
					borderRadius: 5,
					padding: 5,
					textAlign: 'center',
					bgColor: '#563BFF',
				},
				iconPath: '../../static/location.png',
			}
		},
		onLoad: function() {
			_this = this;
			_this.userinfo = uni.getStorageSync('userinfo') || false;
		},
		methods: {
			goNavPage: function(pageurl) {
				uni.redirectTo({
					url: pageurl
				});
			},
		}
	}
</script>

<style>
	
</style>
