Method for displaying parabolic animation when adding commodity to shopping cart based on applet platform of WeChat
A shopping cart, parabola technology, applied in software engineering design, instrumentation, electrical digital data processing, etc., can solve problems such as animation effects of running trajectories without images
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0017] Such as figure 1 Shown, the present invention adopts following steps:
[0018] Step 1. Create a product list page in the WeChat applet project, define the data variable carts[] in data in the js file, obtain the data by requesting the service in the onload method and set the value to carts; for example:
[0019] var app = getApp()
[0020] Page({
[0021] data: {
[0022] carts:[]
[0023]},
[0024] onLoad: function (options) {
[0025] / / load the shopping cart
[0026] var carts = util.loadCart(this, app.globalData.customerId);
[0027] this.setData({carts :carts});
[0028]}
[0029] )
[0030] Step 2: Add a shopping cart button icon to each item on the product list page and bind the event addToCart; for example:
[0031]
[0032]
[0033]
[0034]
[0035] {{item.id}} {{item.title}}
[0036]
[0037]
[0038]
[0039]
[0040]
[0041] Step 3. At the same time, add a small ball View control at the last position of the product list pag...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com