[抖火客户端]

This commit is contained in:
2023-05-15 13:18:38 +08:00
commit d61dde8bd8
818 changed files with 142329 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
<template>
<view>
<picker
v-if="bankList.length > 0"
:range="bankList"
range-key="title"
:value="bankValue"
@change="bindPickerChange"
>
<view class="uni-input">{{bankList[bankIndex].title}}</view>
</picker>
</view>
</template>
<script>
export default {
name: 'mouldPicker',
props: {
bankList: {
type: Array,
default: () => {
return []
}
},
bankValue: {
type: Number,
default: () => {
return []
}
}
},
data(){
return {
bankIndex: 0
}
},
watch:{
bankList(e, old){
this.bankIndex = 0;
}
},
onLoad() {
},
methods: {
bindPickerChange(e){
this.bankIndex = e.detail.value
this.$emit('bankPicker', this.bankList[e.detail.value].institution_id)
}
}
}
</script>
<style>
</style>