foodDetail.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!--pages/foodDetail/foodDetail.wxml-->
  2. <view class="foodContainer">
  3. <view>
  4. <text class="foodTitle">{{shopTitle}}</text>
  5. </view>
  6. <view class="foodWrap" wx:for="{{foodList}}" wx:key="index">
  7. <image class="foodImg" show-menu-by-longpress="true" mode="aspectFill" bindtap="toPreviewImage" src="{{item}}"></image>
  8. </view>
  9. <view>
  10. <view class="shopDetail">
  11. <text class="shopDetailTile">简介:</text>
  12. <text wx:if="{{shopDescribe == null}}">无</text>
  13. <text wx:elif="{{shopDescribe == ''}}">无</text>
  14. <text wx:else>{{shopDescribe}}</text>
  15. </view>
  16. <view class="shopDetail">
  17. <text wx:if="{{perCost == null}}">人均消费:-</text>
  18. <text wx:elif="{{perCost == ''}}">人均消费:-</text>
  19. <text wx:else>人均消费:{{perCost}}</text>
  20. </view>
  21. <view class="shopDetail">
  22. <text wx:if="{{businessHours == null}}">营业时间:-</text>
  23. <text wx:elif="{{businessHours == ''}}">营业时间:-</text>
  24. <text wx:else>营业时间:{{businessHours}}</text>
  25. </view>
  26. <view class="shopDetail">
  27. <text>热度:{{heat}}</text>
  28. </view>
  29. <view class="shopDetail">
  30. <text class="shopDetailTile">招牌菜:</text>
  31. <text wx:if="{{dish == null}}">-</text>
  32. <text wx:elif="{{dish == ''}}">-</text>
  33. <text wx:else>{{dish}}</text>
  34. </view>
  35. <view class="shopDetail">
  36. <text class="shopDetailTile">电话:</text>
  37. <text wx:if="{{shopPhone == null}}">商家未留电话</text>
  38. <text wx:elif="{{shopPhone == ''}}">商家未留电话</text>
  39. <text wx:else>{{shopPhone}}</text>
  40. </view>
  41. <view class="shopDetail">
  42. <text class="shopDetailTile">地址:</text>
  43. <text wx:if="{{shopAddress == null}}" class="address">商家未留地址</text>
  44. <text wx:elif="{{shopAddress == ''}}" class="address">商家未留地址</text>
  45. <text wx:else class="address">{{shopAddress}}</text>
  46. <text class="adderessNav" bindtap="toFoodAddress">去这里</text>
  47. </view>
  48. </view>
  49. </view>