12345678910111213141516171819202122 |
- Component({
- properties: {
- title: {
- type: String,
- value: ''
- },
- showList: {
- type: Array,
- value: () => []
- }
- },
- methods: {
- gotoDetails(e) {
- const url = e.currentTarget.dataset.coverimg;
- const title = e.currentTarget.dataset.title;
- wx.navigateTo({
- // 页面传参
- url: '/pages/details/details?url=' + url + '&title=' + title,
- })
- }
- },
- });
|