Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Inactive Publication Date: 2018-08-24
ZHUHAI HENGQIN SHENGDA ZHAOYE TECH INVESTMENT CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem solved by the present invention is to provide a method for the parabolic animation effect to appear when the product is added to the shopping cart; it solves the problem of adding an animation effect that does not have an image running on a parabolic trajectory when the product is added to the shopping cart
This solves the problem of the animation effect of the running track without image when products are added to the shopping cart based on the WeChat applet platform

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for displaying parabolic animation when adding commodity to shopping cart based on applet platform of WeChat

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of an applet platform of WeChat, and in particular to a method for displaying a parabolic animation effect when a commodity is added to a shopping cart based on the applet platform of WeChat. The method comprises the steps of when a right side is clicked to add a commodity shopping cart, obtaining a click position, a position of a page where a pellet islocated and a position where the pellet is going to run; running the defined pellet to the click position at a background and displaying the pellet; then obtaining a value of y according to the valueof x during running on the basis of a formula (y=a*x*x+b*x+c), wherein the values of a, b and c can be calculated according to a starting point and an ending point; and finally running the pellet byuse of left and top animations to form a parabolic trajectory. With the method, the problem of no graphic animation effect addition running according to the parabolic trajectory when the commodity isadded to the shopping cart based on the applet platform of WeChat is solved.

Description

technical field [0001] The present invention relates to the technical field of the WeChat applet platform, and in particular to a method for adding an animation effect based on a parabolic trajectory that does not have an image when products are added to a shopping cart based on the WeChat applet platform. Background technique [0002] When products are added to the shopping cart on the WeChat Mini Program platform, most of the Mini Programs do not have animation effects, or the products run in a straight line, which is not vivid and vivid, and the user experience is very bad; in order to solve these problems, it is necessary to implement a It is a vivid and vivid method of adding commodities with an animation effect running along a certain parabolic trajectory. Contents of the invention [0003] The technical problem solved by the present invention is to provide a method for producing parabolic animation effects when commodities are added to the shopping cart; it solves t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 陈林张来卿庞严冬
Owner ZHUHAI HENGQIN SHENGDA ZHAOYE TECH INVESTMENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products