miniprogram/pages/order/index.wxml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<view class="notice">
    <van-notice-bar
      left-icon="volume-o"
      text="欢迎使用机关食堂小程序!⏰请您按时点餐⏰"
    />
      <!-- mode="link" -->
      <!-- bind:click="goNotice" -->
</view>
<view class="box">
  <view class="shop-name">
    <view class="name" bindtap="selectshop"></view>
  </view>
  <view class="distance-bar">
    <view class="distance"><text class="text-xxl">今天是{{todaydatetime}}{{weekday}}</text></view>
    <van-button plain round icon="/images/user-active.png" type="info" size="small" bind:click="brokerShow">{{chooseusername}}</van-button>
  </view>
</view>
<view class="box1">
  <view class="box-1">
    <van-sidebar>
      <van-sidebar-item
        wx:for="{{categories}}" wx:key="id"
        title="{{item.name}}"
        info="{{item.info}}"
        badge="{{ item.badge ? item.badge : '' }}"
        data-idx="{{index}}" bind:click="categoryClick"
      />
    </van-sidebar>
  </view>
  <scroll-view class="box-2" scroll-y="true">
    <van-empty wx:if="{{!goods || goods.length == 0}}" description="暂无" />
    <van-card
      wx:for="{{goods}}" wx:key="id"
      wx:if="{{!item.isqz || ishm}}"
      bind:click="addCart1"
      data-idx="{{index}}"
      centered="true"
      lazy-load="true"
      thumb-mode="aspectFill"
      price = "{{ item.price }}"
      tag="{{ item.isShow ? item.isShow : '' }}"
      desc="{{item.characteristic}}"
      title="{{item.name}}"
      thumb="{{item.pic}}">
      <view class="goods-btn" slot="footer">
        <van-icon name="passed" wx:if="{{!item.ischoose}}" color="#908e8e" size="60rpx" />
        <van-icon name="passed" wx:if="{{item.ischoose}}" color="red" size="60rpx" />
      </view>
    </van-card>
  </scroll-view>
</view>

<view class="cart-bar" wx:if="{{ !brokerShow }}">
  <view class="l" bindtap="showCartPop">
    <van-button type="danger" round icon="description" size="normal">订餐须知</van-button>
  </view>  
  <view class="r">
    <view class="amount"></view>
    <view wx:if="{{!foodIsChoose}}" class="topay noopen">请选择</view>
    <view wx:elif="{{shopIsOpened}}" class="topay" bindtap="goPay">下一步</view>
后面还有 37 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。