You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <!--pages/couponRecord/index.wxml-->
- <!-- <image class='img' src='./../../static/images/bg.png' mode='widthFix'></image> -->
- <view class='tab' style="margin-top:20rpx;">
- <view class="{{flag=='coupons'?'couponsL':'couponsR'}}" bindtap='getCoupons'>赠券库存</view>
- <view class="{{flag=='record'?'couponsL':'couponsR'}}" bindtap='getRecord'>注券记录</view>
- </view>
- <!-- 赠券库存 -->
- <view wx:if='{{flag == "coupons"}}'>
- <view class='hide' wx:if='{{couList.length==0}}'>
- <image class='jiaoyi' src='./../../static/images/jiaoyi.png' mode='widthFix'></image>
- <text>暂无数据</text>
- </view>
- <view class="contents" wx:if='{{couList.length>0}}'>
- <view wx:for="{{couList}}" wx:key="index">
- <view class="contentL clearfix {{item.status == 1?'mark':''}} ">
- <view>
- <text>{{item.title}}</text>
- <text>{{'库存:'+item.merchantRemain}}</text>
- </view>
- <view wx:if="{{item.validStartDate}}">
- <text>{{'有效期:'+item.validStartDate+ '至' +item.validEndDate}}</text>
- <text class='guoqi' wx:if="{{item.status == 1}}">已作废</text>
- </view>
- <view wx:if="{{!item.validStartDate}}">
- <text>{{'有效期:自领取后'+ item.validDays+'日内有效'}}</text>
- <text class='guoqi' wx:if="{{item.status == 1}}">已作废</text>
- </view>
- </view>
- </view>
- </view>
- <view class="loading" wx:if="{{loading}}">
- {{content1}}
- </view>
- </view>
- <!-- 注券记录 -->
- <view wx:if='{{flag == "record"}}'>
- <view class='head'>
- <image src='./../../static/images/reviveimg.png' mode='widthFix'></image>
- <view class='time'>
- <view>
- <text>开始日期</text>
- <picker mode="date" value="{{date}}" start="1970-01-01" end="{{endDate}}" bindchange="bindDateChange">
- <view class="picker">
- {{date}}
- </view>
- </picker>
- </view>
- <view>
- <text></text>
- <text>至</text>
- </view>
- <view>
- <text>结束日期</text>
- <picker mode="date" value="{{date2}}" start="1970-01-01" end="{{endDate}}" bindchange="bindDateChange2">
- <view class="picker">
- {{date2}}
- </view>
- </picker>
- </view>
- </view>
- </view>
- <button class='btn' hover-class='active' bindtap='search'>查询</button>
- <view class="contents">
- <view wx:for="{{list}}" wx:key="index">
- <view class='date-t'>{{item.dateR}}</view>
- <view class='content clearfix' wx:for="{{item.value}}" wx:for-item="item01" wx:key="{{index01}}">
- <view>{{item01.title}}</view>
- <view>
- <text>{{item01.userName}}</text>
- <text>{{'用户手机:'+item01.phone}}</text>
- </view>
- <view>
- <text>{{'操作人:'+item01.operator}}</text>
- <text>{{'注券时间:'+item01.createDate01}}</text>
- </view>
- </view>
- </view>
- </view>
- <view class="loading" wx:if="{{loading}}">
- {{content}}
- </view>
- </view>
|