12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <view class="container">
- <view class="tab">
- <view class="tab_cell {{tabIndex === 1 ? 'active' : ''}}" bindtap="tabChange" data-index="1">获取记录</view>
- <view class="tab_cell {{tabIndex === 0 ? 'active' : ''}}" bindtap="tabChange" data-index="0">使用记录</view>
- </view>
- <!-- <view class="content" wx:if="{{tabIndex === 0}}">
- <view class="content_item content_column" wx:for="{{result[0].list}}" wx:key="`withdrawItem${item.id}`">
- <view class="content_info content_row">
- <text class="content_order">{{item.title}}</text>
- <label class="content_price">
- +{{item.amount}} <text class="content_price-unit">元</text>
- </label>
- </view>
- <view class="content_row">
- <text class="content_datetime">{{item.create_time}}</text>
- <text class="content_status {{item.reason ? 'underline' : ''}}" bindtap="showReason" data-reason="{{item.reason}}">{{item.status}}</text>
- </view>
- </view>
- </view> -->
- <view class="content" wx:if="{{tabIndex === 0}}">
- <view class="content_item content_row" wx:for="{{result[0].list}}" wx:key="`incomeItem${item.id}`">
- <image class="content_avatar" src="{{item.icon}}"></image>
- <view class="content_intro">
- <text class="content_nickname">{{item.title}}</text>
- <text class="content_text">{{item.desc}}</text>
- </view>
- <view class="text-right">
- <label class="content_price content_price-fixed" wx:if="{{mpType === 'rp'}}">
- -{{item.amount}} <text class="content_price-unit">元</text>
- </label>
- <label class="content_price content_price-fixed" wx:elif="{{mpType === 'gd'}}">
- -{{item.integral}} <text class="content_price-unit">金币</text>
- </label>
- <text class="content_datetime">{{item.create_time}}</text>
- </view>
- </view>
- </view>
- <view class="content" wx:if="{{tabIndex === 1}}">
- <view class="content_item content_row" wx:for="{{result[1].list}}" wx:key="`incomeItem${item.id}`">
- <image class="content_avatar" src="{{item.icon}}"></image>
- <view class="content_intro">
- <text class="content_nickname">{{item.title}}</text>
- <text class="content_text">{{item.desc}}</text>
- </view>
- <view class="text-right">
- <label class="content_price content_price-fixed" wx:if="{{mpType === 'rp'}}">
- +{{item.amount}} <text class="content_price-unit">元</text>
- </label>
- <label class="content_price content_price-fixed" wx:elif="{{mpType === 'gd'}}">
- +{{item.integral}} <text class="content_price-unit">金币</text>
- </label>
- <text class="content_datetime">{{item.create_time}}</text>
- </view>
- </view>
- </view>
-
- <no-more wx:if="{{result[tabIndex].count <= (params[tabIndex].page - 1) * params[tabIndex].offset}}"/>
- </view>
|