Переглянути джерело

feat(活动邀请用户赚星币): 唤起app

曾志翔 2 роки тому
батько
коміт
e9716b3d25
1 змінених файлів з 3 додано та 7 видалено
  1. 3 7
      pages/activity/invite-user/register.vue

+ 3 - 7
pages/activity/invite-user/register.vue

@@ -114,22 +114,18 @@ export default {
       try {
         this.submitting = true;
         const valid = await this.$refs.observer.validate();
-        console.log(
-          '🚀 ~ file: register.vue ~ line 117 ~ submit ~ valid',
-          valid,
-        );
         if (valid) {
           this.$tongji.trackEvent('活动', '注册', '', 0);
           const res = await registerForInvite(this, this.form);
           this.$toast.success(res.msg);
-          this.toDownload();
+          this.openSzxApp();
         }
       } finally {
         this.submitting = false;
       }
     },
-    toDownload() {
-      window.open('https://www.androidscloud.com', '_self');
+    openSzxApp() {
+      this.$callSzx.open({ param: {}, path: '' });
     },
     async sendSmsCode() {
       try {