<template>
	<view class="maintenance-detail">
		<!-- 自定义导航栏开始 -->
		<uni-nav-bar :status-bar="true" :border="false" :background-color="'transparent'" :fixed="true"
			@clickLeft="handleClickLeft" @clickTitle="handleClickInput">
			<block v-slot:left>
				<view class="back-wrap u-f u-f-fdr u-f-aic u-f-jcfs">
					<text class="white-back-icon"></text>
				</view>
			</block>
		</uni-nav-bar>
		<!-- 自定义导航栏结束 -->

		<view class="content">
			<view class="top-fixed" :style="{ height: paddingTop }">
				<!-- <image style="width: 100%;height: 100%;" src="../.././static/demo/test.png" :mode="'widthFix'">
				</image> -->
			</view>

			<swiper class="swiper">
				<swiper-item>
					<view class="swiper-item">
						<!-- <image style="width: 100%;height: 100%;" src="../.././static/demo/test.png"
							:mode="'widthFix'"></image> -->
						<view class="swiper-num fw400 fs28">1/5</view>
					</view>
				</swiper-item>
			</swiper>

			<view class="content-detail">
				<view class="shop-desc">
					<view class="common-card mg-bot-20">
						<view class="u-f u-f-jcsb u-f-aic mg-bot-16">
							<view class="main-color">
								<text class="fs44 fw700">699积分</text>
							</view>
							<view class="u-f u-f-fdc u-f-jcc">
								<text class="light-gray fs24 fw400">已兑换522</text>
							</view>
						</view>
						<view class="fw700 fs32 light-black two-line-ellipsis mg-bot-16">
							汽车玻璃水四季通用冬季防冻型冬季防冻型冬
							季防季防季防季防季防季防季防冻季防季防季防季防季防季防季防冻
						</view>
					</view>

					<view class="common-card mg-bot-20">
						<view class="u-f u-f-jcfs u-f-aic">
							<view class="fw400 light-gray fs28 mg-right-14 vertical-text">适用门店</view>
							<view class="right u-f u-f-jcfs">
								<view class="mg-right-12">
									<!-- <image style="width: 134rpx;height: 134rpx;" :mode="'widthFix'"
										src="../.././static/shop/server-type.png"></image> -->
								</view>
								<view>
									<view class="u-f u-f-jcsb u-f-aic mg-bot-10">
										<view class="fs28 fw400 light-black">宏达汽修（民族路店）</view>
										<view class="u-f u-f-jcfs u-f-aic">
											<text class="fs24 fw400 light-gray mg-right-18">17家门店</text>
											<text class="big-gray-right-arrow"></text>
										</view>
									</view>
									<view class="mg-bot-10">
										<text class="fs28 light-gray fw400">2.3km</text>
									</view>
									<view class="u-f u-f-jcsb u-f-aic">
										<text class="fs28 fw400 light-gray">南阳市西峡县民族路135号</text>
										<text class="send-icon"></text>
									</view>
								</view>
							</view>
						</view>
					</view>

					<view class="common-card mg-bot-20">
						<view class="good-detail">
							<view class="big-title u-f u-f-aic u-f-jcc mg-bot-20">
								<view class="left"></view>
								<view class="fw700 fs32 main-color">商品详情</view>
								<view class="right"></view>
							</view>
							<view>
								<!-- recomend.png -->
								<!-- <image :mode="'widthFix'"></image> -->
							</view>
						</view>
					</view>

					<view class="common-card mg-bot-34">
						<view class="good-detail">
							<!-- <image src="../.././static/common/exclamation_ point.png" class="gantanhao"></image> -->
							<text class="light-gray fs24 fw400">“平台只为用户和商家提供服务，开发票请找服务商家”</text>
						</view>
					</view>

				</view>
			</view>

			<view class="fix-bot u-f u-f-jcc u-f-aic">
				<view class="line-gradient-btn" style="padding: 24rpx 0;width: 90%" @click="sureDuHuan">
					立即兑换
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	import commonTitle from "../.././components/common-title/common-title.vue"
	import uniNumber from "../.././components/uni-number-box/uni-number-box.vue"

	import {
		getCusNavBarInfo
	} from "../.././common/customizeNavBarInfo.js"
	export default {
		components: {
			commonTitle,
			uniNumber
		},
		data() {
			return {
				number: 1,
				active: 'shengse',
				tabList: [{
						name: '橘色',
						id: 'juse'
					},
					{
						name: '深色',
						id: 'shengse'
					},
					{
						name: '浅色',
						id: 'qianse'
					},
				],
				activeSize: 'huoche',
				sizeList: [{
						name: '货车',
						id: 'huoche'
					},
					{
						name: '轿车',
						id: 'jiaoche'
					}
				],
				paddingTop: 0,
				show: false,
				showChoiseSize: false,
				item: {
					goodTitle: "【国庆特惠】264元团300元【国庆特惠】264元团300元【国庆特惠】264元团300元",
					desc: "205/55R16",
					price: "￥264",
					oldPrice: "￥300"
				}
			}
		},
		mounted() {
			let {
				customizeNavBarHeight
			} = getCusNavBarInfo()
			this.paddingTop = customizeNavBarHeight + 'px'
		},
		methods: {
			handleHidePopup() {
				this.show = false;
			},
			handleShareWxFriend() {},
			handleShareWxPengyouquan() {},
			handleShowChoiseSize() {
				this.showChoiseSize = true;
			},
			handleHideChoiseSize() {
				this.showChoiseSize = false;
			},
			sureDuHuan() {
				uni.navigateTo({
					url: "/pages/home-jifen-duihuan/home-jifen-duihuan"
				})
				// uni.showToast({
				// 	icon: "none",
				// 	title: "兑换成功",
				// 	duration: 500
				// })
			}
		}
	}
</script>

<style>
	page {
		background-color: #F9F9F9;
	}
</style>

<style lang="scss" scoped>
	.maintenance-detail {
		.back-wrap {
			.white-back-icon {
				width: 30rpx;
				height: 30rpx;
				background: url(../.././static/shop/white-left-arrow.png) no-repeat center center;
				background-size: 50%;
			}
		}

		.content {
			position: relative;

			.top-fixed {
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				background-color: green;
				z-index: 3;
				overflow: hidden;
			}

			.swiper {
				height: 750rpx;

				.swiper-item {
					position: relative;
					display: block;
					width: 100%;
					height: 750rpx;

					.shop-car {
						padding-top: 10rpx;
						position: absolute;
						right: 28rpx;
						width: 62rpx;
						height: 62rpx;
						background: url(../.././static/common/shop_car.png) no-repeat bottom center;
						background-size: 100%;
						z-index: 1000;
					}

					.swiper-num {
						color: #ffffff;
						padding: 10rpx 24rpx;
						position: absolute;
						bottom: 58rpx;
						right: 24rpx;
						background-color: rgba(0, 0, 0, 0.25);
						border-radius: 28rpx 28rpx 28rpx 28rpx;
						z-index: 2;
					}
				}
			}

			.content-detail {
				position: relative;
				margin-top: -50rpx;
				padding: 26rpx 24rpx 24rpx 34rpx;
				background-color: #F9F9F9;
				border-radius: 40rpx 40rpx 0 0;

				.common-card {
					padding: 20rpx;
					border-radius: 18rpx;
					background-color: #ffffff;

					view {
						view {
							.share-icon {
								width: 30rpx;
								height: 30rpx;
								background: url(../.././static/common/share.png) no-repeat center center;
								background-size: 100%;
							}
						}
					}

					.youhuiquan {
						padding: 18rpx 20rpx;
						background: #FFF4F0;
						border-radius: 9rpx 9rpx 9rpx 9rpx;
					}

					.ue-user {
						.avatar {
							width: 78rpx;
							height: 78rpx;
						}

						.user-desc {
							.evaluate-wrap {
								.evaluate {
									.star-icon {
										width: 32rpx;
										height: 32rpx;
										background: url(../.././static/star.png) no-repeat center center;
										background-size: 100%;
									}

									.star-num {
										color: #F2CB51;
									}
								}
							}
						}
					}

					.ue-content {
						.image-list {
							.image-item {
								width: calc(25% - 12rpx);

								image {
									width: 100%;
								}
							}
						}
					}

					.good-detail {
						.big-title {
							.left {
								width: 165rpx;
								height: 4rpx;
								// background: url(../.././static/common/left_rect.png) no-repeat center center;
								background-size: 100%;
							}

							.right {
								width: 165rpx;
								height: 4rpx;
								// background: url(../.././static/common/right_rect.png) no-repeat center center;
								background-size: 100%;
							}
						}

						.gantanhao {
							width: 20rpx;
							height: 20rpx;
						}
					}
				}
			}
		}

		.fix-bot {
			width: 100%;
			position: fixed;
			bottom: 0;
			left: 0;
			padding: 10rpx 0;
			background-color: #ffffff;
		}
	}

	.big-gray-right-arrow {
		width: 26rpx;
		height: 26rpx;
		// background: url(../.././static/common/black_right-arrow.png) no-repeat center center;
		background-size: 50%;
	}

	.send-icon {
		width: 56rpx;
		height: 56rpx;
		// background: url(../.././static/common/send.png) no-repeat center center;
		background-size: 100%;
	}

	.small-gray-right-arrow {
		width: 16rpx;
		height: 16rpx;
		// background: url(../.././static/common/gray_right_arrow.png) no-repeat center center;
		background-size: 100%;
	}

	.collect {
		width: 40rpx;
		height: 40rpx;
		// background: url(../.././static/common/collect.png) no-repeat center center;
		background-size: 100%;
	}

	.serve-person {
		width: 40rpx;
		height: 40rpx;
		// background: url(../.././static/common/say.png) no-repeat center center;
		background-size: 100%;
	}

	.default-line-btn {
		color: #333333;
		font-size: 22rpx;
		border-radius: 40rpx;
		padding: 30rpx 46rpx;
		text-align: center;
		background-color: transparent;
		border: 1rpx solid #707070;
	}

	.main-btn {
		color: #ffffff;
		font-size: 22rpx;
		background: linear-gradient(90deg, #FF4502 0%, #FF8903 100%);
		border-radius: 41rpx 41rpx 41rpx 41rpx;
		padding: 30rpx 100rpx;
	}

	.mark {
		font-size: 28rpx;
		padding: 8rpx 0 8rpx 36rpx;
		color: #ffffff;
		background: linear-gradient(90deg, #FF4502 0%, rgba(255, 137, 3, 0) 100%);
	}

	.join-group-person {
		.main-title-btn {
			padding: 6rpx 12rpx;
			background: #FFF6F3;
			border-radius: 9rpx 4rpx 9rpx 2rpx;
			border: 1rpx solid #FFD0BF;
			color: #FF4502;
			margin-top: 16rpx;
		}
	}

	.join-group-progress {
		margin-bottom: 28rpx;

		.progress-wrap {
			flex: 2;
			margin-right: 10rpx;
		}

		.join-group-person {
			color: #FF4502;
		}
	}

	.share-modal {
		position: relative;
		padding: 44rpx;

		.gray-close {
			position: absolute;
			right: 28rpx;
			top: 28rpx;
			width: 42rpx;
			height: 42rpx;
			// background: url(../.././static/common/gray-close.png) no-repeat center center;
			background-size: 100%;
		}

		.content-wrap {
			width: 100%;

			.inner {
				width: 420rpx;
				padding: 12rpx;
				border-radius: 10rpx;
				background-color: #ffffff;
				border: 10rpx solid #FF4502;
			}

			.share {
				width: 420rpx;

				view {
					.wx {
						width: 58rpx;
						height: 58rpx;
						// background: url(../.././static/common/wx.png) no-repeat center center;
						background-size: 100%;
					}

					.wx-pengyouquan {
						width: 58rpx;
						height: 58rpx;
						// background: url(../.././static/common/wx__pengyouquan.png) no-repeat center center;
						background-size: 100%;
					}
				}
			}
		}
	}

	.product-card {
		flex: 1;
		border-radius: 18rpx;
		background-color: #ffffff;

		.pc-image {
			width: 100%;
			height: 340rpx;
		}

		.pc-desc {
			color: #333333;
			height: 74rpx;
		}

		.pc-price {
			margin-top: 10rpx;
			color: #FF4502;
		}
	}

	.tab-list {
		.tab-item {
			padding: 12rpx 30rpx;
			font-size: 22rpx;
			border-radius: 28rpx;
			background-color: transparent;
			border: 1rpx solid transparent;
			background-color: #F9F9F9;
			color: #333333;

			&.active {
				color: #FF4502;
				background-color: #FFEFE9;
				border-color: #FF4502;
			}
		}
	}
</style>