hospital_detail.wxml 2.74 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
<view class="main">
<image class="hospital_image" src="{{hospital.image.medium.length<5?'../../source/hospital_introduce.jpg':hospital.image.medium}}"></image>

<view class='name_view'>
<view class='line'></view>
<view class="title_text">{{hospital.title}}</view>
<view class='showAll' bindtap='showOtherHospital'>其他医院</view>
<image class="icon_more" src="../../source/gengduo.png" bindtap='showOtherHospital'></image>
</view>
<view>
<view class="hospital_introduce1" wx:if="{{!showAllIntro}}" bindtap='showAllIntroduce'>{{hospital.introduction ? hospital.introduction : '暂无介绍信息'}}</view>
<view class="hospital_introduce_All" wx:if="{{showAllIntro}}" bindtap='showAllIntroduce'>{{hospital.introduction ? hospital.introduction : '暂无介绍信息'}}</view>
<!-- <view class="hospital_introduce1" style='position:absolute;bottom:0;right:0;background:#fff'>展开</view> -->
</view>

<!-- <div id="a" style="height:100px;width:200px;overflow-y:hidden;">
测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语句测试语
</div>
<view id="show" style="display:block" onclick="document.getElementById('a').style.height='auto';this.style.display='block';document.getElementById('show').style.display='none';">展开</view> -->

<view class='divider10'></view>
<view wx:for="{{departmentList}}" wx:key="index">
<view class='departname_view'>
<view class='line'></view>
<view class="title_text">{{item.name}}</view>
</view>
<view>
<view wx:for="{{item.data}}" wx:for-index="sectionIndex" wx:for-item="sectionItem">
<view class="doctor_view" bindtap='toDocotrDetail' data-id='{{sectionItem.id}}'>
<image class='doctor_icon' src="{{sectionItem.avatar.medium.length<6 ?'../../source/default_doctor_icon.png': sectionItem.avatar.medium}} "></image>
<view class='content_view'>
<view style="display:flex">
<view class='name_text'>{{sectionItem.title}}</view>
<view class='name_text' style='margin-left:15px'>{{sectionItem.username}}</view>
</view>

<view class='doctor_intro'>{{sectionItem.goodAt==null?'':sectionItem.goodAt}}</view>
</view>
</view>


</view>
</view>

</view>

</view>