瀏覽代碼

更改住院缴费按钮颜色

chenyue 6 年之前
父節點
當前提交
5d2550f96d
共有 4 個文件被更改,包括 31 次插入12 次删除
  1. 1 1
      html/payment/css/payment.css
  2. 3 5
      html/payment/html/changeCards.html
  3. 7 3
      html/payment/js/changeCards.js
  4. 20 3
      html/payment/js/payment.js

+ 1 - 1
html/payment/css/payment.css

@ -226,7 +226,7 @@
   color:#ffffff;
}
.zhuyuan .c-btn-full,.zhuyuan .c-btn-big{
	background: #FF5E6C;
	background: #17B3EC;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

+ 3 - 5
html/payment/html/changeCards.html

@ -8,7 +8,7 @@
              content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
        <meta name="apple-mobile-web-app-capable" content="yes"/>
        <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
		<title>我的卡包</title>
		<title>切换就诊卡</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<link rel="shortcut icon" href="../../../favicon.ico">
@ -21,12 +21,10 @@
	<body class="bgc-f2f3f4">
		<div id="app" v-cloak>
			<div  class="plr15">				
				<div class="bgc-fff mt10 jiuzhen c-radius-20 c-f14" v-for="(item,i) in dataList" v-key="i"  @click="gotoPage(item.id)">
				<div class="bgc-fff mt10  c-radius-20 c-f14" :class="divClass" v-for="(item,i) in dataList" v-key="i"  @click="gotoPage(item.id)">
					<div class="pt12 pb5 pl15">
						<span class="c-333333">{{item.cardNo}}&nbsp;({{item.name}})&nbsp;</span>
						<span  style="float: right;">
							<span class="card-icon c-f14">就诊</span>
						</span>						
						<span class="card-icon" style="float: right;">{{divName}}</span>
					</div>	
					<div class="geduan"></div>
					<div class="pt5 pb10 c-t-center">

+ 7 - 3
html/payment/js/changeCards.js

@ -6,6 +6,8 @@ var checktype=false;
		data: {
			dataList:[],
			code:"",
			divClass:"jiuzhen",
			divName:"就诊"
		},
		mounted:function(){
			var vm = this
@ -29,6 +31,8 @@ var checktype=false;
			        if(res.status == 200){ 
			        	vm.dataList=res.data
			        	if(Request.paytype==2){
			        		vm.divClass="zhuyuan"
			        		vm.divName="住院"
			        		vm.dataList=res.data.filter(function(item){
			        			item.cardNo=item.inpCardNo
			        			return item.inpCardNo
@ -57,10 +61,10 @@ var checktype=false;
					window.location.href='../../payment/html/paymentList.html?id='+id;
				}else if(Request.pre=="waitingDoctorList"){   //跳到候诊查询页面
					window.location.href='../../informationSearch/html/waitingDoctorList.html?id='+id;
				}else if(Request.pre=="payment"){   //跳到候诊查询页面
				}else if(Request.pre=="payment"){   //跳到支付页面
					window.location.href='../../payment/html/payment.html?id='+id+"&paytype="+Request.paytype;
				}else{
					
				}else{  //默认跳转缴费查询页面
					window.location.href='../../payment/html/paymentList.html?id='+id;
				}
			},
			//判断是否验证登录通过

+ 20 - 3
html/payment/js/payment.js

@ -17,6 +17,7 @@ var loading = dialog({
			data:{},
			code:"",
			cardlenght:0,
			ischangeCard:false,
		},
		mounted: function() {
			var vm = this
@ -39,20 +40,29 @@ var loading = dialog({
			        		vm.cardlenght=res.data.length
							if(Request.id){																
				        		vm.data=res.data.filter(function(item){
				        			return item.id==Request.id
				        			return item.id==Request.id && vm.hasInpCardNo(item)
				        		})[0]
				        		if(!vm.data){
			        				vm.data=res.data.filter(function(item){
					        			return item.isDefault==1
					        			return item.isDefault==1 && vm.hasInpCardNo(item)
					        		})[0]
			        			}
							}else{								
				        		vm.data=res.data.filter(function(item){
				        			return item.isDefault==1
				        			return item.isDefault==1 && vm.hasInpCardNo(item)
				        		})[0]
							}
							if(!vm.data){
			        			vm.data=res.data[0]
			        			if(!vm.hasInpCardNo(vm.data)){
			        				dialog({
							            content: "请先绑定住院就诊卡!", 
							            okValue: '确定',
							            ok: function(){
											window.location.href='../../payment/html/patientIDCards.html';
							            },
							        }).showModal()
			        			}
			        		}
			        		vm.cardId=vm.data.id
			        		vm.getCardInfo()
@ -200,6 +210,13 @@ var loading = dialog({
		        	dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:"支付金额不得超过20000"}).show();
		        	this.payMoney=20000
		        }
		    },
		    hasInpCardNo:function(item){
		    	var ispass=true
		    	if(Request.paytype==2){
		    		ispass=item.inpCardNo?true:false
		    	}
		    	return ispass
		    },
			//跳转切换就诊卡
			changeCards:function(){