<template>
	<view class="page">
		<u-navbar title="团购兑换" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
			title-size='36' height='50' id="navbar">
		</u-navbar>
        <view class="box">
        	<view class="top">
        		<view class="name">
        			<view class="lt">
        				福鼎市太姥山
        			</view>
					<view class="rt">
						距您1.6km
					</view>
        		</view>
				<view class="dizhi">
					福建省宁德市福鼎市太姥山镇玉池南路21-23号
				</view>
        	</view>
			<view class="yanjuan">
				<input type="text" placeholder="请输入美团,快手或抖音团购劵码"/>
				<image @click="btnsm" src="https://api.ccttiot.com/smartmeter/img/static/uhAZVPyWabCiRSYSkOp7" mode=""></image>
			</view>
			<view class="yjanniu">
				立即验劵
			</view>
			<view class="kefu" @click="btnkefu">
				<image src="https://api.ccttiot.com/smartmeter/img/static/uOSlTej17SvPDYLMAT1w" mode=""></image>
			</view>
			<view class="tishi">
				<view class="tit">
					温馨提示
				</view>
				<view class="wz">
					1、输入团购券码或点击「识图验券」选择二维码图片进 行验证,验证通过后根据弹窗指引前往预定界面进行使 用;
				</view>
				<view class="wz">
					2、抵用券核销之后,将会出现在您的优惠券里,您可在 付费时选择使用,并抵用相应金额;
				</view>
				<view class="wz">
					3、券码一旦使用,概不退换,感谢您的支持与理解;
				</view>
				<view class="wz">
					4、如有疑问,请点击上方联系客服,我们将第一时间为 您处理。
				</view>
			</view>
        </view>
		<view class="gg" @click="btnjiameng">
			<image src="https://api.ccttiot.com/Fg3kiJ4TNjkEA1MMFPIpqyk4wX1s" mode=""></image>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
                bgc: {
                	backgroundColor: "#fff",
                },
			}
		},
		onLoad() {

		},
		methods: {
			// /点击咨询客服
			btnkefu(){
				uni.navigateTo({
					url:'/page_user/Feedback'
				})
			},
			// 点击扫码
			btnsm(){
				uni.scanCode({
					onlyFromCamera: true,
					scanType: ['qrCode'],
					success: res => {
                        console.log(res);
					}
				})
			},
             // 点击跳转到加盟合作页
             btnjiameng() {
				 uni.navigateTo({
				 	url:'/page_fenbao/statulist/merchant/index'
				 })
             	// uni.navigateTo({
             	// 	url: '/page_user/zhaoshang'
             	// })
             },
		}
	}
</script>

<style lang="scss">
	/deep/ .u-iconfont,
	/deep/ .u-title{
		padding-bottom: 20rpx;
	}
	page {
		background: #F6F6F6;
	}
	.gg{
		width: 100%;
		margin-top: 40rpx;
		text-align: center;
		image{
			width: 692rpx;
			height: 240rpx;
		}
	}
	.box{
		width: 692rpx;
		height: 1014rpx;
		background: #FFFFFF;
		margin: auto;
		margin-top: 26rpx;
		box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(0,0,0,0.15);
		border-radius: 18rpx 18rpx 18rpx 18rpx;
		padding: 28rpx 30rpx;
		box-sizing: border-box;
		.tishi{
			margin-top: 6rpx;
			.tit{
				font-weight: 600;
				font-size: 32rpx;
				color: #3D3D3D;
			}
			.wz{
				font-size: 26rpx;
				color: #636363;
				margin-top: 20rpx;
			}
		}
		.kefu{
			width: 100%;
			text-align: right;
			margin-top: 26rpx;
			image{
				width: 266rpx;
				height: 134rpx;
			}
		}
		.yjanniu{
			width: 634rpx;
			height: 98rpx;
			line-height: 98rpx;
			text-align: center;
			background: #8883F0;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			margin-top: 28rpx;
			font-weight: 600;
			font-size: 36rpx;
			color: #FFFFFF;
		}
		.yanjuan{
			width: 634rpx;
			height: 98rpx;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			border: 2rpx solid #9B9B9B;
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 0 28rpx;
			box-sizing: border-box;
			margin-top: 48rpx;
			input{
				width: 414rpx;
			}
			image{
				width: 46rpx;
				height: 46rpx;
			}
		}
		.top{
			.dizhi{
				font-size: 24rpx;
				color: #7C7C7C;
				margin-top: 12rpx;
			}
			.name{
				display: flex;
				justify-content: space-between;
				align-items: center;
				.lt{
					font-weight:600;
					font-size: 32rpx;
					color: #3D3D3D;
				}
				.rt{
					font-size: 24rpx;
					color: #7C7C7C;
				}
			}
		}
	}


</style>