Mall - Shopping Cart - Login Cart merger

Mall - Shopping Cart - Login Cart merger

5. After logging cart merge

When the cart before the jump to the page, the query shopping cart list, you need to determine the user logged in,

  • If you log in:
    • First check whether there is information about the user's shopping cart in LocalStorage,
    • If so, then submit to background save,
    • Empty LocalStorage
  • If not logged in, you can direct inquiries

Guess you like

Origin blog.csdn.net/shenzhen_zsw/article/details/92778860