wx.miniProgram.navigateTo真机测试失败,开发者工具上可以
<script></script> function toPay() {
var is_special=false;
var order_id = [[${order_id}]];
var platform =$.cookie("platform");
if (platform == 1){
wx.miniProgram.navigateTo({url: '../appletPay/appletPay?order_id=' + order_id});
is_special =true;
}
if (!is_special){
window.location.href = "[[${reqStr}]]";
}
}
$(document).ready(function () {
toPay();
});
10 回复