gift-shop.wxml 1.89 KB
<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="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">消耗积分:{{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>