体质测试
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.
tizhiceshi/page/index/index.wxml

90 lines
2.9 KiB

2 years ago
<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">
<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 加载更多 -->
<button open-type='contact' bindcontact="handleContact">客服</button>
</view>