|
|
@ -243,10 +243,10 @@ class wxpay |
|
|
wx.miniProgram.getEnv((res)=>{ |
|
|
wx.miniProgram.getEnv((res)=>{ |
|
|
if (res.miniprogram) { |
|
|
if (res.miniprogram) { |
|
|
// 在微信小程序中打开 |
|
|
// 在微信小程序中打开 |
|
|
|
|
|
wx.miniProgram.navigateTo({url: \'/pages/pay/pay\'}); |
|
|
console.log(123) |
|
|
console.log(123) |
|
|
}else{ |
|
|
}else{ |
|
|
//false代表在公众号里 |
|
|
//false代表在公众号里 |
|
|
console.log(456) |
|
|
|
|
|
if (typeof WeixinJSBridge == "undefined") |
|
|
if (typeof WeixinJSBridge == "undefined") |
|
|
{ |
|
|
{ |
|
|
if( document.addEventListener ) |
|
|
if( document.addEventListener ) |
|
|
|