<template>
	<view class="hotel-book">
		<!-- 背景图 -->
		<view class="hotel-book-img">
			<image style="width: 100%; height: 564rpx;" src="http://t9.9026.com/imgs/swiper01.png" mode=""></image>
		</view>

		<!-- 酒店介绍 -->
		<view class="hotel-content">
			<view class="hotel-content-top">
				<image style="width: 48rpx;height: 48rpx;" src="/static/icon/local01.png" mode=""></image>
				<view class="hotel-content-top-text">
					<text>成都环球中心天堂洲际大饭店</text>
				</view>
			</view>
			<view class="hotel-content-introduce">
				<view class="introduce-top">
					<text class="introduce-top-rule1"></text>
					<text style="margin: 0 8rpx;">酒店介绍</text>
					<text class="introduce-top-rule2"></text>
				</view>
				<view class="introduce-btn-text">
					<text>由中国最佳酒店评选委员会、洲际酒店共同打造的国内</text>
				</view>
				
				<!-- 声明 -->
				<view class="introduce-btn">
					<text>活动声明</text>
				</view>
			</view>

		</view>
		
		<view class="hotel-btn">
			<view class="hotel-btn-left">
				<view class="hotel-btn-left-text" @click="goIndex">
					<view style="width: 48rpx;height: 48rpx;display: flex;align-items: center;justify-content: center;">
						<image style="width: 40rpx;height: 42rpx;" src="/static/icon/home04.png" mode=""></image>
					</view>
					<text>首页</text>
				</view>
				<view class="hotel-btn-left-text" @click="goJoin">
					<view style="width: 48rpx;height: 48rpx; display: flex;align-items: center;justify-content: center; ">
						<image style="width: 52rpx;height: 46rpx;" src="/static/icon/vip02.png" mode=""></image>
					</view>
					<text>会员</text>
				</view>
				<view class="hotel-btn-left-text">
					<view style="width: 48rpx;height: 48rpx;display: flex;align-items: center;justify-content: center;">
						<image style=" width: 44rpx;height: 44rpx;" src="/static/icon/home03.png" mode=""></image>
					</view>
					<text>导航</text>
				</view>
			</view>
			<view class="hotel-btn-right">
				<text>预订</text>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			// 跳转其他小程序
			goJoin() {
				wx.navigateToMiniProgram({
					appId: 'wx255b58f0992b3c53', //appid
					path: 'newUIMain/enrollment/enrollment', //path
					extraData: { //参数
						foo: 'bar'
					},
					// envVersion: 'develop', //开发版develop 开发版 trial   体验版 release 正式版 
					success(res) {
						console.log('成功')
						// 打开成功
					},
					fail(e) {
						console.log(e, '失败')
					}
				})
			},
			// 跳转首页
			goIndex(){
				uni.reLaunch({
					url:'/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	$pageColor:#F9F9F9;
	$bgColor:#FFFFFF;

	@mixin flexlayout {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.hotel-book {
		height: 100%;
		background: #fff;
	}
	
	.hotel-btn{
		padding: 0 30rpx;
		position: fixed;
		bottom: 0;
		width: 100%;
		height: 148rpx;
		background: #FFFFFF;
		box-shadow: 0px -2rpx 20rpx 0px rgba(0,0,0,0.04);
		display: flex;
		align-items: center;
		justify-content: space-between;
		.hotel-btn-left{
			display: flex;
			align-items: center;
			justify-content: space-between;
			.hotel-btn-left-text{
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: flex-start;
				font-weight: 500;
				color: #999999;
				font-size: 22rpx;
				margin-right:48rpx ;
			}
		}
		.hotel-btn-right{
			width: 396rpx;
			height: 92rpx;
			background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
			border-radius: 12rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-weight: bold;
			color: #FFFFFF;
			font-size: 30rpx;
		}
	}

	.hotel-content {
		width: 100%;
		padding: 40rpx 30rpx 100rpx;
		.hotel-content-top {
			height: 48rpx;
			display: flex;
			align-items: center;
			justify-content: flex-start;

			.hotel-content-top-text {
				margin-top: -2rpx;
				font-weight: bold;
				color: #333333;
				font-size: 32rpx;
				margin-left: 8rpx;
			}
		}

		.hotel-content-introduce {
			margin-top: 32rpx;
			padding: 48rpx 22rpx;
			background: #FFFFFF;
			border-radius: 4rpx;
			border: 2rpx solid #999999;
		}
	}

	.introduce-top {
		height: 32rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 32rpx;
		font-weight: bold;
		letter-spacing: 2rpx;

		.introduce-top-rule1 {
			width: 56rpx;
			height: 4rpx;
			background: linear-gradient(90deg, #FFFFFF 0%, #D9A94D 100%);
		}

		.introduce-top-rule2 {
			width: 56rpx;
			height: 4rpx;
			background: linear-gradient(-90deg, #FFFFFF 0%, #D9A94D 100%);
		}
	}
	.introduce-btn-text{
		margin-top: 72rpx;
		text-indent: 2em;
		font-size: 28rpx;
		color: #333;
		font-weight: bold;
		line-height: 56rpx;
	}
	.introduce-btn{
		margin-top: 72rpx;
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 30rpx;
		color: #101010;
		font-weight: bold;
	}
</style>
