|
@ -17,12 +17,11 @@ var iscrollState='';//判断滑动方向
|
|
contentrefresh : "正在刷新...",
|
|
contentrefresh : "正在刷新...",
|
|
callback: function(){
|
|
callback: function(){
|
|
iscrollState='down'
|
|
iscrollState='down'
|
|
myVue.getList()
|
|
|
|
myVue.isdown()
|
|
myVue.isdown()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
up : {
|
|
up : {
|
|
height:50,
|
|
|
|
|
|
height:50,
|
|
contentinit: '',
|
|
contentinit: '',
|
|
contentdown: '',
|
|
contentdown: '',
|
|
contentrefresh : "正在加载...",
|
|
contentrefresh : "正在加载...",
|
|
@ -45,11 +44,15 @@ var iscrollState='';//判断滑动方向
|
|
id:"",
|
|
id:"",
|
|
queryList:{
|
|
queryList:{
|
|
month:"",
|
|
month:"",
|
|
healthNo:""
|
|
|
|
|
|
healthNo:"",
|
|
|
|
chargeType:"1", //1:门诊,2:住院,
|
|
|
|
pageNo:1,
|
|
|
|
pageSize:10,
|
|
},
|
|
},
|
|
code:"",
|
|
code:"",
|
|
payTypeList:[{},{type:"weixin",Img:"../images/weixinzhifu_icon.png",text:"微信支付"},{type:"xianjin",Img:"../images/xianjichongzhi_icon.png",text:"现金支付"},{type:"yinlian",Img:"../images/yinlianzhifu_icon.png",text:"银联支付"},{type:"zhifubao",Img:"../images/zhifubaozhifu_icon.png",text:"支付宝支付"}],
|
|
payTypeList:[{},{type:"weixin",Img:"../images/weixinzhifu_icon.png",text:"微信支付"},{type:"xianjin",Img:"../images/xianjichongzhi_icon.png",text:"现金支付"},{type:"yinlian",Img:"../images/yinlianzhifu_icon.png",text:"银联支付"},{type:"zhifubao",Img:"../images/zhifubaozhifu_icon.png",text:"支付宝支付"}],
|
|
healthType:["","就诊卡缴费","住院缴费"],
|
|
|
|
|
|
healthType:["","门诊缴费","住院缴费"],
|
|
|
|
isUPsuccess:true, //上拉锁,搜索成功则释放
|
|
},
|
|
},
|
|
mounted: function() {
|
|
mounted: function() {
|
|
var vm = this
|
|
var vm = this
|
|
@ -79,12 +82,12 @@ var iscrollState='';//判断滑动方向
|
|
vm.data=res.data.filter(function(item){
|
|
vm.data=res.data.filter(function(item){
|
|
return item.isDefault==1
|
|
return item.isDefault==1
|
|
})[0]
|
|
})[0]
|
|
if(!vm.data){
|
|
|
|
vm.data=res.data[0]
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
if(!vm.data){
|
|
|
|
vm.data=res.data[0]
|
|
|
|
}
|
|
vm.queryList.healthNo=vm.data.cardNo
|
|
vm.queryList.healthNo=vm.data.cardNo
|
|
vm.getList()
|
|
|
|
|
|
vm.getList(1)
|
|
}else{
|
|
}else{
|
|
dialog({
|
|
dialog({
|
|
content: "请先绑定就诊卡,再查看就诊缴费信息!",
|
|
content: "请先绑定就诊卡,再查看就诊缴费信息!",
|
|
@ -103,24 +106,47 @@ var iscrollState='';//判断滑动方向
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//获取列表数据
|
|
//获取列表数据
|
|
getList:function(){
|
|
|
|
|
|
getList:function(pageNo){
|
|
var vm=this
|
|
var vm=this
|
|
sendPost("third/hy/pay/gerPayOrderList", vm.queryList, "json", "get",function(){
|
|
|
|
|
|
if(pageNo){
|
|
|
|
vm.queryList.pageNo=pageNo
|
|
|
|
vm.dataList=[]
|
|
|
|
}
|
|
|
|
sendPost("third/hy/pay/gerPayOrderList", vm.queryList, "json", "get",function(){
|
|
loading.close();
|
|
loading.close();
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请求失败'}).show();
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请求失败'}).show();
|
|
}, function(res){
|
|
}, function(res){
|
|
loading.close();
|
|
|
|
if(res.status == 200){
|
|
|
|
vm.dataList=res.data
|
|
|
|
vm.length=vm.dataList.length
|
|
|
|
|
|
loading.close();
|
|
|
|
if(vm.queryList.pageNo==1){
|
|
|
|
vm.length=0
|
|
|
|
}
|
|
|
|
if(res.status == 200){
|
|
|
|
vm.isUPsuccess=true
|
|
|
|
vm.dataList.push.apply(vm.dataList,res.data)
|
|
|
|
vm.length+=vm.dataList.length
|
|
|
|
if(iscrollState=="down"){
|
|
|
|
mui('#wrapper').pullRefresh().endPulldownToRefresh(false);
|
|
|
|
mui('#wrapper').pullRefresh().enablePullupToRefresh();//重置
|
|
|
|
}else{
|
|
|
|
if(res.data.length<vm.queryList.pageSize){
|
|
|
|
mui('#wrapper').pullRefresh().enablePullupToRefresh(true);
|
|
|
|
}else{
|
|
|
|
mui('#wrapper').pullRefresh().enablePullupToRefresh(false);
|
|
|
|
}
|
|
|
|
}
|
|
}else{
|
|
}else{
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
|
|
|
|
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
|
|
|
|
mui('#wrapper').pullRefresh().endPulldownToRefresh(false);
|
|
|
|
mui('#wrapper').pullRefresh().enablePullupToRefresh();//重置
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//跳转到订单结果页
|
|
//跳转到订单结果页
|
|
gotoResult:function(seqNo){
|
|
|
|
window.location.href='../../payment/html/paymentResult.html?seqNo='+seqNo;
|
|
|
|
|
|
gotoResult:function(index){
|
|
|
|
var vm=this
|
|
|
|
// console.log($($(index)[0].currentTarget).attr("data-id"))
|
|
|
|
var item=vm.dataList[index]
|
|
|
|
window.location.href='../../payment/html/paymentResult.html?healthType='+item.healthType+"&patientName="+item.patientName+"&healthNo="+item.healthNo+"&payAmount="+item.payAmount+"&seqNo="+item.seqNo+"&createDate="+item.createDate;
|
|
},
|
|
},
|
|
//跳转切换就诊卡
|
|
//跳转切换就诊卡
|
|
changeCards:function(){
|
|
changeCards:function(){
|
|
@ -140,7 +166,7 @@ var iscrollState='';//判断滑动方向
|
|
onSelect: function(valueText, inst){
|
|
onSelect: function(valueText, inst){
|
|
if(vm.queryList.month!=valueText){
|
|
if(vm.queryList.month!=valueText){
|
|
vm.queryList.month=valueText
|
|
vm.queryList.month=valueText
|
|
vm.getList()
|
|
|
|
|
|
vm.getList(1)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
});
|
|
});
|
|
@ -159,16 +185,17 @@ var iscrollState='';//判断滑动方向
|
|
}
|
|
}
|
|
},10);
|
|
},10);
|
|
},
|
|
},
|
|
isdown:function(){
|
|
|
|
// setTimeout(function(){
|
|
|
|
mui('#wrapper').pullRefresh().endPulldownToRefresh(false);
|
|
|
|
mui('#wrapper').pullRefresh().enablePullupToRefresh();//重置
|
|
|
|
// },1000)
|
|
|
|
|
|
isdown:function(){
|
|
|
|
alert(12)
|
|
|
|
this.getList(1)
|
|
},
|
|
},
|
|
isup:function(){
|
|
isup:function(){
|
|
// setTimeout(function(){
|
|
|
|
mui('#wrapper').pullRefresh().endPullupToRefresh(true);//true表示没有更多数据了
|
|
|
|
// },1000)
|
|
|
|
|
|
alert(13)
|
|
|
|
if(this.isUPsuccess){
|
|
|
|
this.queryList.pageNo++
|
|
|
|
this.isUPsuccess=false
|
|
|
|
}
|
|
|
|
this.getList()
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|
|
})
|