CN114756319A - Applet page display method, device and equipment and storage medium - Google Patents

Applet page display method, device and equipment and storage medium Download PDF

Info

Publication number
CN114756319A
CN114756319A CN202210439535.3A CN202210439535A CN114756319A CN 114756319 A CN114756319 A CN 114756319A CN 202210439535 A CN202210439535 A CN 202210439535A CN 114756319 A CN114756319 A CN 114756319A
Authority
CN
China
Prior art keywords
information
page
style
small program
structure information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210439535.3A
Other languages
Chinese (zh)
Inventor
孟繁贵
梁锐
高鑫鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202210439535.3A priority Critical patent/CN114756319A/en
Publication of CN114756319A publication Critical patent/CN114756319A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a small program page display method, a small program page display device and a storage medium, which relate to the technical field of page processing, and are characterized in that page file information of a current page of a small program is obtained; wherein, the page file information comprises: page structure information and page style information; generating target page file information according to the page structure information and the page style information; generating a target page of the small program according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program. By adopting the technical scheme, the page of one applet can be smoothly opened in other applets, so that the compatibility of the original applet can be improved, and the user experience is improved.

Description

Method, device and equipment for displaying small program page and storage medium
Technical Field
The present application relates to the field of page processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying an applet page.
Background
The applet can be conveniently acquired and propagated as a way for connecting a user with a service, but the situation that the original applet page cannot be identified can occur when one applet is opened in another applet due to different configuration files of different applets at present
Therefore, there is a need for a method for displaying a page of an applet, which enables a page of one applet to be opened smoothly in other applets, so as to improve compatibility of the original applet and further improve user experience.
Disclosure of Invention
The application provides a small program page display method, a small program page display device and a storage medium, which can enable a page of one small program to be smoothly opened in other small programs, and further can improve the compatibility of the original small program, and further improve the user experience.
In a first aspect, the present application provides an applet page display method, including:
acquiring page file information of a current page of the small program; wherein the pagefile information includes: page structure information and page style information;
generating target page file information according to the page structure information and the page style information;
generating a target page of the small program according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program.
In one example, generating target page file information according to the page structure information and the page style information includes:
analyzing the page structure information to obtain analyzed page structure information;
compiling the page style information to obtain compiled page style information;
and generating target page file information according to the analyzed page structure information and the compiled page style information.
In one example, analyzing the page structure information to obtain analyzed page structure information includes:
identifying first tag data information in the page structure information, and adding a first conversion identifier to the first tag data information to obtain second tag data information;
identifying first style identification information of the second tag data information in the page structure information, and adding a second conversion identification to the first style identification information to obtain second style identification information;
and determining the analyzed page structure information according to the second style identification information.
In one example, identifying first tag data information in the page structure information includes:
analyzing the page structure information into source code node information;
and traversing the source code node information, and determining the first label data information in the source code node information.
In one example, compiling the page style information to obtain compiled page style information includes:
identifying first attribute information in the page style information, and replacing the first attribute information with second attribute information; the second attribute information is used for representing the second style identification information in the page structure information;
and determining the compiled page style information according to the second attribute information.
In a second aspect, the present application provides an applet page display apparatus, comprising:
the acquisition unit is used for acquiring page file information of the current page of the applet; wherein the pagefile information comprises: page structure information and page style information;
the first generating unit is used for generating target page file information according to the page structure information and the page style information;
the second generating unit is used for generating a target page of the small program according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program.
In one example, the first generating unit includes:
the first determining module is used for analyzing the page structure information to obtain analyzed page structure information;
the second determining module is used for compiling the page style information to obtain compiled page style information;
and the generating module is used for generating target page file information according to the analyzed page structure information and the compiled page style information.
In one example, a first determination module includes:
the first determining submodule is used for identifying first tag data information in the page structure information and adding a first conversion identifier to the first tag data information to obtain second tag data information;
the second determining submodule is used for identifying first pattern identification information of the second label data information in the page structure information and adding a second conversion identification to the first pattern identification information to obtain second pattern identification information;
and the third determining submodule is used for determining the analyzed page structure information according to the second style identification information.
In one example, the first determining submodule is configured to parse the page structure information into source code node information;
and traversing the source code node information, and determining the first label data information in the source code node information.
In one example, the second determining module includes:
the replacing sub-module is used for identifying first attribute information in the page style information and replacing the first attribute information with second attribute information; the second attribute information is used for representing the second style identification information in the page structure information;
and the determining submodule is used for determining the compiled page style information according to the second attribute information.
In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method according to the first aspect when executed by a processor.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect.
According to the method, the device, the equipment and the storage medium for displaying the small program page, page file information of the current page of the small program is obtained; wherein the pagefile information comprises: page structure information and page style information; generating target page file information according to the page structure information and the page style information; generating a target page of the small program according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program. By adopting the technical scheme, the page of one applet can be smoothly opened in other applets, so that the compatibility of the original applet can be improved, and the user experience is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of an applet page display method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an applet page display method according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of an applet page display device according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of an applet page display device according to the fourth embodiment of the present application;
fig. 5 is a block diagram illustrating a terminal device according to an example embodiment.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. The drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the concepts of the application by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The application provides an applet page display method, which aims to solve the technical problems in the prior art.
The following describes the technical solution of the present application and how to solve the above technical problems in detail by specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of an applet page display method according to an embodiment of the present application. The first embodiment comprises the following steps:
s101, acquiring page file information of a current page of the small program; wherein, the page file information comprises: page structure information and page style information.
In one example, the pagefile information includes: the page structure information and the page style information can also comprise page configuration information and page logic information, and page file information of different applets is different. Specifically, the page structure information, page style information, page configuration information, and page logic information of different applets are different. For example, if the applet is the applet a, the page structure information of the applet a is a wxml file, the page style information is a wxss file, the page configuration information is a json file, and the page logic information is a js file. If the applet is the applet B, the page structure information of the applet B is an mxml file, the page style information is an mcs file, the page configuration information is a json file, and the page logic information is a js file.
And S102, generating target page file information according to the page structure information and the page style information.
In this embodiment, the page style information includes at least one selector, where the type of the selector, the examples of different selectors, and the example descriptions of different selectors may be referred to in table 1:
TABLE 1 kinds of selectors
Figure BDA0003614529770000041
Figure BDA0003614529770000051
The meaning of the selector is to determine a group of elements on the page, and perform style control on the elements. The page structure information refers to directory information of the page. If the page structure information and the page style information are modified, the target page file information can be generated.
S103, generating a target page of the small program according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program.
In one example, after determining the target pagefile information, a target page of the applet may be generated according to data information in the target pagefile information, where the target page of the applet is displayed on another platform, and the other platform may be an applet different from the current applet or a web page.
According to the method, the device, the equipment and the storage medium for displaying the small program page, page file information of the current page of the small program is obtained; wherein, the page file information comprises: page structure information and page style information; generating target page file information according to the page structure information and the page style information; generating a target page of the small program according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program. By adopting the technical scheme, the page of one applet can be smoothly opened in other applets, so that the compatibility of the original applet can be improved, and the user experience is improved.
Fig. 2 is a schematic flowchart of an applet page display method according to a second embodiment of the present application. The second embodiment comprises the following steps:
s201, acquiring page file information of a current page of the small program; wherein, the page file information comprises: page structure information and page style information.
For example, this step may refer to step S101 described above, and is not described again.
S202, analyzing the page structure information to obtain the analyzed page structure information.
In an example, the meanings of the tag data information in different page structure information are different, and therefore, the meanings of the same tag data information expressed in different applet page structure information may be different, which may cause the meanings of the a tag data information in the applet a and the a tag data information in the applet B to be different, and when the page structure information of the applet a is opened in the applet B, the case of an error in the identification of the a tag data information may occur. Therefore, before the page structure data information of the applet a is opened in the applet B, if the same tag data information exists in the applet a and the applet B, the tag data information in the applet a needs to be converted, so that the page structure information needs to be analyzed to obtain analyzed page structure information, and the tag data information in the analyzed page structure information is processed.
For example: the web page has input tag data information, the applet also has input tag data information, and the applet page can not be normally displayed if the tag data information of the applet is not converted because the applet page also runs in the browser. If the small program tag data information is not converted, the small program page structure information running in the browser can use the input tag data information of the web page by default, so that the input tag data information attribute and the event in the small program are invalid.
In one example, parsing the page structure information to obtain parsed page structure information includes:
identifying first tag data information in the page structure information, and adding a first conversion identifier to the first tag data information to obtain second tag data information;
identifying first style identification information of second tag data information in the page structure information, and adding a second conversion identifier to the first style identification information to obtain second style identification information;
and determining the analyzed page structure information according to the second style identification information.
In this embodiment, if it is identified that the first tag data information in the page structure information is view, the first tag data information view is added with a first conversion identifier prefix mp —, so as to obtain a second tag data information mp-view.
In this embodiment, after obtaining the second tag data information, it is determined whether the second tag data information has the first pattern identification information, and if the second tag data information has the first pattern identification information, the first pattern identification information is added with the second conversion identifier, where the second conversion identifier may be a prefix-class-, for example, the first pattern identification information of the second tag data information is < mp-view class > content, and the second conversion identifier is added with the second conversion identifier and then is < mp-view class > -content. And if the first style identification information does not exist in the second label data information, adding a second conversion identification as second style identification information.
Specifically, identifying first tag data information in the page structure information includes:
analyzing the page structure information into source code node information;
and traversing the source code node information, and determining the first label data information in the source code node information.
In this embodiment, the source code node information is node information in an AST (abstract syntax tree), where the AST is a tree representation of an abstract syntax structure of the source code, and each node on the tree represents one structure in the source code. In this embodiment, if the page structure information is an mxml file, the mxml file is converted into an AST using an vue-template-builder library, the first tag data information of each node information in the AST is converted, and after the entire AST node information is traversed, a new mxml file is generated; if not, continuously traversing other node information until traversing each node information, and in the process of traversing each node information, if detecting that first label data information exists in each node information, adding a first conversion identifier to the first label data information to obtain second label data information; and if detecting that the first label data information does not exist in each node information, not performing any processing. For example, if it is detected that the node information includes the first tag data information of div, no processing is performed because the meaning of div in other applets or web pages is the same.
Further, in the process of identifying the first pattern identification information of the second tag data information in the page structure information and adding the second conversion identification to the first pattern identification information to obtain the second pattern identification information, the vue-template-builder library is used to convert the mxml file into the AST, and convert the first pattern identification information of the second tag data information of each node information in the AST, and after the whole AST node information is traversed, a new mxml file is generated; and if not, continuing to traverse other node information until traversing each node information, and in the process of traversing each node information, if detecting that the first pattern identification information of the second label data information does not exist in each node information, taking the second conversion identification as the second pattern identification information. And if the first pattern identification information of the second label data information exists in each node information, adding a second conversion identification to the first pattern identification information to obtain second pattern identification information.
S203, compiling the page style information to obtain compiled page style information.
In this embodiment, the page style information may be an mcs file, and the compiled page style information is obtained by compiling the mcs file through a plug-in postcss. The plug-in postcss is a tool for converting css codes by using a JavaScript tool and the plug-in, and can process css files to obtain compiled page style information.
In one example, compiling the page style information to obtain compiled page style information includes:
identifying first attribute information in the page style information, and replacing the first attribute information with second attribute information; the second attribute information is used for representing second style identification information in the page structure information;
and determining the compiled page style information according to the second attribute information.
In this embodiment, the first attribute information in the page style information mcs file is replaced with the second attribute information, where the first attribute information may be a tag selector, and the second attribute information may be inner-class attribute information, and specifically, may be a class style selector.
And S204, generating target page file information according to the analyzed page structure information and the compiled page style information.
In this embodiment, the target page file information is composed according to the parsed page structure information and the compiled page style information.
S205, generating a target page of the small program according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program.
For example, this step may refer to step S103 described above, and is not described again.
According to the small program page display method, device, equipment and storage medium, the page structure information is analyzed to obtain the analyzed page structure information, the page style information is compiled to obtain the compiled page style information, and the target page file information is generated according to the analyzed page structure information and the compiled page style information. By adopting the technical scheme, the development efficiency can be improved, the conversion of the small program page can be realized without manually modifying grammar, the volume of the code engineering file after conversion is not increased, and the readability of the converted file is high.
Fig. 3 is a schematic structural diagram of an applet page display apparatus according to a third embodiment of the present application. The apparatus 30 in the third embodiment includes:
an obtaining unit 301, configured to obtain page file information of a current page of an applet; wherein, the page file information comprises: page structure information and page style information.
A first generating unit 302, configured to generate target pagefile information according to the page structure information and the page style information.
A second generating unit 303, configured to generate a target page of the applet according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the above-described device may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
Fig. 4 is a schematic structural diagram of an applet page display apparatus according to a fourth embodiment of the present application. The apparatus 40 in the fourth embodiment includes:
an obtaining unit 401, configured to obtain page file information of a current page of an applet; wherein, the page file information comprises: page structure information and page style information;
a first generating unit 402, configured to generate target page file information according to the page structure information and the page style information;
a second generating unit 403, configured to generate a target page of the applet according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program.
In one example, the first generating unit 402 includes:
the first determining module 4021 is configured to analyze the page structure information to obtain analyzed page structure information;
the second determining module 4022 is configured to compile the page style information to obtain compiled page style information;
the generating module 4023 is configured to generate target page file information according to the parsed page structure information and the compiled page style information.
In one example, the first determining module 4021 includes:
the first determining sub-module 40211 is configured to identify first tag data information in the page structure information, and add a first conversion identifier to the first tag data information to obtain second tag data information;
the second determining sub-module 40212 is configured to identify first pattern identification information of the second tag data information in the page structure information, and add the first pattern identification information to the second conversion identifier to obtain second pattern identification information;
the third determining sub-module 40213 is configured to determine the parsed page structure information according to the second style identification information.
In an example, the first determining sub-module 40211 is configured to parse the page structure information into source code node information;
and traversing the source code node information, and determining the first label data information in the source code node information.
In one example, the second determining module 4022 includes:
the replacing sub-module 40221 is configured to identify first attribute information in the page style information, and replace the first attribute information with second attribute information; the second attribute information is used for representing second style identification information in the page structure information;
the determining sub-module 40222 is configured to determine the compiled page style information according to the second attribute information.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the above-described device may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
Fig. 5 is a block diagram illustrating a terminal device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., according to one exemplary embodiment.
The apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communications component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 514 includes one or more sensors for providing various aspects of state assessment for the apparatus 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, in which instructions are executed by a processor of a terminal device, so that the terminal device can perform an applet page display method of the above terminal device.
The application also discloses a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the embodiments.
Various implementations of the systems and techniques described here above may be realized in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or electronic device.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data electronic device), or that includes a middleware component (e.g., an application electronic device), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include a client and an electronic device. The client and the electronic device are generally remote from each other and typically interact through a communication network. The relationship of client and electronic device arises by virtue of computer programs running on the respective computers and having a client-electronic device relationship to each other. The electronic device may be a cloud electronic device, which is also called a cloud computing electronic device or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a traditional physical host and a VPS service ("Virtual Private Server", or "VPS" for short). The electronic device may also be a distributed system of electronic devices or an electronic device incorporating a blockchain. It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present application can be achieved.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. An applet page display method, comprising:
acquiring page file information of a current page of the small program; wherein the pagefile information comprises: page structure information and page style information;
generating target page file information according to the page structure information and the page style information;
generating a target page of the small program according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program.
2. The method of claim 1, wherein generating target pagefile information based on the page structure information and the page style information comprises:
analyzing the page structure information to obtain analyzed page structure information;
compiling the page style information to obtain compiled page style information;
and generating target page file information according to the analyzed page structure information and the compiled page style information.
3. The method of claim 2, wherein analyzing the page structure information to obtain analyzed page structure information comprises:
identifying first tag data information in the page structure information, and adding a first conversion identifier to the first tag data information to obtain second tag data information;
identifying first style identification information of the second tag data information in the page structure information, and adding a second conversion identification to the first style identification information to obtain second style identification information;
and determining the analyzed page structure information according to the second style identification information.
4. The method of claim 3, wherein identifying the first tag data information in the page structure information comprises:
analyzing the page structure information into source code node information;
and traversing the source code node information, and determining the first label data information in the source code node information.
5. The method of claim 2, wherein compiling the page style information to obtain compiled page style information comprises:
identifying first attribute information in the page style information, and replacing the first attribute information with second attribute information; the second attribute information is used for representing the second style identification information in the page structure information;
and determining the compiled page style information according to the second attribute information.
6. An applet page display apparatus, comprising:
the acquiring unit is used for acquiring page file information of the current page of the applet; wherein the pagefile information includes: page structure information and page style information;
the first generating unit is used for generating target page file information according to the page structure information and the page style information;
the second generating unit is used for generating a target page of the small program according to the target page file information; and the target page of the small program is different from the platform displayed by the current page of the small program.
7. The apparatus of claim 6, wherein the first generating unit comprises:
the first determining module is used for analyzing the page structure information to obtain analyzed page structure information;
the second determining module is used for compiling the page style information to obtain compiled page style information;
and the generating module is used for generating target page file information according to the analyzed page structure information and the compiled page style information.
8. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-5.
9. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the method of any one of claims 1-5.
10. A computer program product, comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-5.
CN202210439535.3A 2022-04-25 2022-04-25 Applet page display method, device and equipment and storage medium Pending CN114756319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210439535.3A CN114756319A (en) 2022-04-25 2022-04-25 Applet page display method, device and equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210439535.3A CN114756319A (en) 2022-04-25 2022-04-25 Applet page display method, device and equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114756319A true CN114756319A (en) 2022-07-15

Family

ID=82333266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210439535.3A Pending CN114756319A (en) 2022-04-25 2022-04-25 Applet page display method, device and equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114756319A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664248A (en) * 2018-05-14 2018-10-16 北京汉能光伏投资有限公司 A kind of generation method and device of wechat small routine
CN110083383A (en) * 2019-03-18 2019-08-02 平安普惠企业管理有限公司 Browser style compatibility method, device, computer equipment and storage medium
CN110795099A (en) * 2019-09-03 2020-02-14 五八有限公司 Page style conversion method and device, terminal equipment and storage medium
CN110874236A (en) * 2019-11-13 2020-03-10 中国建设银行股份有限公司 Cross-platform application device, terminal and storage medium
CN111221613A (en) * 2020-01-03 2020-06-02 北京小米移动软件有限公司 Program calling method and device and storage medium
CN111610978A (en) * 2020-05-19 2020-09-01 中国建设银行股份有限公司 Applet conversion method, device, equipment and storage medium
EP3896567A1 (en) * 2020-03-02 2021-10-20 Baidu Online Network Technology (Beijing) Co., Ltd Page pre-rendering method and apparatus, electronic device, and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664248A (en) * 2018-05-14 2018-10-16 北京汉能光伏投资有限公司 A kind of generation method and device of wechat small routine
CN110083383A (en) * 2019-03-18 2019-08-02 平安普惠企业管理有限公司 Browser style compatibility method, device, computer equipment and storage medium
CN110795099A (en) * 2019-09-03 2020-02-14 五八有限公司 Page style conversion method and device, terminal equipment and storage medium
CN110874236A (en) * 2019-11-13 2020-03-10 中国建设银行股份有限公司 Cross-platform application device, terminal and storage medium
CN111221613A (en) * 2020-01-03 2020-06-02 北京小米移动软件有限公司 Program calling method and device and storage medium
EP3896567A1 (en) * 2020-03-02 2021-10-20 Baidu Online Network Technology (Beijing) Co., Ltd Page pre-rendering method and apparatus, electronic device, and storage medium
CN111610978A (en) * 2020-05-19 2020-09-01 中国建设银行股份有限公司 Applet conversion method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109032606B (en) Native application compiling method and device and terminal
CN106569800B (en) Front-end interface generation method and device
CN107423106B (en) Method and apparatus for supporting multi-frame syntax
CN106547547B (en) data acquisition method and device
CN111767058A (en) Program compiling method and device, electronic equipment and storage medium
EP3416070A1 (en) Page display method and device and storage medium
CN111580824B (en) Program optimization method, device and storage medium
CN105468606B (en) Webpage saving method and device
CN114756319A (en) Applet page display method, device and equipment and storage medium
CN111131000B (en) Information transmission method, device, server and terminal
CN114090738A (en) Method, device and equipment for determining scene data information and storage medium
CN111061633B (en) Webpage first screen time detection method, device, terminal and medium
CN112860625A (en) Data acquisition method, data storage method, device, equipment and storage medium
CN112819061A (en) Password information identification method, device, equipment and storage medium
CN112711420B (en) Code conversion method and device
CN111538544B (en) Method and device for displaying configuration data, electronic equipment and storage medium
CN112182027B (en) Information query method, device, electronic equipment and storage medium
CN111767249B (en) Method and device for determining self-running time of function
CN117472931A (en) Method, device, equipment and storage medium for calling database execution statement
CN114329088A (en) Directory structure file generation method, device, equipment and storage medium
CN110473138B (en) Graphic code conversion method, graphic code conversion device, electronic equipment and storage medium
CN115952311A (en) Text information generation method, device, equipment and storage medium
CN116755694A (en) Page information display method, device, equipment and storage medium
CN116680274A (en) Method and device for associating business database table and attachment information table
CN115794771A (en) Document information generation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination