<view class="smartselection_bg"></view>
<view class="smartselection">
    <view class="smartselection_header"></view>
    <view class="smartselection_header">
        <view class="smartselection_search">
            <input class="smartselection_input" name="cookname" placeholder="搜索商品" bind:confirm="goMenuSearch" />
            <view class="smartselection_icon"></view>
        </view>
    </view>
    <view class="smartselection_swiper">
        <swiper style="height: 100%" indicator-dots="{{indicatorDots}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}" autoplay="{{autoplay}}" circular="{{circular}}" interval="{{interval}}" duration="{{duration}}">
            <block ty:for="{{background}}" ty:key="*this">
                <swiper-item>
                    <image src="{{item}}" mode="widthFix" lazy-load="true"></image>
                </swiper-item>
            </block>
        </swiper>
    </view>
    <view class="smartselection_list" ty:if="{{menuList.length > 0}}">
        <view class="smartselection_box" ty:for="{{menuList}}" ty:key="{{index}}">
            <view class="smartselection_box_img img_box">
                <image class="image" src="{{item.imgUrl}}" mode="widthFix"></image>
            </view>
            <view class="smartselection_box_content">
                <view class="smartselection_box_title">{{item.name}}</view>
                <view class="smartselection_box_type">
                    <view class="smartselection_box_price">{{item.price}}<text class="smartselection_box_count">{{item.origin_price}}</text></view>
                    <view class="smartselection_box_num">{{item.sales}}人付款</view>
                </view>
            </view>
        </view>
    </view>
</view>