<import src="/wxParse/wxParse.wxml" />
<view class="page">
    <view class="page-hd" wx:if="{{top.length > 0}}">
        <swiper indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#00a0e9" autoplay="true"
            interval="5000" duration="500">
            <block wx:for="{{top}}">
                <swiper-item>
                    <image src="{{item.topPhoto}}" class="slide-image" data-name="{{item.server}}" data-id="{{item.id}}"
                        bindtap="toDetail" />
                </swiper-item>
            </block>
        </swiper>
    </view>
    <view class="page-bd">
        <view class="mod">
            <view class="mod-hd">
                <text class="dot">●</text>服务介绍</view>
            <view class="mod-bd">
                <template is="wxParse" data="{{wxParseData:article.nodes}}" />
            </view>
        </view>
        <view class="entrances">
            <view class="item" bindtap="handleJump" data-route="classify" data-target="家政" data-type="5">
                <view class="entrance">
                    <image class="img" mode="widthFix" src="/img/entrance1.png"></image>
                    <view class="name">家政</view>
                </view>
            </view>
            <view class="item" bindtap="handleJump" data-route="classify" data-target="钟点" data-type="5">
                <view class="entrance">
                    <image class="img" mode="widthFix" src="/img/entrance2.png"></image>
                    <view class="name">钟点/家庭保洁服务</view>
                </view>
            </view>
            <view class="item" bindtap="handleJump" data-route="goodsList">
                <view class="entrance">
                    <image class="img" mode="widthFix" src="/img/entrance3.png"></image>
                    <view class="name">母婴用品</view>
                </view>
            </view>
            <view class="item">
                <view class="entrance" bindtap="handleJump" data-route="classify" data-target="催乳" data-type="5">
                    <image class="img" mode="widthFix" src="/img/entrance4.png"></image>
                    <view class="name">催乳及产后康复</view>
                </view>
            </view>
            <button class="item" hover-class="none" open-type="contact" session-from="homeApp">
                <view class="entrance">
                    <image class="img" mode="widthFix" src="/img/entrance5.png"></image>
                    <view class="name">月子及育婴知识咨询</view>
                </view>
            </button>
            <!-- <view class="item">
                <view class="entrance" bindtap="handleJump" data-route="service">
                    <image class="img" mode="widthFix" src="/img/entrance5.png"></image>
                    <view class="name">月子及育婴知识咨询</view>
                </view>
            </view> -->
            <view class="item" bindtap="handleJump" data-route="classify" data-type="5">
                <view class="entrance">
                    <image class="img" mode="widthFix" src="/img/entrance6.png"></image>
                    <view class="name">更多</view>
                </view>
            </view>
        </view>
        <image class="bottom-banner" wx:if="{{bottom.photo}}" data-type="bottom" mode="widthFix" src="{{bottom.photo}}" data-id="{{bottom.id}}"
            bindtap="toDetail"></image>
    </view>
</view>