<!--packageF/storeSign/storeSignDetail/storeSignDetail.wxml-->
<view id="storeSignDetail">
    <view class="headBox">
        <view class="line bga">
            <view class="min">
                <view class="point">{{ info.points || 0 }}</view>
                <view class="txt">我的签到分</view>
            </view>
            <view class="min">
                <view class="point">{{ info.withdraw_points || 0 }}</view>
                <view class="txt">可提现签到分</view>
            </view>
        </view>
        <view class="line">
            <view class="min">
                <view class="point">{{ info.attendance_surplus || 0 }}</view>
                <view class="txt">剩余签到次数</view>
            </view>
            <view class="min">
                <view class="point">{{ info.attendance_count || 0 }}</view>
                <view class="txt">累计已签到次数</view>
            </view>
        </view>
        <view class="lineBottom" catchtap="showTap">
            <view class="txt">去提现</view>
            <van-icon name="arrow" />
        </view>
    </view>
    <view class="coline"></view>
    <van-tabs active="{{active}}" bind:change='changeTap'>
        <van-tab title="签到次数记录"></van-tab>
        <van-tab title="签到分记录"></van-tab>
        <van-tab title="提现记录"></van-tab>
    </van-tabs>
    <view class="list">
        <block wx:for="{{list}}" wx:key="index">
            <view class="lis">
                <view class="left">
                    <block wx:if="{{active == 0}}">
                        <view class="title">{{item.type_name}}</view>
                        <view class="sn">{{ item.remark }}</view>
                        <view class="time">{{item.created_at}}</view>
                    </block>
                    <block wx:if="{{active == 1}}">
                        <view class="title">{{item.type_name}}</view>
                        <view class="sn">{{ item.store_name }}</view>
                        <view class="time">{{ item.created_at }}</view>
                    </block>
                    <block wx:if="{{active == 2}}">
                        <view class="title">{{item.type_name}}</view>
                        <view class="time">{{item.created_at}}</view>
                    </block>
                </view>
                <view class="right">{{ active == 0 ? item.count : active == 1 ? item.attendance_bonus : '-'+item.amount }}</view>
            </view>
        </block>
    </view>
</view>
<van-popup show="{{show}}" custom-style="width: 80%; border-radius: 1rem;">
    <div class="intrShowBox">
        <div class="title">提现签到分</div>
        <div class="intro">
            <van-field model:value="{{points}}" type="number" bind:blur="tapinp" placeholder="请输入要提现的签到分" />
        </div>
        <div class="txt">最多可输入{{info.withdraw_points}}</div>
        <div class="txta">提现到{{withdraw_type}}</div>
        <div class="btn">
            <div class="cancle" catchtap="showClose">取消</div>
            <div class="confirm" catchtap="withdrawablePoints">确认</div>
        </div>
    </div>
</van-popup>