|
发表于 2015-8-25 16:47:22
|
显示全部楼层
是按照
- Model.prototype.weixinPayBtnClick = function(event) {
- var weixin = navigator.weixin;
- var traceID = justep.UUID.createUUID();
- var traceNo = justep.UUID.createUUID();
- var notifyUrl = "http://www.bex5.com";
- var error = function(msg){
- alert('支付异常:' + msg);
- };
- weixin.getAccessToken(function(accessToken) {
- weixin.generatePrepayId({
- "body" : "支付案例",
- "accessToken" : accessToken,
- "feeType" : "1",
- "notifyUrl" : notifyUrl,
- "totalFee" : "1",
- "traceId" : traceID,
- "tradeNo" : traceNo
- }, function(prepayId) {
- weixin.sendPayReq(prepayId, function(message) {
- var responseCode = parseInt(message);
- if (responseCode === 0) {
- alert('支付成功');
- } else {
- error(message);
- }
- }, error);
- }, error);
- }, error);
- };
复制代码
写的吗?
错误是文件已经存在了,确认打包服务器上的资源正确吗?
|
|