<template>
	<view class="boox">
		 <!-- <digital-human :width="400" rootStyle="position: fixed; left: 50%; top: 100rpx; transform: translateX(-50%);"></digital-human> -->
		
		<view class="booximg">
			<image v-if="domainObj.domain == 'zh.aihxz.com'" class="img"
				src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/wabIndexs.png" mode=""></image>
			<image v-else class="img" src="https://autoiot.oss-cn-beijing.aliyuncs.com/static/wabIndex.png" mode="">
			</image>
		</view>

		<view class="center-dingwei">
			<view class="dingwei-title" style="margin-top: 0">
				<image class="dingwei-img" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png"
					mode=""></image>
				<view class="desc">智能语音转写</view>
			</view>
			<view class="dingwei-title">
				<image class="dingwei-img" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png"
					mode=""></image>
				<view class="desc">高效的判客机制</view>
			</view>
			<view class="dingwei-title">
				<image class="dingwei-img" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png"
					mode=""></image>
				<view class="desc">全方位的客户跟进</view>
			</view>
			<view class="dingwei-title">
				<image class="dingwei-img" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png"
					mode=""></image>
				<view class="desc">专业的经纪管家</view>
			</view>
			<view class="dingwei-title">
				<image class="dingwei-img" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/images2.png"
					mode=""></image>
				<view class="desc">在线实时沟通</view>
			</view>
		</view>

		<view @click="bindWxBLogin" class="button">
			<view class="view">
				立即去登录
			</view>
		</view>
	</view>
</template>

<script>
	var app = getApp();
	var config = require("../../config");
	const domainObj = require('@/utils/domain.js');
	// import human from './mathManIndex.js'
	export default {
		// mixins: [human],
		data() {
			return {
				domainObj: domainObj, // 域名
			};
		},

		onShow() {
			uni.request({
				url: config.service.verify,
				method: "GET",
				header: {
					'content-type': 'application/json',
					'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
				},
				success: (data) => {
					if (data.data.code == 10000) {
						uni.switchTab({
							url: '/pages/index/index'
						});
					}
				}
			})
		},
		onHide() {},
		methods: {
			bindWxBLogin() {
				wx.navigateTo({
					url: '/pages/login/index'
				});
			}

		}
	};
</script>
<style lang="scss">
	.boox {
		width: 100vw;
		height: 100vh;
		position: relative;

		.title {
			width: 100%;
			position: absolute;
			left: 0rpx;
			top: 100rpx;
			text-align: center;
			color: #FFFFFF;
			font-size: 32rpx;
			font-weight: 500;
			z-index: 1000;
		}

		.booximg {
			width: 100vw;
			height: 100vh;

			.img {
				width: 100%;
				height: 100%;
			}
		}

		.center-dingwei {
			width: 100%;
			position: absolute;
			left: 0rpx;
			bottom: 200rpx;

			.dingwei-title {
				height: 44rpx;
				display: flex;
				margin-left: 213rpx;
				margin-top: 20rpx;
			}

			.dingwei-img {
				width: 44rpx;
				height: 44rpx;
			}

			.desc {
				line-height: 44rpx;
				margin-left: 10rpx;
				font-size: 32rpx;
				color: #333333;
			}
		}

		.button {
			width: 100%;
			position: absolute;
			left: 0rpx;
			bottom: 60rpx;

			.view {
				width: 630rpx;
				height: 86rpx;
				margin: 0 auto;
				background: #2671E2;
				box-shadow: 0px 2rpx 20rpx 0rpx rgba(38, 113, 226, 0.5);
				border-radius: 49rpx;
				color: #FFFFFF;
				text-align: center;
				line-height: 86rpx;
				font-size: 32rpx;
			}
		}
	}
</style>
