mainindex.wxml
4.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!-- 发布弹出层 -->
<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>