diff --git a/home.html b/home.html index 7fc9d58..cb8dab0 100644 --- a/home.html +++ b/home.html @@ -83,7 +83,7 @@ - + diff --git a/js/pay.js b/js/pay.js index 2a1309a..ff53f4a 100644 --- a/js/pay.js +++ b/js/pay.js @@ -277,14 +277,14 @@ var webAppClass = { // wxParams.recordArreaInfos= JSON.stringify([{"orderId":webAppParams.orderId,"orderNotPayFee":_mon*100,"parkId":getQueryString(window.location).parkCode}]); // // //新增end - - - if (webAppCode == null || webAppCode == "") {//code检测 - alertMsg(appState.codeNullTip); - $btnObj.style.display = "block"; - $btnLoad.style.display = "none"; - return; - } + alert('走了微信第一步') + + // if (webAppCode == null || webAppCode == "") {//code检测 + // alertMsg(appState.codeNullTip); + // $btnObj.style.display = "block"; + // $btnLoad.style.display = "none"; + // return; + // } webAppClass.payAjaxJDK(orderID); console.log("wxPay");//微信支付 break; @@ -458,12 +458,15 @@ var webAppClass = { //1:有code获取OpenId postRequest(openIdUrl, codeParams, function (res) { + alert('走了微信接口') //alert(JSON.stringify(res)); if (res.code == 0) { + alert('走了微信接口为0') //alert(res.data); webAppClass.getPayParams(res.data, orderID); } else if (res.code == 40163) {//code been used, hints[重复code问题] + alert('走了微信接口不为0') alertMsg(appState.codeNullTip); console.log(res.message); $btnObj.style.display = "block"; @@ -510,6 +513,7 @@ var webAppClass = { var payParamsUrl = webAppRoot + window.webAppH5.wxPayServer; //alert(payParamsUrl);alert(orderID); postRequest(payParamsUrl, wxParams, function (res) { + alert('走了微信支付接口') $btnObj.style.display = "block"; $btnLoad.style.display = "none"; //debugger;