history.vue 2.3 KB
<template>
	<view class="gloabal-root-content-c">
		
		<view style="height: 1rpx;"></view>
		
		<view v-for="(item, index) in historyNumber" class="mine_hao" >
			
			
			<view style="width: 100%; display: flex; flex-direction: row; justify-content: space-between;">
				<view style="display: flex; flex-direction: row; justify-content: center; align-items: center;">
					<text class="text-area" style="font-weight: 700">{{item.Name + "期"}}</text>
				</view>
				
				<text class="text-area" >{{dateFormatStr(item.EndTime)}}</text>
				
			</view>

			<NumberQiu :data_info="item.OpenNumber" qiu_height="76rpx" :qiu_shi="true" style="margin-top: 25rpx; margin-bottom: 10rpx;"/>

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

<script>
	import common from "@/utils/common";
	import utils from "@/utils/utils.js";
	import NumberQiu from '../../components/NumberQiu.vue'
	export default {
		components: {
			NumberQiu
		},
		data() {
			return {
				historyNumber:[],
				common
			}
		},
		onLoad(options){
			console.log(options)
			// 获取传递的对象参数,使用decodeURIComponent解码,并转为对象
			if ('params' in options) {
				this.historyNumber = JSON.parse(decodeURIComponent(options.params));
			}
		},
		methods: {
			onBack() {
				uni.navigateBack()
			},
			dateFormatStr(value) {
				var result = utils.dateFormatWeek(value);
	
				return result;
			}
		}
	}
</script>

<style>
	
	
	
	.top {
		width: 100%;
		background: linear-gradient(90deg, #FF4F4D 0%, #1B8EFE 100%);
		text-align: center;
		display: flex;
		position: fixed;
		top: 0;
		justify-content: space-between;
		z-index: 4;
	}
	.title_c {
		font-size: 36rpx;
		font-weight: 700;
		color: #FFFFFF;
		height: 88rpx;
		line-height: 88rpx;
	}
	.mine_hao {
		background: #FFFFFF;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(0,0,0,0.07);
		border-radius: 8rpx;
		display: flex;
		flex-direction: column;
		height: 100%;
		margin-left: 32rpx;
		margin-right: 32rpx;
		padding-left: 32rpx;
		padding-right: 32rpx;
		padding-top: 24rpx;
		padding-bottom: 24rpx;
		margin: 25rpx;
		justify-content: center;
		align-items: center;
	}
	.text-area {
		height: 44rpx;
		display: flex;
		justify-content: center;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 44rpx;
		color: #101010;
	}
</style>