Information.vue
1.7 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
<template>
<view>
<view class="top" v-for="(item,index) in list" :key="index" @click="detail(item.id)">
<view class="topText">
<text class="title">{{item.work_name}}</text>
<view class="payBox">
<text class="yiPay">{{item.is_pay==1?'已付款':'未付款'}}</text>
</view>
</view>
<view class="BtnText">
<view><text class="pei">培训价格:{{item.price}}</text></view>
<view>
<view><text class="on">{{item.create_time_text}}报名</text></view>
<!-- <view><text class="on">15:25:24 报名</text></view> -->
</view>
</view>
</view>
</view>
</template>
<script>
import request from '../../utils/request.js'
export default {
onShow() {
this.getList()
},
data() {
return {
list:[]
}
},
methods: {
getList(){
request.post('/api/index/sign_up_list',{}).then(res=>{
this.list=res.data.data
}).catch(err=>{
})
},
detail(id){
uni.navigateTo({
url:'/pages/index/RegistrationDetails?id='+id
})
}
}
}
</script>
<style>
.topText {
display: flex;
align-items: center;
justify-content: space-between;
}
.BtnText {
display: flex;
justify-content: space-between;
margin-top: 12px;
}
.on {
color: #323233;
font-size: 24rpx;
}
.pei {
color: #323233;
font-size: 26rpx;
}
.title {
color: #323233;
font-size: 26rpx;
}
.payBox {
background: #199460;
border-radius: 120rpx;
display: flex;
align-items: center;
justify-content: center;
}
.yiPay {
color: #FFFFFF;
font-size: 24rpx;
padding: 2px 8px;
}
.top {
background-color: #FFFFFF;
padding: 16px;
border-bottom: 1px solid #EBEDF0;
}
</style>