46 lines
2.0 KiB
Plaintext
46 lines
2.0 KiB
Plaintext
<!--pages/article/article.wxml-->
|
|
|
|
<view class="searchBox">
|
|
<view class="search">
|
|
<icon class="iconfont icon-all_search_2"></icon>
|
|
<input type="text" model:value="{{searchText}}" bindconfirm="handSearch" placeholder="请输入文章标题/关键字" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="notice">
|
|
<view class="content">
|
|
<view class="tab_box">
|
|
<view class="ul tab_list">
|
|
<van-tabs active="{{ active }}" bind:click="onClick" id="tab" tab-class="noticeellipsis" ellipsis="{{false}}">
|
|
<van-tab title="全部" class="tabChild" title-style="overflow: visible;white-space: nowrap;text-overflow: clip;" name="0"></van-tab>
|
|
<van-tab title="{{item.name}}" wx:for="{{categories}}" wx:key="index" class="tabChild" title-style="overflow: visible;white-space: nowrap;text-overflow: clip;" ></van-tab>
|
|
</van-tabs>
|
|
</view>
|
|
</view>
|
|
<view class="ul new_box">
|
|
<view class="li new_list" wx:for="{{datas}}" wx:key="index" data-item="{{item}}" catchtap="toNoticeInfo">
|
|
<view class="title">
|
|
<view class="title_a" style="-webkit-box-orient: vertical;"><view class="si_fufei" wx:if="{{item.has_one_article_pay}}"><view>付费</view></view>{{item.title}}</view>
|
|
<view class="title_b">
|
|
<view class="span sort">{{item.author}}</view>
|
|
<view class="span time">{{item.virtual_at?item.virtual_at:item.updated_at}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="img" wx:if="{{item.thumb}}">
|
|
<image src="{{item.thumb}}" mode='aspectFill' />
|
|
</view>
|
|
<view class="img" wx:if="{{!item.thumb}}">
|
|
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/img_default.png" mode='aspectFill' />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="p noNotice" wx:if="{{noNotice}}">该分类下暂无数据</view>
|
|
</view>
|
|
</view>
|
|
<view class="ispay" catchtap="gofufei" wx:if="{{article_pay}}">
|
|
<icon class="iconfont icon-wz_payed"></icon>
|
|
<view class="istpay">已付费</view>
|
|
</view>
|
|
<kFoot exshow="{{true}}" wx:if="{{kFootshow}}"></kFoot>
|
|
<shopfoot bindtabrshow="tabrshowbtn"></shopfoot>
|