mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-25 02:32:56 +08:00
-- 报名
This commit is contained in:
@@ -39,8 +39,7 @@
|
||||
<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;" @click="onLineSignUp">立即报名
|
||||
</botton>
|
||||
<botton class="btn" style="margin-right: 20px;width: 160px;height: 46px;" @click="onLineSignUp" :style="{ background: data.isSignUp ? '#999' : 'rgb(57, 146, 249)'}">{{data.isSignUp?'已报名':'立即报名'}}</botton>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -170,7 +169,7 @@ let timer = null;
|
||||
|
||||
// 报名
|
||||
function onLineSignUp() {
|
||||
request(FACETEACH_SIGNUP, {courseId}).then(() => {
|
||||
data.value.isSignUp || request(FACETEACH_SIGNUP, {courseId}).then(() => {
|
||||
ElMessage.success("报名成功");
|
||||
router.push({path: 'faceteach', query: {courseId}})
|
||||
}).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user