index.wxml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!--index.wxml-->
  2. <logout-show title="{{'会务资源'}}" showBtn="{{true}}" wx:if="{{ token==='' }}" />
  3. <view class="resource" wx:else>
  4. <van-sticky style="background: #fff;">
  5. <view style="background: #fff;height: 56px;width:100%;line-height: 86px;text-align: center;font-size: 14px;">会务资源</view>
  6. <van-search value="{{ formData.store_name }}" placeholder="输入酒店名称" shape="round" use-action-slot bind:blur="onSearch" bind:clear="onSearch" bind:search="onSearch" use-left-icon-slot="{{true}}" use-right-icon-slot="{{true}}" custom-class="resource-search">
  7. <view slot="left-icon" bindtap="aaa" class="left-icon-view">
  8. {{formData.store_city_name}}
  9. <van-icon name="play" />
  10. </view>
  11. <van-icon slot="right-icon" name="search" />
  12. </van-search>
  13. <van-dropdown-menu active-color="#1989fa" close-on-click-outside="{{false}}">
  14. <van-dropdown-item value="{{ formData.type_id }}" title="{{formData.type_id==='0'?'类型':formData.type_id_title}}" options="{{ type_id_option }}" bind:change="typeChange" data-type="type_id" custom-class="resource-dropdown-item" />
  15. <van-dropdown-item value="{{ formData.area_id }}" title="{{formData.area_id==='0'?'面积':formData.area_id_title}}" options="{{ area_id_option }}" bind:change="typeChange" data-type="area_id" custom-class="resource-dropdown-item" />
  16. <van-dropdown-item value="{{ formData.attendance_id }}" title="{{formData.attendance_id==='0'?'容纳人数':formData.attendance_id_title}}" options="{{ attendance_id_option}}" bind:change="typeChange" data-type="attendance_id" custom-class="resource-dropdown-item" />
  17. <van-dropdown-item value="{{ formData.store_spec_id }}" title="{{formData.store_spec_id==='0'?'场地特色':formData.store_spec_id_title}}" options="{{ store_spec_id_option }}" bind:change="typeChange" data-type="store_spec_id" custom-class="resource-dropdown-item" />
  18. </van-dropdown-menu>
  19. </van-sticky>
  20. <view class="container">
  21. <van-empty wx:if="{{ length===0 }}" description="暂无会务资源" />
  22. <view class="resource-list" hidden="{{length!==0 ? false : true}}">
  23. <view class="resource-item" wx:for="{{resourceList}}" wx:key="index" bindtap="bindViewTap" data-type="{{item.id}}">
  24. <view class="resource-item-left">
  25. <image src="{{item.store_image}}" class="goods-img" />
  26. </view>
  27. <view class="resource-item-right">
  28. <view class="resource-item-right-title">
  29. {{item.store_name}}
  30. </view>
  31. <view class="resource-item-right-area">
  32. <text>{{item.store_city_text}}</text><text class="dian">·</text>
  33. <text>{{item.storeType&&item.storeType.name?item.storeType.name:''}}</text>
  34. </view>
  35. <view class="resource-item-right-count">
  36. <view class="resource-item-right-count-item">
  37. <label>最大会场:</label>
  38. <text>{{item.max_area}}㎡</text>
  39. </view>
  40. <view class="resource-item-right-count-item">
  41. <label>最多容纳:</label>
  42. <text>{{item.attence}}人</text>
  43. </view>
  44. <view class="resource-item-right-count-item">
  45. <label>会场数量:</label>
  46. <text>{{item.meet_num}}间</text>
  47. </view>
  48. <view class="resource-item-right-count-item">
  49. <label>客房数量:</label>
  50. <text>{{item.room_num}}间</text>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view wx:if="{{!hasData&&length>0}}" style="text-align: center;font-size: 13px;">没有更多了</view>
  56. </view>
  57. </view>
  58. </view>
  59. <popup-modal show="{{show}}" popupType="{{popupType}}" popupKey="{{popupKey}}" popupTitle="{{popupTitle}}" popupValue="{{popupValue}}" popupApi="{{popupApi}}" binditemClick="tapItemClick" bindleftClick="popupLeft"/>