mainindex.wxml 4.2 KB
<!-- 发布弹出层 -->
<import src="../template/templates.wxml" />
<template is="showpublish" data='{{publishshow}}' />

 <!-- 底部导航 -->
 <import src="../template/templates.wxml" />
 <template is="tabBar" data='{{num}}' />

 <view class="search mainindex_search">
  <view class="iconfont icon-sousuo searchicon"></view>
  <view class="search_hospital">
   <input placeholder="身份证号或纪念堂号" class="enterword" bindinput="searchhospital" bindtap='searchlist' />
  </view>
 </view>
 <!-- 公告 -->
 <view class="noticeindex">
     公告
 </view>
 <view class="nav mainindex_nav">
  <view wx:for="{{navbar}}" data-idx="{{index}}" class="nav_item {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}}
  </view>
 </view>
 <!--主页信息,于国危机,民俗文化-->
 <scroll-view scroll-y='true' bindscrolltolower='onloading' style='height:{{scroll_height}}rpx'>
 <view class="mainpage" wx:if='{{currentTab !== 2}}'>
  <!-- style:1纯文字,2文字加一张图片,3文字加视频第一针,4文字加三张图片 -->
  <navigator wx:for='{{datalist}}' wx:key url='/pages/main/detail/detail?id={{item.id}}' hover-class="none">
   <view class="topone" wx:if='{{item.style=="1"}}'>
    <view class="toponetext">
     {{item.title}}
    </view>
    <view class="topnonecontent">
     <text class="toponetitle">--{{item.author}}</text>
     <view class="totop">{{item.is_top=='0'?'置顶':'取消置顶'}}</view>
    </view>
   </view>
   <view class="topone" wx:elif='{{item.style=="2"}}'>
    <view class="toptwo">
     <view class="toponetext toptwotext">
      {{item.title}}
     </view>
     <view class="toptwoimg ">
      <image src="{{item.imgs[0]}}"></image>
     </view>
    </view>
    <view class="topnonecontent">
     <view class="newsimg">
      <image src="http://bronet.wangshuwen.com//news.png"></image>
     </view>
     <text class="toponetitle">{{item.author}}</text>
     <text class="toponetitle" style="margin-left:10rpx">3.2万人祭拜</text>
     <view class="totop">{{item.is_top=='0'?'置顶':'取消置顶'}}</view>
    </view>
   </view>
   <view class="topone" wx:elif='{{item.style=="3"}}'>
    <view class="toponetext">
     {{item.title}}
    </view>
    <video id="myVideo" src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400"
     binderror="videoErrorCallback" danmu-list="{{danmuList}}" enable-danmu danmu-btn controls></video>

    <view class="topnonecontent">

     <view class="newsimg">
      <image src="http://bronet.wangshuwen.com//news.png"></image>
     </view>
     <text class="toponetitle">{{item.author}}</text>
     <text class="toponetitle" style="margin-left:10rpx">3.2万人祭拜</text>
    </view>
   </view>
   <view class="tourlist" wx:elif='{{item.style=="4"}}'>
    <view class="touristname">{{item.title}}</view>
    <view class="tourlistimglist">
     <view class="tourlistimg" wx:for='{{item.imgs}}' wx:key >
      <image src="{{item}}"></image>
     </view>
    </view>

    <view class="carfrienditem">
     <view class="carfriend"></view>
     <view class="carfriendname">{{item.author}} 1小时前</view>
    </view>
   </view>

   </navigator>
 </view>
 <!--追思名人-->
 <view wx:else>
  <view class="peoplenav">
   <view wx:for="{{peoplenav}}" data-peopleidx="{{index}}" class="peoplenav_item {{currentpeopleTab==index ? 'peopleactive' : ''}}" wx:key="unique" bindtap="peoplenavbarTap">{{item.name}}
   </view>
  </view>
  <view class="peoplelist">
   <view class="peoplelistitem" wx:for='{{starlist}}' wx:key>
    <view class="peoplelistitemimg">
     <image src="http://bronet.wangshuwen.com//product_05@3x.png"></image>
    </view>


    <view class="peoplecall">
     <text class="peoplecallname">邓丽君</text>
     <text class="peoplecalldate">诞辰24周年</text>
    </view>
    <view class="attentionlist">
     <view class="attention">关注</view>
     <view class="totop">置顶</view>


    </view>
   </view>
   

   
   
  </view>
 </view>
 </scroll-view>