提交 59769f81 编写于 作者: 2 222000134

取消报名小队活动和小队活动报名停止完成

上级 3968edd5
<!-- 取消报名的toast -->
<template>
<view class="content">
<view class="detail">
......@@ -54,7 +53,8 @@
</template>
<script>
let applyCode = 200;
let applyCode1 = 200;
let applyCode2 = 200;
export default {
data() {
return {
......@@ -91,14 +91,14 @@
})
.then(res => {
console.log(res)
this.applyCode = res.result.code
this.applyCode1 = res.result.code
console.log(res.result.message)
console.log(this.applyCode)
console.log(this.applyCode1)
})
await this.showTT();
} else if (opt == '取消报名') {
await uniCloud.callFunction({
name: 'fe-team-leaveActivity',
name: 'fe-team-cancelActivity',
data: {
userId: this.userId,
activityId: this.activityId
......@@ -106,13 +106,15 @@
})
.then(res => {
console.log(res)
this.applyCode = res.result.code
this.applyCode2 = res.result.code
console.log(res.result.message)
console.log(this.applyCode)
})
await this.showTT();
console.log(this.applyCode2)
}).catch((err => {
console.log(err)
}))
await this.showTT1();
} else if (opt == '报名已停止') {
}
},
......@@ -124,8 +126,21 @@
url: currPage.$page.fullPath
})
},
showTT1() {
if (this.applyCode2 == 200) {
uni.showToast({
title: '取消报名成功'
});
this.Refresh()
} else {
uni.showToast({
title: '失败',
icon: 'none'
});
}
},
showTT() {
if (this.applyCode == 200) {
if (this.applyCode1 == 200) {
uni.showToast({
title: '报名成功'
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册