Drug classification method based on WeChat applet platform left-right structure hierarchical display and rapid loading

A technology of left and right structures and small programs, applied in software engineering design, data processing input/output process, special data processing applications, etc., can solve problems such as slow loading, messy drug classification display, etc.

Inactive Publication Date: 2018-09-14
ZHUHAI HENGQIN SHENGDA ZHAOYE TECH INVESTMENT CO LTD
View PDF2 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 classification method based on the left and right structure level display and fast loading of medicines on the WeChat applet platform; it solves the problems of messy drug classification display and slow loading in the WeChat applet
Bind the obtained value to the left and right views in the classify.wxml file and traverse them, and bind the event changeRightTab to the left subview; finally implement the changeRightTab method to display the different ones on the right according to the index and id clicked on the left Drug sub-category information; thus solving the problem of messy drug classification display and slow loading in the WeChat applet

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
  • Drug classification method based on WeChat applet platform left-right structure hierarchical display and rapid loading
  • Drug classification method based on WeChat applet platform left-right structure hierarchical display and rapid loading

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 classify package and 4 files in the project, namely classify.js, classify.json, classify.wxml, classify.wxss;

[0019] Step 2. Draw the drug classification interface in the classify.wxml file, which is a left-right structure. The left view is the main directory, and the right view is the details. Adjust the style in the classify.wxss file; for example:

[0020]

[0021]

[0022]

[0023]

[0024] Step 3. In the data in classify.js, define whether parentDisplay and childDisplay display variables, navLeftItems, curRightItems category list variables and curNav, curIndex index variables:

[0025] data: {

[0026] parentDisplay:'',

[0027] childDisplay:'',

[0028] navLeftItems: [],

[0029] curNav: 1,

[0030] curIndex: 0,

[0031] curRightItems: []

[0032]},

[0033] Step 4. In the onload method in the classify.js file, read the category data on the remote se...

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 WeChat applet platforms, in particular to a drug classification method based on WeChat applet platform left-right structure hierarchical display and rapid loading. The method comprises the steps that when a user enters a classification page of a left-right structure, additional data on a remote server is read immediately through an httpGet method andcached into the local, and if entering the classification page again, the user only needs to read the local cache data. After caching, obtained parent data is bound to a left view and traversed, anda change Right Tab event is bound to a left sub view; then it is achieved that sub-classification data is obtained according to the clicked index and id on the left through a change Right Tab method,and the sub-classification data is bound to a View on the right side, thereby achieving the concise and quick classification display. The drug classification method based on the WeChat applet platformleft-right structure hierarchical display and rapid loading solves the problem of slow and disorderly drug classification display in the WeChat applet.

Description

technical field [0001] The invention relates to the technical field of the WeChat applet platform, in particular to a drug classification method based on the left and right structure level display and fast loading of the WeChat applet platform. Background technique [0002] When visiting certain drug applets on the WeChat applet platform, there is no concise, detailed and comprehensive classification display page; in order to solve these problems, it is necessary to implement a drug classification method with left and right structure and hierarchical display to facilitate customers' browsing. Contents of the invention [0003] The technical problem solved by the present invention is to provide a classification method based on the left and right structure level display and fast loading of medicines on the WeChat applet platform; it solves the problems of messy drug classification display and slow loading in the WeChat applet. [0004] The technical scheme that the present i...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38G06F3/0482G06F17/30
CPCG06F3/0482G06F8/38
Inventor 陈林张来卿庞严冬
Owner ZHUHAI HENGQIN SHENGDA ZHAOYE TECH INVESTMENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products