1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- var Request = GetRequest();
- var checktype=false;
- var loading = dialog({
- contentType: 'load',
- skin: 'bk-popup',
- });
- (function() {
- new Vue({
- el: "#app",
- data: {
- result:{},
- successResult:{
- status:"success-pay",
- msg:"就诊账单已完成缴费,可在就诊卡-缴费-已缴费账单中查看。",
- Img:"../images/jiaofeichengong_icon.png",
- txt:"缴费成功",
- },
- synchronizationResult:{
- status:"synchronization-pay",
- msg:"系统繁忙,请重新充值缴费。",
- Img:"../images/jiaofeishibai_icon.png",
- txt:"缴费失败",
- },
- failureResult:{
- status:"failure-pay",
- msg:"系统繁忙,请重新充值缴费。",
- Img:"../images/jiaofeishibai_icon.png",
- txt:"缴费失败",
- },
- healthType:["","账单结算缴费","住院缴费充值"],
- initdata:{"patientName":"","healthNo":"","healthType":1,"payAmount":"","createDate":"",},
- data:{},
- },
- mounted: function() {
- var vm = this
- checkUserAgent();
- vm.checkType()
- },
- methods: {
- //获取数据
- getData:function(){
- var vm=this
- vm.result=vm.successResult
- vm.data={"patientName":getQueryString('patientName'),"healthNo":Request.healthNo,"payAmount":Request.payAmount,"createDate":getQueryString('createDate'),"healthType":1,}
- },
- backClick:function(){
- window.location.href='../../payment/html/repayment.html?id='+Request.cardId;
- },
- //判断是否验证登录通过
- checkType:function(){
- var vm=this
- var timer = setInterval(function(){
- if(checktype){
- clearInterval(timer);
- vm.getData()
- }
- },10);
- },
- },
- })
- })()
- function queryInit(){
- checktype=true
- }
- function getQueryString(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
- var r = window.location.search.substr(1).match(reg);
- if (r != null) return decodeURI(r[2]); return null;
- }
|