diff --git a/common/common.js b/common/common.js index a2ec4af..c9446f7 100644 --- a/common/common.js +++ b/common/common.js @@ -463,7 +463,7 @@ export default { if (res.status == 1) { let _data = res.data; wx.config({ - debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 + debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId: _data.appId, timestamp: _data.timestamp, nonceStr: _data.noncestr, diff --git a/main.js b/main.js index a2b4e64..dd0b07f 100644 --- a/main.js +++ b/main.js @@ -176,6 +176,8 @@ Vue.prototype.req = function(param, backpage, backtype) { } }) } + +// #ifdef H5 function loadScript(url) { var script = document.createElement('script'); script.type = 'text/javascript'; @@ -184,6 +186,8 @@ function loadScript(url) { } loadScript('https://res.wx.qq.com/open/js/jweixin-1.6.0.js'); +// #endif + Vue.prototype.onBridgeReady = function(data) { var x = { @@ -206,7 +210,7 @@ Vue.prototype.onBridgeReady = function(data) { } // 测试 // const baseUrl = '' -const baseUrl = 'http://101.43.1.207' +const baseUrl = 'http://api.zpc-xy.com/' // 正式 // const baseUrl = 'https://xinglanmh.shequtuangou.vip'