bayi 1 ano atrás
pai
commit
d74a98394a
1 arquivos alterados com 13 adições e 13 exclusões
  1. 13 13
      小咖秀公众号支付/index.html

+ 13 - 13
小咖秀公众号支付/index.html

@@ -183,6 +183,19 @@
         if (uid) {
           this.uid = uid
         }
+        if (first) {
+          axios({
+            method: 'post',
+            url: 'https://reader-api.ai160.com/wx/userEvent/v2',
+            headers: {
+              uid: this.uid,
+              channelCode: '3001'
+            },
+            data: {
+              action: 'IOS_PAY_ENTER'
+            }
+          })
+        }
         if (code) {
           this.code = code
           axios({
@@ -201,19 +214,6 @@
         } else {
           this.getWxCode()
         }
-        if (first) {
-          axios({
-            method: 'post',
-            url: 'https://reader-api.ai160.com/wx/userEvent/v2',
-            headers: {
-              uid: this.uid,
-              channelCode: '3001'
-            },
-            data: {
-              action: 'IOS_PAY_ENTER'
-            }
-          })
-        }
       },
       methods: {
         selected(e) {