Browse Source

修改部分跳转问题

zyz 6 years ago
parent
commit
b9731781cd
2 changed files with 19 additions and 8 deletions
  1. 1 1
      app/jbsc/html/statistics.html
  2. 18 7
      app/jbsc/js/statistics.js

+ 1 - 1
app/jbsc/html/statistics.html

@ -191,7 +191,7 @@
										已预约
									</div>
									<div v-else-if="data.following==0 && data.isOrder==0">
										<span class="btn bgc-FF9630 fl ml10" @click="jkgz(data.id)">健康跟踪</span>
										<span class="btn bgc-FF9630 fl ml10" @click="jkgz(data)">健康跟踪</span>
										<span class="btn bgc-12B7F5 fl ml10" @click="zhuanzhen">转诊</span>
									</div>
									<div v-else-if="data.following==1">

+ 18 - 7
app/jbsc/js/statistics.js

@ -4,19 +4,19 @@ toastr.options = {
}
function showSuccessMessage(msg) {
    toastr.success(msg)
    layer.msg(msg,{icon:1})
}
function showErrorMessage(msg) {
    toastr.error(msg)
   	layer.msg(msg,{icon:5})
}
function showWarningMessage(msg) {
    toastr.warning(msg)
    layer.msg(msg,{icon:2})
}
function showInfoMessage(msg) {
    toastr.info(msg)
    layer.msg(msg,{icon:6})
}
new Vue({
@ -148,10 +148,21 @@ new Vue({
		});
  	},
  	//健康跟踪
  	jkgz:function(id){
  	jkgz:function(data){
  		var vm=this
  		//跳转到筛查结果页面
		showInfoMessage(id+"筛查结果")
  	},
		layer.open({
		  type: 2,
		  area: ['500px', '550px'],
		  shade: 0.5,
		  title: '家医建议',
		  fixed: true, //不固定
		  maxmin: false,
		  closeBtn:1,
		  shift: 5,
		  shadeClose: false, //点击遮罩关闭层
		  content: 'advice.html?resultCode='+data.code+'&filter_code='+data.templateCode
		});
	}
  }
})