tangning 2 年 前
コミット
2584d6b25d
2 ファイル変更1 行追加6 行削除
  1. 1 1
      src/App.vue
  2. 0 5
      src/views/detail/payment.vue

+ 1 - 1
src/App.vue

@@ -39,7 +39,7 @@
     //获取code
     let urlNow = encodeURIComponent(window.location.href);
     let scope = 'snsapi_base'; //snsapi_userinfo   //静默授权 用户无感知
-    let appid = 'wx779dbafb46bab697';
+    let appid = 'wxac3d59ea82d9b82a';
     let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${urlNow}&response_type=code&scope=${scope}&state=${state}#wechat_redirect`;
     window.location.replace(url);
   }

+ 0 - 5
src/views/detail/payment.vue

@@ -39,11 +39,6 @@ onMounted(async () => {
 
 function payOrder() {
   //获取code
-  let urlNow = encodeURIComponent(window.location.href);
-  let scope = 'snsapi_base'; //snsapi_userinfo   //静默授权 用户无感知
-  let appid = 'wxac3d59ea82d9b82a';
-  let url = `https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=${urlNow}&appid=${appid}&response_type=code&scope=${scope}&connect_redirect=1#wechat_redirect`;
-  console.log('https://v4-uat.4dkankan.com/aftermarket/#/home', url);
   if (typeof WeixinJSBridge == 'undefined') {
     if (document.addEventListener) {
       document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);