Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

12345678910111213141516171819202122232425
  1. import { bankCodeToIconMap, bankCodeToIconColorMap } from "../../utils/systemConstant.js"
  2. Component({
  3. properties: {
  4. bankInfo: {
  5. type: Object,
  6. value: {},
  7. },
  8. type: {
  9. type: String,
  10. value: "sign",
  11. },
  12. },
  13. data: {
  14. bankIcon: "",
  15. color: ""
  16. },
  17. attached: function () {
  18. this.setData({
  19. bankIcon:bankCodeToIconMap.get(`${this.data.bankInfo.type}`),
  20. color:bankCodeToIconColorMap.get(`${this.data.bankInfo.type}`)
  21. })
  22. console.log(this.data)
  23. },
  24. methods: {},
  25. })