CN112579077A - Page processing method and device in application, application service platform and equipment - Google Patents

Page processing method and device in application, application service platform and equipment Download PDF

Info

Publication number
CN112579077A
CN112579077A CN202110201822.6A CN202110201822A CN112579077A CN 112579077 A CN112579077 A CN 112579077A CN 202110201822 A CN202110201822 A CN 202110201822A CN 112579077 A CN112579077 A CN 112579077A
Authority
CN
China
Prior art keywords
page
module
application
target
target application
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.)
Granted
Application number
CN202110201822.6A
Other languages
Chinese (zh)
Other versions
CN112579077B (en
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.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network 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 Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN202110201822.6A priority Critical patent/CN112579077B/en
Publication of CN112579077A publication Critical patent/CN112579077A/en
Application granted granted Critical
Publication of CN112579077B publication Critical patent/CN112579077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/36Software reuse
    • 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

Abstract

The present specification provides a page processing method, an apparatus, an application service platform and a device in an application, in this embodiment, multiplexing of page modules is realized by a page module building manner, developers do not need to repeatedly develop page modules with the same function, and developers do not need to participate again in a subsequent application development process, so that development cost is reduced; through the page service, the page construction operation and the application creation operation can be decoupled, so that when the subsequent application has function change, the modification operation of the configuration of the page module, the module data and the like is irrelevant to the application program package, and the modification can be directly effective, thereby reducing the packaging times of the application and shortening the iteration cycle of the application and the online cycle of new functions.

Description

Page processing method and device in application, application service platform and equipment
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a method and an apparatus for processing a page in an application, an application service platform, and a device.
Background
With the rapid development of mobile internet and electronic devices, the number of various APPs (applications) in the application market is increasing, and users are reluctant to download new APPs, so that light applications such as small programs and fast applications, which are installed without downloading by users, are ready to use and run after use, and become a common requirement of enterprises and users. Therefore, how to develop and apply the application more efficiently is a technical problem to be solved urgently.
Disclosure of Invention
In order to overcome the problems in the related art, the specification provides a page processing method and device in an application, an application service platform and equipment.
According to a first aspect of embodiments herein, there is provided an application service platform, comprising:
a page module processing unit to: acquiring and storing a source code of at least one page module;
a page template processing unit for: determining a page template corresponding to a target application, wherein the page template is used for recording all page modules required by the target application;
a page service unit to: after determining the pages contained in the target application, acquiring and storing page construction data of each page in the target application, and constructing a program package of the target application by using source codes of each page module contained in each page in the target application; when receiving an access request to a target page initiated by the target application, returning page construction data of the target page to the target application; the page construction data comprises layout information of a page module and module data of the page module contained in the target page.
According to a second aspect of the embodiments of the present specification, there is provided a page processing method in an application, where a page is displayed during running of the application, and a program package of the application includes a page module source code of a page module and does not include module data corresponding to the page module; the method comprises the following steps:
after an access request aiming at a target page is detected, page construction data of the target page are obtained from a server; wherein the page construction data comprises: the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page;
and after determining the layout of the page module contained in the target page according to the layout information, displaying the target page by using the page module source code and the module data.
According to a third aspect of the embodiments of the present specification, there is provided a page processing apparatus in an application, where a page is displayed during running of the application, and a program package of the application includes a page module source code of a page module and does not include module data corresponding to the page module; the device comprises:
a detection module to: after an access request aiming at a target page is detected, page construction data of the target page are obtained from a server; wherein the page construction data comprises: the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page;
a display module for: and after determining the layout of the page module contained in the target page according to the layout information, displaying the target page by using the page module source code and the module data.
According to a fourth aspect of embodiments herein, there is provided an application service method, including:
acquiring and storing a source code of at least one page module;
determining a page template corresponding to a target application, wherein the page template is used for recording all page modules required by the target application;
after determining the pages contained in the target application, acquiring and storing page construction data of each page in the target application, and constructing a program package of the target application by using source codes of each page module contained in each page in the target application;
if an access request for a target page initiated by the target application is received, returning page construction data of the target page to the target application; the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page are obtained.
According to a fifth aspect of the embodiments of the present specification, there is provided a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the computer program displays a page during operation, and a program package of the application includes a page module source code of a page module and does not include module data corresponding to the page module;
wherein the processor implements the page processing method in the application of the second aspect when executing the computer program.
According to a sixth aspect of embodiments herein, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the application service method of the fourth aspect when executing the computer program.
According to a seventh aspect of the embodiments of the present specification, the embodiments of the present specification further provide a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the page processing method in the application of the foregoing second aspect.
According to an eighth aspect of embodiments of the present specification, there is also provided a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the application service method of the foregoing fourth aspect.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
in the embodiment of the specification, the reuse of the page module is realized by extracting the page module from the page, developers do not need to repeatedly develop the page module with the same function, and the developers do not need to participate again in the subsequent application development process, so that the development cost is reduced; the page construction operation and the application creation operation can be decoupled through the page service unit; and the page service unit stores page construction data, when the application needs to access the page during running, the page service unit returns the page construction data to the application to display the page, so that when the subsequent application has function change, modification operation on configuration of a page module, module data and the like is irrelevant to an application program package, a developer user can take effect by directly modifying the page service platform without repackaging the program package, the packaging times of the application can be reduced, and the iteration period of the application and the online period of a new function are shortened.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
Fig. 1A is a schematic structural diagram of an application service platform according to an exemplary embodiment of the present disclosure.
FIG. 1B is a schematic diagram of an application page shown in the present specification according to an exemplary embodiment.
FIG. 1C is a schematic diagram of an applet construction platform shown in the subject specification in accordance with an exemplary embodiment.
FIG. 2 is a flowchart illustrating a method for page processing in an application according to an exemplary embodiment.
Fig. 3 is a hardware configuration diagram of a computer device in which a page processing apparatus is located in an application of the embodiment of the present specification.
FIG. 4 is a block diagram of a page processing apparatus in an application, shown in accordance with an exemplary embodiment of the present specification.
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 specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Lightweight applications, such as applets or fast applications, can be executed within the host application without installation. For example, an applet may run in another application and a fast application may run in the operating system. Such light applications contain multiple application pages, from which the application is composed. In the development process of the application, a plurality of personnel are required to intervene, for example, some personnel propose business requirements, some personnel design the functions of the application, some personnel develop page components, and the development process efficiency of the application is low.
Based on this, an embodiment of the present specification provides an application service platform, as shown in fig. 1A, which is a schematic structural diagram of an application building platform shown in the present specification according to an exemplary embodiment, where the application service platform includes:
a page module processing unit 11, configured to: acquiring and storing a source code of at least one page module;
a page template processing unit 12 for: determining a page template corresponding to a target application, wherein the page template is used for recording all page modules required by the target application;
a page service unit 13, configured to: after determining the pages contained in the target application, acquiring and storing page construction data of each page in the target application, and constructing a program package of the target application by using source codes of each page module contained in each page in the target application; when receiving an access request to a target page initiated by the target application, returning page construction data of the target page to the target application; the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page are obtained.
In this embodiment, the division of the page module may be flexibly determined according to needs, for example, the page module may be divided according to needs of a page structure or a service function, and the granularity of the division may be, for example, divided by using a page component as the granularity, and the page module may include the page component. The page module can comprise page components, each independent visual/interactive area in the page can be regarded as one component, the components have independence, so that the components can be freely combined, and the page can be understood as a container of the components and is responsible for combining the components to form a complete interface.
The page module processing unit of this embodiment can be used for developers, and the page module processing unit can provide an upload function, and the developers upload the source codes of the developed page module, so that the page module processing unit can acquire and store the source codes of the page module.
By way of example, the page module may include page components, which may include a hot zone component, a list component, a drop down box component, a toolbar component, or a title bar component, among others. In practical application, the determination may be flexible according to needs, and this embodiment does not limit this. Fig. 1B is a schematic diagram illustrating a title component in a page, where the title component corresponds to source code. The page module processing unit may obtain and store the source code of the page module.
Through the processing, the multiplexing of the page modules can be realized, and developers do not need to repeatedly develop the page modules with the same function; for example, if a plurality of applications need to be developed, and all of the applications need a functional module with a certain function, only one development is needed, and the page module processing unit of this embodiment acquires and stores the source code of the page module for subsequent multiplexing.
In practical implementation, the page module of the page has different module data, and these module data may be understood as data filled into the page module, such as component attribute data of components included in the page module, and the module data may further include a structure or a style of a resource related to the module displayed on the page, and the resource related to the module may include a picture, a text, a video, and the like, where, for example, a picture resource, the module data includes a picture, and resource attribute information related to a display effect of the resource, such as a position and a size of the picture in the page module, and for example, a text resource, and the module data includes text content, font size, color, font type, and the like. In order to enable the page module to be multiplexed, the source code of the page module in this embodiment does not include module data corresponding to the page module.
In this embodiment, the application includes at least one page, and the page template processing unit of this embodiment is configured to: determining a page template corresponding to a target application, wherein the page template is used for recording all page modules required by the target application. As an example, the page template processing unit of the embodiment may be used by users facing other non-module developers such as product staff, and the user may select all page modules required by the application to be developed according to business needs.
In some examples, the page template processing unit may be further configured to:
and displaying the module information of the page module acquired by the page module processing unit, and providing a page module selection function to acquire all page modules required by the target application selected by the user.
Based on the page module processing unit of this embodiment, a developer user may determine all page modules needed by the target application in the page template processing unit, for example, may display module information of some or all acquired page modules, where the module information of this embodiment may include name information or function introduction information of the page modules, so as to be referred by the user, and thus select the needed page modules. Therefore, for a developer user, the development of a page module is not needed, and the development efficiency is remarkably improved. As an example, the application service platform may present a user page, present module information of the acquired page module in the user page, and provide a selection control for the user to select a desired page module, where the selection control may include a control such as a check box or a drop-down box. And acquiring the operation of the user through the selection control so as to determine the required page module selected by the user.
In addition to the selection of the page module, the development of the target application needs to determine related data such as how many pages are included, a relationship between the pages, which page modules are included in each page and layout information of how the page modules included in the page are arranged, module data required in the page modules, and the like, which are referred to as page construction data in this embodiment. The above determination process can be implemented in various ways, and can be determined by different developer users. In some examples, the developer user may correspondingly determine related page information such as a page included in the application when selecting the page template; in other examples, the development process of the application is participated by a plurality of users, the processes of selecting the page template and determining the related page information such as the page included in the application may be performed separately, and the application service platform of this embodiment may be used for a plurality of users to trigger the execution of the above processes. For example, at least one user may select a page template, and in addition, at least one other user determines relevant page information such as a page included in the application, or at least one user may select a page template and determine all of the relevant page information such as a page included in the application; or at least one user selects the page template and determines the part of the related page information such as the page contained in the application, and other at least one user determines other part of the related page information such as the page contained in the application.
As an example, the processing of module data for a page module may be handled by a page service unit; a page service unit to: and acquiring and storing page construction data of each page in the target application. The page service unit can be used by a developer user, and page construction data such as how many pages are included in the application, the relationship among the pages, which page modules are included in each page, the layout of each page module included in each page, module data needed in the page modules and the like can be determined in the page service unit. After the page service unit obtains the page construction data, as an example, the page construction data may correspond to the application, for example, an application identifier may be generated when the application creation unit creates the application, and the application identifier is associated with the page construction data of the application; each page included in the application is also configured with a page identifier, each page also corresponds to page construction data of the page, the page identifier is associated with the page construction data corresponding to the page, and the page construction data of the application may be a set of the page construction data of each page. By way of example, the page construction data includes: the layout information of the page modules contained in the target page, and the module data of the page modules contained in the target page.
In some examples, the page service unit is further configured to: and providing a page construction function, and generating and storing page construction data of the target application after acquiring a page contained in the target application constructed by a user, a page module contained in the page, the layout of the page module and module data of the page module through the page construction function. In this embodiment, the page service unit may provide a page construction function for the user, so that the user may construct a page included in the target application according to needs, where the page includes a page module, a layout of the page module, module data of the page module, and the like.
In some examples, the page template processing unit may also provide building of module data, and a user selecting a page module in an actual application is different from a user building page module data, so the page template processing unit may also provide a page building function, so that the user may perform configuration of some module data simultaneously when selecting a page module required by a target application.
In this embodiment, after determining the page included in the target application, the page service unit may obtain and store page construction data of each page in the target application, and construct a program package of the target application by using the source code of each page module included in each page in the target application. Therefore, in the embodiment, the target application can be quickly created through the page module processing unit and the page template processing unit, and therefore, the target application is created by using the source code of the page module, and therefore, the created target application contains the page module source code of the page module and does not contain the module data corresponding to the page module.
Based on this, the program package of the target application does not contain module data corresponding to the page module, the page service unit stores page construction data of each page in the target application, and the target application can initiate an access request to the target page to the server after detecting the access request to the target page during running. The page service unit may be further configured to: when receiving an access request to a target page initiated by the target application, returning page construction data of the target page to the target application; the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page are obtained. In this embodiment, the page service unit may obtain the access request, and return the page construction data of the target page to the target application, so that the application may obtain the page construction data of the target page from the server, and may further display the target page by using the page module source code and the module data after determining the layout of the page module included in the target page according to the layout information.
In this embodiment, when a page is constructed, each page may correspond to a unique identifier, and the page service unit may record a correspondence between the page unique identifier and page construction data corresponding to the page. In some examples, an access address corresponding to the page service unit may be configured for the access address of each page, so that when the target application runs and detects an access request of the target page, the page service unit may be accessed through the access address, so that the page service unit may search for and return corresponding page construction data.
In some examples, when a target page in an application is accessed, page construction data required for displaying the target application may include both module data provided by a platform side and module data from other application business sides; as an example, a service platform provided by a platform side can be used for a plurality of different business sides to quickly build an application through the service platform; the module data on the platform side may include component attribute data (all or part of) of the page component, and the module data on the business side may include the resource and attribute information of the resource, and may also include part of the component attribute data. Since two different types of data are involved and the two types of data involve different subjects, in the embodiment, the access address of each page binding includes the address of the page service of the platform and also includes the address of the business party. When the target application runs, after an access request of a target page is detected, the application can access the page service of the platform and the service of a business party according to the two addresses, serially or parallelly acquire module data from the page service of the platform, simultaneously acquire the module data from the business party, and display the page according to the acquired module data.
As mentioned above, multiple persons are involved in the application development process, and the attention points of the respective persons to the application are different, in this embodiment, by decoupling the respective processes of the application development, different functions are provided to different persons through the page module processing unit, the page template processing unit, the application creation unit, and the page service unit, so that the efficiency of the application development and the iteration can be improved.
In some examples, after the target application is developed, requirements such as modification may be met subsequently, and the iteration efficiency of the application can be significantly improved by using the scheme of the embodiment. As an example, the platform may obtain user modification operations on the application to determine which aspects the user's modification to the application relates to, and obtain modified data. For example, the modification process of the application generally involves a change of a page in the application, a change of a page module, or a change of page module data, and the modification process can be implemented by the page template processing unit or the page service unit as described above. The modification of the application may involve the addition or deletion of the page module, or may involve only the layout of the page module or the change of the module data of the page module; if only the layout of the page module or the change of the module data is involved, the changed data can be obtained and stored in the page service unit, and the page service unit stores the page construction data modified by the user, so that the page module contained in the application program package is not changed, and the application program package does not need to be updated.
If the change of the page module is involved, in the embodiment, the page template is associated with the program package of the target application; the association process may be executed after the application creating unit creates the package of the target application, and as an example, the identifiers may be configured for the page template and the target application, and the association between the identifier of the page template and the identifier of the target application is recorded. The purpose of the association is that after the page service unit determines that the user is constructed, the page service unit may compare all page modules in the target application constructed by the user with all page modules required by the target application recorded in the page template, and determine whether to update the program package of the target application according to a comparison result. For example, if it is determined that the user has constructed a new page module that is different from the page modules in the page template, the package of the target application may be recreated. In other examples, the user may delete part of the page module, and since the deletion of the page module does not affect the execution of the application, it may be determined whether to recreate the package of the target application as needed, and if not, the iteration cycle of the application may be reduced, and particularly, in the case where some applications need to have a long approval release cycle, the efficiency may be significantly improved.
Next, a description will be given by way of an embodiment. Fig. 1C is a schematic diagram of an application service platform shown in this specification according to an exemplary embodiment, in this embodiment, an applet is used as an example, a business side is provided with an applet building platform, and the applet building platform can be used for multiple types of users.
The method improves the mode of development iteration of the applet application by building and combining the page template and introducing the page service.
By way of example, the platform may include a module library for storing source code for required page modules in a page; the processing procedure can be as follows:
1) firstly, a research and development worker splits a service module according to a page structure to develop, and uploads a source code of the page module to a small program module library of a platform.
1.1) when the application is developed, if a page module which can meet the business requirement is found in the module library, the page module can be directly used without repeated development, and the development workload is reduced.
The building platform of the embodiment also comprises a template library for storing the page template; the user can select at least one module from the module library to be used in the page of the applet; in this embodiment, after the user selects all modules required in the applet, a page template may be generated, where the page template includes all modules required by all pages in the applet.
As an example, the process may be:
2) and selecting all page modules required by the current service from the module library by a product worker according to the actual service scene, and creating a small program page template, wherein all page modules required by the application are recorded in the page template.
Optionally, the product staff may also perform setting such as module data or layout on the selected page module.
3) And newly building the applet application, selecting a page template, and automatically triggering the actual applet construction once.
3.1) in the step, the page template can be associated with the small program, and the built small program is internally provided with all page modules required by the small program.
3.2) in the subsequent small program iteration process, if the user does not need to change the page module, the small program does not need to be constructed in the whole constructed operation, namely, the program package does not need to be changed, so that the time of the service verification configuration effect is saved.
The platform provides a page preview function, and the page of the small program can be previewed through the small program constructed by packaging.
The actual applet page can then be created by doing so.
As an example, 4) an applet page is created from the selected page template.
5) The operator can construct an actual specific page, and the platform of the embodiment provides a page construction function through the page service unit so as to accept all operations of the user. These operations include selecting individual page modules within a page within a range of page templates, sorting the modules, configuring module data, and publishing pages, among others. The effective time is in the order of seconds or minutes, which is far less than the day of the small program flow.
6) If the applet application comprises a plurality of pages, the operation related to the pages in the steps 4 and 5 is repeated.
7) After the construction of all the pages is completed, all the pages in the whole applet are constructed through the applet construction packaging service.
7.1) the main process of the small program constructing and packaging service is to copy a corresponding small program page through a small program frame built in the service and inject module data in the actually constructed small program page. Thus, when the actual consumer accesses the small program, the correct page effect can be seen by combining the page service.
8) After the package is finished, the small programs can be checked and released.
9) After the applet is released, if the module in the page or the configuration data thereof is modified, the step 4 is repeated.
According to the embodiment, through the page module building mode, the research and development personnel do not need to participate again in the subsequent application development process, so that the research and development cost is reduced; and the mode of the page template is introduced, so that when the page module in the range of the page template is adjusted, the adjustment can be completed without re-reviewing the published small program, thereby greatly shortening the iteration period of the whole small program service and greatly shortening the on-line period of new functions.
The method and the device build and produce the new application by sharing the page module and supporting the mode of directly selecting the page module and freely combining, are not limited by research and development resources, and are flexible and low in cost.
According to the method and the device, the page construction operation and the small program construction operation are decoupled through the page service, so that the operations of modifying the module sequence, module configuration and the like in the page are independent of the small program, the modification can be directly carried out, and the small program level verification and release are not required.
According to the method and the device, the page module is selected in advance, and the small program does not need to be reconstructed when the page module in the page template range is added or deleted, so that the packaging times of the small program can be reduced, and the waiting time of the service verification effect is shortened.
The traditional research and development mode of hundreds of previous developers' intervention is improved by the mode of independently constructing the page module through operation, and therefore research and development efficiency is improved.
According to the scheme of the embodiment, the page construction and the small program release can be decoupled, when the small program has new functions, if the new functions do not involve the increase of page modules in the existing small program package, the page construction data of the page is returned to the application through the page service unit, so that the new functions of the page are modified without updating the program package again, and the online period of the new functions can be greatly shortened.
As shown in fig. 2, this embodiment describes, from the perspective of application operation, a processing procedure of a page processing method in an application of this embodiment, where a page is shown in the application during operation, and a program package of the application includes a page module source code of a page module and does not include module data corresponding to the page module; as shown in fig. 2, the method includes:
in step 202, after an access request for a target page is detected, page construction data of the target page is acquired from a server; wherein the page construction data comprises: the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page;
in step 204, after determining the layout of the page module included in the target page according to the layout information, the target page is displayed by using the page module source code and the module data.
In some examples, the obtaining, from the server, the page construction data of the target page includes:
and acquiring an access address of a server corresponding to the target page, and initiating a data request for page construction data of the target page to the access address so as to receive the page construction data of the target page returned by the server according to the data request.
Corresponding to the foregoing embodiments, the present specification also provides embodiments of a page processing apparatus in an application and a terminal applied thereto.
The page processing device/application service platform in the application of the specification can be applied to computer equipment. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a device in a logical sense, the device is formed by reading a corresponding computer program instruction in a non-volatile memory into an internal memory through a processor with security protection. From a hardware aspect, as shown in fig. 3, it is a hardware structure diagram of a computer device where a page processing apparatus/application service platform in an application of this specification is located, except for the processor 310, the memory 330, the network interface 320, and the nonvolatile memory 340 shown in fig. 3, an electronic device where an apparatus 331 in the embodiment is located may also include other hardware according to an actual function of the computer device, which is not described again.
As shown in fig. 4, fig. 4 is a page processing apparatus in an application according to an exemplary embodiment shown in this specification, where the application displays a page at runtime, and a package of the application includes a page module source code of a page module and does not include module data corresponding to the page module; the device comprises:
a detection module 41 configured to: after an access request aiming at a target page is detected, page construction data of the target page are obtained from a server; wherein the page construction data comprises: the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page;
a presentation module 42 for: and after determining the layout of the page module contained in the target page according to the layout information, displaying the target page by using the page module source code and the module data.
In one example, the detection module is further configured to:
and acquiring an access address of a server corresponding to the target page, and initiating a data request for page construction data of the target page to the access address so as to receive the page construction data of the target page returned by the server according to the data request.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
Corresponding to the application service platform, an embodiment of the present specification further provides an application service method, including:
acquiring and storing a source code of at least one page module;
determining a page template corresponding to a target application, wherein the page template is used for recording all page modules required by the target application;
after determining the pages contained in the target application, acquiring and storing page construction data of each page in the target application, and constructing a program package of the target application by using source codes of each page module contained in each page in the target application;
if an access request for a target page initiated by the target application is received, returning page construction data of the target page to the target application; the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page are obtained.
In one example, the method further comprises:
and displaying the module information of the page module acquired by the page module processing unit, and providing a page module selection function to acquire all page modules required by the target application selected by the user.
In one example, the page template is associated with a package of the target application; the method further comprises the following steps:
providing a page construction function, and generating and storing page construction data of the target application after acquiring a page contained in the target application constructed by a user, a layout of a page module and the page module contained in the page and module data of the page module through the page construction function;
after the user is determined to be built, comparing all page modules in the target application built by the user with all page modules required by the target application recorded in the page template, and determining whether to update the program package of the target application according to the comparison result.
In one example, the method further comprises:
and if the page modules exist in the target application constructed by the user and are not recorded in the page template, regenerating the program package of the target application according to the page module source codes of all the page modules in the target application constructed by the user.
Correspondingly, an embodiment of the present specification further provides a computer device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the computer program displays a page during running, and a program package of the application includes a page module source code of a page module and does not include module data corresponding to the page module;
wherein the processor implements the following method when executing the program:
acquiring and storing a source code of at least one page module;
determining a page template corresponding to a target application, wherein the page template is used for recording all page modules required by the target application;
after determining the pages contained in the target application, acquiring and storing page construction data of each page in the target application, and constructing a program package of the target application by using source codes of each page module contained in each page in the target application;
if an access request for a target page initiated by the target application is received, returning page construction data of the target page to the target application; the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page are obtained.
The embodiment of the present specification further provides a computer device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the computer program displays a page during running, and a program package of the application includes a page module source code of a page module and does not include module data corresponding to the page module;
wherein the processor implements the following method when executing the program:
after an access request aiming at a target page is detected, page construction data of the target page are obtained from a server; wherein the page construction data comprises: the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page;
and after determining the layout of the page module contained in the target page according to the layout information, displaying the target page by using the page module source code and the module data.
Embodiments of the present specification also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements an embodiment of the page processing method in the foregoing application.
Embodiments of the present specification also provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements an embodiment of the aforementioned application service method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements 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 present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. An application service platform comprising:
a page module processing unit to: acquiring and storing a source code of at least one page module;
a page template processing unit for: determining a page template corresponding to a target application, wherein the page template is used for recording all page modules required by the target application;
a page service unit to: after determining the pages contained in the target application, acquiring and storing page construction data of each page in the target application, and constructing a program package of the target application by using source codes of each page module contained in each page in the target application; when receiving an access request to a target page initiated by the target application, returning page construction data of the target page to the target application; the page construction data comprises layout information of page modules and module data of the page modules, wherein the layout information of the page modules comprises the page construction data, and the module data of the page modules comprises the target page.
2. The application service platform of claim 1, the page template processing unit further to:
and displaying the module information of the page module acquired by the page module processing unit, and providing a page module selection function to acquire all page modules required by the target application selected by the user.
3. The application service platform of claim 1, the page template being associated with a package of the target application; the page service unit is further configured to:
providing a page construction function, and generating and storing page construction data of the target application after acquiring a page contained in the target application constructed by a user, a layout of a page module and the page module contained in the page and module data of the page module through the page construction function;
after the user is determined to be built, comparing all page modules in the target application built by the user with all page modules required by the target application recorded in the page template, and determining whether to update the program package of the target application according to the comparison result.
4. The application service platform of claim 1, the page service unit further to:
and if the page modules exist in the target application constructed by the user and are not recorded in the page template, regenerating the program package of the target application according to the page module source codes of all the page modules in the target application constructed by the user.
5. A page processing method in an application is disclosed, the application displays a page during running, and a program package of the application comprises a page module source code of a page module and does not comprise module data corresponding to the page module; the method comprises the following steps:
after an access request aiming at a target page is detected, page construction data of the target page are obtained from a server; wherein the page construction data comprises: the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page;
and after determining the layout of the page module contained in the target page according to the layout information, displaying the target page by using the page module source code and the module data.
6. The method of claim 5, wherein the obtaining page construction data of the target page from the server comprises:
and acquiring an access address of a server corresponding to the target page, and initiating a data request for page construction data of the target page to the access address so as to receive the page construction data of the target page returned by the server according to the data request.
7. An application service method, comprising:
acquiring and storing a source code of at least one page module;
determining a page template corresponding to a target application, wherein the page template is used for recording all page modules required by the target application;
after determining the pages contained in the target application, acquiring and storing page construction data of each page in the target application, and constructing a program package of the target application by using source codes of each page module contained in each page in the target application;
if an access request for a target page initiated by the target application is received, returning page construction data of the target page to the target application; the layout information of the page modules contained in the target page and the module data of the page modules contained in the target page are obtained.
8. The method of claim 7, the page template being associated with a package of the target application; the method further comprises the following steps:
after the user is determined to be built, comparing all page modules in the target application built by the user with all page modules required by the target application recorded in the page template, and determining whether to update the program package of the target application according to the comparison result.
9. A computer device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the computer program displays a page when running, and a program package of the application comprises a page module source code of a page module and does not comprise module data corresponding to the page module;
wherein the processor, when executing the computer program, implements a page processing method in an application as claimed in claim 5 or 6.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the application service method of claim 7 or 8 when executing the computer program.
CN202110201822.6A 2021-02-23 2021-02-23 Page processing method and device in application, application service platform and equipment Active CN112579077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110201822.6A CN112579077B (en) 2021-02-23 2021-02-23 Page processing method and device in application, application service platform and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110201822.6A CN112579077B (en) 2021-02-23 2021-02-23 Page processing method and device in application, application service platform and equipment

Publications (2)

Publication Number Publication Date
CN112579077A true CN112579077A (en) 2021-03-30
CN112579077B CN112579077B (en) 2021-06-01

Family

ID=75114012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110201822.6A Active CN112579077B (en) 2021-02-23 2021-02-23 Page processing method and device in application, application service platform and equipment

Country Status (1)

Country Link
CN (1) CN112579077B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113506569A (en) * 2021-06-07 2021-10-15 上海七十迈数字科技有限公司 Voice interaction method, system and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150099279A (en) * 2014-02-21 2015-08-31 주식회사 넥스다임 A system for providing an application developing environment
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN109947455A (en) * 2019-04-09 2019-06-28 苏州浪潮智能科技有限公司 A kind of dynamic updating method and system of the page
CN110427182A (en) * 2019-07-18 2019-11-08 北京市天元网络技术股份有限公司 A kind of template type construction APP method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150099279A (en) * 2014-02-21 2015-08-31 주식회사 넥스다임 A system for providing an application developing environment
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN109947455A (en) * 2019-04-09 2019-06-28 苏州浪潮智能科技有限公司 A kind of dynamic updating method and system of the page
CN110427182A (en) * 2019-07-18 2019-11-08 北京市天元网络技术股份有限公司 A kind of template type construction APP method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113506569A (en) * 2021-06-07 2021-10-15 上海七十迈数字科技有限公司 Voice interaction method, system and equipment
CN113506569B (en) * 2021-06-07 2023-02-03 上海七十迈数字科技有限公司 Voice interaction method, system and equipment

Also Published As

Publication number Publication date
CN112579077B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN107391114B (en) Page visual rendering method and device
EP3992800A1 (en) Program test method and apparatus, computer device, and storage medium
CN107066631A (en) Display methods, device and the electronic equipment of the page
CN110244942B (en) Page generation method, device and system
CN108228228B (en) Application software publishing method and device
CN103597469A (en) Live browser tooling in an integrated development environment
CN109033466B (en) Page sharing method calculates equipment and computer storage medium
CN110471657A (en) The generation method and device of Website page
CN111596928B (en) Application control method and device and electronic equipment
CN109783365A (en) Automated testing method, device, computer equipment and storage medium
CN113791765A (en) Resource arranging method, device and equipment of cloud service and storage medium
CN112579077B (en) Page processing method and device in application, application service platform and equipment
US11853752B2 (en) Migration of web applications between different web application frameworks
WO2016205628A1 (en) A method and system for evaluating computational algorithms described in printed publications
CN110727575B (en) Information processing method, system, device and storage medium
CN112882769B (en) Skill pack data processing method, skill pack data processing device, computer equipment and storage medium
CN111126931B (en) Node generation method and device based on data processing and computer equipment
CN113961191A (en) Method and device for automatically registering hierarchical code and storage medium
CN110221952B (en) Service data processing method and device and service data processing system
CN114721930A (en) Data processing method, device, equipment and medium
CN114254232A (en) Cloud product page generation method and device, computer equipment and storage medium
KR101987183B1 (en) Apparatus, method and server for app development supporting front-end development using app development utility
CN111651429B (en) Big data scheduling parameter management method, device and distributed platform
CN113672269B (en) Data processing method, system, electronic device and program product
US11983101B2 (en) Program testing method and apparatus, computer device, 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
GR01 Patent grant
GR01 Patent grant