当前位置:网站首页>Uni - app - uview Swiper shuffling figure component, click on the links to jump (click to get the item after the row data, remove data operation)

Uni - app - uview Swiper shuffling figure component, click on the links to jump (click to get the item after the row data, remove data operation)

2022-08-09 13:47:00 Wang Jiabin

Foreword

When you call the back-end interface to get the carousel data, there will be clicking on the carousel to jump to the details or link.

By observing the document, there are only events as shown below:

insert image description here
Unfortunately, this index Not the entire row (item) data we want,

We can't get the id in it to jump to the details, let alone any data in it.

Solution

To provide you with an example, you can visually see how this article is operated and completed.

Find any page and copy and run it with one click:

<u-swiper :list="list" @click
原网站

版权声明
本文为[Wang Jiabin]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/221/202208091241002690.html