mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-07 01:46:46 +08:00
feat:面授课增加重新报名
This commit is contained in:
@@ -39,7 +39,16 @@
|
||||
<div style="margin-left: 8px">{{ data.planDto?.address }}</div>
|
||||
</div>
|
||||
<div class="time" style="margin-top: 37px">
|
||||
<botton class="btn" style="margin-right: 20px;width: 160px;height: 46px;" v-if="data.hasTask || data.planDto.applyFlag" @click="onLineSignUp" :style="{ background: data.isSignUp ? '#999' : 'rgb(57, 146, 249)'}">{{data.isSignUp?'已报名':'立即报名'}}</botton>
|
||||
<botton class="btn" style="margin-right: 20px;width: 160px;height: 46px;" v-if="data.hasTask || data.planDto.applyFlag" @click="onLineSignUp" :style="{ background: data.isSignUp ? '#999' : 'rgb(57, 146, 249)'}">
|
||||
{{
|
||||
data.isSignUp?
|
||||
data.isRefused?'审核拒绝':'已报名'
|
||||
:'立即报名'
|
||||
}}
|
||||
</botton>
|
||||
<botton v-if="data.isRefused" class="btn" style="margin-right: 20px;width: 160px;height: 46px;" @click="onLineOnceSignUp">
|
||||
重新报名
|
||||
</botton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -550,6 +559,12 @@ function onLineSignUp() {
|
||||
ElMessage.success("报名成功");
|
||||
}
|
||||
|
||||
function onLineOnceSignUp() {
|
||||
request(FACETEACH_SIGNUP, {courseId})
|
||||
data.value.isSignUp = true
|
||||
ElMessage.success("报名成功");
|
||||
}
|
||||
|
||||
function formateArr(strs) {
|
||||
let arrs = strs.split(',')
|
||||
console.log('112233', arrs)
|
||||
|
||||
Reference in New Issue
Block a user