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.

112 lines
2.6 KiB

1 year ago
<template>
<view class="container">
1 year ago
<image class="cbg" :src="base.imgHost('common_bg.png')"></image>
1 year ago
<view class="wrap">
1 year ago
<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">
1 year ago
<image :src="base.imgHost('mycourse-status.png')"></image>
1 year ago
</view>
1 year ago
1 year ago
</view>
</view>
</template>
<script>
1 year ago
import topBanner from '@/components/topBanner.vue'
1 year ago
export default {
1 year ago
components: {
topBanner
},
1 year ago
data() {
return {
1 year ago
banner_list: [],
1 year ago
info: {},
userInfo: {},
courseInfo: {}
}
},
onLoad(options) {
this.getCourseDetail(options.id)
1 year ago
this.getBannerList()
1 year ago
},
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
1 year ago
},
async getBannerList(){
const res = await this.$u.api.otherBanner({
position:1,
})
this.banner_list = res
1 year ago
},
}
}
</script>
<style scoped lang="scss">
.container {
padding: 30rpx;
width: 100%;
height: 100vh;
.cbg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
}
.wrap {
1 year ago
position: relative;
height:100%;
&-status{
margin:120rpx 20rpx;
&-name{
color:#000;
font-size: 32rpx;
padding-bottom:20rpx;
}
&-content{
line-height: 2;
text-indent: 2em;
}
}
&-img{
image{
width:260rpx;
height:314rpx;
display: block;
margin:0 auto;
}
}
1 year ago
}
}
</style>