gift-shop.wxml 3.37 KB
<wxs module="filter" src="../../utils/utilswxs.wxs"></wxs>
<view class="page">
  <view class="app__bgc bgc"></view>
  <view class="app__bg bg"></view>
  <view class="app__content main">
    <view class="top">
      <div class="top-wrap">
        <view class="search">
          <input class="ipt" value="{{keyWords}}" bindinput="bindKeyWordsInput" placeholder="输入关键字搜索" />
          <image class="icon" mode="aspectFit" src="../../image/icon/icon-search.png" />
        </view>
        <view class="filter" bindtap="onChangeFitterHandler">
          奖金排序
          <view wx:if="{{orderSort == 0}}" class="icon-wrap">
            <image class="icon up" src="../../image/icon/icon-filter-up-on.png" mode="widthFix" />
            <image class="icon down" src="../../image/icon/icon-filter-down.png" mode="widthFix" />
          </view>
          <view wx:else class="icon-wrap">
            <image class="icon up" src="../../image/icon/icon-filter-up.png" mode="widthFix" />
            <image class="icon down" src="../../image/icon/icon-filter-down-on.png" mode="widthFix" />
          </view>
        </view>
      </div>
    </view>
    <view class="top-space"></view>
    <!-- 订单区 -->
    <view class="border order ">
      <view bindtap="onMyOrderHandler" data-index="0" class="order-item">
        <view class="icon-wrap">
          <image class="icon" mode="aspectFit" src="../../image/icon/icon-all-order.png" />
        </view>
        <view class="txt">全部订单</view>
      </view>
      <view bindtap="onMyOrderHandler" data-index="1" class="order-item">
        <view class="icon-wrap">
          <image class="icon" mode="aspectFit" src="../../image/icon/icon-wait-review.png" />
        </view>
        <view class="txt">待审核</view>
      </view>
      <view bindtap="onMyOrderHandler" data-index="2" class="order-item">
        <view class="icon-wrap">
          <image class="icon" mode="aspectFit" src="../../image/icon/icon-review-pass.png" />
        </view>
        <view class="txt">已通过</view>
      </view>
      <view bindtap="onMyOrderHandler" data-index="3" class="order-item">
        <view class="icon-wrap">
          <image class="icon" mode="aspectFit" src="../../image/icon/icon-shipped.png" />
        </view>
        <view class="txt">已发货</view>
      </view>
      <view bindtap="onMyOrderHandler" data-index="4" class="order-item">
        <view class="icon-wrap">
          <image class="icon" mode="aspectFit" src="../../image/icon/icon-up-pass.png" />
        </view>
        <view class="txt">未通过</view>
      </view>
    </view>
    <view class="content">
      <view class="product">
        <view class="product-item" wx:for="{{productList}}" wx:key="{{index}}">
          <view class="image-wrap">
            <image class="image" mode="aspectFit" src="{{item.commodityThumbnail}}" />
          </view>
          <view class="cont">
            <view class="name">{{item.commodityTitle}}</view>
            <view class="desc">{{item.commodityBrief}}</view>
            <view class="integral">消耗奖金:{{filter.Fen2Yuan(item.commodityPrice)}}元</view>
            <view bindtap="onShowGiftDetailHandler" data-data="{{item}}" class="btn">查看</view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>
<van-popup show="{{ authorizeVisible }}">
  <authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>