Explorar el Código

bug: 修正详情弹窗样式

zjxpcyc hace 6 años
padre
commit
5e7d35f9fe
Se han modificado 1 ficheros con 12 adiciones y 1 borrados
  1. 12
    1
      src/views/vote/detail.vue

+ 12
- 1
src/views/vote/detail.vue Ver fichero

@@ -100,7 +100,18 @@ export default {
100 100
           actid: this.actid,
101 101
           memberid: this.memberid,
102 102
         })
103
-        this.show = true
103
+        // this.show = true
104
+
105
+        if (this.info.AfterVote) {
106
+          this.$dialog
107
+            .alert({ title: "投票成功!", message: "恭喜您获得一次抽奖机会!" })
108
+            .then(() => {
109
+              window.location.href = this.info.AfterVote;
110
+            });
111
+        } else {
112
+          this.$dialog.alert({ message: "投票成功!" });
113
+        }
114
+
104 115
       })
105 116
     },
106 117
     tolist() {