会议签到

This commit is contained in:
liuye
2022-03-18 17:37:40 +08:00
parent 6c2f96da10
commit 4224194954
2 changed files with 13 additions and 3 deletions

View File

@@ -8,7 +8,6 @@
<u-input type="text" placeholder="请输入" input-align="right" placeholder-style="color:#999;font-size:16px;" height="48" v-model="name" maxlength="50" />
</div>
</div>
<div class="item-flex">
<div class="label">
<span class="tips">*</span>手机号
@@ -72,8 +71,8 @@ export default {
}).catch((err) => {
this.linkTo('./AddUserSuccess?status=0')
})
},
linkTo(url) {
uni.navigateTo({ url })
},

View File

@@ -56,7 +56,8 @@
</u-row>
</div>
<div class="footer cancel" v-if="detail.status == 2 && data.joinStatus == 0">签到</div>
<div class="footer cancel" v-if="detail.status == 2 && data.joinStatus == 1 && data.isSignIn != 1" @click="sign()">签到</div>
<div class="footer cancel" v-if="detail.status==1 && detail.createUserId == user.id" @click="handleCancel">取消会议</div>
<template v-else>
@@ -229,6 +230,16 @@ export default {
this.pageShow = true
}
})
},
sign() {
this.$confirm('确定签到参会吗').then(() => {
this.$http.post(`/app/appmeetinginfo/signin?meetingId=${this.id}`).then(res => {
if (res && res.data) {
this.$u.toast(`签到成功`)
this.getDetail()
}
})
})
}
},
created() {