|
1.报错信息如下:
2.具体响应代码如下:
- Model.prototype.button4Click = function(event){
- if (!navigator.WxApi) {
- alert("return");
- return;
- }
- // 生成订单数据
- var orderID = justep.UUID.createUUID();
- var tradeNo = orderID;
- var notifyUrl = location.origin + "/baas/weixin/weixin/notify";
- alert(""+notifyUrl);
- <font color="#ff0000"> this.wxApi.chooseWXPay({</font>
- body : "x5外卖",
- mchId : "1488004442",
- notifyUrl : notifyUrl,
- outTradeNo : tradeNo,
- totalFee : "1"
- }).done(function() {
- payDtd.resolve(2);
- }).fail(function() {
- payDtd.reject(-20);
- });
- alert("运行了");
- };
复制代码
|
|