<template>
    <view class="wallet-main">
        <view class="bank-box">
            <view v-for="item in bankList" :key="item.cardCode"
                :style="`background: ${item.color};border-radius: 8px;`">
                <BankItem bankCode="ABC" bankName="中国农业银行" cardType="储蓄卡" cardCode="5106365986893" />
            </view>

            <up-button type="primary" text="解除绑定" @click="onSubmit"></up-button>
        </view>

    </view>
</template>

<script setup>
import { ref } from 'vue';
import BankItem from '@/pages_mine/components/bank-item/bank-item.vue';
const bankList = ref([
    {
        bankCode: 'ABC',
        bankName: '中国农业银行',
        cardType: '储蓄卡',
        cardCode: '5106365986893',
        color: 'linear-gradient(135deg, rgba(43, 102, 248, 1) 0%, rgba(27, 69, 178, 1) 100%), rgba(0, 0, 0, 0)'
    },
])

const onSubmit = () => {
    uni.showModal({
        title: '提示',
        content: '是否要解绑银行卡',
        success(res) {
            console.log('11');

        }
    });
}



</script>

<style lang="scss" scoped>
.card-box {
    border-radius: 8px;
    background: rgba(255, 255, 255, 1);
    padding: 20px;
    margin-bottom: 12px;
}

.bank-box {
    border-radius: 8px;
    margin-bottom: 12px;
}

.wallet-main {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: rgba(245, 245, 245, 1);
    padding: 12px;
    overflow: auto;



}
</style>
