You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< view class = "container" >
< image class = "cbg" src = "../../static/common_bg.png" > < / image >
< view class = "wrap" >
< topBanner :banner_list ="banner_list" > < / topBanner >
< view class = "wrap-status" >
< view v-if ="info.status===0" >
< view class = "wrap-status-name" > { { userInfo . username } } : < / view >
< view class = "wrap-status-content" > 欢迎您报名 { { courseInfo . name } } , 我们将在1 - 3 个工作日内审核并通知您报名结果 … . < / view >
< / view >
< view v -else -if = " info.status = = = 1 " >
< view class = "wrap-status-name" > { { userInfo . username } } : < / view >
< view class = "wrap-status-content" > 您已被 { { courseInfo . name } } 录取 ! < span
v-if ="courseInfo.start_date" > 请 于 {{ courseInfo.start_date }} 到 学 院 报 到 。 < / span > < / view >
< / view >
< view v -else -if = " info.status = = = 2 " >
< view class = "wrap-status-name" > { { userInfo . username } } : < / view >
< view class = "wrap-status-content" > 很遗憾 , 您未被 { { courseInfo . name } } 录取 ! < / view >
< / view >
< view v -else -if = " info.status = = = 3 " >
< view class = "wrap-status-name" > { { userInfo . username } } : < / view >
< view class = "wrap-status-content" > 您未被 { { courseInfo . name } } 纳入备选人才 ! < / view >
< / view >
< / view >
< view class = "wrap-img" >
< image src = "../../static/mycourse-status.png" > < / image >
< / view >
< / view >
< / view >
< / template >
< script >
import topBanner from '@/components/topBanner.vue'
export default {
components : {
topBanner
} ,
data ( ) {
return {
banner _list : [ ] ,
info : { } ,
userInfo : { } ,
courseInfo : { }
}
} ,
onLoad ( options ) {
this . getCourseDetail ( options . id )
this . getBannerList ( )
} ,
methods : {
async getCourseDetail ( id ) {
const res = await this . $u . api . courseGetSign ( {
course _id : id
} )
this . info = res . detail
this . userInfo = res . detail . user
this . courseInfo = res . detail . course
} ,
async getBannerList ( ) {
const res = await this . $u . api . otherBanner ( {
position : 1 ,
} )
this . banner _list = res
} ,
}
}
< / script >
< style scoped lang = "scss" >
. container {
padding : 30 rpx ;
width : 100 % ;
height : 100 vh ;
. cbg {
position : absolute ;
top : 0 ;
left : 0 ;
width : 100 % ;
height : 100 vh ;
}
. wrap {
position : relative ;
height : 100 % ;
& - status {
margin : 120 rpx 20 rpx ;
& - name {
color : # 000 ;
font - size : 32 rpx ;
padding - bottom : 20 rpx ;
}
& - content {
line - height : 2 ;
text - indent : 2 em ;
}
}
& - img {
image {
width : 260 rpx ;
height : 314 rpx ;
display : block ;
margin : 0 auto ;
}
}
}
}
< / style >