拓恒河湖长制全民护河平台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.

37 lines
659B

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