-- 报名

This commit is contained in:
yuping
2022-12-25 22:03:36 +08:00
parent c3850ee02a
commit 71c8637bed

View File

@@ -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 => {