<template>
	<view class="centenr">
		<view class="Candywrapper">

			<view class="f-box" v-for="(item,index) in 3" :key="index" @click="goDetails()">
				<view class="f-top">中建锦绣二期站可用</view>
				<view class="f-bs">
					<image src="../../static/logo.png" style="width: 60px; height: 60px; "></image>
					<view class="r-box">
						<view class="">
							<view class="m_">50元优惠</view>
							<view class="p_">最低消费100元</view>
							<view class="q_">代金券</view>
						</view>
						<view class="">
							<view class="an_">领取</view>
							<u-line-progress :percentage="50" :showText="false" height="6"
								activeColor="#FF9655"></u-line-progress>
							<view class="hui_">券已领70%</view>
						</view>

					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goIntegral() {
				uni.navigateTo({
					url: '/pagesMy/integral/integral'
				})
			},
			goDetails() {
				uni.navigateTo({
					url: '/pagesHome/certificate/details'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.centenr {
		width: 100%;
		height: 100vh;
		background: #F9F9F9;
	}

	.Candywrapper {
		background: #F9F9F9;
		box-sizing: border-box;
		padding: 10px;
	}

	.top-box {
		width: 100%;
		box-sizing: border-box;
		padding: 10px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		background: #fff;

	}

	.d-s {
		display: flex;
		align-items: center;

	}

	.f-box {
		width: 100%;
		box-sizing: border-box;
		padding: 10px;
		background: #fff;
		margin: 10px auto;
		border-radius: 4px;
	}

	.f-top {
		box-sizing: border-box;
		padding: 5px 0px;
		border-bottom: 1px dashed #eee;
		margin-bottom: 15px;
	}

	.f-bs {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.r-box {
		width: 80%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.m_ {
		font-size: 16px;
		color: #333333;
		font-weight: bold;
		margin-bottom: 5px;
	}

	.p_ {
		font-size: 12px;
		color: #666666;
	}

	.q_ {
		font-size: 12px;
		color: #E02020;
	}

	.an_ {
		width: 80px;
		height: 25px;
		background: #FF9655;
		border-radius: 4px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #fff;
		margin-bottom: 5px;
	}

	.hui_ {
		font-size: 10px;
		color: #666666;
	}
</style>
