<template>
|
|
<u-popup :show="show" @close="close" @open="open">
|
|
<view class="list">
|
|
<view class="item" @click.stop="select(item)" v-for="(item,index) in list" :key="index">
|
|
<view class="Bank-of-deposit">
|
|
<view>{{ item.title }}</view>
|
|
<view class="icon">
|
|
{{ item.name }}
|
|
</view>
|
|
</view>
|
|
<view class="cart-number">
|
|
{{ item.no }}
|
|
</view>
|
|
</view>
|
|
<view class="add" @click="toBankCart()">
|
|
<u-icon name="plus" size="20"></u-icon>
|
|
<view class="text">
|
|
{{ $t('page.bankCart.add-bank-card') }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "bankCartSelect",
|
|
props: {
|
|
show: {
|
|
default: false,
|
|
type: Boolean
|
|
},
|
|
list: {
|
|
default: false,
|
|
type: Array
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
},
|
|
methods: {
|
|
open() {},
|
|
close() {
|
|
this.$emit('close')
|
|
},
|
|
select(item) {
|
|
this.$emit('select', item)
|
|
this.$emit('close')
|
|
},
|
|
toBankCart(){
|
|
uni.navigateTo({
|
|
url: '/pages/user/bankCart/editBankCart?type=1'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.list {
|
|
height: 60vh;
|
|
overflow-x: auto;
|
|
margin: 10px 0;
|
|
|
|
.item {
|
|
background-color: #ED762F;
|
|
border-radius: 10px;
|
|
margin: 10px;
|
|
box-sizing: border-box;
|
|
color: #fff;
|
|
box-shadow: 1px 1px 1px 1px #00000021;
|
|
padding: 10px;
|
|
|
|
.Bank-of-deposit {
|
|
border-bottom: 1px solid #ffffff99;
|
|
padding: 10px 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.icon {}
|
|
}
|
|
|
|
.cart-number {
|
|
text-align: center;
|
|
font-size: 40rpx;
|
|
padding: 20px;
|
|
}
|
|
}
|
|
|
|
.add {
|
|
padding: 30px 20px;
|
|
margin-top: 25px;
|
|
background-color: #fff;
|
|
color: #000;
|
|
display: flex;
|
|
align-items: center;
|
|
border-radius: 10px;
|
|
margin: 10px;
|
|
box-sizing: border-box;
|
|
box-shadow: 1px 1px 1px #00000021 , -1px -1px 1px #00000021;
|
|
|
|
.text {
|
|
padding-left: 10px;
|
|
}
|
|
}
|
|
}
|
|
</style>
|