search

Home  >  Q&A  >  body text

javascript - WeChat applet How to implement this method of swiping left to delete? Is there any relevant API?

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~

给我你的怀抱给我你的怀抱2751 days ago991

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-06-10 09:51:10

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

    Case reference address

    reply
    0
  • 扔个三星炸死你

    扔个三星炸死你2017-06-10 09:51:10

    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

    reply
    0
  • Cancelreply