index.wxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!--pages/cg_detail/index.wxml-->
  2. <import src="../../common/component/wxParse/wxParse.wxml" />
  3. <view class='container'>
  4. <view class='cg_detail_bg'>
  5. <image class='cg_detail_bg_img' mode="aspectFill" src="{{pavilionDetail.imageUrl||defaultImg}}"></image>
  6. </view>
  7. <view class='cg_detail_info'>
  8. <view class='cg_detail_info_top' style='margin-bottom:20rpx;'>
  9. <view class='cg_detail_info_top_flex'>
  10. <view class='cg_detail_info_title'>
  11. <text class='exhibitionDetailName' style='width:550rpx;'>{{pavilionDetail.name}}</text>
  12. </view>
  13. <view class='cg_detail_info_subTxt'>
  14. <text decode='true' class='cg_detail_info_subTxt_txt'>{{pavilionDetail.enName}}&nbsp;</text>
  15. </view>
  16. </view>
  17. <view class='cg_detail_info_top_img_flex'>
  18. <image class='cg_detail_info_top_flex_img' mode='aspectFill' src="{{pavilionDetail.logoUrl||defaultImg}}"></image>
  19. </view>
  20. </view>
  21. <view class="cg_detail_container">
  22. <view style='height:190rpx;overflow:hidden'>
  23. <template is="wxParse" data="{{wxParseData:description.nodes}}" />
  24. </view>
  25. <view style='margin-top:10rpx;'>
  26. <view class='weui-cell no-border' style='padding:0'>
  27. <view class='weui-cell__bd'>
  28. </view>
  29. <view class='weui-cell__ft weui-cell__ft_in-access' style='font-size:28rpx' bindtap='to_search'>查看更多</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class='cg_artist' wx:if="{{pavilionDetail.relatedActivities.length}}">
  35. <view class='fdkk-cells' style='padding:0'>
  36. <view class='tab-bar'>
  37. <view class='weui-cell' style='margin:20rpx 30rpx 0;padding-bottom:10rpx;border-bottom:none'>
  38. <view class='weui-cell__bd'>
  39. <text class='sub_bar_title'>展览</text>
  40. </view>
  41. <view style='font-size:28rpx' class="weui-cell__ft weui-cell__ft_in-access fix_weui-cell__ft_in-access {{readActive?'weui-cell__ft_in-access_active':''}}" bindtap='readMore'>全部({{relatedActivitiesLength}})</view>
  42. </view>
  43. </view>
  44. <view class='artist_avatar'>
  45. <navigator hover-class='none' url="{{item.hasProduct&&!item.hasPay?('../yuezhan/pay_page/index?id='+item.id):(item.hasProduct?'../wv_page/index?id='+item.id:'../zl_detail/index?id='+item.id)}}" wx:if="{{!(index>2)||readActive}}" class='fdkz-card' wx:for="{{pavilionDetail.relatedActivities}}" wx:key="index">
  46. <!-- <navigator url="{{item.hasProduct&&!item.hasPay?('../yuezhan/pay_page/index?id='+item.id):(item.hasProduct?'../wv_page/index?id='+item.id:'../zl_detail/index?id='+item.id)}}" wx:for="{{exhibitionList}}" wx:key="index" class='fdkz-card'> -->
  47. <view class='fdkz-card-img'>
  48. <view class="fdkz-card-tag {{item.statusText=='展览中'||item.statusText==''?'':item.statusText=='已结束'?'fdkz-card-tag_finish':'fdkz-card-tag_coming'}}">
  49. <text class='fdkz-card-tag-txt'>{{item.statusText||'常设展'}}</text>
  50. </view>
  51. <image src="{{item.imageUrl||defaultImg}}" mode="aspectFill" class='item-img'></image>
  52. </view>
  53. <view class='fdkz-card-info'>
  54. <view class='fdkz-card-info-title'>
  55. <view class='title-txt'>
  56. {{item.name}}
  57. </view>
  58. <image wx:if="{{item.hasProduct}}" mode='widthFix' class='fdkzImg' src='{{testImg}}'></image>
  59. <!-- <navigator url='./index' hover-stop-propagation="true" hover-class='none' data-idx="{{index}}" data-type="{{item.hasCollect}}" data-id="{{item.id}}" class="iconfont icon-like {{item.hasCollect?'icon-like_active':''}}" catchtap='addLike' style='float:right'></navigator> -->
  60. </view>
  61. <view class='fdkz-card-info-date'>
  62. <view class='date-txt'>{{item.pavilionName}}丨{{item.statusTextDesp}}</view>
  63. <view class='changguan_title'>
  64. <text class='iconfont icon-comment'> {{item.commentCount||0}}</text>
  65. <text class='iconfont icon-view'> {{item.pv||0}}</text>
  66. <!-- <text class='iconfont icon-empty_like'> {{item.collectionsCount}}</text> -->
  67. <text data-idx="{{index}}" data-type="{{item.hasCollect}}" data-id="{{item.id}}" class="iconfont {{item.hasCollect?'icon-like':'icon-empty_like'}}"> {{item.collectionsCount||0}}</text>
  68. </view>
  69. </view>
  70. <text></text>
  71. </view>
  72. </navigator>
  73. </view>
  74. </view>
  75. </view>
  76. <view class='tour_guide' wx:if="{{pavilionDetail.address||pavilionDetail.openTime||pavilionDetail.pavilions[0].tel}}">
  77. <view class='fdkk-cells' style='padding: 0;margin-bottom:0'>
  78. <view class='weui-cell fix-padding'>
  79. <view class='weui-cell__bd' style='padding:0 30rpx;'>
  80. <text class='sub_bar_title'>参观指南</text>
  81. </view>
  82. </view>
  83. <cover-view class='tour_map' wx:if="{{pavilionDetail.relatedActivities[0].longitude}}">
  84. <map id="map" longitude="{{pavilionDetail.relatedActivities[0].longitude}}" latitude="{{pavilionDetail.relatedActivities[0].latitude}}" scale="14" controls="{{controls}}" bindcontroltap="controltap" markers="{{markers}}" bindmarkertap="markertap" polyline="{{polyline}}"
  85. bindregionchange="regionchange" show-location style="width: 100%; height: 400rpx;">
  86. <cover-image src='{{icon_quanping}}' bindtap='navigateToLocation' class='icon_quanping'></cover-image>
  87. </map>
  88. </cover-view>
  89. <view style='padding-bottom:30rpx;'>
  90. <view wx:key="index" class='tour_info' wx:if="{{pavilionDetail.address}}">
  91. <view class='tour_info_title'>地址:</view>
  92. <view class='tour_info_txt'>{{pavilionDetail.address}}</view>
  93. </view>
  94. <view wx:key="index" class='tour_info' wx:if="{{pavilionDetail.openTime}}">
  95. <view class='tour_info_title'>开放时间</view>
  96. <view class='tour_info_txt'>
  97. <template is="wxParse" data="{{wxParseData:openTime.nodes}}" />
  98. </view>
  99. </view>
  100. <view wx:key="index" class='tour_info' wx:if="{{pavilionDetail.tel}}">
  101. <view class='tour_info_title'>电话</view>
  102. <view class='tour_info_txt'>{{pavilionDetail.tel}}</view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>