12345678910111213141516171819202122232425 |
- import { bankCodeToIconMap, bankCodeToIconColorMap } from "../../utils/systemConstant.js"
- Component({
- properties: {
- bankInfo: {
- type: Object,
- value: {},
- },
- type: {
- type: String,
- value: "sign",
- },
- },
- data: {
- bankIcon: "",
- color: ""
- },
- attached: function () {
- this.setData({
- bankIcon:bankCodeToIconMap.get(`${this.data.bankInfo.type}`),
- color:bankCodeToIconColorMap.get(`${this.data.bankInfo.type}`)
- })
- console.log(this.data)
- },
- methods: {},
- })
|