12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <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 '../../components/bank-item/bank-item.vue';
- const bankList = ref([
- {
- bankCode: 'ABC',
- bankName: '中国农业银行',
- cardType: '储蓄卡',
- cardCode: '5106365986893',
- color: 'red'
- },
- ])
- 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>
|