javascript - WeChat applet How to implement this method of swiping left to delete? Is there any relevant API?
给我你的怀抱
给我你的怀抱 2017-06-10 09:49:10
0
2
1002

I am working on a shopping mall page recently. There is a function in the shopping cart that allows you to slide your finger to the left to display a delete button. How can I achieve this? This function is based on JD.com’s shopping cart~

给我你的怀抱
给我你的怀抱

reply all(2)
滿天的星座

There is no API out of the box, but link description can be implemented through events

Case reference address

扔个三星炸死你

Make the width a little longer and set overflow:hidden, and then add the gesture time. When swiping left, the left will be displayed to slide out the hidden delete button

At least that’s what I wrote in other projects

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template