提交 e21c7438 编写于 作者: xinglee23's avatar xinglee23

fix: add activity check

上级 3631ec6d
...@@ -159,14 +159,15 @@ export default { ...@@ -159,14 +159,15 @@ export default {
}, },
methods: { methods: {
activityCheck(rightsNo) { activityCheck(rightsNo) {
const activity = getActivityInfo({ unionId: '', rightsNo }); getActivityInfo({ unionId: '', rightsNo }).then((res) => {
if (activity.code === '000000') { if (res.code === '000000') {
this.errorMsg = activity.data.errorMsg; this.errorMsg = res.data.errorMsg;
}
if (this.errorMsg) { if (this.errorMsg) {
return this.$toast(this.errorMsg); return this.$toast(this.errorMsg);
} }
}
});
}, },
handleActivityRemind() { handleActivityRemind() {
if (!this.errorMsg) return; if (!this.errorMsg) return;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册