|
@ -137,7 +137,7 @@ |
|
|
createPrepaid(token, type) { |
|
|
createPrepaid(token, type) { |
|
|
var url = type == 1 ? this.$setting.context_path2 +'/order/manage/createPrepaid?v=1&ts=1&sign=1' : type == 2 ? this.$setting.context_path1 +'/order/manage/createChangeModelPrepaid.do?1=1' : this.$setting.context_path1 +'/order/manage/createPrepaid.do?1=1'; |
|
|
var url = type == 1 ? this.$setting.context_path2 +'/order/manage/createPrepaid?v=1&ts=1&sign=1' : type == 2 ? this.$setting.context_path1 +'/order/manage/createChangeModelPrepaid.do?1=1' : this.$setting.context_path1 +'/order/manage/createPrepaid.do?1=1'; |
|
|
url = url+"&token=" + token |
|
|
url = url+"&token=" + token |
|
|
var param={clientIp:this.clientIp,longitude:this.longitude,latitude:this.latitude,ipType:this.ipType,payType:this.payType,fromAppurl:this.fromAppurl,trainingOrderId:this.trainingOrderId,riskType:this.riskType,deviceType:this.deviceType,verifyTp:this.verifyTp,verifyRt:this.verifyRt,deviceId:this.deviceId,openid:this.unionId} |
|
|
|
|
|
|
|
|
var param={clientIp:this.clientIp,longitude:this.longitude,latitude:this.latitude,ipType:this.ipType,payType:this.payType,fromAppurl:this.fromAppurl,trainingOrderId:this.trainingOrderId,riskType:this.riskType,deviceType:this.deviceType,verifyTp:this.verifyTp,verifyRt:this.verifyRt,deviceId:this.deviceId,openid:this.unionId,version:2} |
|
|
this.$http.post(url,type == 1?param:null,type!=1?{params:param}:null).then(res => { |
|
|
this.$http.post(url,type == 1?param:null,type!=1?{params:param}:null).then(res => { |
|
|
if (res.data.code == 0) { |
|
|
if (res.data.code == 0) { |
|
|
var outTradeNo=res.data.data.outTradeNo;//商户平台交易流水号 |
|
|
var outTradeNo=res.data.data.outTradeNo;//商户平台交易流水号 |
|
@ -167,7 +167,7 @@ |
|
|
}, |
|
|
}, |
|
|
/***充值预支付 */ |
|
|
/***充值预支付 */ |
|
|
createRechargePrepaid(token, type) { |
|
|
createRechargePrepaid(token, type) { |
|
|
var param={clientIp:this.clientIp,longitude:this.longitude,latitude:this.latitude,ipType:this.ipType,payType:this.payType,fromAppurl:this.fromAppurl,trainingOrderId:this.trainingOrderId,riskType:this.riskType,deviceType:this.deviceType,verifyTp:this.verifyTp,verifyRt:this.verifyRt,deviceId:this.deviceId,openid:this.unionId,rechargeAmount:this.rechargeAmount} |
|
|
|
|
|
|
|
|
var param={clientIp:this.clientIp,longitude:this.longitude,latitude:this.latitude,ipType:this.ipType,payType:this.payType,fromAppurl:this.fromAppurl,trainingOrderId:this.trainingOrderId,riskType:this.riskType,deviceType:this.deviceType,verifyTp:this.verifyTp,verifyRt:this.verifyRt,deviceId:this.deviceId,openid:this.unionId,rechargeAmount:this.rechargeAmount,version:2} |
|
|
|
|
|
|
|
|
var url = type == 1 ? this.$setting.context_path2 +'/order/manage/createRechargePrepaid?v=1&ts=1&sign=1': this.$setting.context_path1 +'/order/manage/createRechargePrepaid.do?1=1'; |
|
|
var url = type == 1 ? this.$setting.context_path2 +'/order/manage/createRechargePrepaid?v=1&ts=1&sign=1': this.$setting.context_path1 +'/order/manage/createRechargePrepaid.do?1=1'; |
|
|
url = url+"&token=" + token |
|
|
url = url+"&token=" + token |
|
|