showItem.js 402 B

12345678910111213141516171819202122
  1. Component({
  2. properties: {
  3. title: {
  4. type: String,
  5. value: ''
  6. },
  7. showList: {
  8. type: Array,
  9. value: () => []
  10. }
  11. },
  12. methods: {
  13. gotoDetails(e) {
  14. const url = e.currentTarget.dataset.coverimg;
  15. const title = e.currentTarget.dataset.title;
  16. wx.navigateTo({
  17. // 页面传参
  18. url: '/pages/details/details?url=' + url + '&title=' + title,
  19. })
  20. }
  21. },
  22. });