buildtext.wxml
4.6 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
<view class="attention">
<view class="attentintext">关注公众号,回复医院名称查询笔记</view>
<view class="attentinword" bindtap="attention">关注</view>
</view>
<view class="searchbuildtext">
<view class="search">
<view class="search_hospital">
<input placeholder="搜索医院" class="enterword" bindinput="search" />
</view>
<view class="searchimg" bindtap="searchlist">
<image src="http://bronet.ibaby88.cn/aicon02@2x.png"></image>
</view>
</view>
<view class="mew_right">
<view class="new {{status==1?'new_active':''}}" bindtap="new">最新</view>
<view class="new {{status==2?'new_active':''}}" bindtap="hot">最热</view>
</view>
</view>
<!--轮播图-->
<view class="swiper_image">
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange">
<block wx:for="{{imgUrls}}" wx:key="doct">
<swiper-item bindtap="enter" data-id="{{index}}" data-url="{{item.url}}">
<image src="{{item.image}}" class="slide-image" width="355" height="150" />
</swiper-item>
</block>
</swiper>
<view class="dots">
<block wx:for="{{imgUrls}}" wx:key="">
<view class="dot{{index == currentSwiper ? 'active' : ''}}"></view>
</block>
</view>
</view>
<!--下面的内容-->
<view>
<view class="nodata" wx:if="{{buildlist.length==0}}">暂无数据</view>
<view class="user_comment" wx:else>
<view class="essaysitem" bindtap="buildtextdetail" wx:for="{{buildlist}}" data-id="{{item.archives_id}}" wx:key="" wx:for-index="par">
<view class="essays_content user_essays_content">
<view class="essays_content_img">
<image src="{{item.avatar}}"></image>
</view>
<view class="essays_content_text">
<view class="user_comment_name">
<view class="essays_name">{{item.user_nickname}}</view>
<view class="user_comment_hostpital" data-hosid="{{item.hospital_id}}" catchtap='enterhostail'>{{item.hospital_name}}</view>
</view>
<view class="essays_date">{{item.auto_generate}} 预约</view>
<view class="essays_text">
<view class="editword">{{item.content_text}}<text wx:if="{{item.openword}}">{{item.showword?'...':''}}</text>
<view class="openword" catchtap='operaword' data-archives_id="{{item.archives_id}}" wx:if="{{item.openword}}" data-showword="{{item.showword}}">{{item.showword?'展开':'收起'}}</view>
</view>
<view vx:if="item.content_imgs.length!=0">
<view class="edit_img small_img" wx:if="{{item.content_imgs.length>1}}">
<view class="edit_small_img" wx:for="{{item.content_imgs}}" wx:key="" >
<image src="{{item}}" data-index='{{index}}' data-paridx="{{par}}" catchtap="viewImg" ></image>
</view>
</view>
<view class="edit_img" wx:else>
<view class="edit_big_img" wx:for="{{item.content_imgs}}" wx:key="">
<image src="{{item}}" data-index='{{index}}' data-paridx="{{par}}" catchtap="viewImg"></image>
</view>
</view>
</view>
</view>
<view class="user_bottom">
<view class="user_date">{{item.create_time}}</view>
<view class="user_lsit_img">
<view class="startouch" catchtap="collect" data-id="{{item.archives_id}}">
<view class="user_img thumb_star" wx:if="{{item.if_collect==0}}">
<image src="http://bronet.ibaby88.cn/bicon28@2x.png"></image>
</view>
<view class="user_img thumb_star" wx:if="{{item.if_collect==1}}">
<image src="http://bronet.ibaby88.cn/bicon29@2x.png"></image>
</view>
</view>
<view class="thumb">
<view class="iscllect" catchtap="touchstar" data-id="{{item.archives_id}}">
<view class="user_img" wx:if="{{item.if_touch==0}}">
<image src="http://bronet.ibaby88.cn/bicon30@2x.png"></image>
</view>
<view class="user_img" wx:if="{{item.if_touch==1}}">
<image src="http://bronet.ibaby88.cn/bicon31@2x.png"></image>
</view>
</view>
<text class="thumb_num">{{item.touch_num}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!--按钮-->
<view class="footbtn">
<button class="lj_mecomment" bindtap="attentionpublic">建档成功,我要分享</button>
</view>