"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Apis.js"),i=require("./model.js");require("../../common/libraries/request.js");const l=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const s=require("../../common/libraries/apiLoading.js");require("../../common/libraries/userUserLogin.js");const t=require("../../common/libraries/naviHelper.js");l.useWeAppAuthStore();const r={getShow(e){s.getApiLoading(o.Apis.Activity.ActivityEnrolls.Show,{id:e}).then((e=>{var o,l;i.useModel.showData.value={...null==(o=e.data)?void 0:o.activity,activity_id:null==(l=null==e?void 0:e.data)?void 0:l.id},console.log(e)}))},handleCancelSignUp(){var l,r,n;e.index.showModal({title:"提示",content:`您将取消 [${null==(n=null==(r=null==(l=i.useModel)?void 0:l.showData)?void 0:r.value)?void 0:n.title}]，取消后释放名额?`,success(e){var l,r,n;e.confirm?(s.getApiLoading(o.Apis.Activity.ActivityEnrolls.Cancelled,{id:null==(n=null==(r=null==(l=i.useModel)?void 0:l.formData)?void 0:r.value)?void 0:n.activity_id}).then((e=>{t.showToastBack("取消报名成功",1,!0),console.log(e)})),console.log("用户点击确定")):e.cancel&&console.log("用户点击取消")}})}};exports.method=r;
