index.wxml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <view class="zxczxc" style="top: {{statusBarHeight + navHeight + 80}}px; height: calc(100% - {{statusBarHeight + navHeight + 80}}px);">
  2. <view class="page-title" style="padding-top: {{statusBarHeight}}px; height: {{navHeight}}px; background-image: url({{bgImg}});">
  3. <navigator url="/pages/ucenter/index/index">
  4. <image src="{{userInfo.avatar || '/static/images/avatar_default.png'}}" ></image>
  5. <image src="https://platform-wxmall.oss-cn-beijing.aliyuncs.com/upload/20180727/150547696d798c.png" wx:if="{{!userInfo && !userInfo.avatar}}" class="user-bg"></image>
  6. <text bindtap="">Hi~ {{userInfo ? userInfo.nickName : '游客'}}</text>
  7. </navigator>
  8. </view>
  9. <view class="search-layer" style="top: {{statusBarHeight + navHeight}}px; background-image: url({{bgImg}});background-position: 0 -{{statusBarHeight + navHeight}}px">
  10. <view class="search" bindtap="searchFocus">
  11. <input placeholder="请输入起火对象/单位名称" disabled placeholder-style="color:#C8C9CC;" value="{{keyword}}" bindinput="inputChange" bindconfirm="search" confirm-type="search"
  12. type="text"></input>
  13. <image wx:if="{{imgServer}}" src="{{imgServer + '/search.png'}}" class="icon"></image>
  14. <view bindtap="clearKeyword" class="clear" wx:if="{{showClear}}"><image src="/static/images/list_close.png" /></view>
  15. </view>
  16. </view>
  17. <image src="{{bgImg}}" class="bgimg"></image>
  18. <scroll-view class="container" style="min-height: {{brandList.length < 3 ? '300px': 'auto'}}" >
  19. <view class="body" id="tab-con">
  20. <!-- <lip-sync inner-text="Some text"></lip-sync> -->
  21. <view class="ul" wx:if="{{loading || brandList.length}}">
  22. <view bindtap="gotoWV" data-scene="{{item.sceneNum}}" data-id="{{item.id}}" class="li" wx:for='{{brandList}}'
  23. wx:key="id">
  24. <view class="ctp">
  25. <image mode="aspectFill" src="{{item.sceneCover|| '/static/images/fire_pic@2x.png'}}"></image>
  26. <image class="icon" src="/static/images/reserv_vr@2x.png" wx:if="{{item.sceneCover}}"></image>
  27. </view>
  28. <view class="item-content">
  29. <view class="b-title">
  30. <text>{{item.projectName}}</text>
  31. <view><image src="{{item.icon}}"></image>
  32. <text>{{item.projectSite}}</text></view>
  33. </view>
  34. <view class="b-info">
  35. <view>
  36. <text>{{item.organizerDeptName}}</text>
  37. </view>
  38. <view>
  39. <text>{{item.createTime}}</text>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="loadText" wx:if="{{!loading && currentPage < totalPages}}" bindtap="onReachBottom">加载更多</view>
  45. <view class="loadText" wx:if="{{!loading && currentPage >= totalPages}}">- 已加载所有数据 -</view>
  46. <view class="loadText loading" wx:if="{{loading}}" >
  47. <image src="/static/images/fire_loading@2x.png"></image>
  48. </view>
  49. </view>
  50. <view wx:else class="unbrand">
  51. <image src="/static/images/fire_pic_data@2x.png"></image>
  52. <view class="text">暂无数据或无查看权限~</view>
  53. </view>
  54. </view>
  55. <view class="linear-mask {{hideMask? '': 'mask-hidden'}}"></view>
  56. <view bindtap="tabHide" class="search-con" wx:if="{{showSearch}}" >
  57. <view class="sc-con" catchtap>
  58. <input focus="true" value="{{keyword}}" bindinput="inputChange" bindconfirm="search" confirm-type="search"
  59. type="text"></input>
  60. <image wx:if="{{imgServer}}" src="{{imgServer + '/fangdajing.png'}}"></image>
  61. </view>
  62. <view class="no-record" wx:if="{{noRecord}}">未搜索到相关内容</view>
  63. </view>
  64. </scroll-view>
  65. </view>