ourCanteen.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <view class="head-bg" style="background-image: url({{imgUrl}}index_bg.png);">
  2. <view class="navTitle">
  3. <t-icon name="chevron-left" size="68rpx" data-name="chevron-left" bind:click="back" />
  4. <view class="title">我们的食堂<view style="width: 48rpx;"></view></view>
  5. </view>
  6. <!-- <image style="width:100%;height:100%" mode="scaleToFill" src=""></image> -->
  7. </view>
  8. <view class="tab">
  9. <view class="tab-item {{tab==0?'active':''}}" bindtap="changeItem" data-item="0">
  10. <view style="height:80rpx;width:40rpx;display: flex;justify-content:center;align-items:center;">
  11. <image style="width:40rpx;height:40rpx;" src="/pages/images/icon_st.png"></image>
  12. </view>
  13. <view style="height:80rpx;padding-left:10rpx">我们的食堂</view>
  14. </view>
  15. <view style="width: 20rpx;"></view>
  16. <view class="tab-item {{tab==1?'active':''}}" bindtap="changeItem" data-item="1">
  17. <view style="height:80rpx;width:40rpx;display: flex;justify-content:center;align-items:center;">
  18. <image style="width:40rpx;height:40rpx;" src="/pages/images/icon_bd.png"></image>
  19. </view>
  20. <view style="height:80rpx;padding-left:10rpx">菜品榜单</view>
  21. </view>
  22. <view style="width: 20rpx;"></view>
  23. <view class="tab-item {{tab==2?'active':''}}" bindtap="changeItem" data-item="2">
  24. <view style="height:80rpx;width:40rpx;display: flex;justify-content:center;align-items:center;">
  25. <image style="width:40rpx;height:40rpx;" src="/pages/images/icon_ts.png"></image>
  26. </view>
  27. <view style="height:80rpx;padding-left:10rpx">提示公告</view>
  28. </view>
  29. </view>
  30. <view class="swiper-content">
  31. <swiper current="{{item}}" bindchange="changeTab" duration="1">
  32. <swiper-item catchtouchmove='catchTouchMove'>
  33. <scroll-view scroll-y="true" style="height: 100%;padding:0;margin:0;">
  34. <include src="canteen.wxml" />
  35. </scroll-view>
  36. </swiper-item>
  37. <swiper-item catchtouchmove='catchTouchMove'>
  38. <scroll-view scroll-y="true" style="height: 100%">
  39. <view style="position:flex;align-items:center;justify-content:center">
  40. <!-- <button>点击查看菜品榜单</button> -->
  41. </view>
  42. </scroll-view>
  43. </swiper-item>
  44. <swiper-item catchtouchmove='catchTouchMove'>
  45. <scroll-view scroll-y="true" style="height: 100%">
  46. <include src="notice.wxml" />
  47. </scroll-view>
  48. </swiper-item>
  49. </swiper>
  50. </view>