CN112783494A - Automatic skeleton screen generation method and device and application page updating method and device - Google Patents

Automatic skeleton screen generation method and device and application page updating method and device Download PDF

Info

Publication number
CN112783494A
CN112783494A CN202110165979.8A CN202110165979A CN112783494A CN 112783494 A CN112783494 A CN 112783494A CN 202110165979 A CN202110165979 A CN 202110165979A CN 112783494 A CN112783494 A CN 112783494A
Authority
CN
China
Prior art keywords
skeleton screen
configuration file
skeleton
screen configuration
target
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
CN202110165979.8A
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.)
Beijing Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom Information Technology Co Ltd
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 Beijing Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202110165979.8A priority Critical patent/CN112783494A/en
Publication of CN112783494A publication Critical patent/CN112783494A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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

Abstract

The invention discloses a skeleton screen automatic generation method, an application program page updating method and a device, wherein the skeleton screen automatic generation method comprises the following steps: acquiring view level data of a skeleton screen; saving the view level data as a skeleton screen configuration file; and analyzing the skeleton screen configuration file, and generating a skeleton screen according to the analyzed skeleton screen configuration file. According to the method and the device, the acquired view level data of the skeleton screen is saved into the configuration file and then is analyzed to automatically generate the skeleton screen, the skeleton screen storage is realized when the configuration file is analyzed, the storage is not required to be clicked, the condition that the skeleton screen is required to be edited when being generated is compatible, a designer is not required to design a skeleton screen design drawing, a developer is not required to compile corresponding maintenance codes according to the skeleton screen design drawing, the skeleton screen configuration file is directly opened to update when the skeleton screen is modified, the consumption of human resources is reduced, the development cost is reduced, and the intelligent degree is improved.

Description

Automatic skeleton screen generation method and device and application page updating method and device
Technical Field
The invention relates to the technical field of computer application, in particular to a skeleton screen automatic generation method, an application program page updating method and an application program page updating device.
Background
The skeleton screen is used for showing a page rough structure for a user before page data is not returned or the page is completely rendered, the user can see the outline of the current page composed of gray blocks, the user can feel that contents are gradually loaded in the process, the page is smooth in vision, and the problem of white screen when the page is loaded can be effectively solved. Along with the continuous change of business demand, when APP newly-increased a new page or change original page, the designer all need redesign corresponding skeleton screen page, and research and development personnel also need corresponding code of maintaining a set of skeleton screen according to the design drawing, has a large amount of work load during this period, very big waste designer and research and development personnel's time and energy.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the defect that redesigning the skeleton screen page and maintaining the code of the skeleton screen page wastes human resources and time when a new page is added to the APP or the original page is changed in the prior art, thereby providing an automatic skeleton screen generation method, an application page updating method and an application page updating device.
According to a first aspect, the invention discloses an automatic skeleton screen generation method, which comprises the following steps: acquiring view level data of a skeleton screen; generating a skeleton screen configuration file according to the view level data; and analyzing the skeleton screen configuration file, and generating a skeleton screen according to the analyzed skeleton screen configuration file.
Optionally, the view level data of the skeletal screen includes: view level information and element attribute information; generating a skeleton screen configuration file according to the view level data comprises: acquiring a preset data structure and a preset storage format; and storing the view level information and the element attribute information according to the preset data structure and a preset storage format to obtain the skeleton screen configuration file.
Optionally, the generating a skeleton screen according to the parsed skeleton screen configuration file includes: generating an initial skeleton screen according to the analyzed skeleton screen configuration file, and displaying the initial skeleton screen on a target display interface; responding to the modification operation of the target display interface to obtain a target skeleton screen; and saving the view level data corresponding to the target skeleton screen to the skeleton screen configuration file.
Optionally, the method further comprises: acquiring address information of a target position; and storing the skeleton screen configuration file to a target position according to the address information of the target position.
According to a second aspect, the invention also discloses an application page updating method, which comprises the following steps: responding to a starting operation of a target application program, and starting the target application program; judging whether a skeleton screen configuration file stored in a target position is updated or not; when a skeleton screen configuration file stored in a target position is updated, acquiring the skeleton screen configuration file stored in the target position; generating a skeleton screen according to the skeleton screen configuration file stored in the target position, and displaying the skeleton screen on a target display interface; and acquiring skeleton screen data, writing the skeleton screen data into the skeleton screen and then hiding the skeleton screen to obtain a target page.
Optionally, the determining whether the skeleton screen configuration file stored in the target location is updated includes: acquiring a version number of a locally stored framework screen configuration file; when the version number of the locally stored skeleton screen configuration file is inconsistent with the version number of the skeleton screen configuration file stored in the target position, determining that the skeleton screen configuration file stored in the target position is updated; and when the version number of the locally stored skeleton screen configuration file is consistent with the version number of the skeleton screen configuration file stored in the target position, determining that the skeleton screen configuration file stored in the target position is not updated.
According to a third aspect, the present invention also discloses an automatic skeleton screen generation device, including: the view level data acquisition module is used for acquiring view level data of the skeleton screen; the skeleton screen configuration file generation module is used for generating a skeleton screen configuration file according to the view level data; and the skeleton screen generating module is used for analyzing the skeleton screen configuration file and generating the skeleton screen according to the analyzed skeleton screen configuration file.
According to a fourth aspect, the present invention also discloses an application page update apparatus, comprising: the starting module is used for responding to the starting operation of the target application program and starting the target application program; the judging module is used for judging whether the skeleton screen configuration file stored in the target position is updated or not; the framework screen configuration file acquisition module is used for acquiring the framework screen configuration file stored in the target position when the framework screen configuration file stored in the target position is updated; the display module is used for generating a skeleton screen according to the skeleton screen configuration file stored in the target position and displaying the skeleton screen on a target display interface; and the target page obtaining module is used for obtaining the skeleton screen data, writing the skeleton screen data into the skeleton screen and then hiding the skeleton screen to obtain the target page.
According to a fifth aspect, the present invention also discloses a computer device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to cause the at least one processor to perform the steps of the method for automatically generating a skeletal screen according to the first aspect or any of the optional embodiments of the first aspect or the application page update according to any of the optional embodiments of the second aspect or the second aspect.
According to a sixth aspect, the present invention further discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method for automatically generating a skeleton screen according to the first aspect or any one of the optional embodiments of the first aspect, or updates an application page according to the second aspect or any one of the optional embodiments of the second aspect.
The technical scheme of the invention has the following advantages:
1. according to the method and the device for automatically generating the skeleton screen, the view level data of the skeleton screen is obtained, the skeleton screen configuration file is generated according to the view level data, the skeleton screen configuration file is analyzed, and the skeleton screen is generated according to the analyzed skeleton screen configuration file. According to the method and the device, the acquired view level data of the skeleton screen is saved into the configuration file and then is analyzed to automatically generate the skeleton screen, the skeleton screen storage is realized when the configuration file is analyzed, the storage is not required to be clicked, the condition that the skeleton screen is required to be edited when being generated is compatible, a designer is not required to design a skeleton screen design drawing, a developer is not required to compile corresponding maintenance codes according to the skeleton screen design drawing, the skeleton screen configuration file is directly opened to update when the skeleton screen is modified, the consumption of human resources is reduced, the development cost is reduced, and the intelligent degree is improved.
2. The invention provides an application program page updating method and device, which are characterized in that a target application program is started by responding to the starting operation of the target application program, whether a skeleton screen configuration file stored in a target position is updated or not is judged, when the skeleton screen configuration file stored in the target position is updated, the skeleton screen configuration file stored in the target position is obtained, a skeleton screen is generated according to the skeleton screen configuration file stored in the target position, the skeleton screen is displayed on a target display interface, skeleton screen data are obtained, and the skeleton screen data are written into the skeleton screen and then hidden, so that a target page is obtained. According to the invention, the framework screen configuration file is obtained from the target position, the updated framework screen is automatically generated according to the framework screen configuration file, and the updated page is obtained, so that the application program page can be automatically updated, the consumption of human resources is reduced, and the development cost is also reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a specific example of a skeleton screen automatic generation method in an embodiment of the present invention;
fig. 2 is a flowchart of another specific example of the method for automatically generating the skeleton screen in the embodiment of the present invention;
FIG. 3 is a flowchart of a specific example of an application page update method according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a specific example of an apparatus for automatically generating a skeleton screen according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a specific example of an application page update apparatus according to an embodiment of the present invention;
FIG. 6 is a diagram showing a specific example of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
With the continuous change of the service requirements, developers need to frequently change the UI interface of the application program or create a new UI page, when a new UI interface is added, designers need to design a new skeleton screen, or when a UI interface is modified, designers need to change the previous skeleton screen design drawing, and at the same time, developers need to write a new program to maintain the skeleton screen, which wastes a large amount of human resources.
Therefore, the embodiment of the invention discloses an automatic skeleton screen generation method, which is applied to intelligent terminals such as mobile phones, tablet computers and the like, and comprises the following steps as shown in fig. 1:
s11: and acquiring view level data of the skeleton screen.
Illustratively, the view hierarchy data may include: view level information and element attribute information. Wherein the view level information may include: a page is divided into several parts, and each part has how much text, how many buttons, how many pictures and the like. The element attribute information may include: text background color, button background color, size of button fillet, page background color, and the like. The view level information and the element attribute information are not particularly limited in the embodiment of the present invention, and those skilled in the art may determine the view level information and the element attribute information according to the overall style of the application program. The view level data of the skeleton screen can be input information directly received by the intelligent terminal by designers or information transmitted by third-party equipment received by the intelligent terminal.
S12: and generating a skeleton screen configuration file according to the view level data.
Illustratively, the framework screen configuration files may be collectively referred to as DSL (Domain specific language) files. Different development languages use different file formats, for example, XML format files, JSON format files.
The generation process of the skeleton screen configuration file can be that the intelligent terminal firstly acquires a preset data structure and a preset storage format which are preset; and storing the view level information and the element attribute information according to a preset data structure and a preset storage format to obtain a skeleton screen configuration file.
The preset data structure may include: graph data structures, linked list data structures, tree data structures, and the like. The preset data structure is not particularly limited in the embodiment of the present invention, and those skilled in the art can determine the preset data structure according to actual situations. The preset format may include: XML format, JSON format, etc.
S13: and analyzing the skeleton screen configuration file, and generating the skeleton screen according to the analyzed skeleton screen configuration file.
Illustratively, in the embodiment of the present invention, the process of parsing the skeleton screen configuration file is a process of reading the skeleton screen configuration file by the intelligent terminal processor. Generating the skeleton screen according to the parsed skeleton screen configuration file may be an automatic tool for generating the skeleton screen, for example, PSWP (pageselect-webpack-plug), and automatically generate a corresponding skeleton screen according to the parsed skeleton screen configuration file.
According to the automatic generation method of the skeleton screen, the view level data of the skeleton screen is obtained, the skeleton screen configuration file is generated according to the view level data, the skeleton screen configuration file is analyzed, and the skeleton screen is generated according to the analyzed skeleton screen configuration file. According to the method and the device, the acquired view level data of the skeleton screen is saved into the configuration file and then is analyzed to automatically generate the skeleton screen, the skeleton screen storage is realized when the configuration file is analyzed, the storage is not required to be clicked, the condition that the skeleton screen is required to be edited when being generated is compatible, a designer is not required to design a skeleton screen design drawing, a developer is not required to compile corresponding maintenance codes according to the skeleton screen design drawing, the skeleton screen configuration file is directly opened to update when the skeleton screen is modified, the consumption of human resources is reduced, the development cost is reduced, and the intelligent degree is improved.
The embodiment of the invention also discloses an automatic skeleton screen generation method, which is applied to intelligent terminals such as mobile phones, tablet computers and the like, and comprises the following steps as shown in fig. 2:
s11: and acquiring view level data of the skeleton screen. The specific implementation manner is described in the above embodiment in relation to step S11, and is not described herein again.
S12: and generating a skeleton screen configuration file according to the view level data. The specific implementation manner is described in the above embodiment in relation to step S12, and is not described herein again.
S13: and analyzing the skeleton screen configuration file, and generating the skeleton screen according to the analyzed skeleton screen configuration file.
Specifically, the step S13 may include the following steps:
s131: and generating an initial skeleton screen according to the analyzed skeleton screen configuration file, and displaying the initial skeleton screen on a target display interface.
For an exemplary method for generating the initial skeleton screen, reference may be made to the description of step S13, and details are not described herein. The target display interface can be the same interface as the skeleton screen generation interface or can be other interfaces different from the skeleton screen generation interface. The target display interface is not particularly limited in the embodiments of the present invention, and those skilled in the art can determine the target display interface according to actual situations.
When the target display interface is the same as the interface generated by the skeleton screen, the intelligent terminal generates the skeleton screen and then directly previews the skeleton screen on the interface; and when the target display interface is other interfaces different from the skeleton screen generation interface, the intelligent terminal generates the skeleton screen and then jumps to the target display interface for previewing.
S132: and responding to the modification operation of the target display interface to obtain the target skeleton screen.
Illustratively, the modifying operation may include: color modification, angle modification of button rounding, text box size modification, etc. And the processor of the intelligent terminal responds to the modification operation of a designer on the target display interface, and modifies the initial skeleton screen to obtain a modified target skeleton screen.
For example, when the modification operation is background color modification, the intelligent terminal responds to the selection operation of the designer, selects the background, receives the color to be modified and replaces the color.
S133: and saving the view level data corresponding to the target skeleton screen to the skeleton screen configuration.
According to the embodiment of the invention, after the skeleton screen is generated, the skeleton screen is previewed on the target display interface, the editing effect can be preset in real time, and visual debugging is realized.
As an optional implementation manner of the embodiment of the present invention, after the skeleton screen is generated, the finally obtained skeleton screen configuration information is stored, and the method for automatically generating the skeleton screen further includes:
first, address information of a target location is acquired.
The target location may be a cloud or a memory of the smart terminal. The target position is not particularly limited in the embodiments of the present invention, and those skilled in the art can determine the target position according to actual situations. The address information may be a MAC address of a terminal corresponding to the cloud or a routing address of the memory. In the embodiment of the invention, the address information of the target position can be stored locally in advance, and the intelligent terminal can be directly called from the local when in use.
And secondly, storing the skeleton screen configuration file to the target position according to the address information of the target position.
According to the embodiment of the invention, the skeleton screen configuration file is stored in the target position and is directly called during use and modification, so that the dynamic modification of the skeleton screen can be realized, and the maintenance cost is reduced.
The embodiment of the invention also discloses an application program page updating method, as shown in fig. 3, comprising the following steps:
s21: and responding to the starting operation of the target application program, and starting the target application program.
For example, the starting operation may be clicking a position of a target application program on a display screen of the intelligent terminal, and may also be waking up the target application program by voice. The embodiment of the present invention does not specifically limit the start operation, and those skilled in the art can determine the start operation according to the setting of the intelligent terminal. For example, a user may click a target application program on a display interface of the intelligent terminal, and after receiving click information, the intelligent terminal starts the corresponding target application program according to the click information.
S22: and judging whether the skeleton screen configuration file stored in the target position is updated or not.
For example, the determination of whether the data stored in the target location is updated may be: and judging according to the version number of the skeleton screen configuration file, and also judging according to the time stamp of the skeleton screen configuration file. When the judgment method is to compare the version numbers of the skeleton screen configuration files, the specific judgment process is as follows: the intelligent terminal firstly obtains the version number of the locally stored skeleton screen configuration file, when the version number of the locally stored skeleton screen configuration file is inconsistent with the version number of the skeleton screen configuration file stored in the target position, the skeleton screen configuration file stored in the target position is determined to be updated, and when the version number of the locally stored skeleton screen configuration file is consistent with the version number of the skeleton screen configuration file stored in the target position, the skeleton screen configuration file stored in the target position is determined not to be updated.
S23: and when the skeleton screen configuration file stored in the target position is updated, acquiring the skeleton screen configuration file stored in the target position.
Illustratively, when the skeleton screen configuration file stored in the target position is updated, the intelligent terminal sends a file acquisition request to the target position, the acquisition request carries the name of the skeleton screen configuration file, and the processor of the target position matches the skeleton screen configuration file according to the name of the skeleton screen configuration file and then sends the skeleton screen configuration file to the intelligent terminal.
When the skeleton screen configuration file stored in the target position is not updated, the intelligent terminal directly calls the locally stored skeleton screen configuration file to generate the skeleton screen.
S24: and generating a skeleton screen according to the skeleton screen configuration file stored in the target position, and displaying the skeleton screen on the target display interface. The specific implementation manner is described in the foregoing embodiments of the skeleton screen generation and skeleton screen display related steps, and details are not repeated here.
S25: and acquiring skeleton screen data, writing the skeleton screen data into the skeleton screen and then hiding the skeleton screen to obtain a target page.
Illustratively, the page display process is to display the skeleton screen first, then render the skeleton screen data, and supplement the skeleton screen data into a text box of the data content displayed in the skeleton screen. When the skeleton screen data are successfully written, the intelligent terminal can call skeleton screen hiding logic to hide the skeleton screen, and a target page is obtained.
The method for acquiring the skeleton screen data comprises the steps that the intelligent terminal sends a data acquisition request to the server and receives skeleton screen data returned by the server.
The method for updating the application program page provided by the invention comprises the steps of starting a target application program by responding to the starting operation of the target application program, judging whether a skeleton screen configuration file stored in a target position is updated or not, acquiring the skeleton screen configuration file stored in the target position when the skeleton screen configuration file stored in the target position is updated, generating a skeleton screen according to the skeleton screen configuration file stored in the target position, displaying the skeleton screen on a target display interface, and hiding the skeleton screen to obtain the target page when the skeleton screen data is successfully written. According to the invention, the framework screen configuration file is obtained from the target position, the updated framework screen is automatically generated according to the framework screen configuration file, and the updated page is obtained, so that the application program page can be automatically updated, the consumption of human resources is reduced, and the development cost is also reduced.
The embodiment of the present invention further discloses an automatic skeleton screen generation device, as shown in fig. 4, including:
the view level data acquisition module 31 is used for acquiring view level data of the skeleton screen; the specific implementation manner is described in the above embodiment in relation to step S11, and is not described herein again.
The skeleton screen configuration file generation module 32 is used for generating a skeleton screen configuration file according to the view level data; the specific implementation manner is described in the above embodiment in relation to step S12, and is not described herein again.
And the skeleton screen generating module 33 is configured to parse the skeleton screen configuration file, and generate the skeleton screen according to the parsed skeleton screen configuration file. The specific implementation manner is described in the above embodiment in relation to step S13, and is not described herein again.
According to the automatic skeleton screen generation device, the view level data of the skeleton screen is obtained, the skeleton screen configuration file is generated according to the view level data, the skeleton screen configuration file is analyzed, and the skeleton screen is generated according to the analyzed skeleton screen configuration file. According to the method and the device, the acquired view level data of the skeleton screen is saved into the configuration file and then is analyzed to automatically generate the skeleton screen, the skeleton screen storage is realized when the configuration file is analyzed, the storage is not required to be clicked, the condition that the skeleton screen is required to be edited when being generated is compatible, a designer is not required to design a skeleton screen design drawing, a developer is not required to compile corresponding maintenance codes according to the skeleton screen design drawing, the skeleton screen configuration file is directly opened to update when the skeleton screen is modified, the consumption of human resources is reduced, the development cost is reduced, and the intelligent degree is improved.
As an optional implementation manner of the embodiment of the present invention, the view level data of the skeleton screen includes: view level information and element attribute information; the skeleton screen configuration file generating module 32 in the above step includes:
the data structure and storage format acquisition module is used for acquiring a preset data structure and a preset storage format; the specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
And the framework screen configuration file submodule is used for storing the view level information and the element attribute information according to a preset data structure and a preset storage format to obtain a framework screen configuration file. The specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
As an optional implementation manner of the embodiment of the present invention, the skeleton screen generating module 33 includes:
the initial skeleton screen display module is used for generating an initial skeleton screen according to the analyzed skeleton screen configuration file and displaying the initial skeleton screen on a target display interface; the specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
The response module is used for responding to modification operation on the target display interface to obtain a target skeleton screen; the specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
And the storage module is used for storing the view level data corresponding to the target skeleton screen into the skeleton screen configuration file. The specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
As an optional implementation manner of the embodiment of the present invention, the device for automatically generating a skeleton screen further includes:
the address information acquisition module is used for acquiring the address information of the target position; the specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
And the storage module is used for storing the skeleton screen configuration file to the target position according to the address information of the target position. The specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
The embodiment of the present invention further discloses an application page update device, as shown in fig. 5, including:
a starting module 41, configured to respond to a starting operation on the target application program, start the target application program; the specific implementation manner is described in the above embodiment in relation to step S21, and is not described herein again.
The judging module 42 is configured to judge whether the skeleton screen configuration file stored in the target position is updated; the specific implementation manner is described in the above embodiment in relation to step S22, and is not described herein again.
A skeleton screen configuration file obtaining module 43, configured to obtain a skeleton screen configuration file stored in the target location when the skeleton screen configuration file stored in the target location is updated; the specific implementation manner is described in the above embodiment in relation to step S23, and is not described herein again.
The display module 44 is configured to generate a skeleton screen according to the skeleton screen configuration file stored in the target location, and display the skeleton screen on the target display interface; the specific implementation manner is described in the above embodiment in relation to step S24, and is not described herein again.
And a target page obtaining module 45, configured to obtain the skeleton screen data, write the skeleton screen data into the skeleton screen, and then hide the skeleton screen, so as to obtain a target page. The specific implementation manner is described in the above embodiment in relation to step S25, and is not described herein again.
The application program page updating device provided by the invention starts a target application program by responding to the starting operation of the target application program, judges whether a skeleton screen configuration file stored in a target position is updated or not, acquires the skeleton screen configuration file stored in the target position when the skeleton screen configuration file stored in the target position is updated, generates a skeleton screen according to the skeleton screen configuration file stored in the target position, displays the skeleton screen on a target display interface, and hides the skeleton screen to obtain a target page when the skeleton screen data is successfully written. According to the invention, the framework screen configuration file is obtained from the target position, the updated framework screen is automatically generated according to the framework screen configuration file, and the updated page is obtained, so that the application program page can be automatically updated, the consumption of human resources is reduced, and the development cost is also reduced.
As an optional implementation manner of the embodiment of the present invention, the determining module 42 includes:
the version number acquisition module is used for acquiring the version number of the locally stored framework screen configuration file; the specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
The first determining module is used for determining that the skeleton screen configuration file stored in the target position is updated when the version number of the locally stored skeleton screen configuration file is inconsistent with the version number of the skeleton screen configuration file stored in the target position; the specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
And the second determining module is used for determining that the skeleton screen configuration file stored in the target position is not updated when the version number of the locally stored skeleton screen configuration file is consistent with the version number of the skeleton screen configuration file stored in the target position. The specific implementation manner is described in the relevant description of the corresponding steps in the above embodiments, and is not described herein again.
An embodiment of the present invention further provides a computer device, as shown in fig. 6, the computer device may include a processor 51 and a memory 52, where the processor 51 and the memory 52 may be connected by a bus or in another manner, and fig. 6 takes the example of connection by a bus as an example.
The processor 51 may be a Central Processing Unit (CPU). The Processor 51 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 52 is a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the skeleton screen automatic generation method or the application page update method in the embodiment of the present invention (for example, the view hierarchy data acquisition module 31, the skeleton screen configuration file generation module 32, and the skeleton screen generation module 33 shown in fig. 4, or the start module 41, the judgment module 42, the skeleton screen configuration file acquisition module 43, the display module 44, and the target page acquisition module 45 shown in fig. 5). The processor 51 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 52, that is, implementing the skeleton screen automatic generation method or the application page updating method in the above method embodiments.
The memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 51, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 52 may optionally include memory located remotely from the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 52 and, when executed by the processor 51, perform a skeleton screen auto-generation method or an application page update method as in the embodiments of fig. 1-3.
The details of the computer device can be understood by referring to the corresponding descriptions and effects in the embodiments shown in fig. 1 to fig. 3, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. An automatic skeleton screen generation method is characterized by comprising the following steps:
acquiring view level data of a skeleton screen;
generating a skeleton screen configuration file according to the view level data;
and analyzing the skeleton screen configuration file, and generating a skeleton screen according to the analyzed skeleton screen configuration file.
2. The method of claim 1, wherein the view level data of the skeletal screen comprises: view level information and element attribute information; generating a skeleton screen configuration file according to the view level data comprises:
acquiring a preset data structure and a preset storage format;
and storing the view level information and the element attribute information according to the preset data structure and a preset storage format to obtain the skeleton screen configuration file.
3. The method of claim 1, wherein generating a skeletal screen from the parsed skeletal screen profile comprises:
generating an initial skeleton screen according to the analyzed skeleton screen configuration file, and displaying the initial skeleton screen on a target display interface;
responding to the modification operation of the target display interface to obtain a target skeleton screen;
and saving the view level data corresponding to the target skeleton screen to the skeleton screen configuration file.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring address information of a target position;
and storing the skeleton screen configuration file to a target position according to the address information of the target position.
5. An application page updating method is characterized by comprising the following steps:
responding to a starting operation of a target application program, and starting the target application program;
judging whether a skeleton screen configuration file stored in a target position is updated or not;
when a skeleton screen configuration file stored in a target position is updated, acquiring the skeleton screen configuration file stored in the target position;
generating a skeleton screen according to the skeleton screen configuration file stored in the target position, and displaying the skeleton screen on a target display interface;
and acquiring skeleton screen data, writing the skeleton screen data into the skeleton screen and then hiding the skeleton screen to obtain a target page.
6. The method of claim 5, wherein determining whether the skeletal screen configuration file stored in the target location is updated comprises:
acquiring a version number of a locally stored framework screen configuration file;
when the version number of the locally stored skeleton screen configuration file is inconsistent with the version number of the skeleton screen configuration file stored in the target position, determining that the skeleton screen configuration file stored in the target position is updated;
and when the version number of the locally stored skeleton screen configuration file is consistent with the version number of the skeleton screen configuration file stored in the target position, determining that the skeleton screen configuration file stored in the target position is not updated.
7. An automatic skeleton screen generation device, comprising:
the view level data acquisition module is used for acquiring view level data of the skeleton screen;
the skeleton screen configuration file generation module is used for generating a skeleton screen configuration file according to the view level data;
and the skeleton screen generating module is used for analyzing the skeleton screen configuration file and generating the skeleton screen according to the analyzed skeleton screen configuration file.
8. An application page update apparatus, comprising:
the starting module is used for responding to the starting operation of the target application program and starting the target application program;
the judging module is used for judging whether the skeleton screen configuration file stored in the target position is updated or not;
the framework screen configuration file acquisition module is used for acquiring the framework screen configuration file stored in the target position when the framework screen configuration file stored in the target position is updated;
the display module is used for generating a skeleton screen according to the skeleton screen configuration file stored in the target position and displaying the skeleton screen on a target display interface;
and the target page obtaining module is used for obtaining the skeleton screen data, writing the skeleton screen data into the skeleton screen and then hiding the skeleton screen to obtain the target page.
9. A computer device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the method for automatically generating a skeletal screen as defined in any one of claims 1 to 4 or the steps of the method for updating application pages as defined in claim 5 or 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for automatic generation of a skeleton screen according to any one of claims 1 to 4 or the steps of the method for updating an application page according to claim 5 or 6.
CN202110165979.8A 2021-02-05 2021-02-05 Automatic skeleton screen generation method and device and application page updating method and device Pending CN112783494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110165979.8A CN112783494A (en) 2021-02-05 2021-02-05 Automatic skeleton screen generation method and device and application page updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110165979.8A CN112783494A (en) 2021-02-05 2021-02-05 Automatic skeleton screen generation method and device and application page updating method and device

Publications (1)

Publication Number Publication Date
CN112783494A true CN112783494A (en) 2021-05-11

Family

ID=75761139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110165979.8A Pending CN112783494A (en) 2021-02-05 2021-02-05 Automatic skeleton screen generation method and device and application page updating method and device

Country Status (1)

Country Link
CN (1) CN112783494A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076504A (en) * 2021-06-03 2021-07-06 北京达佳互联信息技术有限公司 Skeleton screen generation method, device, equipment and storage medium
CN115857932A (en) * 2022-12-21 2023-03-28 贝壳找房(北京)科技有限公司 Skeleton screen file generation method and device and skeleton screen display method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076504A (en) * 2021-06-03 2021-07-06 北京达佳互联信息技术有限公司 Skeleton screen generation method, device, equipment and storage medium
CN113076504B (en) * 2021-06-03 2021-10-01 北京达佳互联信息技术有限公司 Skeleton screen generation method, device, equipment and storage medium
CN115857932A (en) * 2022-12-21 2023-03-28 贝壳找房(北京)科技有限公司 Skeleton screen file generation method and device and skeleton screen display method and device

Similar Documents

Publication Publication Date Title
CN109801347B (en) Method, device, equipment and medium for generating editable image template
CN105511873B (en) User interface control display method and device
CN105955888B (en) Page debugging preview method and system
CN112783494A (en) Automatic skeleton screen generation method and device and application page updating method and device
CN111459501A (en) SVG-based Web configuration picture storage and display system, method and medium
US10951486B2 (en) Terminal device, UI expansion method, and UI expansion program
CN113010827A (en) Page rendering method and device, electronic equipment and storage medium
CN112506854A (en) Method, device, equipment and medium for storing page template file and generating page
CN112364496A (en) Avionics simulation panel generation system based on HTML5 and VUE technology
CN111625312A (en) APP skin changing method and device, electronic equipment and storage medium
CN115309470A (en) Method, device and equipment for loading widgets and storage medium
CN112799670B (en) Method and system for unified multi-terminal logic development
CN111737614A (en) Page display method and device, electronic equipment and storage medium
CN113721973A (en) Configuration file generation method, device, equipment and medium
CN113656005A (en) Application component library construction method, application component configuration method and related device
CN112905944A (en) Page online dynamic generation method and device, electronic equipment and readable storage medium
CN114756228A (en) Page processing method, device, equipment and storage medium
CN110941471A (en) Method and device for internationalizing basic data of software system
CN114168875A (en) Page program generation method and device, computer equipment and storage medium
CN114020187A (en) Font icon display method and device and electronic equipment
CN113760317A (en) Page display method, device, equipment and storage medium
CN112528184A (en) Sending method and device of rich text mail, computer equipment and storage medium
CN114371986A (en) User interface test case updating method, device and storage medium
CN111596828A (en) Cookie synchronization method, device and computer readable storage medium
CN115544969B (en) Page comparison method, equipment and medium based on hypertext markup language

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