You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git/scr/论坛/pages/index/index.wxml

49 lines
1.5 KiB

<swiper class="index-swiper" autoplay interval="1000" circular indicator-dots>
<swiper-item><image src="/image/2.jpg"></image></swiper-item>
<swiper-item><image src="/image/3.jpg"></image></swiper-item>
</swiper>
<view class="search">
<input value="{{search}}" bindblur="blur" type="text" placeholder="输入待查找的帖子"/>
<view class="find" bindtap="find">查找</view>
</view>
<!--导航栏-->
<view class="index-tab">
<view wx:for="{{loveSort}}">
<view wx:if="{{index==sid}}" class="active" data-id="{{index}}" bindtap="sort" >{{item.name}}</view>
<view wx:else="{{index!=sid}}" data-id="{{index}}" bindtap="sort">{{item.name}}</view>
</view>
</view>
<!--帖子的展示-->
<view class="message">
<view class="message-item" wx:for="{{message}}" wx:key='key' data-id="{{item._id}}" bindtap="show">
<!--个人信息-->
<view class="top">
<image class="image" src="{{item.result[0].head}}" style="contain: content;"></image>
<text>{{item.result[0].username}}</text>
</view>
<!--标题-->
<view class="title">{{item.title}}</view>
<!--内容-->
<view class="content">
{{item.content}}
</view>
<!--图片-->
<view class="images">
<image wx:for="{{item.url}}" wx:key='src' src="{{item}}"></image>
</view>
<!--评论和点赞-->
<view class="other">
<view><icon class="iconfont icon-xiaoxi1"></icon><text>{{item.messageNum}}</text></view>
<view><icon class="iconfont icon-dianzan"></icon><text>{{item.zan}}</text></view>
</view>
</view>
</view>;;