拓恒河湖长制全民护河平台WEB端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
613B

  1. // components/exchangeInfo/index.js
  2. Component({
  3. /**
  4. * 组件的属性列表
  5. */
  6. properties: {
  7. dataSource: {}
  8. },
  9. /**
  10. * 组件的初始数据
  11. */
  12. data: {
  13. item: {}
  14. },
  15. observers: {
  16. 'dataSource'(value) {
  17. let item = {}
  18. item = {...value}
  19. console.log(value, '====');
  20. if(value.goods.goodsImage) {
  21. item.coverImage = value.goods.goodsImage.split(',')[0]
  22. }
  23. this.setData({item})
  24. }
  25. },
  26. /**
  27. * 组件的方法列表
  28. */
  29. methods: {
  30. }
  31. })