|
@ -40,8 +40,8 @@ function pageInitData(){
|
|
|
$("#photo").attr("src", getImgUrl(photo));
|
|
|
$("#concern").text(data.concernCount);
|
|
|
//获得关注状态
|
|
|
var concertStatus = data.sign; //-1没有关注,1已关注
|
|
|
if(concertStatus < 0){
|
|
|
var concernStatus = data.sign; //-1没有关注,1已关注
|
|
|
if(concernStatus < 0){
|
|
|
$("#isFocus").text("关注");
|
|
|
$("#isFocus").addClass("grey");
|
|
|
}else{
|
|
@ -66,7 +66,7 @@ function bindEvents(){
|
|
|
$("#bang-btn").on("click",function(){
|
|
|
//是否关注了这个医生
|
|
|
if(docInfo.sign == -1){
|
|
|
concertDoctor(true); //关注医生
|
|
|
concernDoctor(true); //关注医生
|
|
|
}else{
|
|
|
//判断是否有未结束的咨询
|
|
|
d.show();
|
|
@ -77,15 +77,15 @@ function bindEvents(){
|
|
|
$("#isFocus").on('click', function(){
|
|
|
var $this = $(this);
|
|
|
if($this.hasClass("grey")){
|
|
|
concertDoctor();
|
|
|
concernDoctor();
|
|
|
}else{
|
|
|
cancelConcert();
|
|
|
cancelConcern();
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
//关注医生
|
|
|
function concertDoctor(addConsult){
|
|
|
function concernDoctor(addConsult){
|
|
|
d.show();
|
|
|
var url = "/patient/concern/addConcern",
|
|
|
params = {
|
|
@ -111,7 +111,7 @@ function concertDoctor(addConsult){
|
|
|
}
|
|
|
|
|
|
//取消关注
|
|
|
function cancelConcert(){
|
|
|
function cancelConcern(){
|
|
|
d.show();
|
|
|
var url = "/patient/concern/deleteConcern",
|
|
|
params = {
|