Files
frontend-app/pages/mine_bank_card/mine_bank_card.vue
T
2025-03-20 08:46:07 +08:00

110 lines
2.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class="mine_bank_warp">
<view class="bank_title">
银行卡({{bankList.length}}张)
</view>
<view class="bank_list">
<view class="bank_item" v-for="item in bankList" :key="item.id" >
<view class="bank_data">
<up-image :src="item.url" width="50" height="50" bgColor="#f1f6ff00"></up-image>
<view class="bank_info">
<view class="bank_bank_name">{{item.bankName}}</view>
<view class="bank_user_name">{{item.userName}}</view>
</view>
</view>
<view class="bank_parting_line"></view>
<view>{{item.number}}</view>
</view>
</view>
<view class="add_but" @click="jumpAddBank">
添加银行卡
</view>
</view>
</template>
<script>
export default {
data() {
return {
bankList:[
{
id:1,
url:'/static/bank/default.png',
bankName:'中国交通银行',
userName:'张某某',
number:"**** **** **** 0865",
},{
id:2,
url:'/static/bank/default.png',
bankName:'中国农业银行',
userName:'张某某',
number:"**** **** **** 0769",
},{
id:3,
url:'/static/bank/default.png',
bankName:'中国农业银行',
userName:'张某某',
number:"**** **** **** 0769",
},
]
}
},
methods: {
jumpAddBank(){
uni.navigateTo({
url:'/pages/mine_bank_add/mine_bank_add',
})
}
}
}
</script>
<style lang="scss" scoped>
.mine_bank_warp{
height: calc(100vh - 58rpx);
background-color: $app-bj;
padding: 30rpx;
overflow-y: hidden;
.bank_title{
font-weight: bold;
font-size: 36rpx;
color: #333333;
}
.bank_list{
margin-top: 20rpx;
height: calc(100vh - 250rpx);
overflow: auto;
}
.bank_item{
background: #FFFFFF;
border-radius: 30rpx;
padding: 30rpx;
margin-bottom: 20rpx;
}
.bank_data{
display: flex;
align-items: center;
}
.bank_info{
margin-left: 10rpx;
}
.bank_bank_name{
font-weight: bold;
font-size: 30rpx;
color: #333333;
}
.bank_user_name{
font-weight: 500;
font-size: 22rpx;
color: #999999;
margin-top: 10rpx;
}
.bank_parting_line{
height: 1rpx;
background: #EEEEEEFF;
border-radius: 0rpx 0rpx 1rpx 1rpx;
margin: 30rpx auto;
}
}
</style>