|
@ -1,10 +1,10 @@
|
|
Vue.component('consultation-list', {
|
|
Vue.component('consultation-list', {
|
|
template: `<ul class="consultation-list">
|
|
template: `<ul class="consultation-list">
|
|
<li class="consultation-list-item" @click="viewDetail(1)" v-for="(list,index) in chatList">
|
|
<li class="consultation-list-item" @click="viewDetail(1)" v-for="(list,index) in chatList">
|
|
<img class="con-avatar" :src="list.patientPhoto" alt="" onerror="onerror=null;src=\'http://www.yihu.com/v3/images/default-female-doc.jpg\'" />
|
|
|
|
|
|
<img class="con-avatar" :src="httpRequest.getImgUrl(list.patientPhoto)" alt="" onerror="onerror=null;src=\'../../../images/p-female.png\'" />
|
|
<div class="con-user-info">
|
|
<div class="con-user-info">
|
|
<span class="con-status" :data-status="list.status" desc="1进行2结束"></span>
|
|
|
|
<p><span class="con-user-name">{{list.patientName}}</span><span class="small con-time">{{list.czrq}}</span></p>
|
|
|
|
|
|
<span class="con-status" :data-status="list.status" desc="0进行1结束"></span>
|
|
|
|
<p><span class="con-user-name">{{list.patientName}}</span><span class="small con-time">{{list.czrq.substring(0,list.czrq.length-2)}}</span></p>
|
|
<p class="user-problem">咨询问题:{{list.symptoms}}</p>
|
|
<p class="user-problem">咨询问题:{{list.symptoms}}</p>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
@ -21,11 +21,14 @@ Vue.component('consultation-list', {
|
|
top.layer.open({
|
|
top.layer.open({
|
|
type: 2,
|
|
type: 2,
|
|
maxmin: true,
|
|
maxmin: true,
|
|
area: ['600px', '360px'],
|
|
|
|
|
|
area: ['1000px', '600px'],
|
|
shadeClose: true,
|
|
shadeClose: true,
|
|
content: 'ddd'
|
|
content: 'ddd'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
},
|
|
|
|
computed:{
|
|
|
|
|
|
},
|
|
},
|
|
watch:{
|
|
watch:{
|
|
consultaData:function(val){
|
|
consultaData:function(val){
|
|
@ -33,6 +36,8 @@ Vue.component('consultation-list', {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted: function() {
|
|
mounted: function() {
|
|
this.$emit('init-data', this.curPage);
|
|
|
|
|
|
var divH = $("#tab-iframe",parent.document).height() - 75;
|
|
|
|
$(".consultation-list").slimScroll({ height: divH,color: '#666'});
|
|
|
|
// this.$emit('init-data', this.curPage);
|
|
}
|
|
}
|
|
})
|
|
})
|