<!-- 团购劵核销 -->
<template>
	<view class="body" :style="'padding-top:' + bottomHeight">
		<!-- 导航 -->
		<view class="ss-flex-2 ss-col-center ss-margin-width2" style="position: relative">
			<view class="ss-flex-2 ss-col-center">
				<text class="textIcon icon-fanhui icon-navigation" @click="backPage"></text>
				<view style="margin-left: 15rpx; color: #3D444E; font-size: 28rpx">核销码</view>
			</view>
			<view class="ss-flex-1"></view>
			<text class="textIcon icon-kefu icon-navigation"></text>
			<text class="textIcon icon-tongzhiguanli icon-navigation" style="margin-left: 30rpx"></text>
		</view>
		
		<view class="ss-flex-2 ss-col-center" style="margin-top: 70rpx;">
			<view class="ss-flex-1"></view>
			<view style="width: 80rpx;height: 80rpx;">
				<image
				  class="wh"
				  style="border-radius:40rpx;"
				  referrerpolicy="no-referrer"
				  src="/static/lanhu_shouye/pszi35kdgsf3i6jobpzdylr9ge44ptvsr8600fdbdf-7ea4-42ee-9cba-c4712696f803.png"
				/>
			</view>
			<view style="width: 80rpx;height: 80rpx;margin-left: -10rpx;">
				<image
				  class="wh"
				  style="border-radius:40rpx;"
				  referrerpolicy="no-referrer"
				  src="/static/lanhu_shouye/pszi35kdgsf3i6jobpzdylr9ge44ptvsr8600fdbdf-7ea4-42ee-9cba-c4712696f803.png"
				/>
			</view>
			<view style="width: 80rpx;height: 80rpx;margin-left: -10rpx;">
				<image
				  class="wh"
				  style="border-radius:40rpx;"
				  referrerpolicy="no-referrer"
				  src="/static/lanhu_shouye/pszi35kdgsf3i6jobpzdylr9ge44ptvsr8600fdbdf-7ea4-42ee-9cba-c4712696f803.png"
				/>
			</view>
			<view class="ss-flex-1"></view>
		</view>
		<view class="message-box">嘀咚到位、抖音、美团自动验劵</view>
		<view class="coupons-box-input">
			<uni-easyinput errorMessage v-model="value" focus placeholder="点击输入卡劵兑换码" maxlength="30"></uni-easyinput>
		</view>
		<view class="exchange-box">兑换</view>
		<view class="tishi-box">温馨提示：</view>
		<view class="message-item-box">1.哈哈哈啊哈哈哈哈哈哈哈哈哈哈哈哈哈，哈哈哈啊哈哈哈哈哈哈哈哈哈哈哈哈哈，哈哈哈啊哈哈哈哈哈哈哈哈哈哈哈哈哈</view>
		<!-- 中部 -->
		<view class="list-wrap">
			<scroll-view scroll-y="true" class="list">
				<view class="list-scroll-view">
					
				</view>
			</scroll-view>
		</view>
	</view>
</template>
<script setup>
	import {
		reactive,
		ref
	} from 'vue';
	import {
		computed
	} from 'vue';
	import {
		onLoad,
		onPageScroll,
		onPullDownRefresh,
		onReady,
		onReachBottom,
		onShow,
	} from '@dcloudio/uni-app';
	import sheep from '@/sheep';
	import $share from '@/sheep/platform/share';
	// 隐藏原生tabBar
	// uni.hideTabBar();

	// 返回首页
	const backPage = async () => {
		uni.reLaunch({
			url: '/pages/XDHome/myHome/myHome',
		});
	};

	const bottomHeight = ref('0rpx');
	// #ifdef APP-PlUS
	//获取顶部安全距离
	const app = uni.getSystemInfoSync();
	const bottomHeightOne = app.statusBarHeight + 'rpx';
	bottomHeight.value = bottomHeightOne
	// #endif
</script>
<style scoped>
	/deep/.uni-easyinput__content-input{
		height: 50rpx;
	}
	/deep/.is-input-border{
		border: none;
		border-bottom: 2rpx solid #888 !important;
		border-radius: 0rpx !important;
		background-color: #EEEEF0 !important;
		box-sizing: border-box;
	}
	/deep/.uni-easyinput__placeholder-class{
		text-align: center !important;
	}
	/deep/.uni-input-input{
		text-align: center;
	}
</style>
<style scoped lang="scss">
	.message-item-box{
		width: 95%;
		margin-left: 2.5%;
		box-sizing: border-box;
		font-size: 20rpx;
		color: #838383;
		margin-top: 10rpx;
	}
	.tishi-box{
		width: 95%;
		margin-left: 2.5%;
		box-sizing: border-box;
		font-size: 24rpx;
		color: #3E3E3E;
		font-weight: 650;
		margin-top: 30rpx;
	}
	.exchange-box{
		width: 55%;
		margin-left: 22.5%;
		box-sizing: border-box;
		padding: 15rpx 20rpx;
		border-radius: 30rpx;
		color: #fff;
		font-size: 24rpx;
		background-color: #55BC73;
		margin-top: 25rpx;
		text-align: center;
	}
	.coupons-box-input{
		width: 45%;
		margin-left: 27.5%;
		box-sizing: border-box;
		margin-top: 20rpx;
	}
	.message-box{
		margin-top: 15rpx;
		padding: 10rpx;
		font-size: 25rpx;
		color: #000000;
		text-align: center;
		font-weight: 650;
	}
	.icon-navigation {
		font-size: 32rpx;
		color: #3D444E;
		font-weight: 700;
	}

	// 上中下布局样式
	.body {
		display: flex;
		flex-direction: column;
		background-color: #EEEEF0;
		height: 100vh;
		box-sizing: border-box;
	}

	.head {
		text-align: center;
	}

	// 中部滚动
	.list-wrap {
		flex-grow: 1;
		position: relative;
		width: 95%;
		margin-left: 2.5%;
		box-sizing: border-box;
	}

	.list {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 50rpx;
		padding: 10rpx;
		border-radius: 15rpx;
		box-sizing: border-box;
	}

	.list-scroll-view {
		width: 100%;
		margin-bottom: 20rpx;
		box-sizing: border-box;
	}

	.course-card {
		width: 47vw;
		margin-top: 10px;
		margin-bottom: 10px;
	}

	// 底部
	.tools {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	.tools-item {
		width: 45px;
		text-align: center;
		font-size: 14px;
		padding: 20px;
	}
</style>