Browse Source

update regsuccess page

fengchang 1 year ago
parent
commit
1bbcff5353
1 changed files with 25 additions and 1 deletions
  1. 25 1
      hichina-main-front-mobile-first/src/pages/RegSuccessPage.vue

+ 25 - 1
hichina-main-front-mobile-first/src/pages/RegSuccessPage.vue

@@ -1,9 +1,33 @@
 <template>
-  <q-page> regsuccess </q-page>
+  <q-page>
+    <div class="row flex flex-center">
+      <div class="col-12 col-md-8 text-h3 q-pa-xl text-red">
+        Please go to your mailbox to confirm registration...
+      </div>
+    </div>
+  </q-page>
 </template>
 
 <script>
+import { onMounted, getCurrentInstance } from "vue";
+import { useQuasar } from "quasar";
 export default {
   name: "RegSuccessPage",
+  setup() {
+    const instance = getCurrentInstance();
+    const app = instance.appContext.app;
+    const gp = app.config.globalProperties;
+    const $q = useQuasar();
+
+    const waitAndGo = async () => {
+      setTimeout(() => {
+        gp.$goPage("/");
+      }, 8000);
+    };
+    onMounted(() => {
+      waitAndGo();
+    });
+    return {};
+  },
 };
 </script>