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.
- 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 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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

