<template>
	<view class="container">
		<!-- #ifdef APP-PLUS -->
		<view class="bar-height"></view>
		<!-- #endif -->
		<!-- <scroll-view class="content-box" scroll-y="true"> -->
		<view class="user-section">
			<view class="bg">
				<image src="../../static/user/ground.png" mode=""></image>
			</view>
			<!-- top -->
			<view class="user-box">
				<view class="detail" @click="navTo('/pages/userinfo/userinfo')">
					<image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image>
					<view class="username">{{ userInfo.nickname || '游客' }}</view>
					<view class="font-size-sm" v-if="userInfo.uid">邀请码:{{ userInfo.uid }}<text
							v-if="userInfo.level == 1" style="color: #5dbc7c;margin-left: 10rpx;">会员</text><text
							v-if="userInfo.level == 2" style="color: #dab176;margin-left: 10rpx;">副店长</text><text
							v-if="userInfo.level == 3" style="color: #dab176;margin-left: 10rpx;">店长</text>
					</view>
					<view class="font-size-sm" style="color: #5dbc7c;"
						v-if="userInfo.level == 1 && userInfo.service == 0">
						{{'会员股权:' + userInfo.vip.stock_rights + '  消费股权:' + userInfo.vip.consume_rights}}
					</view>
				</view>
				<view class="sy-box flex">
					<view class="sy-item" @click="navTo('/pages/wallet/wallet')">
						<view class="sy-item-val">{{userInfo.now_money|| 0}}</view>
						<view class="sy-item-name">我的余额</view>
					</view>
					<view class="jg"></view>
					<view class="sy-item" @click="navTo('/pages/award/award')">
						<view class="sy-item-val">{{userInfo.brokerage_price|| 0}}</view>
						<view class="sy-item-name">我的奖金</view>
					</view>
					<view class="jg"></view>
					<view class="sy-item" @click="navTo('/pages/scoreAccumulate/scoreAccumulate')">
						<view class="sy-item-val">{{userInfo.integral||0}}</view>
						<view class="sy-item-name">我的积分</view>
					</view>
					<view class="jg"></view>
					<view class="sy-item" @click="navTo('/pages/coupon/consumer')">
						<view class="sy-item-val">{{userInfo.consumer || 0}}</view>
						<view class="sy-item-name">我的消费券</view>
					</view>
				</view>
			</view>
			<!-- 会员卡功能 -->
		</view>
		<view class="my-order">
			<view class="box-title flex borde-b">
				<view class="title"><text>我的订单</text></view>
				<view class="link" @click="navTo('/pages/order/order?state=5')" hover-class="common-hover"><text
						class="iconfont iconenter"></text></view>
			</view>
			<view class="order-section">
				<view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover"
					:hover-stay-time="50">
					<view class=" icon1 position-relative">
						<image class="icon-img" src="/static/icon/i2.png" mode="aspectFit"></image>
						<view class="corner" v-if="orderInfo.unshipped_count > 0">
							<text>{{ orderInfo.unshipped_count }}</text>
						</view>
					</view>
					<text>待发货</text>
				</view>
				<view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover"
					:hover-stay-time="50">
					<view class="icon1 position-relative">
						<image class="icon-img" src="/static/icon/i3.png" mode="aspectFit"></image>
						<view class="corner" v-if="orderInfo.received_count > 0">
							<text>{{ orderInfo.received_count }}</text>
						</view>
					</view>
					<text>待收货</text>
				</view>
				<view class="order-item" @click="navTo('/pages/order/order?state=3')" hover-class="common-hover"
					:hover-stay-time="50">
					<view class="icon1 position-relative">
						<image class="icon-img" src="/static/icon/i4.png" mode="aspectFit"></image>
						<view class="corner" v-if="orderInfo.evaluated_count > 0">
							<text>{{ orderInfo.evaluated_count }}</text>
						</view>
					</view>
					<text>待评价</text>
				</view>
				<view class="order-item" @click="navTo('/pages/order/refundOrder?state=0')" hover-class="common-hover"
					:hover-stay-time="50">
					<view class=" icon1 position-relative">
						<image class="icon-img" src="/static/icon/i1.png" mode="aspectFit"></image>
					</view>
					<text>退款</text>
				</view>
			</view>
		</view>
		<view class="my-order">
			<view class="box-title flex borde-b">
				<view class="title"><text>我的奖励</text></view>
			</view>
			<view class="sy-box flex">
				<view class="sy-item">
					<view class="sy-item-name">团队等级</view>
					<view class="sy-item-val">
						{{ userInfo.group_level_info != null? userInfo.group_level_info.name : '无' }}
					</view>
				</view>
				<view class="jg"></view>
				<view class="sy-item">
					<view class="sy-item-name">极差奖励等级</view>
					<!-- <view class="sy-item-val">{{jcdj}}</view> -->
					<view class="sy-item-val">
						{{userInfo.award_level_info!= null? userInfo.award_level_info.name : '无'}}
					</view>
				</view>
				<view class="jg"></view>
				<view class="sy-item">
					<view class="sy-item-name">冻结极差奖</view>
					<view class="sy-item-val">{{ userInfo.lock_group_award || 0 }}</view>
				</view>
			</view>
		</view>
		<view class="my-order">
			<view class="box-title flex borde-b">
				<view class="title"><text>我的单数</text></view>
			</view>
			<view class="order-section">
				<view class="order-item">
					<view class="order-num">
						{{userInfo.suit_num || 0}}
					</view>
					<text>套装单数</text>
				</view>
				<view class="xian"></view>
				<view class="order-item">
					<view class="order-num">
						{{userInfo.recommend_suit_num || 0}}
					</view>
					<text>直推单数</text>
				</view>
				<view class="xian"></view>
				<view class="order-item">
					<view class="order-num">
						{{userInfo.group_suit_num || 0}}
					</view>
					<text>团队单数</text>
				</view>
			</view>
		</view>
		<view class="list-box" v-if="isShowIllegality">
			<view class="user-list flex" @click="navTo('/pages/shareQrCode/index')">
				<image src="../../static/user/u1.png" mode="" class="left-img"></image>
				<view class="">邀请海报</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" @click="navTo('/pages/myteam/myteam')">
				<image src="../../static/user/u2.png" mode="widthFix" class="left-img"></image>
				<view class="">我的推广</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" @click="navTo('/pages/set/phone')">
				<image src="../../static/user/u3.png" mode="widthFix" class="left-img"></image>
				<view class="">绑定手机号</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" @click="navTo('/pages/favorites/favorites')">
				<image src="../../static/user/u4.png" mode="widthFix" class="left-img"></image>
				<view class="">我的收藏</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" @click="openKf()">
				<image src="../../static/user/u5.png" mode="widthFix" class="left-img"></image>
				<view class="">客服中心</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" @click="navTo('/pages/address/address')">
				<image src="../../static/user/u6.png" mode="widthFix" class="left-img"></image>
				<view class="">收货地址</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" @click="navTo('/pages/userinfo/userinfo')">
				<image src="../../static/user/u7.png" mode="widthFix" class="left-img"></image>
				<view class="">设置</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" @click="navTo('/pages/myteam/myteamQian')">
				<image src="../../static/user/u8.png" mode="widthFix" class="left-img"></image>
				<view class="">百业推广</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" v-if="userInfo.service == 1 || type==1"
				@click="navTo('/pages/merchant/merchant')">
				<image src="../../static/user/u9.png" mode="widthFix" class="left-img"></image>
				<view class="">商家入口</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" v-if="userInfo.service == 1 || type==1" @click="openewm()">
				<image src="../../static/user/u11.png" mode="widthFix" class="left-img"></image>
				<view class="">商家收款码</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
			<view class="user-list flex" @click="navTo('/pages/merchant/becomeShop')">
				<image src="../../static/user/u10.png" mode="widthFix" class="left-img"></image>
				<view class="">商家入驻{{type==-1?'':type==0?'(审核中)':type==1?'(成功)':'(失败)'}}</view>
				<image src="../../static/user/right.png" mode="" class="right-img"></image>
			</view>
		</view>
		<uni-popup ref="popupkf" type="center">
			<view class="popup-box">
				<view class="img">
					<image src="../../static/img/img009.png" mode=""></image>
				</view>
				<view class="mian">
					<view class="delivery">
						<view class="title">已经为您定制专属客服</view>
						<image src="../../static/img/img010.png" mode=""></image>
					</view>
					<view class="nocancel">客服VX:{{ text }}</view>
					<view class="comfirm-box">
						<view class="cancel" @click="cancel">取消</view>
						<view class="comfirm" @click="comfirm(text)">复制微信</view>
					</view>
				</view>
			</view>
		</uni-popup>
		<uni-popup ref="ewm" type="center">
			<view class="hym-wrap">
				<view class="hym-tit">
					收款码地址
				</view>
				<view class="hym-val">
					<tki-qrcode :key="hym" cid="tki-qrcode-canvas" ref="qrcode" :val="hym" :size="300" unit="upx"
						background="#ffffff" foreground="#333333" pdground="#333333" icon="" :iconSize="0" :lv="3"
						:onval="true" :loadMake="true" :usingComponents="true" />
				</view>
			</view>
		</uni-popup>
	</view>
</template>
<script>
	import uniPopup from '@/components/uni-popup/uni-popup.vue';
	import {
		verification,
		storeIndex
	} from '@/api/merchant.js';
	import {
		mapState,
		mapMutations
	} from 'vuex';
	import uniList from '@/components/uni-list/uni-list.vue';
	import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
	import {
		orderData,
	} from '@/api/user.js';
	import {
		getUserInfo
	} from '@/api/login.js';
	import tkiQrcodes from '@/components/tki-qrcode/tki-qrcode.vue';
	let startY = 0,
		moveY = 0,
		pageAtTop = true;
	export default {
		components: {
			uniList,
			uniListItem,
			uniPopup,
			tkiQrcodes
		},
		data() {
			return {
				type: -1, //-1无事发生0审核中1成功2失败
				hym: '', //会员编号
				orderinfo: {
					complete_count: 0,
					received_count: 0,
					unshipped_count: 0,
					order_count: 0
				},
				// 判断是否已经点击过一次取消关注公众号
				watchful: true,
				card: '',
				pwd: '',
				text: '111',
				qrsize: 80, // 二维码大小
				cid: 'tki-qrcode-canvas', //canvasId，页面存在多个二维码组件时需设置不同的ID
				size: 500, //生成的二维码大小
				unit: 'upx', //大小单位尺寸
				// show: true,//默认使用组件中的image标签显示二维码
				val: '', //要生成的内容
				background: '#ffffff', //二维码背景色
				foreground: '#333333', //二维码前景色
				pdground: '#333333', //二维码角标色
				icon: '', //二维码图标URL（必须是本地图片，网络图需要先下载至本地）
				iconSize: 40, //二维码图标大小
				lv: 3, //容错级别
				onval: true, //监听val值变化自动重新生成二维码
				loadMake: false, //组件初始化完成后自动生成二维码，val需要有值
				usingComponents: false, //是否使用了自定义组件模式（主要是为了修复非自定义组件模式时 v-if 无法生成二维码的问题）
				showLoading: true, //是否显示loading
				loadingText: '二维码生成中', //loading文字
				src: '', // 二维码生成后的图片地址或base64
				ratio: 1, //页面比例用于计算
				ctxSrc: '', //要显示的图片
				loading: true, //是否载入图片中
			};
		},
		onShow() {
			// 判断是否已经登录
			if (this.hasLogin) {
				this.loadBaseData();
			}
		},
		onReady() {
			// 初始化获取页面宽度
			uni.createSelectorQuery()
				.select('.container')
				.fields({
						size: true
					},
					data => {
						// 计算最多下拉的高度
						this.userDowm = Math.floor((data.width / 750) * 200);
						// 计算最大触发修改高度事件
						this.userMaxDowm = Math.floor((data.width / 750) * 250);
					}
				)
				.exec();
		},
		computed: {
			...mapState('user', ['userInfo', 'orderInfo', 'hasLogin']),
			jcdj() {
				if (this.userInfo.award_level_info != null) {
					if (this.userInfo.group_level_info != null) {
						return this.userInfo.award_level_info.id < this.userInfo.group_level_info.id ? this.userInfo
							.award_level_info.name : this.userInfo.group_level_info.name
					} else {
						return this.userInfo.award_level_info.name
					}
				} else {
					if (this.userInfo.group_level_info != null) {
						return this.userInfo.group_level_info.name
					} else {
						return '无'
					}
				}

			},
			// #ifdef H5
			...mapState(['weichatObj']),
			// #endif
			...mapState(['isShowIllegality', 'canChange', 'storeInfo', 'baseURL'])
		},
		methods: {
			...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
			// 加载初始数据
			loadBaseData() {
				let obj = this;
				getUserInfo({})
					.then(({
						data
					}) => {
						orderData({})
							.then(({
								data
							}) => {
								obj.setOrderInfo(data);
							})
							.catch(e => {
								obj.setOrderInfo({
									complete_count: 0, //完成
									received_count: 0, //待收货
									unshipped_count: 0, //待发货
									order_count: 0, //订单总数
									unpaid_count: 0 //待付款
								});
							});
						obj.setUserInfo(data);

						// 判断是否已经关注公众号
						if (data.wechat.subscribe == 0 && obj.watchful) {
							uni.showModal({
								title: '温馨提醒',
								content: '为提供更好的服务，请关注公众号。',
								success: res => {
									obj.watchful = false;
									// 判断是否点击了确认
									if (res.confirm) {
										uni.navigateTo({
											url: '/pages/shareQrCode/wechatQr'
										});
									}
								}
							});
						}
					})
					.catch(e => {
						console.log(e);
					});
				storeIndex({}).then(e => {
					if (!e.data.apply) {
						obj.type = -1;
						if (e.data.store_info) {
							obj.type = 1;
						}
					} else {
						obj.type = e.data.apply.status;
					}
				})
			},
			openKf() {
				this.$refs.popupkf.open();
			},
			openewm() {
				this.hym = this.baseURL + '/index/pages/received/ipad?token=' + uni.getStorageSync('token');
				this.$refs.ewm.open();
			},
			// 关闭客服
			cancel() {
				this.$refs.popupkf.close();
			},
			comfirm(text) {
				console.log(text);
				const result = this.uniCopy(text);
				if (result === false) {
					uni.showToast({
						title: '不支持'
					});
				} else {
					uni.showToast({
						title: '复制成功',
						icon: 'none'
					});
				}
				this.$refs.popupkf.close();
			},
			uniCopy(content) {
				/**
				 * 小程序端 和 app端的复制逻辑
				 */
				//#ifndef H5
				uni.setClipboardData({
					data: content,
					success: function() {
						console.log('success');
						return true;
					}
				});
				//#endif

				/**
				 * H5端的复制逻辑
				 */
				// #ifdef H5
				if (!document.queryCommandSupported('copy')) {
					//为了兼容有些浏览器 queryCommandSupported 的判断
					// 不支持
					return false;
				}
				let textarea = document.createElement('textarea');
				textarea.value = content;
				textarea.readOnly = 'readOnly';
				document.body.appendChild(textarea);
				textarea.select(); // 选择对象
				textarea.setSelectionRange(0, content.length); //核心
				let result = document.execCommand('copy'); // 执行浏览器复制命令
				textarea.remove();
				return result;
				// #endif
			},
			/**
			 * 统一跳转接口,拦截未登录路由
			 * navigator标签现在默认没有转场动画，所以用view
			 */
			navTo(url) {
				if (!this.hasLogin) {
					url = '/pages/public/login';
					// #ifdef H5
					let weichatBrowser = uni.getStorageSync('weichatBrowser');
					// 判断是否为微信浏览器
					if (weichatBrowser) {
						url = '/pages/public/wxLogin';
					}
					// #endif
					// #ifdef MP-WEIXIN
					url = '/pages/public/wxLogin';
					// #endif
				}
				uni.navigateTo({
					url
				});
			},
		}
	};
</script>
<style lang="scss">
	%flex-center {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	%section {
		display: flex;
		justify-content: space-around;
		align-content: center;
		background: #fff;
		border-radius: 10rpx;
	}

	.container {
		height: 100%;
		background-color: #f8f8f8;

		/* #ifdef APP-PLUS */
		.bar-height {
			height: var(--status-bar-height);
			background-color: $base-color;
		}

		/* #endif */
	}

	.content-box {
		height: 100%;
	}

	.user-section {
		padding: 60rpx 0 0 0;
		position: relative;

		.bg {
			position: absolute;
			height: 228rpx;
			width: 100%;
			left: 0;
			top: 0;

			image {
				width: 100%;
				height: 100%;
			}

			// background-color: $base-color;
		}
	}

	.sy-box {
		height: 148rpx;
		background-color: #ffffff;

		.sy-item {
			width: 30%;
			flex-grow: 1;
			text-align: center;
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #3bbc88;

			.sy-item-val {
				margin-top: 6rpx;
				font-size: 28rpx;
			}

			.sy-item-name {
				color: #000000;
			}
		}

		.jg {
			width: 2rpx;
			height: 40rpx;
			background-color: #d4ded8;
		}
	}

	.user-box {
		padding: 54rpx 0 40rpx;
		position: relative;
		z-index: 0;
		margin: 0 auto;
		width: 90%;
		background-color: #ffffff;
		border-radius: 20rpx;
	}

	.detail {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.portrait {
			width: 130rpx;
			height: 130rpx;
			border-radius: 50%;
		}


		.username {
			color: black;
			margin-top: 20rpx;
			font-size: $font-lg + 6rpx;
			height: 100%;
		}

		.uservip {
			display: flex;
			align-items: center;
			justify-content: center;
			margin-top: 10rpx;
			background: url('../../static/img/vip-bg.png') 100%/contain no-repeat;
			padding: 6rpx 72rpx;
			font-size: 20rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #93794B;
		}
	}



	.cover-container {
		display: flex;
		flex-direction: column;
		background: $page-color-base;
		padding: 0 30rpx;
		position: relative;
		background: #f5f5f5;
		padding-bottom: 20rpx;
		margin-top: -110rpx;

	}

	.tj-sction {
		@extend %section;

		.tj-item {
			@extend %flex-center;
			flex-direction: column;
			height: 140rpx;
			font-size: $font-sm;
			color: #75787d;
		}

		.num {
			font-size: $font-lg;
			color: $font-color-dark;
			margin-bottom: 8rpx;
		}
	}


	.my-order {
		width: 690rpx;
		margin: 20rpx auto 0;
		border-radius: 20rpx;
	}

	.box-title {
		line-height: 1;
		padding: 30rpx;
		background: #ffffff;

		.title {
			font-size: $font-lg;
			font-weight: bold;
		}

		.link {
			font-size: $font-base - 2rpx;
			color: $font-color-light;
		}
	}

	// .order{
	// 	margin-top: 70rpx;
	// }
	.order-section {
		@extend %section;
		padding: 40rpx 0;
		align-items: center;

		.order-item {
			@extend %flex-center;
			// width: 120rpx;
			width: 25%;
			border-radius: 10rpx;
			font-size: $font-sm;
			color: $font-color-dark;

		}

		.xian {
			height: 30rpx;
			width: 1rpx;
			background: #000000;
		}

		.order-num {
			font-size: $font-sm + 10rpx;
			margin-bottom: 10rpx;
		}

		.iconfont {
			font-size: 48rpx;
			margin-bottom: 18rpx;
			color: #fa436a;
		}

		.icon-shouhoutuikuan {
			font-size: 44rpx;
		}

		.icon {
			height: 88rpx;
			width: 90rpx;
			margin-bottom: 18rpx;
			background-size: 100%;
			background-repeat: no-repeat;
			background-position: center;

			.icon-img {
				width: 100%;
				height: 100%;
			}
		}

		.icon1 {
			height: 50rpx;
			width: 48rpx;
			margin-bottom: 18rpx;
			background-size: 100%;
			background-repeat: no-repeat;
			background-position: center;

			.icon-img {
				width: 100%;
				height: 100%;
			}
		}
	}

	.history-section {
		// padding: 30rpx 0 0;
		margin-top: 20rpx;
		background: #fff;
		border-radius: 10rpx;

		.sec-header {
			display: flex;
			align-items: center;
			font-size: $font-base;
			color: $font-color-dark;
			line-height: 40rpx;
			margin-left: 30rpx;
			padding-top: 30rpx;

			.iconfont {
				font-size: 44rpx;
				color: $color-red;
				margin-right: 16rpx;
				line-height: 40rpx;
			}
		}

		.h-list {
			white-space: nowrap;
			padding: 30rpx 30rpx 0;

			image {
				display: inline-block;
				width: 160rpx;
				height: 160rpx;
				margin-right: 20rpx;
				border-radius: 10rpx;
			}
		}
	}


	.sy-box {
		padding: 30rpx 0 40rpx;
		line-height: 1;

		.sy-item {
			width: 30%;
			flex-grow: 1;
			text-align: center;
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #3bbc88;

			.sy-item-val {
				font-size: 36rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #333333;
			}

			.sy-item-name {
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #666666;
				margin-top: 16rpx;
			}
		}

		.jg {
			width: 1rpx;
			height: 58rpx;
			background: #EEEEEE;
		}
	}

	.list-box {
		width: 690rpx;
		margin: 20rpx auto 0;
		padding: 8rpx;
	}

	.user-list {
		border-radius: 28rpx;
		background: #ffffff;
		margin: 20rpx 0 0;
		width: 100%;
		background: #ffffff;
		padding: 30rpx 25rpx;

		.left-img {
			width: 40rpx;
			height: 40rpx;
		}

		view {
			padding-left: 20rpx;
			flex-grow: 1;
			font-size: 29rpx;
			font-weight: bold;
			color: #5d5d5d;
		}

		.right-img {
			width: 13rpx;
			height: 23rpx;
		}
	}

	.popup-box {
		width: 522rpx;
		height: 605rpx;
		background-color: #ffffff;
		border-radius: 20rpx;
		position: relative;

		.img {
			position: relative;
			top: -56rpx;
			left: 0;
			width: 522rpx;
			height: 132rpx;
			display: flex;
			justify-content: center;

			image {
				border-radius: 20rpx 20rpx 0 0;
				width: 450rpx;
				height: 132rpx;
			}
		}

		.mian {
			margin-top: -44rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			// padding: 32rpx 32rpx;
			background-color: #ffffff;
			border-radius: 0 0 20rpx 20rpx;
			text-align: center;

			.delivery {
				font-size: 40rpx;
				color: #333333;
				display: flex;
				align-items: center;
				flex-direction: column;

				image {
					margin-top: 48rpx;
					width: 172rpx;
					height: 160rpx;
				}
			}

			.nocancel {
				font-size: 32rpx;
				color: #333333;
				margin-top: 14rpx;
			}

			.comfirm-box {
				margin-top: 52rpx;
				display: flex;
				// margin-bottom: 32rpx;

				// justify-content: space-around;
				.cancel {
					display: flex;
					align-items: center;
					justify-content: center;
					width: 197rpx;
					height: 74rpx;
					border: 1px solid #dcc786;
					border-radius: 38rpx;

					font-size: 32rpx;
					color: #605128;
				}

				.comfirm {
					margin-left: 32rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					width: 197rpx;
					height: 74rpx;
					background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
					border-radius: 38px;
					font-size: 32rpx;
					color: #605128;
				}
			}
		}
	}

	.hym-wrap {
		width: 500rpx;
		height: 500rpx;
		background-color: #fff;
		text-align: center;
		border-radius: 20rpx;

		.hym-tit {
			color: $base-color;
			padding: 20rpx 0;
			font-size: 48rpx;
		}

		.hym-val {
			width: 300rpx;
			height: 300rpx;
			margin: auto;
		}

		.hym-num {
			font-size: 28rpx;
			font-weight: bold;
			padding-top: 20rpx;
		}
	}
</style>