<template>
	<!-- 邀请积分 -->
	<view class="page">
		<navbar title="邀请积分" bgColor="#3796F8" leftClick color="#fff" @leftClick="$utils.navigateBack" />

		<view class="TopBlock">
			<view class="TopBlock-box">
				<view class="TopBlock-top">
					<image src="../static/mine/characteristic.png" mode="aspectFill" />
					<view>您当前的正式积分</view>
				</view>
				<view class="TopBlock-balance">{{UserExtensionInfo.integerNum || 0}}</view>
				<view class="TopBlock-button"
				@click="$utils.navigateTo('/pages_order/mine/IntegralRecord')">
					<view>积分明细</view>
				</view>
			</view>
		</view>

		<!-- <view class="card">
			<view class="card-box">
				<view class="card-top">获取正式积分</view>
				<view style="background-color: #EDEDED; height: 1rpx;" />
				<view class="card-cell">
					<uv-cell-group>
						<uv-cell>
							<template #title>
								<text style="font-size: 12px;">邀请好友赚积分</text>
							</template>
							<template #label>
								<view style="font-size: 20rpx;color: #999999; padding: 10rpx 0;">
									<view>成功邀请一名好友注册，可获得2正式积分！</view>
									<view>可叠加</view>
								</view>

							</template>
							<template #value>
								<text style="font-size: 24rpx; color: #4280FD;">去邀请</text>
							</template>
							<template #icon>
								<uv-icon size="50" name="../static/mine/notepad.png" />
							</template>
							<template #right-icon>
								<uv-icon color="#4280FD" size="30rpx" name="arrow-right"></uv-icon>
							</template>
						</uv-cell>
					</uv-cell-group>
				</view>
			</view>
		</view>
		
		<view class="card">
			<view class="card-box">
				<view class="card-top">招工找活</view>
				<view style="background-color: #EDEDED; height: 1rpx;" />
				<view class="card-cell">
					<uv-cell-group>
						<uv-cell>
							<template #title>
								<text style="font-size: 12px;">我要找工作</text>
							</template>
							<template #label>
								<view style="font-size: 20rpx;color: #999999; padding: 10rpx 0;">
									<view>查看招工信息</view>
								</view>
		
							</template>
							<template #value>
								<text style="font-size: 24rpx; color: #4280FD;">去找活</text>
							</template>
							<template #icon>
								<uv-icon size="50" name="../static/mine/notepad.png" />
							</template>
							<template #right-icon>
								<uv-icon color="#4280FD" size="30rpx" name="arrow-right"></uv-icon>
							</template>
						</uv-cell>
					</uv-cell-group>
				</view>
			</view>
		</view> -->
		
		<view class=""
		style="padding: 20rpx;background-color: #fff;">
			<uv-parse :content="configList.config_score_rule"></uv-parse>
		</view>
		

		<view class="service">如有疑问请联系客服：<text
		style="color: #4280FD;"
		@click="$refs.customerServicePopup.open()"
		>{{ configList.config_service_phone }}</text></view>
		
		<customerServicePopup ref="customerServicePopup"/>
	</view>
</template>

<script>
	import { mapState } from 'vuex'
	export default {
		data() {
			return {

			}
		},
		onLoad() {
			this.$store.commit('getUserExtensionInfo')
		},
		computed : {
			...mapState(['UserExtensionInfo']),
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.page {
		.TopBlock {
			height: 260rpx;
			background-color: #3796F8;

			.TopBlock-box {
				width: 90%;
				margin-left: 5%;

				.TopBlock-top {
					display: flex;
					align-items: center;
					padding: 20rpx 0;

					view {
						font-size: 32rpx;
						color: #FFf;
						margin-left: 20rpx;
					}

					image {
						width: 40rpx;
						height: 40rpx;
					}
				}

				.TopBlock-balance {
					font-size: 48rpx;
					color: #fff;
					font-weight: 600;
				}

				.TopBlock-button {
					display: flex;
					justify-content: flex-end;
					font-size: 28rpx;
					color: #4280FD;

					view {
						background-color: #fff;
						padding: 15rpx 40rpx;
						border-radius: 40rpx;
						font-weight: 600;
					}
				}
			}
		}

		.card {
			width: 94%;
			margin-left: 3%;
			background-color: #fff;
			margin-top: 30rpx;

			.card-box {
				width: 94%;
				margin-left: 3%;

				.card-top {
					font-size: 28rpx;
					color: #000;
					font-weight: 600;
					padding: 20rpx 0;
				}

				.card-cell {
					/deep/ .uv-cell__body {
						padding: 20rpx 0;
					}
				}
			}
		}
		
		.service {
			width: 94%;
			margin-left: 3%;
			font-size: 24rpx;
			text-align: center;
			margin-top: 20rpx;
			padding: 25rpx 0;
			background-color: #fff;
			border-radius: 12rpx;
		}
	}
</style>