|
@ -13,7 +13,7 @@ var loading = dialog({
|
|
|
payMoney:"",
|
|
|
repayAmout:Request.repayAmout,
|
|
|
cardNo:"",
|
|
|
paytype:Request.paytype, //paytype 1为门诊缴费 2为住院缴费
|
|
|
paytype:Request.paytype?Request.paytype:"1", //paytype 1为门诊缴费 2为住院缴费
|
|
|
surplusMoney:"",
|
|
|
data:{},
|
|
|
code:"",
|
|
@ -98,7 +98,10 @@ var loading = dialog({
|
|
|
vm.data=res.data
|
|
|
if(vm.paytype=="2"){
|
|
|
vm.surplusMoney=vm.data.cardInpMoney?vm.data.cardInpMoney:0
|
|
|
vm.cardNo=vm.data.inpCardNo
|
|
|
vm.cardNo=vm.data.inpCardNo
|
|
|
if(vm.data.type=="2"){
|
|
|
vm.cardNo=vm.data.inpCardNo.substr(0,1)+"*************"+vm.data.inpCardNo.substr(vm.data.inpCardNo.length-4,4)
|
|
|
}
|
|
|
}else{
|
|
|
vm.surplusMoney=vm.data.cardMoney?vm.data.cardMoney:0
|
|
|
vm.cardNo=vm.data.cardNo
|
|
@ -130,6 +133,7 @@ var loading = dialog({
|
|
|
}).showModal()
|
|
|
}else{
|
|
|
loading.showModal();
|
|
|
// vm.wxReady()
|
|
|
if(judgeWxVersion()){
|
|
|
vm.getWeixinSign()
|
|
|
}
|
|
@ -173,9 +177,17 @@ var loading = dialog({
|
|
|
},
|
|
|
wxReady:function(){
|
|
|
var vm=this
|
|
|
var cardNo=vm.cardNo
|
|
|
if(vm.data.type=="2"){
|
|
|
if(vm.paytype=="2"){
|
|
|
cardNo=vm.data.inpCardNo
|
|
|
}else{
|
|
|
cardNo=vm.data.cardNo
|
|
|
}
|
|
|
}
|
|
|
var params = {
|
|
|
patient:vm.data.patient,
|
|
|
healthNo:vm.cardNo,
|
|
|
healthNo:cardNo,
|
|
|
healthType:vm.paytype,
|
|
|
payAmount:parseFloat(vm.payMoney).toFixed(2),
|
|
|
spbillCreateIp:returnCitySN["cip"],
|