<!--pages/recommendFood/recommendFood.wxml-->

<view class="recommendNo" wx:if="{{foodList.length == 0}}">
    <text>暂无美食推荐</text>
</view>

<view class="foodWrap" wx:else>
    <view class="foodDetail" bindtap="tofoodDetail" data-item="{{item}}" wx:for="{{foodList}}" wx:key="key">
        <image class="foodImg" src="{{item[0].iconPath}}"></image>
        <view class="foodIntro">
            <text class="foodName">{{item.title}}</text>
            <view class="phone">
                <image class="phoneIcon" mode="widthFix" src="../../images/phone.png"></image>
                <text class="phoneNum">{{item.phone}}</text>
            </view>
            <view class="foodLocate">
                <image class="locateIcon" mode="widthFix" src="../../images/foodLocate.png"></image>
                <text class="address">{{item.location}}</text>
            </view>
        </view>
    </view>  
</view>