stu_evaluating.vue
1.9 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
<template>
<view class="evaluating">
<view class="evaluating-c">
<view class="evaluating-c-i" v-for="(item, index) in info.xc" :key="index">
<view class="evaluating-c-i-l">{{ item.name }}</view>
<view class="evaluating-c-i-r">{{ item.num }}</view>
</view>
</view>
<view class="evaluating-b" v-if="info.comment">
<view class="evaluating-b-t">评语</view>
<view class="evaluating-b-c">
{{ info.comment }}
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
info: {
xc: []
}
};
},
mounted() {
this.getData()
},
methods: {
getData() {
var datas = {}
var jkurl = '/study/ruxue_baogao'
this.$service.P_post(jkurl, datas).then(res => {
this.info = res.data
this.info.comment = 2122;
})
}
}
}
</script>
<style lang="scss" scoped>
.evaluating{
padding: 30rpx;
.evaluating-c{
background-color: #fff;
border-radius: 20rpx;
padding: 0 30rpx;
.evaluating-c-i{
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx 0;
border-bottom: 1rpx solid #F3F3F7;
&-l {
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 500;
color: #000000;
}
&-r {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #646464;
}
&:last-child{
border-bottom: none;
}
}
}
.evaluating-b{
padding: 30rpx;
background-color: #fff;
border-radius: 20rpx;
margin-top: 30rpx;
margin-bottom: 50rpx;
.evaluating-b-c{
border-radius: 20rpx;
padding: 20rpx;
background-color: #f8f8f8;
min-height: 200rpx;
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #646464;
}
.evaluating-b-t{
margin-bottom: 20rpx;
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 500;
color: #000000;
}
}
}
</style>