123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <!--pages/mine/wxml/myredpacket/myredpacket.wxml-->
- <view class="content">
- <view class="head">
- <view class="title">
- <text>红包余额</text>
- </view>
- <view class="sum">
- <text style="font-size:100rpx">{{remaining}}</text>
- <text>元</text>
- </view>
- </view>
- <view class="main">
- <view class="nav">
- <view id="tab1" class="tab" bindtap='cuttab'>
- <text style="color:{{contIndex === 1?'#000':''}}">领取记录</text>
- <view class="underline" wx:if="{{contIndex === 1}}"></view>
- </view>
- <view id="tab2" class="tab" bindtap='cuttab'>
- <text style="color:{{contIndex === 2?'#000':''}}">使用记录</text>
- <view class="underline" wx:if="{{contIndex === 2}}"></view>
- </view>
- </view>
- <view class="tab-content">
- <view class="cont1" wx:if="{{contIndex === 1}}">
- <view class="list" wx:for="{{getRecord}}" wx:key="{{index}}">
- <view class="option-left">
- <text>¥{{item.balance}}</text>
- </view>
- <view class="option-right">
- <view class="title">
- <text>{{item.type}}</text>
- </view>
- <view class="date">
- <text>{{item.created}}</text>
- </view>
- </view>
- </view>
- </view>
- <view class="cont2" wx:if="{{contIndex === 2}}">
- <view class="list" wx:for="{{usageRecord}}" wx:key="{{index}}">
- <view class="record-left">
- <view class="goods-name">
- <text>{{item.item_name}}</text>
- </view>
- <view class="goods-time">
- <text>使用时间:{{item.created}}</text>
- </view>
- <view class="sum">
- <view class="bargain-sum">
- <text>成交金额:¥{{item.money}}</text>
- </view>
- <view class="bargain-sum">
- <text>实际支付:¥{{item.paysum}}</text>
- </view>
- </view>
- </view>
- <view class="record-right">
- <view class="red_pack_balance">
- <text>¥{{item.red_pack_balance}}</text>
- </view>
- <view class="text">
- <text>折扣金额</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
|