Browse Source

Merge branch 'iteration_0310' into jenkins

lex 2 years ago
parent
commit
82f50bf255
1 changed files with 14 additions and 14 deletions
  1. 14 14
      public/project/initiation.html

+ 14 - 14
public/project/initiation.html

@@ -347,20 +347,20 @@
         }
 
         // 判断是否是微信,只能微信中打开
-        // if (!browser().weixin) {
-        //   this.showPopup = true
-        //   return
-        // } else {
-        //   //授权
-        //   const code = getUrlCode()
-        //   console.log(code)
-        //   if (!code) {
-        //     this.getAppIdAndCode(window.location.href)
-        //     return
-        //   } else {
-        //     this.code = code
-        //   }
-        // }
+        if (!browser().weixin) {
+          this.showPopup = true
+          return
+        } else {
+          //授权
+          const code = getUrlCode()
+          console.log(code)
+          if (!code) {
+            this.getAppIdAndCode(window.location.href)
+            return
+          } else {
+            this.code = code
+          }
+        }
 
         if (!this.orchestraId) {
           vant.showToast('信息获取失败,请联系老师')