index.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <van-search value="{{ params.content.where.condition }}" shape='round' placeholder="请输入搜索关键词" use-action-slot bind:clear='onClear' bind:search="startSearch">
  2. </van-search>
  3. <view class="global-total">总共{{params.content.total}}个</view>
  4. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  5. <navigator url="#" class="project-item" wx:for="{{list}}" wx:key="sa_doctorid" data-id="{{item.sa_doctorid}}" bind:tap="changeResult">
  6. <view class="main">
  7. <view class="label">
  8. {{item.doctorname}}
  9. </view>
  10. <view class="tag-box">
  11. <view class="systemtag" wx:for="{{item.tag_sys}}" wx:key="item">{{item}}</view>
  12. <view class="datatag" wx:for="{{item.tag}}" wx:key="item">{{item}}</view>
  13. </view>
  14. <view class="replenish">
  15. <text style="color: #666;">联系方式:</text>
  16. <text>{{item.phonenumber}}</text>
  17. </view>
  18. <view class="replenish">
  19. <text style="color: #666;">职称:</text>
  20. <text>{{item.professional}}</text>
  21. </view>
  22. <view class="replenish">
  23. <text style="color: #666;">所属科室:</text>
  24. <text>{{item.hospitaldepname || '--'}}</text>
  25. </view>
  26. <view class="replenish">
  27. <text style="color: #666;">是否科室负责人:</text>
  28. <text>{{item.isleader==0?'否':'是'}}</text>
  29. </view>
  30. <view class="replenish">
  31. <text style="color: #666;">所属医院:</text>
  32. <text>{{item.hospitalname || item.enterprisename || '--'}}</text>
  33. </view>
  34. <view class="replenish">
  35. <text style="color: #666;">负责人:</text>
  36. <text>{{item.leader[0].name}}</text>
  37. </view>
  38. <view class="replenish">
  39. <text style="color: #666;">备注:</text>
  40. <text>{{item.remarks || '--'}}</text>
  41. </view>
  42. </view>
  43. </navigator>
  44. <view wx:if="{{!radio}}" style="height: 70rpx;" />
  45. <My_empty wx:if="{{!list.length}}" />
  46. </Yl_ListBox>
  47. <block wx:if="{{!radio}}">
  48. <view class="footer">
  49. <view class="count">
  50. 已选:{{result.length}}
  51. </view>
  52. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
  53. </view>
  54. <wxs module="handle">
  55. module.exports = {
  56. isCheck: function (id, list) {
  57. return list.some(function (v) {
  58. return v == id
  59. });
  60. },
  61. }
  62. </wxs>
  63. </block>