报名冲突弹窗显示
This commit is contained in:
parent
341449efe9
commit
6cdbc303a5
@ -113,7 +113,11 @@ function toastForEventStatus(es) {
|
|||||||
|
|
||||||
function showRefereeApplyFailure(message, fallbackMessage) {
|
function showRefereeApplyFailure(message, fallbackMessage) {
|
||||||
const content = String(message || fallbackMessage || '报名执裁失败');
|
const content = String(message || fallbackMessage || '报名执裁失败');
|
||||||
if (content.includes('执裁时间存在重叠')) {
|
const isTimeConflict = content.includes('执裁时间') &&
|
||||||
|
(content.includes('重叠') || content.includes('冲突'));
|
||||||
|
if (isTimeConflict) {
|
||||||
|
wx.hideLoading();
|
||||||
|
wx.hideToast();
|
||||||
wx.showModal({
|
wx.showModal({
|
||||||
title: '报名提示',
|
title: '报名提示',
|
||||||
content,
|
content,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user