schoolMsg.vue
2.8 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
106
107
108
109
110
111
112
113
114
115
116
117
118
<template>
<view class="content">
<image class="background" :src="universitylist.des_image"></image>
<view class="titleBox">
<view class="title">{{universitylist.name}}</view>
<view class="eng">Hebei University of Technology</view>
</view>
<view class="schoolMsg">
<view class="titleAcademy">
<image class="icon" :src="universitylist.icon_image"></image>
<view class="txt">学校介绍</view>
</view>
<view class="text">
{{universitylist.des_content}}
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data(){
return{
university_id:'',
universitylist:[]
}
},
methods:{
getschoolmsg(){
var that = this
var url = "university/getUniversityInfo"
var params = {
university_id:that.university_id
}
app.post(url,params,"get").then((res)=>{
console.log(res)
that.universitylist=res
}).catch((err)=>{
console.log(err)
})
}
},
onLoad(options){
this.university_id=options.uni_id
this.getschoolmsg()
}
}
</script>
<style lang="less">
.content{
.background{
width: 750rpx;
height: 334rpx;
position: absolute;
top: 0;
z-index: -1;
}
// background: url('../../static/bg_img@2x.png') no-repeat;
// background-size: 750rpx 334rpx;
// height: 100vh;
overflow: hidden;
// padding: 0 32rpx;
.titleBox{
margin-top: 126rpx;
margin-left: 32rpx;
.title{
color:rgba(255,255,255,1);
font-size: 36rpx;
}
.eng{
color:rgba(255,255,255,1);
font-size: 24rpx;
}
}
.schoolMsg{
width:686rpx;
height:2294rpx;
background:rgba(255,255,255,1);
box-shadow:0rpx 4rpx 6rpx rgba(45,85,117,0.1);
opacity:1;
border-radius:20rpx;
margin-top: 30rpx;
padding: 58rpx 32rpx;
box-sizing: border-box;
margin-left: 32rpx;
.titleAcademy{
display: flex;
align-items: center;
.icon{
width: 48rpx;
height: 48rpx;
}
.txt{
color:rgba(45,85,117,1);
font-size: 32rpx;
margin-left: 16rpx;
}
}
.text{
color:rgba(6,18,30,1);
font-size: 24rpx;
margin-top: 36rpx;
margin-bottom: 38rpx;
}
.pic{
width: 612rpx;
height: 408rpx;
}
}
}
</style>