43 lines
1.9 KiB
Plaintext
43 lines
1.9 KiB
Plaintext
<wxs module="dateUtils">
|
|
function formatDate(dateStr) {
|
|
return dateStr.substring(0, 10);
|
|
}
|
|
module.exports = {
|
|
formatDate: formatDate
|
|
};
|
|
</wxs>
|
|
<view class="container">
|
|
<view wx:if="{{list.length}}" class="i-flex i-flex-wrap i-flex-spb">
|
|
<view class="item i-flex-alc " wx:for="{{list}}" wx:key="id">
|
|
<view class="list-itemText" >
|
|
<view>{{item.name}}</view>
|
|
<!-- <view>{{item.create_time.split(" ")[0]}}</view> -->
|
|
<view>{{dateUtils.formatDate(item.create_time)}}</view>
|
|
</view>
|
|
<!-- <image class="thumb" bindtap="goInfo" src="{{item.file_path_thumb}}" data-id="{{item.city_id}}"></image> -->
|
|
<!-- <view class="item i-flex-col i-flex-alc " wx:for="{{list}}" wx:key="id" >/ -->
|
|
<view class="zhezhao i-flex i-flex-alc" wx:if="{{item.already == 0 }}"><image src="/images/suo.png" class="suoIcon"></image></view>
|
|
<image class="thumb" src="{{item.file_path_thumb}}" bindtap="goInfo" data-id="{{item.city_id}}" ></image>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- <view class="i-flex i-alc title"><image src="/images/ditu.png" class="mapIcon"></image>点亮城市</view>
|
|
<view wx:if="{{list.length}}" class="i-flex i-flex-wrap i-flex-spb">
|
|
<view class="item i-flex-col i-flex-alc " wx:for="{{list}}" wx:key="id" >
|
|
<view class="zhezhao i-flex i-flex-alc" wx:if="{{item.already == 0 }}"><image src="/images/suo.png" class="suoIcon"></image></view>
|
|
<image class="thumb" src="{{item.file_path_thumb}}" bindtap="goInfo" data-id="{{item.city_id}}" ></image>
|
|
<text>{{item.name}}</text>
|
|
</view>
|
|
</view> -->
|
|
<view wx:if="{{ noMore }}" class="no-more f-30">我也是有底线的~~</view>
|
|
<!-- 无数据提供的页面 -->
|
|
<view wx:if="{{ !isLoading && !list.length }}">
|
|
<view class="yoshop-notcont">
|
|
<text class="iconfont icon-ziyuan"></text>
|
|
<text class="cont">暂时没有数据!</text>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
|