[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114296824A - Page information configuration method, device, equipment and computer readable storage medium - Google Patents

Page information configuration method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114296824A
CN114296824A CN202111643144.5A CN202111643144A CN114296824A CN 114296824 A CN114296824 A CN 114296824A CN 202111643144 A CN202111643144 A CN 202111643144A CN 114296824 A CN114296824 A CN 114296824A
Authority
CN
China
Prior art keywords
page
component
target component
program code
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
CN202111643144.5A
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 Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202111643144.5A priority Critical patent/CN114296824A/en
Publication of CN114296824A publication Critical patent/CN114296824A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a configuration method, a device and equipment of page information and a computer readable storage medium, and belongs to the technical field of computers. The method comprises the following steps: displaying a first display page, wherein the first display page is provided with at least one component, one component corresponds to one configuration page, and the first display page is a display page in a user-side application program; in response to receiving a selected instruction aiming at a target component in at least one component, displaying a configuration page corresponding to the target component; acquiring configuration information corresponding to the target component based on a configuration page corresponding to the target component; and acquiring a second display page based on the configuration information corresponding to the target component and the first display page, wherein the second display page comprises the configuration information corresponding to the target component and is used for replacing the first display page to display in the user side application program. The method enables the configuration of the page information to be convenient and fast, and can improve the configuration efficiency of the page information.

Description

页面信息的配置方法、装置、设备及计算机可读存储介质Configuration method, apparatus, device and computer-readable storage medium of page information

技术领域technical field

本申请实施例涉及计算机技术领域,特别涉及一种页面信息的配置方法、装置、设备及计算机可读存储介质。The embodiments of the present application relate to the field of computer technologies, and in particular, to a method, apparatus, device, and computer-readable storage medium for configuring page information.

背景技术Background technique

随着计算机技术的不断发展,外卖业务也在飞速发展中。在外卖业务中存在商家端应用程序和用户端应用程序,商家可以在商家端应用程序中对对象(如外卖店铺)的页面信息进行配置。With the continuous development of computer technology, the food delivery business is also developing rapidly. There are merchant-side applications and user-side applications in the takeaway business, and merchants can configure page information of objects (such as takeaway shops) in the merchant-side applications.

相关技术中,在商家端应用程序中对对象的页面信息进行配置的过程为:显示页面信息设置页面,页面信息设置页面中以列表形式显示有多个组件,每个组件对应于一个配置页面。响应于对任一组件的选中指令,显示对应的配置页面,在配置页面中获取该组件的配置信息。将该组件的配置信息发送至用户端应用程序,由用户端应用程序基于该组件的配置信息获取配置后的页面。In the related art, the process of configuring the page information of the object in the merchant-side application is: displaying the page information setting page, and the page information setting page displays multiple components in the form of a list, and each component corresponds to a configuration page. In response to the selection instruction for any component, the corresponding configuration page is displayed, and the configuration information of the component is obtained in the configuration page. The configuration information of the component is sent to the client application, and the client application acquires the configured page based on the configuration information of the component.

然而,上述页面信息的配置方法中,商家需要切换到用户端应用程序查看配置后的页面。当商家对配置后的页面不满意时,需要重新切换到商家端应用程序对组件的配置信息进行更改,使得页面信息的配置效率较低。However, in the above configuration method of page information, the merchant needs to switch to the client application to view the configured page. When the merchant is not satisfied with the configured page, it needs to switch to the merchant-side application to change the configuration information of the component, which makes the configuration efficiency of the page information low.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种页面信息的配置方法、装置、设备及计算机可读存储介质,可用于解决相关技术中的问题。所述技术方案如下:Embodiments of the present application provide a method, apparatus, device, and computer-readable storage medium for configuring page information, which can be used to solve problems in related technologies. The technical solution is as follows:

一方面,本申请实施例提供了一种页面信息的配置方法,所述方法包括:On the one hand, an embodiment of the present application provides a method for configuring page information, the method comprising:

显示第一展示页面,所述第一展示页面显示有至少一个组件,一个组件对应一个配置页面,所述第一展示页面为在用户端应用程序中的展示页面;displaying a first display page, where the first display page displays at least one component, one component corresponds to a configuration page, and the first display page is a display page in a client application;

响应于接收到针对所述至少一个组件中的目标组件的选中指令,显示所述目标组件对应的配置页面;In response to receiving a selection instruction for a target component in the at least one component, displaying a configuration page corresponding to the target component;

基于所述目标组件对应的配置页面,获取所述目标组件对应的配置信息;Based on the configuration page corresponding to the target component, obtain configuration information corresponding to the target component;

基于所述目标组件对应的配置信息和所述第一展示页面,获取第二展示页面,所述第二展示页面中包括所述目标组件对应的配置信息,所述第二展示页面用于代替所述第一展示页面在所述用户端应用程序中进行展示。Based on the configuration information corresponding to the target component and the first display page, a second display page is obtained, where the second display page includes configuration information corresponding to the target component, and the second display page is used to replace the The first display page is displayed in the client application.

在一种可能的实现方式中,所述响应于接收到针对所述至少一个组件中的目标组件的选中指令,显示所述目标组件对应的配置页面,包括:In a possible implementation manner, in response to receiving a selection instruction for a target component in the at least one component, displaying a configuration page corresponding to the target component includes:

响应于接收到针对所述至少一个组件中的目标组件的选中指令,获取所述目标组件对应的目标程序代码;In response to receiving a selection instruction for a target component in the at least one component, acquiring the target program code corresponding to the target component;

运行所述目标组件对应的目标程序代码,显示所述目标组件对应的配置页面。The target program code corresponding to the target component is run, and the configuration page corresponding to the target component is displayed.

在一种可能的实现方式中,所述响应于接收到针对所述至少一个组件中的目标组件的选中指令,获取所述目标组件对应的目标程序代码,包括:In a possible implementation manner, in response to receiving a selection instruction for a target component in the at least one component, acquiring the target program code corresponding to the target component includes:

响应于接收到针对所述至少一个组件中的目标组件的选中指令,获取所述目标组件对应的参考程序代码,所述参考程序代码用于获取所述目标组件对应的显示页面;In response to receiving a selection instruction for a target component in the at least one component, obtain a reference program code corresponding to the target component, where the reference program code is used to obtain a display page corresponding to the target component;

基于方法重写对所述目标组件对应的参考程序代码进行处理,得到所述目标组件对应的目标程序代码。The reference program code corresponding to the target component is processed based on method rewriting to obtain the target program code corresponding to the target component.

在一种可能的实现方式中,所述响应于接收到针对所述至少一个组件中的目标组件的选中指令,获取所述目标组件对应的参考程序代码,包括:In a possible implementation manner, in response to receiving a selection instruction for a target component in the at least one component, acquiring the reference program code corresponding to the target component includes:

响应于接收到针对所述至少一个组件中的目标组件的选中指令,生成第一获取请求,所述第一获取请求中携带所述目标组件的组件标识,所述第一获取请求用于获取所述目标组件对应的参考程序代码;In response to receiving a selection instruction for a target component in the at least one component, a first acquisition request is generated, where the first acquisition request carries the component identifier of the target component, and the first acquisition request is used to acquire all the components. Describe the reference program code corresponding to the target component;

将所述第一获取请求发送至服务器;sending the first acquisition request to the server;

接收所述服务器基于所述第一获取请求返回的所述目标组件对应的参考程序代码。A reference program code corresponding to the target component returned by the server based on the first obtaining request is received.

在一种可能的实现方式中,所述显示第一展示页面,包括:In a possible implementation manner, the displaying the first display page includes:

显示第三展示页面,所述第三展示页面为设置页面,所述第三展示页面中显示有页面配置控件;displaying a third display page, where the third display page is a setting page, and a page configuration control is displayed on the third display page;

响应于接收到针对所述页面配置控件的选中指令,获取所述第一展示页面对应的程序代码;In response to receiving the selection instruction for the page configuration control, acquiring the program code corresponding to the first display page;

运行所述第一展示页面对应的程序代码,显示所述第一展示页面。The program code corresponding to the first display page is executed to display the first display page.

在一种可能的实现方式中,所述响应于接收到针对所述页面配置控件的选中指令,获取所述第一展示页面对应的程序代码,包括:In a possible implementation manner, in response to receiving a selection instruction for the page configuration control, acquiring the program code corresponding to the first display page includes:

响应于接收到针对所述页面配置控件的选中指令,生成第二获取请求,所述第二获取请求中携带目标对象的对象标识,所述第二获取请求用于获取所述目标对象在所述用户端应用程序中展示的第一展示页面对应的程序代码;In response to receiving the selection instruction for the page configuration control, a second acquisition request is generated, the second acquisition request carries the object identifier of the target object, and the second acquisition request is used to acquire the target object in the The program code corresponding to the first display page displayed in the client application;

将所述第二获取请求发送至服务器;sending the second acquisition request to the server;

接收所述服务器基于所述第二获取请求返回的所述第一展示页面对应的程序代码。Receive program code corresponding to the first display page returned by the server based on the second acquisition request.

在一种可能的实现方式中,所述基于所述目标组件对应的配置信息和所述第一展示页面,获取第二展示页面,包括:In a possible implementation manner, obtaining the second display page based on the configuration information corresponding to the target component and the first display page includes:

确定所述目标组件的组件类型;determining the component type of the target component;

响应于所述目标组件的组件类型为需要审核的第一类型,对所述目标组件对应的配置信息进行审核;In response to the component type of the target component being the first type that needs to be reviewed, reviewing the configuration information corresponding to the target component;

响应于所述目标组件对应的配置信息审核通过,基于所述目标组件对应的配置信息和所述第一展示页面,获取第二展示页面。In response to the approval of the configuration information corresponding to the target component, a second display page is acquired based on the configuration information corresponding to the target component and the first display page.

在一种可能的实现方式中,所述基于所述目标组件对应的配置信息和所述第一展示页面,获取第二展示页面,包括:In a possible implementation manner, obtaining the second display page based on the configuration information corresponding to the target component and the first display page includes:

基于所述目标组件对应的配置信息,对所述第一展示页面对应的程序代码进行调整,得到调整之后的程序代码;Based on the configuration information corresponding to the target component, adjusting the program code corresponding to the first display page to obtain the adjusted program code;

运行所述调整之后的程序代码,得到第二展示页面。The adjusted program code is run to obtain a second display page.

在一种可能的实现方式中,所述基于所述目标组件对应的配置信息,获取第二展示页面之后,所述方法还包括:In a possible implementation manner, after the second display page is acquired based on the configuration information corresponding to the target component, the method further includes:

显示所述第二展示页面。The second presentation page is displayed.

在一种可能的实现方式中,所述基于所述目标组件对应的配置信息,对所述第一展示页面对应的程序代码进行调整,得到调整之后的程序代码之后,所述方法还包括:In a possible implementation manner, the program code corresponding to the first display page is adjusted based on the configuration information corresponding to the target component, and after the adjusted program code is obtained, the method further includes:

向服务器发送所述调整之后的程序代码,通过所述服务器存储所述调整之后的程序代码,使运行有所述用户端应用程序的设备在所述服务器获取所述调整之后的程序代码,运行所述调整之后的程序代码,显示所述调整之后的程序代码对应的第二展示页面。Send the adjusted program code to the server, and store the adjusted program code through the server, so that the device running the client application can obtain the adjusted program code from the server, and run the adjusted program code. The adjusted program code is displayed, and a second display page corresponding to the adjusted program code is displayed.

在一种可能的实现方式中,所述用户端应用程序为目标用户所使用的用户端应用程序,所述获取所述目标组件对应的配置信息,包括:In a possible implementation manner, the client application is a client application used by the target user, and the acquiring configuration information corresponding to the target component includes:

获取与所述目标组件对应且与所述目标用户匹配的配置信息;obtaining configuration information corresponding to the target component and matching the target user;

所述基于所述目标组件对应的配置信息和所述第一展示页面,获取第二展示页面,包括:The obtaining of the second display page based on the configuration information corresponding to the target component and the first display page includes:

基于与所述目标组件对应且与所述目标用户匹配的配置信息对所述第一展示页面的内容进行调整,得到所述第二展示页面,所述第二展示页面的内容与所述目标用户相适配。The content of the first display page is adjusted based on the configuration information corresponding to the target component and matched with the target user, to obtain the second display page, the content of the second display page is the same as that of the target user fit.

另一方面,本申请实施例提供了一种页面信息的配置装置,所述装置包括:On the other hand, an embodiment of the present application provides an apparatus for configuring page information, and the apparatus includes:

显示模块,用于显示第一展示页面,所述第一展示页面显示有至少一个组件,一个组件对应一个配置页面,所述第一展示页面为在用户端应用程序中的展示页面;a display module, configured to display a first display page, the first display page displays at least one component, one component corresponds to a configuration page, and the first display page is a display page in a client application;

所述显示模块,还用于响应于接收到针对所述至少一个组件中的目标组件的选中指令,显示所述目标组件对应的配置页面;The display module is further configured to display a configuration page corresponding to the target component in response to receiving a selection instruction for the target component in the at least one component;

获取模块,用于基于所述目标组件对应的配置页面,获取所述目标组件对应的配置信息;an obtaining module, configured to obtain configuration information corresponding to the target component based on the configuration page corresponding to the target component;

所述获取模块,还用于基于所述目标组件对应的配置信息和所述第一展示页面,获取第二展示页面,所述第二展示页面中包括所述目标组件对应的配置信息,所述第二展示页面用于代替所述第一展示页面在所述用户端应用程序中进行展示。The obtaining module is further configured to obtain a second display page based on the configuration information corresponding to the target component and the first display page, where the second display page includes configuration information corresponding to the target component, and the The second presentation page is used for presentation in the client application in place of the first presentation page.

在一种可能的实现方式中,所述获取模块,用于响应于接收到针对所述至少一个组件中的目标组件的选中指令,获取所述目标组件对应的目标程序代码;In a possible implementation manner, the obtaining module is configured to, in response to receiving a selection instruction for a target component in the at least one component, obtain the target program code corresponding to the target component;

所述显示模块,用于运行所述目标组件对应的目标程序代码,显示所述目标组件对应的配置页面。The display module is used for running the target program code corresponding to the target component, and displaying the configuration page corresponding to the target component.

在一种可能的实现方式中,所述获取模块,用于响应于接收到针对所述至少一个组件中的目标组件的选中指令,获取所述目标组件对应的参考程序代码,所述参考程序代码用于获取所述目标组件对应的显示页面;基于方法重写对所述目标组件对应的参考程序代码进行处理,得到所述目标组件对应的目标程序代码。In a possible implementation manner, the obtaining module is configured to, in response to receiving a selection instruction for a target component in the at least one component, obtain a reference program code corresponding to the target component, the reference program code The method is used to obtain the display page corresponding to the target component; based on method rewriting, the reference program code corresponding to the target component is processed to obtain the target program code corresponding to the target component.

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

生成模块,用于响应于接收到针对所述至少一个组件中的目标组件的选中指令,生成第一获取请求,所述第一获取请求中携带所述目标组件的组件标识,所述第一获取请求用于获取所述目标组件对应的参考程序代码;A generating module, configured to generate a first acquisition request in response to receiving a selection instruction for a target component in the at least one component, where the first acquisition request carries the component identifier of the target component, and the first acquisition request Request for obtaining the reference program code corresponding to the target component;

发送模块,用于将所述第一获取请求发送至服务器;a sending module, configured to send the first acquisition request to a server;

接收模块,用于接收所述服务器基于所述第一获取请求返回的所述目标组件对应的参考程序代码。A receiving module, configured to receive the reference program code corresponding to the target component returned by the server based on the first obtaining request.

在一种可能的实现方式中,所述显示模块,用于显示第三展示页面,所述第三展示页面为设置页面,所述第三展示页面中显示有页面配置控件;In a possible implementation manner, the display module is configured to display a third display page, the third display page is a setting page, and a page configuration control is displayed on the third display page;

所述获取模块,用于响应于接收到针对所述页面配置控件的选中指令,获取所述第一展示页面对应的程序代码;the obtaining module, configured to obtain the program code corresponding to the first display page in response to receiving a selection instruction for the page configuration control;

所述显示模块,用于运行所述第一展示页面对应的程序代码,显示所述第一展示页面。The display module is configured to run the program code corresponding to the first display page to display the first display page.

在一种可能的实现方式中,所述生成模块,用于响应于接收到针对所述页面配置控件的选中指令,生成第二获取请求,所述第二获取请求中携带目标对象的对象标识,所述第二获取请求用于获取所述目标对象在所述用户端应用程序中展示的第一展示页面对应的程序代码;In a possible implementation manner, the generating module is configured to generate a second acquisition request in response to receiving a selection instruction for the page configuration control, where the second acquisition request carries the object identifier of the target object, The second acquisition request is used to acquire the program code corresponding to the first display page displayed by the target object in the client application;

所述发送模块,用于将所述第二获取请求发送至服务器;the sending module, configured to send the second acquisition request to a server;

所述接收模块,用于接收所述服务器基于所述第二获取请求返回的所述第一展示页面对应的程序代码。The receiving module is configured to receive the program code corresponding to the first display page returned by the server based on the second obtaining request.

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

确定模块,用于确定所述目标组件的组件类型;a determining module for determining the component type of the target component;

审核模块,用于响应于所述目标组件的组件类型为需要审核的第一类型,对所述目标组件对应的配置信息进行审核;an auditing module, configured to audit the configuration information corresponding to the target component in response to the component type of the target component being the first type that needs to be audited;

所述获取模块,用于响应于所述目标组件对应的配置信息审核通过,基于所述目标组件对应的配置信息和所述第一展示页面,获取第二展示页面。The obtaining module is configured to obtain a second display page based on the configuration information corresponding to the target component and the first display page in response to the approval of the configuration information corresponding to the target component.

在一种可能的实现方式中,所述获取模块,用于基于所述目标组件对应的配置信息,对所述第一展示页面对应的程序代码进行调整,得到调整之后的程序代码;In a possible implementation manner, the obtaining module is configured to adjust the program code corresponding to the first display page based on the configuration information corresponding to the target component to obtain the adjusted program code;

运行所述调整之后的程序代码,得到第二展示页面。The adjusted program code is run to obtain a second display page.

在一种可能的实现方式中,所述显示模块,还用于显示所述第二展示页面。In a possible implementation manner, the display module is further configured to display the second display page.

在一种可能的实现方式中,所述发送模块,还用于向服务器发送所述调整之后的程序代码,通过所述服务器存储所述调整之后的程序代码,使运行有所述用户端应用程序的设备在所述服务器获取所述调整之后的程序代码,运行所述调整之后的程序代码,显示所述调整之后的程序代码对应的第二展示页面。In a possible implementation manner, the sending module is further configured to send the adjusted program code to a server, and the server stores the adjusted program code, so that the client application program runs The device obtains the adjusted program code from the server, runs the adjusted program code, and displays a second display page corresponding to the adjusted program code.

在一种可能的实现方式中,所述用户端应用程序为目标用户所使用的用户端应用程序,所述获取模块,用于获取与所述目标组件对应且与所述目标用户匹配的配置信息;基于与所述目标组件对应且与所述目标用户匹配的配置信息对所述第一展示页面的内容进行调整,得到所述第二展示页面,所述第二展示页面的内容与所述目标用户相适配。In a possible implementation manner, the client application is a client application used by a target user, and the acquiring module is configured to acquire configuration information corresponding to the target component and matching the target user ; Adjust the content of the first display page based on the configuration information corresponding to the target component and match with the target user, to obtain the second display page, the content of the second display page and the target suitable for the user.

另一方面,本申请实施例提供了一种终端设备,所述终端设备包括处理器和存储器,所述存储器中存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载并执行,以使终端设备实现上述任一所述的页面信息的配置方法。On the other hand, an embodiment of the present application provides a terminal device, the terminal device includes a processor and a memory, the memory stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor , so that the terminal device implements any of the above-mentioned configuration methods for page information.

另一方面,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行,以使计算机实现上述任一所述的页面信息的配置方法。In another aspect, a computer-readable storage medium is also provided, where at least one piece of program code is stored in the computer-readable storage medium, and the at least one piece of program code is loaded and executed by a processor, so that the computer can implement any one of the above The configuration method of the described page information.

另一方面,还提供了一种计算机程序或计算机程序产品,所述计算机程序或计算机程序产品中存储有至少一条计算机指令,所述至少一条计算机指令由处理器加载并执行,以使计算机实现上述任一种页面信息的配置方法。In another aspect, a computer program or computer program product is also provided, wherein at least one computer instruction is stored in the computer program or computer program product, and the at least one computer instruction is loaded and executed by a processor, so that the computer can realize the above-mentioned The configuration method of any kind of page information.

本申请实施例提供的技术方案至少带来如下有益效果:The technical solutions provided in the embodiments of the present application at least bring the following beneficial effects:

本申请实施例提供的技术方案将在用户端应用程序中的第一展示页面显示在商家端应用程序中,使得商家在第一展示页面中对页面信息进行配置,得到配置后的页面,商家可以直接看到配置之后的页面,无需切换到用户端应用程序查看配置之后的页面,使得页面信息的配置较为便捷,能够提高页面信息的配置效率。The technical solutions provided by the embodiments of the present application display the first display page in the user-side application program in the merchant-side application program, so that the merchant configures page information in the first display page to obtain the configured page, and the merchant can You can directly see the page after configuration without switching to the client application to view the page after configuration, which makes configuration of page information more convenient and improves the configuration efficiency of page information.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请实施例提供的一种页面信息的配置方法的实施环境示意图;1 is a schematic diagram of an implementation environment of a method for configuring page information provided by an embodiment of the present application;

图2是本申请实施例提供的一种页面信息的配置方法的流程图;2 is a flowchart of a method for configuring page information provided by an embodiment of the present application;

图3是本申请实施例提供的一种第一展示页面的显示示意图;3 is a schematic display diagram of a first display page provided by an embodiment of the present application;

图4是本申请实施例提供的一种目标组件对应的配置页面的显示示意图;4 is a schematic display diagram of a configuration page corresponding to a target component provided by an embodiment of the present application;

图5是本申请实施例提供的一种第二展示页面的显示示意图;FIG. 5 is a schematic display diagram of a second display page provided by an embodiment of the present application;

图6是本申请实施例提供的一种页面信息的配置方法的架构图;6 is an architectural diagram of a method for configuring page information provided by an embodiment of the present application;

图7是本申请实施例提供的一种页面信息的配置装置的结构示意图;7 is a schematic structural diagram of an apparatus for configuring page information provided by an embodiment of the present application;

图8是本申请实施例提供的一种终端设备的结构示意图;8 is a schematic structural diagram of a terminal device provided by an embodiment of the present application;

图9是本申请实施例提供的一种服务器的结构示意图。FIG. 9 is a schematic structural diagram of a server provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

图1是本申请实施例提供的一种页面信息的配置方法的实施环境示意图,如图1所示,该实施环境包括:终端设备101和服务器102。FIG. 1 is a schematic diagram of an implementation environment of a method for configuring page information provided by an embodiment of the present application. As shown in FIG. 1 , the implementation environment includes: a terminal device 101 and a server 102 .

终端设备101可以是智能手机、游戏主机、台式计算机、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器和膝上型便携计算机中的至少一种。终端设备101用于执行本申请实施例提供的页面信息的配置方法。The terminal device 101 can be a smart phone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer III) player Audio Layer IV, Motion Picture Expert Compression Standard Audio Layer 4) At least one of players and laptops. The terminal device 101 is configured to execute the page information configuration method provided by the embodiment of the present application.

终端设备101可以泛指多个终端设备中的一个,本实施例仅以终端设备101来举例说明。本领域技术人员可以知晓,上述终端设备101的数量可以更多或更少。比如上述终端设备101可以仅为一个,或者上述终端设备101为几十个或几百个,或者更多数量,本申请实施例对终端设备的数量和设备类型不加以限定。The terminal device 101 may generally refer to one of multiple terminal devices, and this embodiment only takes the terminal device 101 as an example for illustration. Those skilled in the art may know that the number of the above-mentioned terminal devices 101 may be more or less. For example, the above-mentioned terminal device 101 may be only one, or the above-mentioned terminal device 101 may be dozens or hundreds, or more. The embodiment of the present application does not limit the number and device type of the terminal device.

服务器102为一台服务器,或者为多台服务器组成的服务器集群,或者为云计算平台和虚拟化中心中的任意一种,本申请实施例对此不加以限定。服务器102与终端设备101通过有线网络或无线网络进行通信连接。服务器102具有接收和发送的功能。当然,服务器102还可以具有其他功能,本申请实施例对此不加以限定。The server 102 is a server, or a server cluster composed of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in this embodiment of the present application. The server 102 is communicatively connected to the terminal device 101 through a wired network or a wireless network. The server 102 has the functions of receiving and transmitting. Certainly, the server 102 may also have other functions, which are not limited in this embodiment of the present application.

基于上述实施环境,本申请实施例提供了一种页面信息的配置方法,以图2所示的本申请实施例提供的一种页面信息的配置方法的流程图为例,该方法可由图1中的终端设备101执行。如图2所示,该方法包括下述步骤:Based on the above implementation environment, an embodiment of the present application provides a method for configuring page information. Taking the flowchart of a method for configuring page information provided by an embodiment of the present application shown in FIG. 2 as an example, the method can be described in FIG. 1 . The terminal device 101 executes. As shown in Figure 2, the method includes the following steps:

在步骤201中,显示第一展示页面,第一展示页面显示有至少一个组件,一个组件对应一个配置页面,第一展示页面为在用户端应用程序中的展示页面。In step 201, a first display page is displayed, the first display page displays at least one component, one component corresponds to a configuration page, and the first display page is a display page in a client application.

在本申请示例性实施例中,终端设备中运行有目标类型的应用程序(下文简称应用程序),该应用程序可以是购物类应用程序,也可以是外卖类应用程序,本申请实施例对应用程序的类型不加以限定。该应用程序包括用户端应用程序和商家端应用程序,终端设备中可以运行有用户端应用程序,也可以运行有商家端应用程序,本申请实施例对此也不加以限定。In the exemplary embodiment of the present application, an application program of a target type (hereinafter referred to as an application program) runs in the terminal device, and the application program may be a shopping application or a takeaway application. The type of program is not limited. The application includes a user-end application and a merchant-end application. The terminal device may run a user-end application program or a merchant-end application program, which is not limited in the embodiments of the present application.

当终端设备中运行商家端应用程序时,商家用户可以对目标对象(商铺)的页面信息进行配置,以使页面信息更加完善,从而能够提高目标对象的下单率。本申请实施例以该应用程序为外卖类应用程序,且终端设备中运行商家端应用程序为例进行说明。当终端设备中运行其他类型的商家端应用程序时,目标对象的页面信息的配置过程与该实施例中的页面信息的配置过程类似,在此不再赘述。When the merchant-side application is run in the terminal device, the merchant user can configure the page information of the target object (shop) to make the page information more complete, thereby increasing the order rate of the target object. The embodiments of the present application are described by taking the application as a takeaway application and the merchant-side application running in the terminal device as an example. When other types of merchant applications are run in the terminal device, the configuration process of the page information of the target object is similar to the configuration process of the page information in this embodiment, and details are not repeated here.

可选地,显示第一展示页面的过程包括但不限于:显示第三展示页面,第三展示页面为目标对象对应的设置页面,第三展示页面中显示有页面配置控件,页面配置控件用于对目标对象的页面进行配置。响应于接收到针对页面配置控件的选中指令,获取第一展示页面对应的程序代码。运行第一展示页面对应的程序代码,显示第一展示页面。Optionally, the process of displaying the first display page includes but is not limited to: displaying a third display page, the third display page is a setting page corresponding to the target object, and a page configuration control is displayed on the third display page, and the page configuration control is used for Configure the page of the target object. In response to receiving the selection instruction for the page configuration control, the program code corresponding to the first display page is acquired. The program code corresponding to the first display page is run to display the first display page.

终端设备中安装和运行有商家端应用程序,响应于用户对该商家端应用程序的选中指令,显示第三展示页面,第三展示页面为目标对象对应的设置页面。第三展示页面中显示有页面配置控件,当然,第三展示页面中还可以显示有其它控件,本申请实施例对此不加以限定。A merchant-side application is installed and running in the terminal device, and in response to a user's selection instruction on the merchant-side application, a third display page is displayed, and the third display page is a setting page corresponding to the target object. Page configuration controls are displayed on the third display page. Of course, other controls may also be displayed on the third display page, which is not limited in this embodiment of the present application.

其中,用户对应用程序的选中指令可以是用户对终端设备中显示的商家端应用程序的图标的点击操作,也可以是用户通过语音形式唤醒商家端应用程序的操作,还可以通过其他方式选中应用程序,本申请实施例对此不加以限定。Wherein, the user's instruction for selecting an application may be the user's click operation on the icon of the merchant-side application displayed in the terminal device, or the user's operation of waking up the merchant-side application in the form of voice, and the application may also be selected in other ways. procedures, which are not limited in the embodiments of the present application.

可选地,响应于接收到针对页面配置控件的选中指令,可以通过终端设备与服务器之间的交互获取第一展示页面对应的程序代码,该过程包括:响应于接收到针对页面配置控件的选中指令,生成第二获取请求,第二获取请求中携带目标对象的对象标识,第二获取请求用于获取目标对象在用户端应用程序中展示的第一展示页面对应的程序代码。将第二获取请求发送至服务器,接收服务器基于第二获取请求返回的第一展示页面对应的程序代码。Optionally, in response to receiving the selection instruction for the page configuration control, the program code corresponding to the first display page may be obtained through interaction between the terminal device and the server, and the process includes: in response to receiving the selection for the page configuration control. The instruction generates a second acquisition request, where the second acquisition request carries the object identifier of the target object, and the second acquisition request is used to acquire the program code corresponding to the first display page displayed by the target object in the client application. The second acquisition request is sent to the server, and the program code corresponding to the first display page returned by the server based on the second acquisition request is received.

其中,目标对象的对象标识可以是目标对象的对象名称,或者是其他能够唯一表示目标对象的标识,本申请实施例对此不进行限定。The object identifier of the target object may be the object name of the target object, or other identifiers that can uniquely represent the target object, which are not limited in this embodiment of the present application.

示例性地,目标对象为商铺,目标对象的对象标识为店铺的店铺名称,或者目标对象的对象标识为店铺的营业执照编号。Exemplarily, the target object is a store, the object identifier of the target object is the store name of the store, or the object identifier of the target object is the business license number of the store.

在一种可能的实现方式中,服务器中存储有多个程序代码以及对象标识和程序代码的对应关系。服务器获取到第二获取请求之后,对第二获取请求进行解析,得到第二获取请求中携带的目标对象的对象标识。进而基于目标对象的对象标识和以及对象标识和程序代码的对应关系,获取与目标对象的对象标识对应的程序代码,将该程序代码作为目标对象的第一展示页面对应的程序代码。进而服务器将目标对象的第一展示页面对应的程序代码发送至终端设备,以使终端设备获取到第一展示页面对应的程序代码。In a possible implementation manner, the server stores multiple program codes and the correspondence between object identifiers and program codes. After obtaining the second obtaining request, the server parses the second obtaining request to obtain the object identifier of the target object carried in the second obtaining request. Then, based on the object identifier of the target object and the corresponding relationship between the object identifier and the program code, the program code corresponding to the object identifier of the target object is obtained, and the program code is used as the program code corresponding to the first display page of the target object. Then, the server sends the program code corresponding to the first display page of the target object to the terminal device, so that the terminal device obtains the program code corresponding to the first display page.

通过终端设备和服务器的交互获取第一展示页面对应的程序代码时,无需在终端设备中存储多个程序代码以及对象标识和程序代码的对应关系,能够节省终端设备的存储空间。When the program code corresponding to the first display page is acquired through the interaction between the terminal device and the server, there is no need to store multiple program codes and the corresponding relationship between the object identifier and the program code in the terminal device, which can save the storage space of the terminal device.

在一种可能的实现方式中,终端设备中存储有目标对象在用户端应用程序中展示的第一展示页面对应的程序代码。响应于接收到针对页面配置控件的选中指令,终端设备从存储空间中获取第一展示页面对应的程序代码。In a possible implementation manner, the terminal device stores program code corresponding to the first display page displayed by the target object in the client application. In response to receiving the selection instruction for the page configuration control, the terminal device obtains the program code corresponding to the first display page from the storage space.

终端设备自行获取第一展示页面对应的程序代码时,无需和服务器进行交互,能够节省获取第一展示页面对应的程序代码的时间,从而提高第一展示页面对应的程序代码的获取效率。When the terminal device obtains the program code corresponding to the first display page by itself, it does not need to interact with the server, which can save time for obtaining the program code corresponding to the first display page, thereby improving the efficiency of obtaining the program code corresponding to the first display page.

需要说明的是,第一展示页面对应的程序代码为应用程序的开发人员事先编写好的程序代码,该程序代码的语言类型可以是C++语言(The C++Programming Language,一种面向对象的计算机程序设计语言),也可以是JAVA语言(Java programming language,JAVA编程语言),还可以是其他类型的计算机程序设计语言,本申请实施例对此不加以限定。It should be noted that the program code corresponding to the first display page is the program code written in advance by the developer of the application program, and the language type of the program code may be C++ language (The C++ Programming Language, an object-oriented computer programming language), may also be JAVA language (Java programming language, JAVA programming language), and may also be other types of computer programming languages, which are not limited in this embodiment of the present application.

可选地,终端设备具有能够运行展示页面对应的程序代码的第一功能模块。终端设备获取到第一展示页面对应的程序代码之后,通过第一功能模块运行第一展示页面对应的程序代码,得到第一展示页面,进而显示第一展示页面。在第一展示页面中显示有多个组件,每个组件对应于一个配置页面,配置页面用于对该组件的信息进行配置。Optionally, the terminal device has a first functional module capable of running the program code corresponding to the display page. After acquiring the program code corresponding to the first display page, the terminal device runs the program code corresponding to the first display page through the first functional module to obtain the first display page, and then displays the first display page. A plurality of components are displayed on the first display page, each component corresponds to a configuration page, and the configuration page is used to configure the information of the component.

如图3所示为本申请实施例提供的一种第一展示页面的显示示意图,在该图3所示的第一展示页面中显示有五个组件,分别为第一组件301、第二组件302、第三组件303、第四组件304和第五组件305。其中,第一组件301为对象名称组件,第二组件302为对象头像组件,第三组件303为优惠券组件,第四组件304为套餐设置组件,第五组件305为商品信息组件。FIG. 3 is a schematic display diagram of a first display page provided by an embodiment of the present application. The first display page shown in FIG. 3 displays five components, which are a first component 301 and a second component respectively. 302 , a third component 303 , a fourth component 304 and a fifth component 305 . The first component 301 is an object name component, the second component 302 is an object avatar component, the third component 303 is a coupon component, the fourth component 304 is a package setting component, and the fifth component 305 is a commodity information component.

当然,第一展示页面中还可以显示有其他组件,本申请实施例对此不加以限定。Certainly, other components may also be displayed on the first display page, which is not limited in this embodiment of the present application.

在步骤202中,响应于接收到针对至少一个组件中的目标组件的选中指令,显示目标组件对应的配置页面。In step 202, in response to receiving a selection instruction for a target component in the at least one component, a configuration page corresponding to the target component is displayed.

在一种可能的实现方式中,每个组件对应有一个配置页面,用户可以在组件对应的配置页面中对组件的信息进行配置,进而得到组件对应的配置信息。显示第一展示页面之后,用户可以在第一展示页面显示的多个组件中随机选中一个组件,终端设备将用户选中的组件作为目标组件,并显示目标组件对应的配置页面。In a possible implementation manner, each component corresponds to a configuration page, and the user can configure the information of the component on the configuration page corresponding to the component, and then obtain the configuration information corresponding to the component. After the first display page is displayed, the user can randomly select a component among the multiple components displayed on the first display page, and the terminal device takes the component selected by the user as the target component, and displays the configuration page corresponding to the target component.

可选地,终端设备显示目标组件对应的配置页面的过程包括但不限于:响应于接收到针对至少一个组件中的目标组件的选中指令,获取目标组件对应的目标程序代码。运行目标组件对应的目标程序代码,显示目标组件对应的配置页面。Optionally, the process of displaying the configuration page corresponding to the target component by the terminal device includes but is not limited to: in response to receiving a selection instruction for the target component in the at least one component, acquiring the target program code corresponding to the target component. Run the target program code corresponding to the target component, and display the configuration page corresponding to the target component.

其中,响应于接收到针对至少一个组件中的目标组件的选中指令,获取目标组件对应的目标程序代码的过程,包括但不限于:响应于接收到针对至少一个组件中的目标组件的选中指令,获取目标组件对应的参考程序代码,参考程序代码用于获取目标组件对应的显示页面。基于方法重写对目标组件对应的参考程序代码进行处理,得到目标组件对应的目标程序代码。Wherein, in response to receiving a selection instruction for the target component in the at least one component, the process of acquiring the target program code corresponding to the target component includes but is not limited to: in response to receiving the selection instruction for the target component in the at least one component, Obtain the reference program code corresponding to the target component, and the reference program code is used to obtain the display page corresponding to the target component. Based on method rewriting, the reference program code corresponding to the target component is processed to obtain the target program code corresponding to the target component.

在一种可能的实现方式中,包括但不限于下述两种实现方式获取目标组件对应的参考程序代码。In a possible implementation manner, including but not limited to the following two implementation manners, obtaining the reference program code corresponding to the target component.

实现方式一、基于终端设备和服务器的交互,获取目标组件对应的参考程序代码。Implementation mode 1: Based on the interaction between the terminal device and the server, the reference program code corresponding to the target component is obtained.

在一种可能的实现方式中,响应于接收到针对至少一个组件中的目标组件的选中指令,生成第一获取请求,第一获取请求中携带目标组件的组件标识,第一获取请求用于获取目标组件对应的参考程序代码。将第一获取请求发送至服务器。接收服务器基于第一获取请求返回的目标组件对应的参考程序代码。In a possible implementation manner, in response to receiving a selection instruction for a target component in the at least one component, a first acquisition request is generated, the first acquisition request carries a component identifier of the target component, and the first acquisition request is used to acquire The reference program code corresponding to the target component. Send the first get request to the server. The reference program code corresponding to the target component returned by the server based on the first obtaining request is received.

服务器中存储有各个对象包括的组件对应的参考程序代码,以及对象标识和对象包括的组件对应的参考程序代码的对应关系。第一获取请求中还携带有目标对象的对象标识,服务器接收到第一获取请求之后,对第一获取请求进行解析得到目标对象的对象标识和目标组件的组件标识。服务器先基于目标对象的对象标识,获取多个参考程序代码,多个参考程序代码为目标对象包括的多个组件分别对应的参考程序代码。再基于目标组件的组件标识,在多个参考程序代码中获取目标组件对应的参考程序代码。通过终端设备和服务器的交互获取目标组件对应的参考程序代码时,无需在终端设备中存储各个对象包括的组件对应的参考程序代码,以及对象标识和各个对象包括的组件对应的参考程序代码的对应关系,能够节省终端设备的存储空间。The server stores the reference program codes corresponding to the components included in each object, and the correspondence between the object identifiers and the reference program codes corresponding to the components included in the objects. The first acquisition request also carries the object identifier of the target object. After receiving the first acquisition request, the server parses the first acquisition request to obtain the object identifier of the target object and the component identifier of the target component. The server first obtains a plurality of reference program codes based on the object identifier of the target object, and the plurality of reference program codes are reference program codes respectively corresponding to the plurality of components included in the target object. Then, based on the component identifier of the target component, the reference program code corresponding to the target component is obtained from the plurality of reference program codes. When obtaining the reference program code corresponding to the target component through the interaction between the terminal device and the server, there is no need to store the reference program code corresponding to the component included in each object, and the correspondence between the object identifier and the reference program code corresponding to the component included in each object in the terminal device relationship, which can save the storage space of the terminal device.

如下述表一所示为本申请实施例提供的一种服务器中存储的目标对象包括的组件对应的参考程序代码,以及目标对象的对象标识和目标对象包括的组件对应的参考程序代码的对应关系的表格。Table 1 below shows the reference program code corresponding to the component included in the target object stored in a server provided by the embodiment of the present application, and the correspondence between the object identifier of the target object and the reference program code corresponding to the component included in the target object form.

表一Table I

Figure BDA0003444323030000111
Figure BDA0003444323030000111

如上述表一所示,第一对象包括三个组件,分别为第一组件、第二组件和第三组件。其中,第一组件对应的参考程序代码为第一参考程序代码,第二组件对应的参考程序代码为第二参考程序代码,第三组件对应的参考程序代码为第三参考程序代码。As shown in Table 1 above, the first object includes three components, namely the first component, the second component and the third component. The reference program code corresponding to the first component is the first reference program code, the reference program code corresponding to the second component is the second reference program code, and the reference program code corresponding to the third component is the third reference program code.

需要说明的是,上述表一仅为本申请实施例提供的一个示例,目标对象包括的组件个数可以更多或更少,服务器中还可以存储其他对象包括的组件分别对应的参考程序代码,本申请实施例对此不加以限定。It should be noted that the above Table 1 is only an example provided by the embodiment of the present application, the number of components included in the target object may be more or less, and the reference program codes corresponding to the components included in other objects may also be stored in the server, This embodiment of the present application does not limit this.

示例性地,目标组件为第一组件,则基于目标组件和上述表一,获取到目标组件对应的参考程序代码为第一参考程序代码。Exemplarily, if the target component is the first component, then based on the target component and the above Table 1, the obtained reference program code corresponding to the target component is the first reference program code.

实现方式二、终端设备中存储有目标对象包括的组件分别对应的参考程序代码以及组件标识和组件对应的参考程序代码的对应关系。响应于接收到至少一个组件中的目标组件的选中指令,终端设备获取到目标组件的组件标识。终端设备基于目标组件的组件标识以及组件标识和组件对应的参考程序代码的对应关系,获取目标组件对应的参考程序代码。终端设备自行获取目标组件对应的参考程序代码时,无需和服务器进行交互,能够节省获取目标组件对应的参考程序代码的时间,从而提高目标组件对应的参考程序代码的获取效率。Implementation Mode 2: The terminal device stores the reference program codes corresponding to the components included in the target object, respectively, and the corresponding relationship between the component identifiers and the reference program codes corresponding to the components. In response to receiving a selection instruction of a target component in the at least one component, the terminal device acquires the component identifier of the target component. The terminal device obtains the reference program code corresponding to the target component based on the component identifier of the target component and the corresponding relationship between the component identifier and the reference program code corresponding to the component. When the terminal device obtains the reference program code corresponding to the target component by itself, it does not need to interact with the server, which can save time for obtaining the reference program code corresponding to the target component, thereby improving the efficiency of obtaining the reference program code corresponding to the target component.

需要说明的是,可以选择上述任一种实现方式获取目标组件对应的参考程序代码,本申请实施例对此不加以限定。It should be noted that, any one of the above implementation manners may be selected to obtain the reference program code corresponding to the target component, which is not limited in this embodiment of the present application.

需要说明的是,各个组件对应的参考程序代码为应用程序的开发人员事先编写好的程序代码,各个组件对应的参考程序代码的语言类型可以是C++语言,也可以是JAVA语言,还可以是其他计算机程序设计语言,本申请实施例对此不加以限定。各个组件对应的参考程序代码的语言类型可以和第一展示页面对应的程序代码的语言类型一致,也可以和第一展示页面对应的程序代码的语言类型不一致,本申请实施例对此也不进行限定。It should be noted that the reference program code corresponding to each component is the program code written in advance by the developer of the application, and the language type of the reference program code corresponding to each component can be C++ language, JAVA language, or other languages. A computer programming language, which is not limited in this embodiment of the present application. The language type of the reference program code corresponding to each component may be consistent with the language type of the program code corresponding to the first display page, or may be inconsistent with the language type of the program code corresponding to the first display page, and this embodiment of the present application does not carry out this. limited.

在一种可能的实现方式中,获取到目标组件对应的参考程序代码之后,基于方法重写对目标组件对应的参考程序代码进行处理,得到目标组件对应的目标程序代码。其中,方法重写是指在JAVA和其他一些高级面向对象的编程语言中,子类可继承父类中的方法,而不需要重新编写相同的方法,但有时子类并不想原封不动地继承父类的方法,而是想做一定的修改,这就需要采用方法的重写,方法重写又称为方法覆盖。In a possible implementation manner, after obtaining the reference program code corresponding to the target component, the reference program code corresponding to the target component is processed based on method rewriting to obtain the target program code corresponding to the target component. Among them, method overriding refers to that in JAVA and some other advanced object-oriented programming languages, subclasses can inherit the methods in the parent class without rewriting the same methods, but sometimes subclasses do not want to inherit intact The method of the parent class, but want to make certain modifications, which requires the use of method overriding, which is also called method overriding.

服务器还可以对目标对象包括的各个组件对应的参考程序代码分别进行方法重写,进而得到目标对象包括的各个组件对应的目标程序代码。The server may also rewrite the method respectively on the reference program codes corresponding to each component included in the target object, so as to obtain the target program code corresponding to each component included in the target object.

可选地,为了区别各个组件对应的参考程序代码和目标程序代码,可以为每个组件配置一个协议,将该组件对应的参考程序代码和目标程序代码存储在该组件对应的协议中。其中,协议的本质是接口。通过组件对应的协议能够获取组件对应的参考程序代码和目标程序代码。Optionally, in order to distinguish the reference program code and target program code corresponding to each component, a protocol may be configured for each component, and the reference program code and target program code corresponding to the component are stored in the protocol corresponding to the component. Among them, the essence of the protocol is the interface. The reference program code and target program code corresponding to the component can be obtained through the protocol corresponding to the component.

每个组件对应有两个程序代码,其中,组件对应的参考程序代码为在用户端应用程序中运行的程序代码,组件对应的目标程序代码为在商家端应用程序中运行的程序代码。如下述表二所示为本申请实施例提供的一种目标对象包括的各个组件对应的协议、各个协议包括的程序代码以及能够执行程序代码的用户类型的对应表格。Each component corresponds to two program codes, wherein the reference program code corresponding to the component is the program code running in the client application, and the target program code corresponding to the component is the program code running in the merchant application. Table 2 below shows a protocol corresponding to each component included in a target object, a program code included in each protocol, and a corresponding table of user types that can execute the program code provided by an embodiment of the present application.

表二Table II

Figure BDA0003444323030000121
Figure BDA0003444323030000121

如上述表二所示,目标对象包括组件,分别为第一组件、第二组件和第三组件。其中,第一组件对应的协议为第一协议,第一协议包括第一参考程序代码和第一目标程序代码,第一参考程序代码为在用户端应用程序中运行的程序代码,第一目标程序代码为在商家端应用程序中运行的程序代码。目标对象包括的其它组件分别对应的协议、程序代码和能够执行程序代码用户类型见上述表二所示,在此不再赘述。As shown in Table 2 above, the target object includes components, which are a first component, a second component, and a third component, respectively. Wherein, the protocol corresponding to the first component is the first protocol, the first protocol includes the first reference program code and the first target program code, the first reference program code is the program code running in the client application, and the first target program The code is the program code that runs in the merchant-side application. The protocols, program codes and user types that can execute the program codes corresponding to the other components included in the target object are shown in Table 2 above, which will not be repeated here.

需要说明的是,目标对象包括的组件的个数可以更多或更少,本申请实施例对此不加以限定。It should be noted that, the number of components included in the target object may be more or less, which is not limited in this embodiment of the present application.

在一种可能的实现方式中,终端设备接收到目标组件的选中指令之后,向服务器发送第三获取请求,第三获取请求携带目标组件的组件标识。服务器接收到第三获取请求之后,对第三获取请求进行解析,得到第三获取请求中携带的目标组件的组件标识。服务器基于目标组件的组件标识和上述表二,确定目标组件对应的协议。通过目标组件对应的协议,获取目标组件对应的参考程序代码和目标程序代码。将目标组件对应的参考程序代码和目标程序代码发送至终端设备。终端设备获取到目标组件对应的参考程序代码和目标程序代码,响应于终端设备的应用程序中登录的用户的用户类型为商家,则终端设备在目标组件对应的参考程序代码和目标程序代码获取目标程序代码。或者,响应于终端设备的应用程序中登录的用户的用户类型为用户,则终端设备在目标组件对应的参考程序代码和目标程序代码中获取参考程序代码。In a possible implementation manner, after receiving the instruction for selecting the target component, the terminal device sends a third acquisition request to the server, where the third acquisition request carries the component identifier of the target component. After receiving the third acquisition request, the server parses the third acquisition request to obtain the component identifier of the target component carried in the third acquisition request. The server determines the protocol corresponding to the target component based on the component identifier of the target component and Table 2 above. Through the protocol corresponding to the target component, the reference program code and the target program code corresponding to the target component are obtained. Send the reference program code and the target program code corresponding to the target component to the terminal device. The terminal device obtains the reference program code and the target program code corresponding to the target component, and in response to the user type of the user logged in in the application program of the terminal device being a merchant, the terminal device obtains the target code. Alternatively, in response to the user type of the user logged in in the application program of the terminal device being the user, the terminal device obtains the reference program code from the reference program code and the target program code corresponding to the target component.

可选地,终端设备具有能够运行组件对应的目标程序代码的第二功能模块,终端设备获取到目标组件对应的目标程序代码之后,通过第二功能模块运行目标组件对应的目标程序代码,得到目标组件对应的配置页面,进而显示目标组件对应的配置页面。目标组件对应的配置页面用于获取目标组件对应的配置信息。Optionally, the terminal device has a second functional module capable of running the target program code corresponding to the component, and after obtaining the target program code corresponding to the target component, the terminal device runs the target program code corresponding to the target component through the second functional module to obtain the target. The configuration page corresponding to the component is displayed, and then the configuration page corresponding to the target component is displayed. The configuration page corresponding to the target component is used to obtain configuration information corresponding to the target component.

需要说明的是,第一功能模块和第二功能模块可以是同一个功能模块,也可以是两个不同的功能模块,本申请实施例对此不加以限定。响应于第一功能模块和第二功能模块为同一个功能模块时,第一功能模块不仅可以运行展示页面对应的程序代码,得到展示页面,还可以运行组件对应的目标程序代码,得到组件对应的配置页面。It should be noted that, the first functional module and the second functional module may be the same functional module, or may be two different functional modules, which are not limited in this embodiment of the present application. In response to when the first functional module and the second functional module are the same functional module, the first functional module can not only run the program code corresponding to the display page to obtain the display page, but also can run the target program code corresponding to the component to obtain the corresponding program code of the component. configuration page.

如图4所示为本申请实施例提供的一种目标组件对应的配置页面的显示示意图,在图4所示的图中,响应于用户对第一展示页面401中的对象名称组件402的选中指令,显示页面403,页面403为对象名称组件对应的配置页面。FIG. 4 is a schematic display diagram of a configuration page corresponding to a target component provided by an embodiment of the present application. In the diagram shown in FIG. 4 , in response to the user selecting the object name component 402 in the first display page 401 instruction, display page 403, page 403 is the configuration page corresponding to the object name component.

在步骤203中,基于目标组件对应的配置页面,获取目标组件对应的配置信息。In step 203, the configuration information corresponding to the target component is acquired based on the configuration page corresponding to the target component.

显示目标组件对应的配置页面之后,用户在目标组件对应的配置页面中输入目标组件的配置信息。目标组件对应的配置页面中还显示有确认控件,当用户在目标组件对应的配置页面中输入目标组件的配置信息,且选中确认控件之后,终端设备将用户输入的信息作为目标组件对应的配置信息。After the configuration page corresponding to the target component is displayed, the user inputs configuration information of the target component in the configuration page corresponding to the target component. The configuration page corresponding to the target component also displays a confirmation control. When the user enters the configuration information of the target component in the configuration page corresponding to the target component and selects the confirmation control, the terminal device takes the information input by the user as the configuration information corresponding to the target component. .

示例性地,目标组件为对象名称组件,用户在目标组件对应的配置页面中输入的信息为“XXX披萨(B店)”,响应于用户对确认控件的选中指令,终端设备获取到目标组件对应的配置信息为“XXX披萨(B店)”。Exemplarily, the target component is an object name component, the information input by the user in the configuration page corresponding to the target component is "XXX Pizza (B restaurant)", and in response to the user's selection instruction on the confirmation control, the terminal device obtains the corresponding target component. The configuration information is "XXX Pizza (B restaurant)".

需要说明的是,第一展示页面中的每个组件对应的配置信息的获取过程均与上述对象名称组件对应的配置信息的获取过程类似,在此不再赘述。It should be noted that the process of acquiring the configuration information corresponding to each component in the first display page is similar to the process of acquiring the configuration information corresponding to the above-mentioned object name component, and details are not repeated here.

可选地,响应于用户端应用程序为目标用户所使用的用户端应用程序时,获取目标组件对应的配置信息的过程包括:获取与目标组件对应且与目标用户匹配的配置信息。其中,目标用户可以是会员用户,也可以是非会员用户,还可以是其他用户,本申请实施例对此不加以限定。Optionally, in response to the client application being the client application used by the target user, the process of acquiring configuration information corresponding to the target component includes: acquiring configuration information corresponding to the target component and matching the target user. The target user may be a member user, a non-member user, or another user, which is not limited in this embodiment of the present application.

示例性地,以目标组件为优惠券组件为例,响应于目标用户为会员用户时,与目标组件对应且与目标用户匹配的配置信息为“消费满100元减20元”。响应于目标用户为非会员用户,与目标组件对应且与目标用户匹配的配置信息为“消费满100元减10元”。Exemplarily, taking the target component as a coupon component as an example, in response to the target user being a member user, the configuration information corresponding to the target component and matching the target user is "minus 20 yuan after spending 100 yuan". In response to the target user being a non-member user, the configuration information corresponding to the target component and matching the target user is "10 yuan minus 10 yuan after consumption".

在步骤204中,基于目标组件对应的配置信息和第一展示页面,获取第二展示页面,第二展示页面中包括目标组件对应的配置信息,第二展示页面用于代替第一展示页面在用户端应用程序中进行展示。In step 204, a second display page is obtained based on the configuration information corresponding to the target component and the first display page, the second display page includes configuration information corresponding to the target component, and the second display page is used to replace the first display page in the user displayed in the client application.

在一种可能的实现方式中,在步骤203中获取到目标组件对应的配置信息之后,基于目标组件对应的配置信息和第一展示页面,获取第二展示页面的过程包括:确定目标组件的组件类型,响应于目标组件的组件类型为需要审核的第一类型,对目标组件对应的配置信息进行审核;响应于目标组件对应的配置信息审核通过,基于目标组件对应的配置信息和第一展示页面,获取第二展示页面。In a possible implementation manner, after obtaining the configuration information corresponding to the target component in step 203, based on the configuration information corresponding to the target component and the first display page, the process of obtaining the second display page includes: determining the components of the target component Type, in response to the component type of the target component being the first type that needs to be reviewed, the configuration information corresponding to the target component is reviewed; in response to the configuration information corresponding to the target component being reviewed and approved, based on the configuration information corresponding to the target component and the first display page to get the second display page.

或者,响应于目标组件的组件类型为不需要审核的第二类型,直接基于目标组件对应的配置信息和第一展示页面,获取第二展示页面。Alternatively, in response to the component type of the target component being the second type that does not require review, the second display page is obtained directly based on the configuration information corresponding to the target component and the first display page.

目标组件的组件标识中包括用于指示目标组件的组件类型的编码,例如,目标组件的组件标识中包括编码1,则表示目标组件的组件类型为需要审核的第一类型。目标组件的组件标识中包括编码2,则表示目标组件的组件类型为无需审核的第二类型。当然,还可以用其它编码来表示组件的组件类型,本申请实施例对此不加以限定。The component identifier of the target component includes a code for indicating the component type of the target component. For example, if the component identifier of the target component includes code 1, it means that the component type of the target component is the first type to be reviewed. If the component identifier of the target component includes the code 2, it indicates that the component type of the target component is the second type that does not need to be reviewed. Certainly, other codes may also be used to represent the component type of the component, which is not limited in this embodiment of the present application.

在一种可能的实现方式中,确定目标组件的组件类型的过程包括:获取目标组件的组件标识中用于指示组件类型的编码,基于用于指示组件类型的编码,确定目标组件的组件类型。In a possible implementation manner, the process of determining the component type of the target component includes: obtaining a code used to indicate the component type in the component identifier of the target component, and determining the component type of the target component based on the code used to indicate the component type.

响应于目标组件的组件类型为需要审核的第一类型,对目标组件对应的配置信息进行审核的过程包括:获取目标组件对应的配置信息,确定目标组件对应的配置信息中是否存在违规信息。响应于目标组件对应的配置信息中不存在违规信息,确定目标组件对应的配置信息审核通过。响应于目标组件对应的配置信息中存在违规信息,确定目标组件对应的配置信息审核不通过。In response to the component type of the target component being the first type to be reviewed, the process of reviewing the configuration information corresponding to the target component includes: acquiring configuration information corresponding to the target component, and determining whether there is any violation information in the configuration information corresponding to the target component. In response to the fact that there is no violation information in the configuration information corresponding to the target component, it is determined that the configuration information corresponding to the target component has passed the review. In response to the existence of violation information in the configuration information corresponding to the target component, it is determined that the configuration information corresponding to the target component fails to pass the review.

其中,违规信息包括但不限于违规文字,违规图形等信息。Among them, the violation information includes but is not limited to violation text, violation graphics and other information.

可选地,响应于目标组件对应的配置信息为文字内容时,确定目标组件对应的配置信息中是否存在违规信息的过程包括:对目标组件对应的配置信息进行检测,若目标组件对应的配置信息中存在违规文字,确定目标组件对应的配置信息中存在违规信息。响应于目标组件对应的配置信息中不存在违规文字,确定目标组件对应的配置信息不存在违规信息。Optionally, in response to the configuration information corresponding to the target component being text content, the process of determining whether there is violation information in the configuration information corresponding to the target component includes: detecting the configuration information corresponding to the target component, if the configuration information corresponding to the target component is Violation text exists in the target component, and it is determined that there is violation information in the configuration information corresponding to the target component. In response to the fact that the configuration information corresponding to the target component does not contain any violating words, it is determined that the configuration information corresponding to the target component does not have any violating information.

目标组件为对象头像组件时,目标组件对应的配置信息为图像,且图像中包括文字内容时,确定目标组件对应的配置信息中是否存在违规信息的过程包括:对目标组件对应的图像进行转换,得到图像中包括的文字内容,确定图像中包括的文字内容是否存在违规文字。该过程与配置信息为文字内容时的检测过程一致,在此不再赘述。响应于图像中包括的文字内容不存在违规文字,则确定图像中包括的图像是否存在违规图形,如果图像中包括的图形不存在违规图形,确定组件的配置信息审核通过。如果图像中包括的图形存在违规图形,则目标组件对应的配置信息存在违规信息,因此,目标组件对应的配置信息审核不通过。When the target component is an object avatar component, and the configuration information corresponding to the target component is an image, and the image includes text content, the process of determining whether there is any violation information in the configuration information corresponding to the target component includes: converting the image corresponding to the target component, Obtain the text content included in the image, and determine whether the text content included in the image contains any illegal text. This process is consistent with the detection process when the configuration information is text content, and will not be repeated here. In response to the text content included in the image having no illegal text, it is determined whether the image included in the image has any illegal graphics, and if the graphics included in the image has no illegal graphics, it is determined that the configuration information of the component is approved. If the graphics included in the image have illegal graphics, the configuration information corresponding to the target component has illegal information, and therefore, the configuration information corresponding to the target component fails to pass the review.

确定图像中包括的图形是否存在违规图形的过程包括:终端设备中存储有多个违规图形,先提取出图像中包括的图形,进而确定图像中包括的图形与违规图形的相似度。响应于图像中包括的图形中存在至少一个图形与违规图形的相似度大于相似阈值,则确定图像中包括的图形存在违规图形。如果图像中包括的所有图形与违规图形的相似度均小于相似阈值,则确定图像中包括的图形不存在违规图形。其中,相似阈值可基于场景设置,或者基于经验设置,本申请实施例不对相似阈值进行限定。The process of determining whether the graphics included in the image has any illegal graphics includes: the terminal device stores multiple illegal graphics, first extracting the graphics included in the image, and then determining the similarity between the graphics included in the image and the illegal graphics. In response to at least one graphic included in the image having a similarity with the offending graphic greater than the similarity threshold, it is determined that the graphic included in the image has the offending graphic. If the similarity between all the graphics included in the image and the violating graphics is less than the similarity threshold, it is determined that the graphics included in the image do not have the illegal graphics. The similarity threshold may be set based on a scenario or based on experience, and the embodiment of the present application does not limit the similarity threshold.

可选地,基于目标组件对应的配置信息和第一展示页面,获取第二展示页面的过程包括:基于目标组件对应的配置信息,对第一展示页面对应的程序代码进行调整,得到调整之后的程序代码。运行调整之后的程序代码,得到第二展示页面。Optionally, based on the configuration information corresponding to the target component and the first display page, the process of obtaining the second display page includes: based on the configuration information corresponding to the target component, adjusting the program code corresponding to the first display page, and obtaining the adjusted program code. code. Run the adjusted program code to obtain the second display page.

其中,基于目标组件对应的配置信息,对第一展示页面对应的程序代码进行调整,得到调整之后的程序代码的过程包括:将第一展示页面对应的程序代码中目标组件对应的信息替换为目标组件对应的配置信息,得到调整之后的程序代码。通过第一功能模块运行调整之后的程序代码,得到第二展示页面。Wherein, based on the configuration information corresponding to the target component, the program code corresponding to the first display page is adjusted, and the process of obtaining the adjusted program code includes: replacing the information corresponding to the target component in the program code corresponding to the first display page with the target The configuration information corresponding to the component is obtained, and the adjusted program code is obtained. The second display page is obtained by running the adjusted program code through the first functional module.

在一种可能的实现方式中,目标组件对应的配置信息为与目标组件对应且与目标用户匹配的配置信息时,基于与目标组件对应且与目标用户匹配的配置信息,对第一展示页面的内容进行调整,得到第二展示页面,第二展示页面的内容与目标用户相适配。也即是,基于与目标组件对应且与目标用户匹配的配置信息,对第一展示页面对应的程序代码进行调整,得到调整之后的程序代码,运行调整之后的程序代码,得到第二展示页面。In a possible implementation manner, when the configuration information corresponding to the target component is configuration information corresponding to the target component and matching the target user, based on the configuration information corresponding to the target component and matching the target user, The content is adjusted to obtain a second display page, and the content of the second display page is adapted to the target user. That is, based on the configuration information corresponding to the target component and matched with the target user, the program code corresponding to the first display page is adjusted to obtain the adjusted program code, and the adjusted program code is run to obtain the second display page.

可选地,得到第二展示页面之后,还可以显示第二展示页面,第二展示页面中包括目标组件对应的配置信息。还可以将第二展示页面对应的程序代码同步到用户端应用程序,使得第二展示页面代替第一展示页面在用户端应用程序中进行展示。Optionally, after the second display page is obtained, the second display page may also be displayed, and the second display page includes configuration information corresponding to the target component. The program code corresponding to the second display page may also be synchronized to the client application, so that the second display page is displayed in the client application instead of the first display page.

如图5所示为本申请实施例提供的一种第二展示页面的显示示意图,在图5所示的第二展示页面中,对象名称组件501对应的配置信息为“XXX披萨(B店)”。FIG. 5 is a schematic display diagram of a second display page provided by an embodiment of the present application. In the second display page shown in FIG. 5 , the configuration information corresponding to the object name component 501 is “XXX Pizza (Shop B) ".

获取到调整之后的程序代码之后,还可以向服务器发送调整之后的程序代码,通过服务器存储调整之后的程序代码,使运行有用户端应用程序的设备在服务器获取调整之后的程序代码,运行调整之后的程序代码,进而显示调整之后的程序代码对应的第二展示页面。After the adjusted program code is obtained, the adjusted program code can also be sent to the server, and the adjusted program code can be stored by the server, so that the device running the client application can obtain the adjusted program code from the server, and run the adjusted program code. the program code, and then display the second display page corresponding to the adjusted program code.

其中,服务器存储调整之后的程序代码时,将目标对象的对象标识和调整之后的程序代码对应存储。服务器存储调整之后的程序代码之后,服务器接收到运行有用户端应用程序的设备的第四获取请求,第四获取请求中携带目标对象的对象标识和运行有用户端应用程序的设备中登录的第一用户的用户标识。服务器对第四获取请求进行解析,得到目标对象的对象标识和运行有用户端应用程序的设备中登录的第一用户的用户标识。基于目标对象的对象标识,获取目标对象调整之后的程序代码。响应于第一用户的用户标识指示第一用户的类型与目标用户的类型一致(例如,第一用户为会员用户),则服务器向运行有用户端应用程序的设备发送目标对象调整之后的程序代码,以使运行有用户端应用程序的设备运行调整之后的程序代码,得到第二展示页面,进而显示第二展示页面。Wherein, when the server stores the adjusted program code, the object identifier of the target object and the adjusted program code are stored correspondingly. After the server stores the adjusted program code, the server receives a fourth acquisition request from the device running the client application, and the fourth acquisition request carries the object identifier of the target object and the first request logged in the device running the client application. A user ID of a user. The server parses the fourth acquisition request, and obtains the object identifier of the target object and the user identifier of the first user logged in in the device running the client application. Based on the object identifier of the target object, the adjusted program code of the target object is obtained. In response to the user identification of the first user indicating that the type of the first user is consistent with the type of the target user (for example, the first user is a member user), the server sends the program code after the adjustment of the target object to the device running the client application , so that the device running the client application program runs the adjusted program code to obtain the second display page, and then displays the second display page.

上述方法将在用户端应用程序中的第一展示页面显示在商家端应用程序中,使得商家在第一展示页面中对页面信息进行配置,得到配置后的页面,商家可以直接看到配置之后的页面,无需切换到用户端应用程序查看配置之后的页面,使得页面信息的配置较为便捷,能够提高页面信息的配置效率。The above method displays the first display page in the user-side application program in the merchant-side application program, so that the merchant configures the page information in the first display page, and obtains the configured page, and the merchant can directly see the configured page. page, there is no need to switch to the client application to view the configured page, which makes the configuration of the page information more convenient and can improve the configuration efficiency of the page information.

如图6所示为本申请实施例提供的一种页面信息的配置方法的架构图,在图6中包括用户端工程(Project C)和商家端工程(Project B)。用户端工程中包括多个组件,商家端工程中包括多个组件。FIG. 6 shows an architecture diagram of a method for configuring page information provided by an embodiment of the present application, and FIG. 6 includes a client-side project (Project C) and a merchant-side project (Project B). The client-side project includes multiple components, and the merchant-side project includes multiple components.

用户端工程中的用户端店铺组件包括视图层、逻辑事件声明层和逻辑事件实现层。商家端工程的商家端店铺组件包括账户适配器和逻辑事件实现层。商家端店铺组件的账户适配器与用户端店铺组件的视图层和逻辑事件声明层联动。用户端店铺组件的逻辑事件实现层中存储有各个组件分别对应的参考程序代码,运行各个组件分别对应的参考程序代码,可以得到各个组件分别对应的显示页面。商家端店铺组件的逻辑事件实现层中存储有各个组件分别对应的目标程序代码,运行各个组件分别对应的目标程序代码,可以得到各个组件分别对应的配置页面。The client store components in the client project include the view layer, the logical event declaration layer and the logical event implementation layer. The merchant-side store component of the merchant-side project includes an account adapter and a logical event implementation layer. The account adapter of the merchant-side store component is linked with the view layer and logical event declaration layer of the client-side store component. The logic event implementation layer of the store component on the client side stores the reference program codes corresponding to each component, and running the reference program code corresponding to each component can obtain the display page corresponding to each component. The logic event implementation layer of the store component on the merchant side stores the target program code corresponding to each component, and runs the target program code corresponding to each component to obtain the configuration page corresponding to each component.

图7所示为本申请实施例提供的一种页面信息的配置装置的结构示意图,如图7所示,该装置包括:FIG. 7 shows a schematic structural diagram of a device for configuring page information provided by an embodiment of the present application. As shown in FIG. 7 , the device includes:

显示模块701,用于显示第一展示页面,第一展示页面显示有至少一个组件,一个组件对应一个配置页面,第一展示页面为在用户端应用程序中的展示页面;A display module 701, configured to display a first display page, the first display page displays at least one component, one component corresponds to a configuration page, and the first display page is a display page in a client application;

显示模块701,还用于响应于接收到针对至少一个组件中的目标组件的选中指令,显示目标组件对应的配置页面;The display module 701 is further configured to display a configuration page corresponding to the target component in response to receiving a selection instruction for the target component in the at least one component;

获取模块702,用于基于目标组件对应的配置页面,获取目标组件对应的配置信息;An obtaining module 702, configured to obtain configuration information corresponding to the target component based on the configuration page corresponding to the target component;

获取模块702,还用于基于目标组件对应的配置信息和第一展示页面,获取第二展示页面,第二展示页面中包括目标组件对应的配置信息,第二展示页面用于代替第一展示页面在用户端应用程序中进行展示。The obtaining module 702 is further configured to obtain a second display page based on the configuration information corresponding to the target component and the first display page, where the second display page includes configuration information corresponding to the target component, and the second display page is used to replace the first display page Display in the client application.

在一种可能的实现方式中,获取模块702,用于响应于接收到针对至少一个组件中的目标组件的选中指令,获取目标组件对应的目标程序代码;In a possible implementation manner, the obtaining module 702 is configured to obtain the target program code corresponding to the target component in response to receiving the selected instruction for the target component in the at least one component;

显示模块701,用于运行目标组件对应的目标程序代码,显示目标组件对应的配置页面。The display module 701 is used for running the target program code corresponding to the target component, and displaying the configuration page corresponding to the target component.

在一种可能的实现方式中,获取模块702,用于响应于接收到针对至少一个组件中的目标组件的选中指令,获取目标组件对应的参考程序代码,参考程序代码用于获取目标组件对应的显示页面;基于方法重写对目标组件对应的参考程序代码进行处理,得到目标组件对应的目标程序代码。In a possible implementation manner, the obtaining module 702 is configured to, in response to receiving a selection instruction for a target component in the at least one component, obtain a reference program code corresponding to the target component, and the reference program code is used to obtain a reference program code corresponding to the target component. Display the page; process the reference program code corresponding to the target component based on method rewriting to obtain the target program code corresponding to the target component.

在一种可能的实现方式中,装置还包括:In a possible implementation manner, the apparatus further includes:

生成模块,用于响应于接收到针对至少一个组件中的目标组件的选中指令,生成第一获取请求,第一获取请求中携带目标组件的组件标识,第一获取请求用于获取目标组件对应的参考程序代码;The generating module is configured to generate a first acquisition request in response to receiving a selection instruction for the target component in the at least one component, the first acquisition request carries the component identifier of the target component, and the first acquisition request is used to acquire the corresponding target component. reference program code;

发送模块,用于将第一获取请求发送至服务器;a sending module, configured to send the first acquisition request to the server;

接收模块,用于接收服务器基于第一获取请求返回的目标组件对应的参考程序代码。The receiving module is configured to receive the reference program code corresponding to the target component returned by the server based on the first obtaining request.

在一种可能的实现方式中,显示模块701,用于显示第三展示页面,第三展示页面为设置页面,第三展示页面中显示有页面配置控件;In a possible implementation manner, the display module 701 is configured to display a third display page, the third display page is a setting page, and a page configuration control is displayed on the third display page;

获取模块702,用于响应于接收到针对页面配置控件的选中指令,获取第一展示页面对应的程序代码;The obtaining module 702 is used for obtaining the program code corresponding to the first display page in response to receiving the selection instruction for the page configuration control;

显示模块701,用于运行第一展示页面对应的程序代码,显示第一展示页面。The display module 701 is configured to run the program code corresponding to the first display page to display the first display page.

在一种可能的实现方式中,生成模块,用于响应于接收到针对页面配置控件的选中指令,生成第二获取请求,第二获取请求中携带目标对象的对象标识,第二获取请求用于获取目标对象在用户端应用程序中展示的第一展示页面对应的程序代码;In a possible implementation manner, the generating module is configured to generate a second acquisition request in response to receiving the selection instruction for the page configuration control, where the second acquisition request carries the object identifier of the target object, and the second acquisition request is used for Obtain the program code corresponding to the first display page displayed by the target object in the client application;

发送模块,用于将第二获取请求发送至服务器;a sending module, configured to send the second acquisition request to the server;

接收模块,用于接收服务器基于第二获取请求返回的第一展示页面对应的程序代码。The receiving module is configured to receive the program code corresponding to the first display page returned by the server based on the second obtaining request.

在一种可能的实现方式中,装置还包括:In a possible implementation manner, the apparatus further includes:

确定模块,用于确定目标组件的组件类型;Determine the module, which is used to determine the component type of the target component;

审核模块,用于响应于目标组件的组件类型为需要审核的第一类型,对目标组件对应的配置信息进行审核;an auditing module, configured to audit the configuration information corresponding to the target component in response to the component type of the target component being the first type to be audited;

获取模块702,用于响应于目标组件对应的配置信息审核通过,基于目标组件对应的配置信息和第一展示页面,获取第二展示页面。The obtaining module 702 is configured to obtain the second display page based on the configuration information corresponding to the target component and the first display page in response to the approval of the configuration information corresponding to the target component.

在一种可能的实现方式中,获取模块702,用于基于目标组件对应的配置信息,对第一展示页面对应的程序代码进行调整,得到调整之后的程序代码;In a possible implementation manner, the obtaining module 702 is configured to adjust the program code corresponding to the first display page based on the configuration information corresponding to the target component to obtain the adjusted program code;

运行调整之后的程序代码,得到第二展示页面。Run the adjusted program code to obtain the second display page.

在一种可能的实现方式中,显示模块701,还用于显示第二展示页面。In a possible implementation manner, the display module 701 is further configured to display the second display page.

在一种可能的实现方式中,发送模块,还用于向服务器发送调整之后的程序代码,通过服务器存储调整之后的程序代码,使运行有用户端应用程序的设备在服务器获取调整之后的程序代码,运行调整之后的程序代码,显示调整之后的程序代码对应的第二展示页面。In a possible implementation manner, the sending module is further configured to send the adjusted program code to the server, and the adjusted program code is stored by the server, so that the device running the client application program obtains the adjusted program code from the server , run the adjusted program code, and display the second display page corresponding to the adjusted program code.

在一种可能的实现方式中,用户端应用程序为目标用户所使用的用户端应用程序,获取模块702,用于获取与目标组件对应且与目标用户匹配的配置信息;基于与目标组件对应且与目标用户匹配的配置信息对第一展示页面的内容进行调整,得到第二展示页面,第二展示页面的内容与目标用户相适配。In a possible implementation manner, the client application is the client application used by the target user, and the acquiring module 702 is configured to acquire configuration information corresponding to the target component and matching the target user; The configuration information matched with the target user adjusts the content of the first display page to obtain a second display page, and the content of the second display page is adapted to the target user.

上述装置将在用户端应用程序中的第一展示页面显示在商家端应用程序中,使得商家在第一展示页面中对页面信息进行配置,得到配置后的页面,商家可以直接看到配置之后的页面,无需切换到用户端应用程序查看配置之后的页面,使得页面信息的配置较为便捷,能够提高页面信息的配置效率。The above device displays the first display page in the user-side application program in the merchant-side application program, so that the merchant configures the page information in the first display page, and obtains the configured page, and the merchant can directly see the configured page. page, there is no need to switch to the client application to view the configured page, which makes the configuration of the page information more convenient and can improve the configuration efficiency of the page information.

应理解的是,上述图7提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be understood that when the above-mentioned device provided in FIG. 7 realizes its functions, it is only illustrated by the division of the above-mentioned functional modules. The internal structure is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.

图8示出了本申请一个示例性实施例提供的终端设备800的结构框图。该终端设备800可以是便携式移动终端,比如:智能手机、平板电脑、MP3播放器(Moving PictureExperts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(MovingPicture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端设备800还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。FIG. 8 shows a structural block diagram of a terminal device 800 provided by an exemplary embodiment of the present application. The terminal device 800 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving PictureExperts Group Audio Layer III, moving picture experts compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, moving picture Expert Compression Standard Audio Layer 4) Player, Laptop or Desktop. The terminal device 800 may also be called user equipment, portable terminal, laptop terminal, desktop terminal, etc. by other names.

通常,终端设备800包括有:处理器801和存储器802。Generally, the terminal device 800 includes: a processor 801 and a memory 802 .

处理器801可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器801可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器801也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器801可以集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器801还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 801 may use at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) accomplish. The processor 801 may also include a main processor and a coprocessor. The main processor is a processor used to process data in a wake-up state, also called a CPU (Central Processing Unit, central processing unit); A low-power processor for processing data in a standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 801 may further include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is used to process computing operations related to machine learning.

存储器802可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器802还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器802中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器801所执行以实现本申请中方法实施例提供的页面信息的配置方法。Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, a non-transitory computer-readable storage medium in the memory 802 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 801 to implement the page information provided by the method embodiments in this application. configuration method.

在一些实施例中,终端设备800还可选包括有:外围设备接口803和至少一个外围设备。处理器801、存储器802和外围设备接口803之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口803相连。具体地,外围设备包括:射频电路804、显示屏805、摄像头组件806、音频电路807、定位组件808和电源809中的至少一种。In some embodiments, the terminal device 800 may optionally further include: a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802 and the peripheral device interface 803 may be connected by a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 803 through a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804 , a display screen 805 , a camera assembly 806 , an audio circuit 807 , a positioning assembly 808 and a power source 809 .

外围设备接口803可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器801和存储器802。在一些实施例中,处理器801、存储器802和外围设备接口803被集成在同一芯片或电路板上;在一些其他实施例中,处理器801、存储器802和外围设备接口803中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 803 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 801 and the memory 802 . In some embodiments, processor 801, memory 802, and peripherals interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one of processor 801, memory 802, and peripherals interface 803 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.

射频电路804用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路804通过电磁信号与通信网络以及其他通信设备进行通信。射频电路804将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路804包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路804可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路804还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. The radio frequency circuit 804 communicates with the communication network and other communication devices via electromagnetic signals. The radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 804 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 804 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: World Wide Web, Metropolitan Area Network, Intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), wireless local area network and/or WiFi (Wireless Fidelity, Wireless Fidelity) network. In some embodiments, the radio frequency circuit 804 may further include a circuit related to NFC (Near Field Communication, short-range wireless communication), which is not limited in this application.

显示屏805用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏805是触摸显示屏时,显示屏805还具有采集在显示屏805的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器801进行处理。此时,显示屏805还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏805可以为一个,设置在终端设备800的前面板;在另一些实施例中,显示屏805可以为至少两个,分别设置在终端设备800的不同表面或呈折叠设计;在另一些实施例中,显示屏805可以是柔性显示屏,设置在终端设备800的弯曲表面上或折叠面上。甚至,显示屏805还可以设置成非矩形的不规则图形,也即异形屏。显示屏805可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 805 is used to display a UI (User Interface). The UI can include graphics, text, icons, video, and any combination thereof. When the display screen 805 is a touch display screen, the display screen 805 also has the ability to acquire touch signals on or above the surface of the display screen 805 . The touch signal can be input to the processor 801 as a control signal for processing. At this time, the display screen 805 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, there may be one display screen 805, which is arranged on the front panel of the terminal device 800; in other embodiments, there may be at least two display screens 805, which are respectively arranged on different surfaces of the terminal device 800 or are folded. Design; In other embodiments, the display screen 805 may be a flexible display screen, which is disposed on a curved surface or a folding surface of the terminal device 800 . Even, the display screen 805 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 805 can be made of materials such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode).

摄像头组件806用于采集图像或视频。可选地,摄像头组件806包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件806还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 806 is used to capture images or video. Optionally, the camera assembly 806 includes a front camera and a rear camera. Usually, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function, the main camera It is integrated with the wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other integrated shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.

音频电路807可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器801进行处理,或者输入至射频电路804以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端设备800的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器801或射频电路804的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路807还可以包括耳机插孔。Audio circuitry 807 may include a microphone and speakers. The microphone is used to collect the sound waves of the user and the environment, convert the sound waves into electrical signals, and input them to the processor 801 for processing, or to the radio frequency circuit 804 to realize voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively disposed in different parts of the terminal device 800 . The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional thin-film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for distance measurement and other purposes. In some embodiments, audio circuitry 807 may also include a headphone jack.

定位组件808用于定位终端设备800的当前地理位置,以实现导航或LBS(LocationBased Service,基于位置的服务)。定位组件808可以是基于美国的GPS(GlobalPositioning System,全球定位系统)、中国的北斗系统或俄罗斯的伽利略系统的定位组件。The positioning component 808 is used to locate the current geographic location of the terminal device 800 to implement navigation or LBS (Location Based Service, location-based service). The positioning component 808 may be a positioning component based on the GPS (Global Positioning System, global positioning system) of the United States, the Beidou system of China, or the Galileo system of Russia.

电源809用于为终端设备800中的各个组件进行供电。电源809可以是交流电、直流电、一次性电池或可充电电池。当电源809包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。The power supply 809 is used to power various components in the terminal device 800 . The power source 809 may be alternating current, direct current, disposable batteries or rechargeable batteries. When the power source 809 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. Wired rechargeable batteries are batteries that are charged through wired lines, and wireless rechargeable batteries are batteries that are charged through wireless coils. The rechargeable battery can also be used to support fast charging technology.

在一些实施例中,终端设备800还包括有一个或多个传感器810。该一个或多个传感器810包括但不限于:加速度传感器811、陀螺仪传感器812、压力传感器813、指纹传感器814、光学传感器815以及接近传感器816。In some embodiments, the terminal device 800 further includes one or more sensors 810 . The one or more sensors 810 include, but are not limited to, an acceleration sensor 811 , a gyro sensor 812 , a pressure sensor 813 , a fingerprint sensor 814 , an optical sensor 815 , and a proximity sensor 816 .

加速度传感器811可以检测以终端设备800建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器811可以用于检测重力加速度在三个坐标轴上的分量。处理器801可以根据加速度传感器811采集的重力加速度信号,控制显示屏805以横向视图或纵向视图进行用户界面的显示。加速度传感器811还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 811 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal device 800 . For example, the acceleration sensor 811 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 801 can control the display screen 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811 . The acceleration sensor 811 can also be used for game or user movement data collection.

陀螺仪传感器812可以检测终端设备800的机体方向及转动角度,陀螺仪传感器812可以与加速度传感器811协同采集用户对终端设备800的3D动作。处理器801根据陀螺仪传感器812采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyroscope sensor 812 can detect the body direction and rotation angle of the terminal device 800 , and the gyroscope sensor 812 can cooperate with the acceleration sensor 811 to collect 3D actions of the user on the terminal device 800 . The processor 801 can implement the following functions according to the data collected by the gyroscope sensor 812 : motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

压力传感器813可以设置在终端设备800的侧边框和/或显示屏805的下层。当压力传感器813设置在终端设备800的侧边框时,可以检测用户对终端设备800的握持信号,由处理器801根据压力传感器813采集的握持信号进行左右手识别或快捷操作。当压力传感器813设置在显示屏805的下层时,由处理器801根据用户对显示屏805的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 813 may be disposed on the side frame of the terminal device 800 and/or the lower layer of the display screen 805 . When the pressure sensor 813 is disposed on the side frame of the terminal device 800 , the user's holding signal of the terminal device 800 can be detected, and the processor 801 can perform left and right hand identification or shortcut operations according to the holding signal collected by the pressure sensor 813 . When the pressure sensor 813 is disposed on the lower layer of the display screen 805 , the processor 801 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 805 . The operability controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

指纹传感器814用于采集用户的指纹,由处理器801根据指纹传感器814采集到的指纹识别用户的身份,或者,由指纹传感器814根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器801授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器814可以被设置在终端设备800的正面、背面或侧面。当终端设备800上设置有物理按键或厂商Logo时,指纹传感器814可以与物理按键或厂商Logo集成在一起。The fingerprint sensor 814 is used to collect the user's fingerprint, and the processor 801 identifies the user's identity according to the fingerprint collected by the fingerprint sensor 814 , or the fingerprint sensor 814 identifies the user's identity according to the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 801 authorizes the user to perform related sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 814 may be provided on the front, back or side of the terminal device 800 . When the terminal device 800 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 814 can be integrated with the physical button or the manufacturer's logo.

光学传感器815用于采集环境光强度。在一个实施例中,处理器801可以根据光学传感器815采集的环境光强度,控制显示屏805的显示亮度。具体地,当环境光强度较高时,调高显示屏805的显示亮度;当环境光强度较低时,调低显示屏805的显示亮度。在另一个实施例中,处理器801还可以根据光学传感器815采集的环境光强度,动态调整摄像头组件806的拍摄参数。Optical sensor 815 is used to collect ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the display screen 805 according to the ambient light intensity collected by the optical sensor 815 . Specifically, when the ambient light intensity is high, the display brightness of the display screen 805 is increased; when the ambient light intensity is low, the display brightness of the display screen 805 is decreased. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 according to the ambient light intensity collected by the optical sensor 815 .

接近传感器816,也称距离传感器,通常设置在终端设备800的前面板。接近传感器816用于采集用户与终端设备800的正面之间的距离。在一个实施例中,当接近传感器816检测到用户与终端设备800的正面之间的距离逐渐变小时,由处理器801控制显示屏805从亮屏状态切换为息屏状态;当接近传感器816检测到用户与终端设备800的正面之间的距离逐渐变大时,由处理器801控制显示屏805从息屏状态切换为亮屏状态。The proximity sensor 816 , also called a distance sensor, is usually disposed on the front panel of the terminal device 800 . The proximity sensor 816 is used to collect the distance between the user and the front face of the terminal device 800 . In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front of the terminal device 800 is gradually decreasing, the processor 801 controls the display screen 805 to switch from the bright screen state to the off screen state; when the proximity sensor 816 detects When the distance between the user and the front of the terminal device 800 gradually increases, the processor 801 controls the display screen 805 to switch from the closed screen state to the bright screen state.

本领域技术人员可以理解,图8中示出的结构并不构成对终端设备800的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 8 does not constitute a limitation on the terminal device 800, and may include more or less components than the one shown, or combine some components, or adopt different component arrangements.

图9为本申请实施例提供的服务器的结构示意图,该服务器900可因配置或性能不同而产生比较大的差异,可以包括一个或多个处理器(Central Processing Units,CPU)901和一个或多个的存储器902,其中,该一个或多个存储器902中存储有至少一条程序代码,该至少一条程序代码由该一个或多个处理器901加载并执行以实现上述各个方法实施例提供的页面信息的配置方法。当然,该服务器900还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该服务器900还可以包括其他用于实现设备功能的部件,在此不做赘述。FIG. 9 is a schematic structural diagram of a server provided by an embodiment of the present application. The server 900 may vary greatly due to different configurations or performance, and may include one or more processors (Central Processing Units, CPU) 901 and one or more Each memory 902, wherein, the one or more memories 902 store at least one piece of program code, and the at least one piece of program code is loaded and executed by the one or more processors 901 to implement the page information provided by the above method embodiments configuration method. Of course, the server 900 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output, and the server 900 may also include other components for implementing device functions, which will not be repeated here.

在示例性实施例中,还提供了一种计算机可读存储介质,该存储介质中存储有至少一条程序代码,该至少一条程序代码由处理器加载并执行,以使计算机实现上述任一种页面信息的配置方法。In an exemplary embodiment, a computer-readable storage medium is also provided, and at least one piece of program code is stored in the storage medium, and the at least one piece of program code is loaded and executed by the processor, so that the computer can implement any of the above-mentioned pages. How to configure the information.

可选地,上述计算机可读存储介质可以是只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、只读光盘(Compact Disc Read-OnlyMemory,CD-ROM)、磁带、软盘和光数据存储设备等。Optionally, the above-mentioned computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a compact disc (Compact Disc Read-Only Memory, CD-ROM) , tapes, floppy disks and optical data storage devices.

在示例性实施例中,还提供了一种计算机程序或计算机程序产品,该计算机程序或计算机程序产品中存储有至少一条计算机指令,该至少一条计算机指令由处理器加载并执行,以使计算机实现上述任一种页面信息的配置方法。In an exemplary embodiment, there is also provided a computer program or computer program product having stored therein at least one computer instruction that is loaded and executed by a processor to cause a computer to implement The configuration method of any of the above page information.

应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。It should be understood that references herein to "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.

上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.

以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only exemplary embodiments of the present application, and are not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application. Inside.

Claims (14)

1. A method for configuring page information is characterized in that the method comprises the following steps:
displaying a first display page, wherein the first display page displays at least one component, one component corresponds to one configuration page, and the first display page is a display page in a user-side application program;
in response to receiving a selected instruction for a target component in the at least one component, displaying a configuration page corresponding to the target component;
acquiring configuration information corresponding to the target component based on the configuration page corresponding to the target component;
and acquiring a second display page based on the configuration information corresponding to the target component and the first display page, wherein the second display page comprises the configuration information corresponding to the target component, and the second display page is used for replacing the first display page to display in the user side application program.
2. The method of claim 1, wherein in response to receiving a selected instruction for a target component of the at least one component, displaying a configuration page corresponding to the target component comprises:
in response to receiving a selected instruction for a target component in the at least one component, acquiring target program code corresponding to the target component;
and operating the target program code corresponding to the target assembly and displaying the configuration page corresponding to the target assembly.
3. The method of claim 2, wherein, in response to receiving a selected instruction for a target component of the at least one component, retrieving target program code corresponding to the target component comprises:
in response to receiving a selected instruction aiming at a target component in the at least one component, acquiring a reference program code corresponding to the target component, wherein the reference program code is used for acquiring a display page corresponding to the target component;
and processing the reference program code corresponding to the target component based on the method rewriting to obtain the target program code corresponding to the target component.
4. The method of claim 3, wherein the obtaining a reference program code corresponding to a target component of the at least one component in response to receiving a selected instruction for the target component comprises:
responding to a received selected instruction for a target component in the at least one component, and generating a first obtaining request, wherein the first obtaining request carries a component identifier of the target component, and the first obtaining request is used for obtaining a reference program code corresponding to the target component;
sending the first acquisition request to a server;
and receiving the reference program code corresponding to the target component returned by the server based on the first acquisition request.
5. The method of claim 1, wherein displaying the first presentation page comprises:
displaying a third display page, wherein the third display page is a setting page and a page configuration control is displayed in the third display page;
responding to a received selected instruction aiming at the page configuration control, and acquiring a program code corresponding to the first display page;
and running a program code corresponding to the first display page, and displaying the first display page.
6. The method of claim 5, wherein the obtaining program code corresponding to the first presentation page in response to receiving the selected instruction for the page configuration control comprises:
responding to a received selected instruction for the page configuration control, and generating a second acquisition request, wherein the second acquisition request carries an object identifier of a target object, and the second acquisition request is used for acquiring a program code corresponding to a first display page displayed by the target object in the user side application program;
sending the second acquisition request to a server;
and receiving a program code corresponding to the first display page returned by the server based on the second acquisition request.
7. The method according to any one of claims 1 to 6, wherein the obtaining a second presentation page based on the configuration information corresponding to the target component and the first presentation page comprises:
determining a component type of the target component;
in response to that the component type of the target component is a first type needing to be audited, auditing configuration information corresponding to the target component;
and responding to the verification of the configuration information corresponding to the target component, and acquiring a second display page based on the configuration information corresponding to the target component and the first display page.
8. The method according to any one of claims 1 to 6, wherein the obtaining a second presentation page based on the configuration information corresponding to the target component and the first presentation page comprises:
adjusting the program code corresponding to the first display page based on the configuration information corresponding to the target component to obtain an adjusted program code;
and running the adjusted program code to obtain a second display page.
9. The method of claim 8, wherein after the adjusting the program code corresponding to the first presentation page based on the configuration information corresponding to the target component and obtaining the adjusted program code, the method further comprises:
and sending the adjusted program code to a server, storing the adjusted program code by the server, so that the equipment running the user side application program obtains the adjusted program code from the server, runs the adjusted program code, and displays a second display page corresponding to the adjusted program code.
10. The method according to any one of claims 1 to 6, wherein the client application is a client application used by a target user, and the obtaining the configuration information corresponding to the target component comprises:
acquiring configuration information corresponding to the target component and matched with the target user;
the obtaining a second display page based on the configuration information corresponding to the target component and the first display page includes:
and adjusting the content of the first display page based on the configuration information which corresponds to the target component and is matched with the target user to obtain a second display page, wherein the content of the second display page is matched with the target user.
11. An apparatus for configuring page information, the apparatus comprising:
the display module is used for displaying a first display page, the first display page is provided with at least one component, one component corresponds to one configuration page, and the first display page is a display page in a user-side application program;
the display module is further used for responding to a selected instruction received for a target component in the at least one component and displaying a configuration page corresponding to the target component;
the acquisition module is used for acquiring the configuration information corresponding to the target component based on the configuration page corresponding to the target component;
the obtaining module is further configured to obtain a second display page based on the configuration information corresponding to the target component and the first display page, where the second display page includes the configuration information corresponding to the target component, and the second display page is used to replace the first display page to be displayed in the user-side application program.
12. A terminal device, characterized in that the terminal device comprises a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor, so that the terminal device realizes the configuration method of page information according to any one of claims 1 to 10.
13. A computer-readable storage medium, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to cause a computer to implement the method for configuring page information according to any one of claims 1 to 10.
14. A computer program product, characterized in that at least one computer instruction is stored in the computer program product, and the at least one computer instruction is loaded and executed by a processor, so as to make a computer realize the configuration method of page information according to any one of claims 1 to 10.
CN202111643144.5A 2021-12-29 2021-12-29 Page information configuration method, device, equipment and computer readable storage medium Pending CN114296824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111643144.5A CN114296824A (en) 2021-12-29 2021-12-29 Page information configuration method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111643144.5A CN114296824A (en) 2021-12-29 2021-12-29 Page information configuration method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114296824A true CN114296824A (en) 2022-04-08

Family

ID=80970763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111643144.5A Pending CN114296824A (en) 2021-12-29 2021-12-29 Page information configuration method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114296824A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114675877A (en) * 2022-04-12 2022-06-28 北京达佳互联信息技术有限公司 Page component obtaining method and device, electronic equipment and storage medium
CN114756277A (en) * 2022-05-09 2022-07-15 中国银行股份有限公司 A kind of page configuration method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338690A (en) * 2020-03-25 2020-06-26 北京顺达同行科技有限公司 Method and device for configuring pages of small program shop, computer equipment and storage medium
US20200278949A1 (en) * 2018-02-05 2020-09-03 Tencent Technnology (Shenzhen) Company Limited Method and apparatus for viewing previously used file, and terminal
CN113609358A (en) * 2021-07-26 2021-11-05 北京达佳互联信息技术有限公司 Content sharing method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200278949A1 (en) * 2018-02-05 2020-09-03 Tencent Technnology (Shenzhen) Company Limited Method and apparatus for viewing previously used file, and terminal
CN111338690A (en) * 2020-03-25 2020-06-26 北京顺达同行科技有限公司 Method and device for configuring pages of small program shop, computer equipment and storage medium
CN113609358A (en) * 2021-07-26 2021-11-05 北京达佳互联信息技术有限公司 Content sharing method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114675877A (en) * 2022-04-12 2022-06-28 北京达佳互联信息技术有限公司 Page component obtaining method and device, electronic equipment and storage medium
CN114756277A (en) * 2022-05-09 2022-07-15 中国银行股份有限公司 A kind of page configuration method and device

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
WO2022121358A1 (en) Information display method and apparatus
CN110532170B (en) Method, device, electronic equipment and medium for building test environment
CN110841285B (en) Interface element display method and device, computer equipment and storage medium
WO2022227623A1 (en) Method for displaying publish progress, and electronic device
CN109766098B (en) Application program running method and device and storage medium
CN110189137A (en) Method, device, equipment and storage medium for facial recognition payment
CN108717365A (en) The method and apparatus for executing function in the application
CN110147380A (en) Data-updating method, device, server and storage medium
CN110750734A (en) Weather display method and device, computer equipment and computer-readable storage medium
WO2022134632A1 (en) Work processing method and apparatus
CN110049525A (en) Method for connecting network, device, electronic equipment and medium
CN113918252A (en) Interface display method, device, computer equipment and storage medium
CN114296824A (en) Page information configuration method, device, equipment and computer readable storage medium
CN111831385A (en) Business credit information processing method, device, equipment and storage medium
CN111582993A (en) Method, device, electronic device and storage medium for acquiring target object
CN109995804B (en) Target resource information display method, information providing method and device
CN113485596B (en) Virtual model processing method and device, electronic equipment and storage medium
CN114329292A (en) Resource information configuration method and device, electronic equipment and storage medium
CN111192072A (en) User grouping method and device and storage medium
CN113344617A (en) Resource verification method, device, terminal and storage medium
CN111523876A (en) Payment method display method, device, system and storage medium
CN113051485A (en) Group searching method, device, terminal and storage medium
CN114296620A (en) Information interaction method, device, electronic device and storage medium
CN112000899A (en) Display method, device, electronic device and storage medium for scenic spot information

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20220408

WD01 Invention patent application deemed withdrawn after publication