index.js 607 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //Component Object
  2. Component({
  3. properties: {
  4. shops: { type: Array, value: [] },
  5. },
  6. data: {
  7. },
  8. methods: {
  9. getLocation: function(res){
  10. this.triggerEvent('getLocation', { });
  11. },
  12. gotoShopInfo:function (e){
  13. let id = e.currentTarget.dataset.id;
  14. wx.navigateTo({
  15. url: '../../pages/shopinfo/shopinfo?id='+id,
  16. })
  17. }
  18. },
  19. created: function(){
  20. },
  21. attached: function(){
  22. },
  23. ready: function(){
  24. },
  25. moved: function(){
  26. },
  27. detached: function(){
  28. },
  29. });