bayi преди 1 година
родител
ревизия
81cabeb9cb
променени са 1 файла, в които са добавени 9 реда и са изтрити 6 реда
  1. 9 6
      小咖秀公众号支付/index.html

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

@@ -268,7 +268,8 @@
                         channelCode: '3001'
                       },
                       data: {
-                        action: 'IOS_PAY_SUCCESS'
+                        action: 'IOS_PAY_SUCCESS',
+                        targetContent: this.product.title
                       }
                     })
                   } else {
@@ -295,11 +296,13 @@
           this.getWxCode()
         },
         getWxCode() {
-          const appId = 'wxf05800eea975a68b'
-          const redirect_uri = encodeURIComponent('https://h5-pay.ai160.com/reader-ios?uid=' + this.uid)
-          // const redirect_uri = encodeURIComponent('https://h5-pay.ai160.com/reader-ios?uid=d83d947655f6455a96f4197d31afa6d4')
-          const url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appId + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_base#wechat_redirect'
-          location.href = url
+          setTimeout(() => {
+            const appId = 'wxf05800eea975a68b'
+            const redirect_uri = encodeURIComponent('https://h5-pay.ai160.com/reader-ios?uid=' + this.uid)
+            // const redirect_uri = encodeURIComponent('https://h5-pay.ai160.com/reader-ios?uid=d83d947655f6455a96f4197d31afa6d4')
+            const url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appId + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_base#wechat_redirect'
+            location.href = url
+          }, 300)
         }
       }
     })