|
@ -19,6 +19,7 @@ var loading = dialog({
|
|
|
code:"",
|
|
|
cardlenght:0,
|
|
|
ischangeCard:false,
|
|
|
_payMoney:"",
|
|
|
},
|
|
|
mounted: function() {
|
|
|
var vm = this
|
|
@ -101,6 +102,7 @@ var loading = dialog({
|
|
|
}
|
|
|
if(Request.repayAmout){ //从缴费结算进入
|
|
|
vm.payMoney=parseFloat(vm.repayAmout-vm.surplusMoney).toFixed(2)
|
|
|
vm._payMoney=vm.payMoney
|
|
|
}
|
|
|
}else{
|
|
|
loading.close();
|
|
@ -111,13 +113,22 @@ var loading = dialog({
|
|
|
//去支付
|
|
|
toPayment:function(){
|
|
|
var vm=this
|
|
|
loading.showModal();
|
|
|
if(vm.payMoney&&vm.payMoney>0){
|
|
|
if(judgeWxVersion()){
|
|
|
vm.getWeixinSign()
|
|
|
}
|
|
|
if(vm.payMoney&&vm.payMoney>0){
|
|
|
if(Request.repayAmout&&vm._payMoney>vm.payMoney){ //从缴费结算进入,若支付金额少于预付则弹框提示
|
|
|
dialog({
|
|
|
content: "金额低于补差费用"+vm._payMoney+"元,请修改后支付。",
|
|
|
okValue: '好的',
|
|
|
ok: function() {
|
|
|
vm.payMoney=vm._payMoney
|
|
|
},
|
|
|
}).showModal()
|
|
|
}else{
|
|
|
loading.showModal();
|
|
|
if(judgeWxVersion()){
|
|
|
vm.getWeixinSign()
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
loading.close();
|
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请输入正确的充值金额'}).show();
|
|
|
}
|
|
|
},
|