existProduct-list.js 448 B

123456789101112131415161718192021222324252627282930
  1. // components/existProduct-list/existProduct-list.js
  2. Component({
  3. properties:{
  4. prods:{
  5. type:Array,
  6. value:[]
  7. }
  8. },
  9. /**
  10. * 页面的初始数据
  11. */
  12. data: {
  13. cartList: [],
  14. },
  15. observers:{
  16. "prods":function(list){
  17. console.log(list);
  18. this.setData({
  19. cartList:list
  20. })
  21. }
  22. },
  23. methods:{
  24. },
  25. ready(){
  26. }
  27. })