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.
|
|
|
|
<!--pages/searchfood/searchfood.wxml-->
|
|
|
|
|
<view class="foodlist">
|
|
|
|
|
<view class='a' wx:for="{{re}}">
|
|
|
|
|
<!--wx:for是微信数据绑定的一种方式,该数组有多少数据就显示多少个view-->
|
|
|
|
|
<!--item就相当于数组名+下标的结合体,适用于调用数组所有数据-->
|
|
|
|
|
<view catchtap="toDetail" data-foodid="{{item._id}}">
|
|
|
|
|
<view class='img'>
|
|
|
|
|
<image src="{{item.url}}" style="border-radius:20px;"></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class='info'>
|
|
|
|
|
<view class='title'>{{item.food_name}}</view>
|
|
|
|
|
<view class='price'>¥{{item.price}}</view>
|
|
|
|
|
<view class='num'>{{item.food_shop}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class='clear'></view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|