12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <import src="/assets/libs/zanui/tab/index.wxml" />
- <import src="/assets/libs/zanui/loadmore/index.wxml" />
- <view class="container">
- <!-- S 选项卡 -->
- <view class="tab">
- <template is="zan-tab" data="{{ ...tab, componentId: 'tab' }}"></template>
- </view>
- <!-- E 选项卡 -->
- <!-- S 焦点图 -->
- <view class="focus">
- <swiper indicator-dots="true" autoplay="true" interval="3000" duration="1000" class="swiper">
- <block wx:for="{{ bannerList }}" wx:key="key">
- <navigator url="{{item.url}}">
- <swiper-item>
- <image src="{{item.image}}" width="100%" height="100%" />
- <text class="text">{{item.title}}</text>
- </swiper-item>
- </navigator>
- </block>
- </swiper>
- </view>
- <!-- E 焦点图 -->
- <!-- S 首页列表 -->
- <view class="archives-list">
- <view class="zan-panel">
- <block wx:for="{{ archivesList }}" wx:key="key">
- <navigator url="{{ item.model_id == 2 ? '../product/detail?id='+item.id : '../news/detail?id='+item.id }}">
- <view class="zan-card gallery-list" wx:if="{{item.images_list.length>1}}">
- <view class="zan-card__title">
- <view class="zan-card__detail-row">
- <view class="zan-card__left-col zan-ellipsis--l2">
- {{ item.title }}
- </view>
- </view>
- </view>
- <view class="zan-row zan-gallery">
- <view wx:for="{{ item.images_list }}" wx:for-item="image" wx:key="key">
- <view class="zan-col zan-col-8">
- <view class="zan-card__thumb">
- <view class="image" style="background-image:url('{{image}}')"></view>
- </view>
- </view>
- </view>
- </view>
- <view class="zan-card__detail">
- <view class="zan-card__detail-row zan-c-gray">
- <view class="zan-card__right-col"></view>
- <view class="zan-card__left-col author">
- {{ item.author }} {{ item.create_date }}
- </view>
- </view>
- </view>
- </view>
- <view wx:if="{{item.images_list.length<2}}" class="zan-card">
- <view class="zan-card__thumb">
- <view class="image" style="background-image:url('{{item.image}}')"></view>
- </view>
- <view class="zan-card__detail">
- <view class="zan-card__detail-row">
- <view class="zan-card__left-col zan-ellipsis--l2">
- {{ item.title }}
- </view>
- </view>
- <view class="zan-card__detail-row zan-c-gray">
- <view class="zan-card__right-col"></view>
- <view class="zan-card__left-col author">
- {{ item.author }} {{ item.create_date }}
- </view>
- </view>
- </view>
- </view>
- </navigator>
- </block>
- </view>
- </view>
- <!-- E 首页列表 -->
- <!-- S 加载更多 -->
- <template is="zan-loadmore" data="{{ loading: loading }}" />
- <template is="zan-loadmore" data="{{ nodata: nodata }}" />
- <template is="zan-loadmore" data="{{ nomore: nomore }}" />
- <!-- E 加载更多 -->
- </view>
|