bding 1 рік тому
батько
коміт
fcade8f8b9
2 змінених файлів з 26 додано та 11 видалено
  1. 20 11
      activityPages/activityDetail/manageMixin.js
  2. 6 0
      components/modalDialog.vue

+ 20 - 11
activityPages/activityDetail/manageMixin.js

@@ -136,17 +136,26 @@ export default {
         })
         .then((res) => {
           if (res.Ret == 200) {
-            uni.showModal({
-              confirmText: "知道了",
-              confirmColor: "#376cbb",
-              content: res.Msg || res.Data.PopupMsg,
-              showCancel: false,
-              success: (res) => {
-                if (res.confirm) {
-                  this.getActivityDetail();
-                }
-              },
-            });
+            this.hasPermission = res.Data.HasPermission;
+            this.jurisdictionList = res.Data;
+            this.jurisdictionList.isActivityDetail = true;
+            if (res.Data.SignupStatus !== "Success") {
+              this.isShow = true;
+            } else {
+              if (res.Data.SignupStatus == "Success") this.isShow = true;
+            }
+            
+            // uni.showModal({
+            //   confirmText: "知道了",
+            //   confirmColor: "#376cbb",
+            //   content: res.Msg || res.Data.PopupMsg,
+            //   showCancel: false,
+            //   success: (res) => {
+            //     if (res.confirm) {
+            //       this.getActivityDetail();
+            //     }
+            //   },
+            // });
           }
         });
     },

+ 6 - 0
components/modalDialog.vue

@@ -236,6 +236,9 @@ export default {
         ? this.GoOutboundMobileBtn()
         : "";
       this.initData();
+      if (this.jurisdictionList.isActivityDetail) {
+        this.$parent.getActivityDetail();
+      }
     },
     /**
      *
@@ -252,6 +255,9 @@ export default {
         this.initData();
         this.$emit("cancelShowBtn");
       }
+      if (this.jurisdictionList.isActivityDetail) {
+        this.$parent.getActivityDetail();
+      }
     },
     /**
      *