history.vue
2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<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>