|
@@ -69,7 +69,7 @@ export default {
|
|
|
signupIsAddOfCancel(item, type, valName = "") {
|
|
|
let id = this.activityIdAdd || item.ActivityId;
|
|
|
this.itemData = item;
|
|
|
- console.log(this.itemData,item.IsSignup);
|
|
|
+ console.log(this.itemData, item.IsSignup);
|
|
|
if (item && item.IsSignup == 1) {
|
|
|
if (item.IsResearchPoints) {
|
|
|
if (isTimeGreaterThanCurrent(item.CancelDeadline)) {
|
|
@@ -175,7 +175,7 @@ export default {
|
|
|
};
|
|
|
this.collectList.forEach((item) => {
|
|
|
if (id == item.ActivityId) {
|
|
|
- item.IsCancelMeetingReminder = 1;
|
|
|
+ res.Data.SignupStatus == "Success" && (item.IsCancelMeetingReminder = 1);
|
|
|
}
|
|
|
});
|
|
|
} else if (this.hasPermission == 2) {
|
|
@@ -222,9 +222,23 @@ export default {
|
|
|
this.hasPermission = res.Data.HasPermission;
|
|
|
this.jurisdictionList = res.Data;
|
|
|
if (this.hasPermission == 1) {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/activityPages/generationAsk/generationAsk?id=" + item.ActivityId + "&type=" + type,
|
|
|
- });
|
|
|
+ if (res.Data.SignupStatus === "Success") {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/activityPages/generationAsk/generationAsk?id=" + item.ActivityId + "&type=" + type,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ uni.showModal({
|
|
|
+ confirmText: "知道了",
|
|
|
+ confirmColor: "#376cbb",
|
|
|
+ content: res.Msg || res.Data.PopupMsg,
|
|
|
+ showCancel: false,
|
|
|
+ success: (res) => {
|
|
|
+ if (res.confirm) {
|
|
|
+ this.getActivityDetail();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
} else if (this.hasPermission == 2) {
|
|
|
this.isShowhasPermission = true;
|
|
|
} else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
|
|
@@ -255,7 +269,6 @@ export default {
|
|
|
if (res.Data.GoFollow) this.goFollow = res.Data.GoFollow;
|
|
|
else if (res.Data.SignupStatus == "Success") {
|
|
|
this.isShow = true;
|
|
|
- item.IsAppointment = 1;
|
|
|
}
|
|
|
item.IsAppointment = 1;
|
|
|
}
|
|
@@ -350,28 +363,28 @@ export default {
|
|
|
this.isResearchModalShow = true;
|
|
|
}
|
|
|
},
|
|
|
- async signupCheck(item,type,valName = ""){
|
|
|
- await this.$store.dispatch("showLoginModal")
|
|
|
- this.signupIsAddOfCancel(item,type,valName)
|
|
|
- },
|
|
|
- async summaryHandelCheck(item){
|
|
|
- await this.$store.dispatch("showLoginModal")
|
|
|
- this.summaryIsHandel(item)
|
|
|
- },
|
|
|
- async meetingReminderCheck(id, type){
|
|
|
- await this.$store.dispatch("showLoginModal")
|
|
|
- this.meetingReminderAdd(id, type)
|
|
|
- },
|
|
|
- async askingCheck(item, type = ""){
|
|
|
- await this.$store.dispatch("showLoginModal")
|
|
|
- this.askingGo(item, type)
|
|
|
- },
|
|
|
- async wanttosignupCheck(item){
|
|
|
- await this.$store.dispatch("showLoginModal")
|
|
|
- this.wanttosignup(item)
|
|
|
- },
|
|
|
- async goDetailCheck(item){
|
|
|
- this.goDetail(item)
|
|
|
- }
|
|
|
+ async signupCheck(item, type, valName = "") {
|
|
|
+ await this.$store.dispatch("showLoginModal");
|
|
|
+ this.signupIsAddOfCancel(item, type, valName);
|
|
|
+ },
|
|
|
+ async summaryHandelCheck(item) {
|
|
|
+ await this.$store.dispatch("showLoginModal");
|
|
|
+ this.summaryIsHandel(item);
|
|
|
+ },
|
|
|
+ async meetingReminderCheck(id, type) {
|
|
|
+ await this.$store.dispatch("showLoginModal");
|
|
|
+ this.meetingReminderAdd(id, type);
|
|
|
+ },
|
|
|
+ async askingCheck(item, type = "") {
|
|
|
+ await this.$store.dispatch("showLoginModal");
|
|
|
+ this.askingGo(item, type);
|
|
|
+ },
|
|
|
+ async wanttosignupCheck(item) {
|
|
|
+ await this.$store.dispatch("showLoginModal");
|
|
|
+ this.wanttosignup(item);
|
|
|
+ },
|
|
|
+ async goDetailCheck(item) {
|
|
|
+ this.goDetail(item);
|
|
|
+ },
|
|
|
},
|
|
|
};
|