<app-layout vue-id="789686b4-1" class="data-v-45ca19db" bind:__l="__l" vue-slots="{{['default']}}"><app-tab-nav vue-id="{{('789686b4-2')+','+('789686b4-1')}}" setTop="{{0}}" border="{{false}}" shadow="{{false}}" height="{{100}}" tabList="{{tabList}}" padding="{{0}}" activeItem="{{activeTab}}" theme="{{getTheme}}" data-event-opts="{{[['^click',[['tabStatus']]]]}}" bind:click="__e" class="data-v-45ca19db" bind:__l="__l"></app-tab-nav><block wx:if="{{activeTab=='0'}}"><view class="goods dir-left-wrap data-v-45ca19db"><block wx:if="{{list.length>0}}"><view style="width:100%;" class="data-v-45ca19db"><app-product-list vue-id="{{('789686b4-3')+','+('789686b4-1')}}" sign="exchange" theme="{{getTheme}}" listStyle="{{listStyle}}" goods_list="{{list}}" data-event-opts="{{[['^routeGo',[['jump']]]]}}" bind:routeGo="__e" class="data-v-45ca19db" bind:__l="__l"></app-product-list></view></block><block wx:if="{{list.length==0}}"><view style="padding-top:30%;width:100%;" class="data-v-45ca19db"><app-no-goods vue-id="{{('789686b4-4')+','+('789686b4-1')}}" title="暂无可购买的礼品卡" background="#f7f7f7" class="data-v-45ca19db" bind:__l="__l"></app-no-goods></view></block></view></block><block wx:if="{{activeTab=='1'}}"><view class="data-v-45ca19db"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item data-v-45ca19db"><view class="dir-left-nowrap cross-center status data-v-45ca19db"><view class="item-cover data-v-45ca19db"><app-image vue-id="{{('789686b4-5-'+index)+','+('789686b4-1')}}" img-src="{{item.cover_pic}}" width="140rpx" height="140rpx" border-radius="8rpx 8rpx 0 0" class="data-v-45ca19db" bind:__l="__l"></app-image></view><view class="t-omit-two item-name data-v-45ca19db">{{item.name}}</view></view><view class="item-time main-between cross-center data-v-45ca19db"><view class="data-v-45ca19db">{{"购买时间："+item.created_at}}</view><block wx:if="{{item.status=='unused'}}"><view data-event-opts="{{[['tap',[['apply',['$0'],[[['list','',index]]]]]]]}}" class="rewards-submit data-v-45ca19db" style="{{'background-color:'+(getTheme.background)+';'}}" bindtap="__e">立即使用</view></block><block wx:else><block wx:if="{{item.status=='used'}}"><view data-event-opts="{{[['tap',[['apply',['$0'],[[['list','',index]]]]]]]}}" class="rewards-submit over data-v-45ca19db" bindtap="__e">已使用</view></block><block wx:else><view data-event-opts="{{[['tap',[['apply',['$0'],[[['list','',index]]]]]]]}}" class="rewards-submit over data-v-45ca19db" bindtap="__e">已失效</view></block></block></view></view></block><block wx:if="{{list.length==0}}"><view style="padding-top:30%;" class="data-v-45ca19db"><app-no-goods vue-id="{{('789686b4-6')+','+('789686b4-1')}}" title="暂无已获得的礼品卡" background="#f7f7f7" class="data-v-45ca19db" bind:__l="__l"></app-no-goods></view></block></view></block><block wx:if="{{setting.is_to_exchange==1}}"><view data-event-opts="{{[['tap',[['toIndex',['$event']]]]]}}" class="{{['jump-dialog','cross-center','dir-top-nowrap','main-center','data-v-45ca19db',''+(tabbarbool?'tabbarbool':'')]}}" bindtap="__e"><image src="{{setting.to_exchange_pic}}" class="data-v-45ca19db"></image><view class="data-v-45ca19db">兑换中心</view></view></block></app-layout>