Quellcode durchsuchen

更新未登录会自动登陆

yingzhou vor 6 Jahren
Ursprung
Commit
1dcd2e4963

+ 2 - 1
api/http-request.js

@ -221,8 +221,9 @@
        if(tip) {
            count ++;
            if(count == 1){
//          	console.log(tip)
				toastr && toastr.warning(tip)
            	toLoginPage()
                toastr && toastr.warning(tip)
            }
        }
    }

+ 6 - 2
app/rehabilitation/css/rehabilitation_management.css

@ -103,13 +103,17 @@ body,html,.c-container{height: 100%;}
/*.time-axis tr:hover p{}*/
[is-future="1"] .cur-status,[is-future="2"] .cur-status{background-color: #12b7f5;}
[is-future="-1"] .cur-status{background-color: #ff3b30;}
.c-ff3b30{color: #ff3b30;}
.c-ff3b30{color: #ff3b30!important;}
[is-future="1"] .day-number{color: #12B6F4;}
[is-future="2"] .day-number{color: #333;}
[is-future="3"] .cur-status{background-color: #5cb85c;}
.calendar-day[is-future="0"]{background-color: #f5f5fa;}
.calendar-day[is-future="1"]{background-color: #12B6F4;}
.calendar-day[is-future="3"]{background-color: #efefef;}
.time-box:after{content: '';position: absolute;right: 0;z-index: 2;right: 19px;height: 100%;width: 1px;background-color: #d7dce6;top: 50%;}
.time-axis tr:nth-last-of-type(1) .time-box:after{display: none;}
.view-task{text-align: center;cursor: pointer;}
.task-status{text-align: center;}
[v-cloak]{display: none;}
.visibility-hide{visibility: hidden;}
.visibility-hide{visibility: hidden;}
.c-666{color: #666!important;}

+ 1 - 19
app/rehabilitation/js/service_item_content.js

@ -193,7 +193,7 @@
			        socket.on('message', function (data) {
			      		console.log(data);
			      		if(data.type==1){
			      			vm.checkAfterQrCode(planid,patient);
			      			vm.goToFinish(planid);
			      		}
			        });
			
@ -213,24 +213,6 @@
			        layer.msg('服务码创建失败',{icon:5});    
			    });
			},
			checkAfterQrCode:function(planid,patient){
				var vm=this;
				var params={
					planDetailId:planid,
					patientCode: patient
				}
				rehaAPI.checkAfterQrCode(params).then(function(res){
					var icon=5;
					if(res.status==200){
						if(res.data.flag){
							icon=1;
							vm.qrModal=false;
							vm.goToFinish(planid);
						}
					}
					layer.msg(res.msg,{icon:icon});  
				})
			},
			getQRCode:function(planid){
				var vm=this;
				var loginDoctor = JSON.parse(window.localStorage.getItem('wlyyAgent'));