<template>
	<view>
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="index">
				<view class="left">
					<view class="text">签到</view>
					<view class="time">{{item.integral_time}}</view>
				</view>
				<view class="right">+1</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			};
		},
		onLoad() {
			this.get_staff_integral_query()
		},
		methods:{
			//查询员工积分
			get_staff_integral_query() {
				this.$api.staff_integral_query({
					staff_num: uni.getStorageSync('user').staff_num
				}).then((res) => {
					console.log(res.data.content.data)
					
					this.list = res.data.content.data.list
				})
			},
		}
	}
</script>

<style lang="scss">
	.list{
		box-sizing: border-box;
		padding: 25rpx;
		.item{
			height: 110rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			.left{
				line-height: 40rpx;
				.text{
					font-size: 30rpx;
				}
				.time{
					font-size: 26rpx;
					color: #B9B9B9;
				}
			}
			.right{
				font-size: 36rpx;
				color: #009FE8;
			}
		}
	}
</style>
