|
@@ -18,15 +18,13 @@ export default {
|
|
|
this.specialPopupMsg = "";
|
|
|
this.specialIsHintShow = true;
|
|
|
this.specialGoFollowShow = true;
|
|
|
- this.show_cancel_button = false;
|
|
|
- this.show_confirm_button = false;
|
|
|
this.specialAccounts = item.Explain;
|
|
|
},
|
|
|
// 报名或者取消报名
|
|
|
async applyOfcancel(item, type = "") {
|
|
|
- this.show_cancel_button = false;
|
|
|
this.show_confirm_button = true;
|
|
|
- if ((type != "back" && item.IsTrip == 1) || (type == "back" && item.IsSignup == 1)) { // 取消报名
|
|
|
+ if ((type != "back" && item.IsTrip == 1) || (type == "back" && item.IsSignup == 1)) {
|
|
|
+ // 取消报名
|
|
|
const str = item.ActivityTime.replace(/-/g, "/");
|
|
|
const date = new Date(str);
|
|
|
const times = date.getTime();
|
|
@@ -52,18 +50,33 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
});
|
|
|
- } else { // 报名
|
|
|
+ } else {
|
|
|
+ // 报名
|
|
|
const res = await activity.activityApecialAdd({ ActivityId: item.ActivityId });
|
|
|
if (res.Ret == 200) {
|
|
|
- this.specialIsHintShow = false;
|
|
|
- this.specialGoFollowShow = true;
|
|
|
- this.specialAccounts = res.Data.PopupMsg;
|
|
|
- this.specialPopupMsg = res.Data.PopupMsg2;
|
|
|
+ this.modalShow(res);
|
|
|
if (res.Data.SignupStatus == 1) {
|
|
|
type == "back" ? (item.IsSignup = 1) : (item.IsTrip = 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ // 弹框的数据重置
|
|
|
+ ininModalHandler() {
|
|
|
+ this.show_cancel_button = false;
|
|
|
+ this.show_confirm_button = false;
|
|
|
+ this.specialIsHintShow = false;
|
|
|
+ this.specialGoFollowShow = false;
|
|
|
+ this.isCancelBtn = false;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 显示弹框
|
|
|
+ modalShow(res) {
|
|
|
+ this.show_confirm_button = true;
|
|
|
+ this.specialGoFollowShow = true;
|
|
|
+ this.specialAccounts = res.Data.PopupMsg;
|
|
|
+ this.specialPopupMsg = res.Data.PopupMsg2;
|
|
|
+ },
|
|
|
},
|
|
|
};
|