xuqiaoying 2 年 前
コミット
8c67cb8883
1 ファイル変更11 行追加6 行削除
  1. 11 6
      pages3/polyv/detail.vue

+ 11 - 6
pages3/polyv/detail.vue

@@ -953,13 +953,15 @@ export default {
     // 公众号模板消息的数据埋点
     if (option.informId) {
       this.informId = option.informId;
-      // this.clickOfficial()
-    }
-    if (option.skipPort) {
     }
+    
   },
-  onShow() {
-
+  async onShow() {
+    if (this.option.skipPort) {
+      let aa = await this.telphoneLogin()
+      console.log('---aa', aa);
+    }
+    console.log('===onshow');
     if (this.$method.isGoLogin()) {
       // 从公众号消息进来的没登录需要跳到登录页,登录后返回
       return;
@@ -982,12 +984,15 @@ export default {
     ...mapMutations(["updateChapterOpen", "updateLiveLast"]),
     // 手机号码自动登入
     telphoneLogin() {
-      this.$http({
+      return this.$http({
         url: "/app/common/telphone_login",
         method: "post",
         data: { sign: this.option.skipPort },
+        noToken: true
       }).then((res) => {
+        return Promise.resolve(res)
         if (res.data.code == 200) {
+          
           console.log('手机号码自动登入');
         }
       });