Explorar o código

优化受邀登录逻辑

t_finder hai 1 mes
pai
achega
725374774f
Modificáronse 1 ficheiros con 11 adicións e 3 borrados
  1. 11 3
      pages/activity/invite-user/invite-passive-user.vue

+ 11 - 3
pages/activity/invite-user/invite-passive-user.vue

@@ -139,6 +139,7 @@
 </template>
 
 <script>
+import CallApp from 'callapp-lib';
 import { registerForInvite } from '~/api/user/client.js';
 import { sendSmsCode } from '~/api/message/phone.js';
 import WxPopTpis from './components/WxPopTpis';
@@ -219,10 +220,17 @@ export default {
         this.submitting = false;
       }
     },
-    // 注册并下载
+    // 注册并下载 TODO
     async registerDownload() {
-      // TODO: 下载逻辑
-      this.$callSzx.open({ param: {}, path: '' });
+      let url = 'https://www.androidscloud.com/admin/attachment/download/2117e9b7f3734b16b81b9d7bb1c5a601';
+
+      const callapp = new CallApp({
+        scheme: { protocol: 'opengeminiapp://', host: 'open' },
+        fallback: url, // 超时后跳转的地址
+        timeout: 2000, // 拉起app超时时间
+      })
+
+      callapp.open({ param: {}, path: '' })
     }
   }
 }