|
@@ -39,11 +39,6 @@ onMounted(async () => {
|
|
|
|
|
|
function payOrder() {
|
|
function payOrder() {
|
|
//获取code
|
|
//获取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 (typeof WeixinJSBridge == 'undefined') {
|
|
if (document.addEventListener) {
|
|
if (document.addEventListener) {
|
|
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
|
|
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
|