CN116700869A - Page processing method and device of internet traffic (IoT) device - Google Patents

Page processing method and device of internet traffic (IoT) device Download PDF

Info

Publication number
CN116700869A
CN116700869A CN202310652573.1A CN202310652573A CN116700869A CN 116700869 A CN116700869 A CN 116700869A CN 202310652573 A CN202310652573 A CN 202310652573A CN 116700869 A CN116700869 A CN 116700869A
Authority
CN
China
Prior art keywords
page
display
iot device
parameter
global
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
CN202310652573.1A
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202310652573.1A priority Critical patent/CN116700869A/en
Publication of CN116700869A publication Critical patent/CN116700869A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/308Payment architectures, schemes or protocols characterised by the use of specific devices or networks using the Internet of Things
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Image Generation (AREA)

Abstract

The embodiment of the specification provides a page processing method and device of an IoT device, wherein the page processing method of the IoT device comprises the following steps: in the process of carrying out page display on the IoT device, initializing a page object according to the page parameter, determining a display mode for carrying out page display on the IoT device based on the object parameter obtained by initialization, calculating an area display parameter of a screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device when the determined display mode is a combined display mode, carrying out page rendering by taking the page layout information and the area display parameter as a rendering interface for entering and calling on the basis of reading page layout information of the global page object, and outputting a page unit obtained by rendering to the screen area of the IoT device for display.

Description

Page processing method and device of internet traffic (IoT) device
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing a page of an IoT device.
Background
With the continuous development of internet and information technology, users can pay through various modes in the process of enjoying service or after enjoying service, meanwhile, more and more devices for payment are produced by the payment modes of the users, such as offline payment by using IoT devices, for the provider of the IoT devices, in the process of providing the offline payment modes for the users, how to improve the payment experience of the users, and further improve the payment efficiency of offline stores, which becomes the focus of attention of the IoT devices.
Disclosure of Invention
One or more embodiments of the present specification provide a page processing method of an IoT device, including: initializing the page object according to the page parameters of the page display at the IoT device. A display mode for page display at the IoT device is determined based on the object parameters obtained by the initializing. If the determined display mode is a combined display mode, calculating the area display parameter of the screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device. And reading page layout information of the global page object, carrying out page rendering by taking the page layout information and the region display parameters as an input rendering interface, and outputting a page unit obtained by rendering to the screen region for display.
One or more embodiments of the present specification provide a page processing apparatus of an IoT device, comprising: an object initialization module configured to initialize a page object according to page parameters for page display at an IoT device. A display mode determination module configured to determine a display mode for page display at the IoT device based on the initialized object parameters. And the display parameter calculation module is configured to calculate the area display parameters of the screen area corresponding to the page object according to the display parameters carried by the object parameters and the global display parameters of the global page object of the IoT device when the determined display mode is the combined display mode. The page rendering module is configured to read page layout information of the global page object, perform page rendering by taking the page layout information and the area display parameters as an input call rendering interface, and output a page unit obtained by rendering to the screen area for display.
One or more embodiments of the present specification provide a page processing device of an IoT device, comprising: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: initializing the page object according to the page parameters of the page display at the IoT device. A display mode for page display at the IoT device is determined based on the object parameters obtained by the initializing. If the determined display mode is a combined display mode, calculating the area display parameter of the screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device. And reading page layout information of the global page object, carrying out page rendering by taking the page layout information and the region display parameters as an input rendering interface, and outputting a page unit obtained by rendering to the screen region for display.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed by a processor, implement the following: initializing the page object according to the page parameters of the page display at the IoT device. A display mode for page display at the IoT device is determined based on the object parameters obtained by the initializing. If the determined display mode is a combined display mode, calculating the area display parameter of the screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device. And reading page layout information of the global page object, carrying out page rendering by taking the page layout information and the region display parameters as an input rendering interface, and outputting a page unit obtained by rendering to the screen region for display.
Drawings
For a clearer description of one or more embodiments of the present description or of the solutions of the prior art, the drawings that are needed in the description of the embodiments or of the prior art will be briefly described below, it being obvious that the drawings in the description that follow are only some of the embodiments described in the present description, from which other drawings can be obtained, without inventive faculty, for a person skilled in the art;
fig. 1 is a schematic diagram of an implementation environment of a page processing method of an IoT device provided in one or more embodiments of the present disclosure;
fig. 2 is a process flow diagram of a page processing method of an IoT device provided in one or more embodiments of the present disclosure;
fig. 3 is a schematic diagram of a dual-screen IoT device screen for a guest display provided in one or more embodiments of the present description;
fig. 4 is a schematic diagram of a full screen face brushing page of a dual-screen IoT device provided in one or more embodiments of the present description;
fig. 5 is a schematic diagram of a face page of a dual-screen IoT device provided in one or more embodiments of the present description;
fig. 6 is a schematic diagram of a face page of another dual-screen IoT device provided in one or more embodiments of the present description;
Fig. 7 is a schematic diagram of an embodiment of a page processing apparatus of an IoT device provided in one or more embodiments of the present description;
fig. 8 is a schematic structural diagram of a page processing device of an IoT device provided in one or more embodiments of the present disclosure.
Detailed Description
In order to enable a person skilled in the art to better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the drawings in one or more embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one or more embodiments of the present disclosure without inventive effort, are intended to be within the scope of the present disclosure.
The page processing method of the IoT device provided in one or more embodiments of the present disclosure may be applicable to an implementation environment of a payment device, where the implementation environment includes at least an IoT device 101 for performing payment processing, and further may include a payment server 102 that cooperates with the IoT device 101 to perform payment processing;
The IoT device 101 may be a dual-screen device configured with two display screens, or may be a payment device configured with one or more display screens; the payment server 102 may be one or more servers, a server cluster formed by a plurality of servers, or a cloud server of a cloud computing platform, configured to perform payment processing in cooperation with the IoT device 101;
in the implementation environment, in the process of performing page display, the IoT device 101 performs page rendering by the payment server 102, specifically, in the process of performing page rendering of page objects, the initialization of the page objects is performed according to the page parameters to obtain the object parameters, and the display mode of performing page display on the IoT device 101 is determined based on the object parameters, if the display mode is the combined display mode, the global display parameters and the page layout information of the full-screen display page of the IoT device 101 are multiplexed, and the page objects are rendered and displayed, so that multiplexing of page data is realized in the process of performing page display on the IoT device 101, and flexibility and display efficiency of performing page display on the IoT device 101 are improved.
One or more embodiments of a page processing method for an IoT device provided in the present specification are as follows:
Referring to fig. 2, the page processing method of the IoT device provided in the present embodiment specifically includes steps S202 to S208.
Step S202, initializing the page object according to the page parameters for page display at the IoT device.
The page parameters in this embodiment refer to corresponding parameters for performing page display on an IoT device, such as a demand parameter submitted by a merchant for performing corresponding page display on the IoT device, where the demand parameter includes: page size, screen display location, screen information (on which screen to display), and/or page hover display attribute (whether to hover display) displayed at the IoT device.
The page display of the IoT device is modularized, and by means of modularizing the content displayed on the screen of the IoT device into page units, a corresponding page object is created for each page unit, and the page object can be in a class form or in other object forms, such as creating a corresponding Presentation object for each page unit to be displayed; and initializing the page object by using the acquired page parameters in the rendering display process of the page unit to acquire the object parameters of the page object. In the process of rendering and displaying the page unit, the page data of other screen display pages of the IoT device can be multiplexed, so that the flexibility of page display of the IoT device is improved, and meanwhile, the processing efficiency of page rendering and displaying of the IoT device is improved.
It should be noted that, the IoT device in this embodiment includes an IoT device configured with two display screens, such as a dual-screen IoT device configured with a display screen displayed for a customer and a display screen displayed for a merchant for making payment. In addition, the IoT device may be a multi-screen IoT device configured with more than two display screens, or may be a single-screen IoT device configured with one display screen. On the basis that the IoT device is configured with a plurality of display screens, the mutual multiplexing of page data of different display screens for displaying pages can be realized in the process of rendering and displaying the pages by the IoT device.
In the implementation, after the page parameters of the page display of the IoT device are obtained, initializing the page object from the page parameters, and configuring the object parameters of the page object through the initialization. In particular, in the process of initializing the page object, in order to improve the efficiency of initializing the page object, in an optional implementation manner provided in this embodiment, initializing the page object according to the page parameter for performing page display in the IoT device includes:
reading global display parameters of the global page object;
And initializing and configuring the page object to the global display parameter to obtain the object parameter.
In this embodiment, the page object currently displayed on the IoT device may be a page object displayed on any display screen of the IoT device, where any display screen of the IoT device is referred to as a first display screen, and the page object should be within the display range of the first display screen in the display area of the screen of the IoT device.
The global page object may be a page object that performs page display on a display screen other than the first display screen (the second display screen) of the IoT device, or the global page object may also be a page object that performs page display on the first display screen of the IoT device, for example, a page displayed on the first display screen of the IoT device may be switched, the page of the global page object is displayed in a certain period of time, and the page of the page object is switched to be displayed in another period of time.
Optionally, the global page object includes a global page object adapted to a display direction of the page object, and/or a historical page object having a display mapping relationship with the page object; the display mapping relation is provided with a display mapping relation with the page object, wherein the display mapping relation comprises an object inheritance relation with the page object at a code implementation level, or a preset multiplexing relation with the page object (such as a preset appointed relation of inheritance of a specific full-screen display object, which is preset by a merchant).
It should be noted that, the global page object may also be replaced with a local page object corresponding to a page unit for performing page display in a screen area of the IoT device, where the local page object includes: and carrying out page display on the second display screen or carrying out page display on the first display screen.
In a specific execution process, in a process of displaying a page unit in a screen area of a display screen of an IoT device, considering continuity of page contents displayed by a merchant on the display screen of the IoT device, in a process of displaying a page of a page object by the IoT device, the page contents of the displayed page object may intersect or be associated with the page contents displayed before the IoT device, and in this embodiment, the continuity of the contents of the displayed page by the IoT device is ensured by providing a manner of multiplexing a global page object, and meanwhile, continuity of services provided by the IoT device by the merchant is also ensured. Optionally, the global page object includes: a page object of a full screen page that is displayed on a display screen of an IoT device that is adapted to a screen of the IoT device.
In addition, considering that there is a possibility that a full-screen page displayed horizontally is reduced and then multiplexed into a page unit displayed vertically, or a possibility that a full-screen page displayed vertically is reduced and then multiplexed into a page unit displayed horizontally, the global page object includes: and displaying the page object of the full-screen page matched with the screen of the IoT device in a horizontal display mode or a vertical display mode.
Optionally, the global page object includes a page object whose corresponding screen area includes all areas of the first display screen or the second display screen, that is: the display screen of the screen page of the global page object includes the first display screen and a second display screen of the IoT device.
Step S204, determining a display mode for displaying a page on the IoT device based on the object parameters obtained by the initialization.
The display mode of this embodiment includes: and displaying the mode of the screen page of the global page object on the display screen of the IoT device and/or displaying the mode of the page unit corresponding to the corresponding page object on one or more screen areas of the display screen of the IoT device.
For a mode of displaying page units corresponding to page objects in one or more screen areas of a display screen of an IoT device, after displaying page units corresponding to page objects in one or more screen areas of the display screen of the IoT device, if page units are required to be displayed in the display screen or other screen areas of other display screens, similar page units need to be displayed in other screen areas, and the display mode may be regarded as a display mode of a combination of multiple page units, and this display mode is referred to herein as a combined display mode.
After initializing the page object from the page parameters to obtain the object parameters of the page object, determining a display mode for displaying the page on the IoT device based on the obtained object parameters of the page object, specifically determining which display mode is currently used for displaying the page on the IoT device.
In a specific implementation process, a display mode of performing page display on an IoT device may be determined by detecting a relationship between a page size included in a display parameter and a screen size of the IoT device, and if the page size included in the display parameter exceeds the screen size of the IoT device, it indicates that page display can only be performed in a combined display mode, and in a specific alternative implementation manner provided in this embodiment, determining, based on an object parameter obtained by initialization, the display mode of performing page display on the IoT device includes:
detecting whether a page height value and/or a page width value contained in the display parameter is greater than a screen display height value and/or a screen display width value of the IoT device;
if yes, the page size of the page object needing to be displayed currently exceeds the screen size of the internet of things (IoT) device, the display direction of the page object is determined according to the page height value and the page width value, and a display mode corresponding to the display direction is used as the combined display mode;
If not, the processing is not performed, or the rendering and the output of the page object are performed.
Further, in determining the display direction of the page object, in order to enable the display of the page object on the screen of the IoT device to be better compatible with the screen direction of the IoT device, in an optional implementation manner provided in this embodiment, determining the display direction of the page object according to the page height value and the page width value includes:
if the page width value is greater than or equal to the page height value, determining that the display direction of the page display performed on the IoT device is vertical display;
and if the page width value is smaller than the page height value, determining that the display direction of the page display on the IoT device is transverse display.
In the process of determining the display mode of the page display by the IoT device based on the object parameters obtained by initialization, after determining the display direction of the page object according to the page height value and the page width value, the display direction parameters in the object parameters of the page object may be updated based on the display direction, so that the page rendering process of the corresponding display direction may be adaptively performed according to the display direction parameters in the subsequent page rendering process.
In addition to the implementation manner of determining the display mode by detecting the relationship between the page size included in the display parameter and the screen size of the IoT device, the display mode may be determined according to the magnitude relationship between the page height value and the page width value included in the display parameter, specifically, the display direction of the page object is determined according to the page height value and the page width value, and the display mode corresponding to the display direction is taken as the combined display mode. Or, it may further detect whether the page height value and the page width value included in the display parameter are smaller than the screen display height value and/or the screen display width value of the IoT device, if the page size of the page object that needs to be displayed currently only covers a local area of the IoT device screen, determine that the display mode is a combined display mode, or determine, according to the page height value and the page width value, a display direction of the page object, and use a display mode corresponding to the display direction as the combined display mode.
Step S206, if the determined display mode is a combined display mode, calculating the area display parameters of the screen area corresponding to the page object according to the display parameters carried by the object parameters and the global display parameters of the global page object of the IoT device.
After the above-mentioned object parameters based on the page object determine the display mode for performing page display on the IoT device, if the determined display mode is the combined display mode, the display parameters currently used for performing page display on the page object on the IoT device need to be further determined, specifically, according to the display parameters carried by the object parameters and the global display parameters of the global page object of the IoT device, the area display parameters of the screen area corresponding to the page object are calculated.
The global display parameters comprise display size parameters and display position parameters of the global page object when the screen of the IoT device is displayed; the region display parameters include a display size parameter and a display location parameter for a page object to be displayed on a screen of an IoT device.
In a specific implementation, in a process of calculating an area display parameter of a screen area corresponding to a page object, in order to improve calculation efficiency of the area display parameter, calculating the area display parameter of the screen area corresponding to the page object by multiplexing the global display parameter of the global page object, and in a specific alternative implementation provided in this embodiment, calculating the area display parameter of the screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device includes:
Adjusting the display size parameter contained in the global display parameter according to the display size parameter contained in the display parameter;
and adjusting the display position parameters contained in the global display parameters according to the position parameters configured by the display parameters, and taking the adjusted global display parameters as the regional display parameters.
For example, starting from the display size parameter and the display position parameter of the full-screen display object with the display mapping relation with the page object, according to the display size contained in the demand parameter submitted by the merchant for carrying out corresponding page display on the IoT device, carrying out parameter value adjustment on the display size parameter of the full-screen display object, and carrying out parameter value adjustment on the display position parameter of the full-screen display object according to the position information configured in the demand parameter by the merchant, so as to determine the display size and the display position of the page object to be displayed by the current merchant by means of the display size parameter and the display position parameter of the full-screen display object, and realize parameter multiplexing on the full-screen display object.
It should be noted that, in the process that the global page object performs page display on the screen of the IoT device, the response to the trigger event on the screen of the IoT device is adaptive to the size of the page area where the global page object performs page display on the screen of the IoT device, and in the case that the page object multiplexes related information such as parameters of the global page object, in order to avoid abnormal response of the screen event caused by multiplexing the global page object with the page object, in the optional implementation provided by the embodiment, the response of the page object to the screen event is normal in the case that the global page object is multiplexed by performing event configuration on the page object, in the optional implementation provided by the embodiment, after calculating the area display parameter of the screen area corresponding to the page object, the object event of the page object is configured; after the configuration is performed, the event trigger of the page object corresponds to the screen area.
Step S208, reading the page layout information of the global page object, performing page rendering by taking the page layout information and the area display parameters as an input rendering interface, and outputting a page unit obtained by rendering to the screen area for display.
In this step, page rendering of the page object is performed based on the page layout information of the global page object and the area display parameter of the page object by reading the page layout information of the global page object after the display mode of the page object is determined to be the combined display mode and the area display parameter of the screen area corresponding to the page object is calculated, specifically, in the rendering process, when the rendering interface is called, the page rendering interface is called to perform page rendering of the page object by taking the page layout information of the global page object and the area display parameter of the page object as input parameters called by the interface, and after obtaining a page unit of the page object returned by the interface call, the page unit is output to the screen area corresponding to the area display parameter to be displayed.
In an optional implementation manner provided in this embodiment, in a process of reading the page layout information of the global page object, page layout information of an object instance of the global page object adapted to the display direction of the page object is read. The page layout information comprises rendering material information required for page rendering of the page global page object.
Here, the global page object adapted to the display direction of the page object may be a full-screen page object having the display direction identical to the display direction of the page object, for example, the display height value in the page parameter of the page object is greater than the display width value, and the display direction of the page object is vertical display, and then, in the plurality of full-screen pages of the IoT device, the full-screen page object corresponding to the full-screen page whose display direction is vertical display is selected as the global page object adapted to the display direction of the page object.
In practical application, after the rendering and displaying of the page objects are completed, there may be a need for rendering a plurality of page objects according to the actual needs of the merchant using the IoT device scene, and the foregoing description is given by taking any one page object as an example, and the rendering and displaying process of other page objects may be referred to the rendering and displaying process of the page objects provided above, which is not repeated in this embodiment.
In a specific implementation process, in order to improve the rendering and display efficiency of multiple page objects in the IoT device, after the rendering and display of the page objects are completed, when any one of the other page objects (the second page object) is rendered and displayed, the following optional implementation manner may be adopted:
Calculating a second area display parameter of a second screen area corresponding to a second page object according to a second display parameter carried by the second object parameter and the global display parameter; the second object parameters are obtained by initializing the second page object for page display at the IoT device;
and taking the page layout information and the second area display parameter as input parameters to perform page rendering by using the rendering interface, and outputting a second page unit obtained by rendering to the second screen area for display.
It should be noted that, in the implementation manner of the page processing of the IoT device provided above, after the initialization of the page object according to the page parameter for performing the page display on the IoT device to obtain the object parameter, the determining process of the display mode is not executed any more, and the calculation of the area display parameter and the processing of the page rendering are directly performed. Specifically, after initializing a page object according to a page parameter for page display at an IoT device to obtain an object parameter, executing a processing procedure of calculating an area display parameter of a screen area corresponding to the page object according to a display parameter carried by the object parameter and a global display parameter of a global page object of the IoT device, executing a processing procedure of reading page layout information of the global page object, performing page rendering by taking the page layout information and the area display parameter as a rendering interface for entering, and outputting a page unit obtained by rendering to the screen area for display.
In summary, in the page processing method of one or more IoT devices provided in this embodiment, in the process of performing page display by the IoT device, the page object is initialized according to the page parameter, and a display mode for performing page display on the IoT device is determined based on the object parameter obtained by initialization, and in the case that the display mode is determined to be the combined display mode, according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device, the area display parameter of the screen area corresponding to the page object is calculated, and based on the page layout information read from the global page object, the page layout information and the area display parameter are used as the input parameters called by the interface, the page rendering is performed by calling the rendering interface to obtain the page unit of the page object, and finally the page unit of the page object is output to the corresponding screen area of the IoT device for displaying, so that the page rendering and the display of the page object are implemented by serving the display parameter and the page layout information of the global page object, and the flexibility of performing page display on the IoT device is improved.
The following description is made with reference to the accompanying drawings, taking as an example the rendering and display of pages for a dual-screen IoT device for payment.
In a payment scenario in which a user wants to make payment settlement through a dual-screen IoT device for payment, displaying a face-brushing page in a certain area of a screen displayed for a guest of the dual-screen IoT device, firstly acquiring page parameters of the face-brushing page submitted by the merchant, wherein the page parameters comprise a size parameter, a position parameter, screen information (display code of the screen displayed for the guest) and a suspension attribute, and determining that the face-brushing page is 301 in the screen area of the dual-screen IoT device according to the size parameter, the position parameter and the screen information as shown in fig. 3;
after page parameters submitted by a merchant are acquired, initializing a created face-brushing page object by using the page parameters to acquire object parameters of the face-brushing page object, determining that the display direction of the current page display of the dual-screen internet of things (IoT) device is vertical display according to a page height value and a page width value in the object parameters of the face-brushing page object, and determining a display mode of the vertical display as a combined display mode of the face-brushing display of the dual-screen IoT device if the page height value is larger than the page width value;
as shown in fig. 4, a vertically displayed full-screen face-brushing page of the dual-screen IoT device calculates the area display parameters of the corresponding screen area 301 of the face-brushing page submitted by the merchant according to the display parameters of the full-screen face-brushing page displayed on the dual-screen IoT device;
Configuring an object event of a face-brushing page, enabling the face-brushing page to be consistent with a screen area 301 in a trigger area of a screen of the dual-screen internet traffic (IoT) device, and reading page layout information of the full-screen face-brushing page;
taking the read page layout information and the area display parameters of the face-brushing page as the input parameters of the interface call, calling the rendering interface to perform page rendering of the face-brushing page, and outputting the face-brushing page returned by the interface call to a screen area 301 of a screen displayed by a customer of the dual-screen IoT device to display, as shown in fig. 5.
Thereafter, if the merchant wants to display a pay advertisement page in the left area 302 of the screen displayed for the customer, a similar process is used to render and display the pay advertisement page in the left area 302 as shown in FIG. 6, using the above-described face-brushing page rendering and display.
An embodiment of a page processing apparatus of an IoT device provided in the present specification is as follows:
in the foregoing embodiments, a method for processing a page of an IoT device is provided, and corresponding apparatus for processing a page of an IoT device is also provided, which is described below with reference to the accompanying drawings.
Referring to fig. 7, a schematic diagram of an embodiment of a page processing apparatus of an IoT device according to the present embodiment is shown.
Since the apparatus embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions should be referred to the corresponding descriptions of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides a page processing apparatus of an IoT device, including:
an object initialization module 702 configured to initialize a page object according to page parameters for page display at an IoT device;
a display mode determination module 704 configured to determine a display mode for page display at the IoT device based on the initialized object parameters;
a display parameter calculation module 706, configured to calculate, when the determined display mode is a combined display mode, an area display parameter of a screen area corresponding to the page object according to the display parameter carried by the object parameter and a global display parameter of a global page object of the IoT device;
the page rendering module 708 is configured to read page layout information of the global page object, perform page rendering by using the page layout information and the area display parameter as an input rendering interface, and output a page unit obtained by rendering to the screen area for display.
The page processing device of an IoT device provided in the present specification is as follows:
according to the above-described method for processing a page of an IoT device, based on the same technical concept, one or more embodiments of the present disclosure further provide a page processing device of an IoT device, where the page processing device of the IoT device is configured to execute the above-provided method for processing a page of an IoT device, and fig. 8 is a schematic structural diagram of the page processing device of the IoT device provided by one or more embodiments of the present disclosure.
The page processing device of the IoT device provided in the present embodiment includes:
as shown in fig. 8, the page processing devices of the IoT devices may vary considerably in configuration or performance, and may include one or more processors 801 and memory 802, in which memory 802 one or more storage applications or data may be stored. Wherein the memory 802 may be transient storage or persistent storage. The application stored in the memory 802 may include one or more modules (not shown in the figures), each of which may include a series of computer-executable instructions in a page processing device of an IoT device. Still further, the processor 801 may be configured to communicate with the memory 802 to execute a series of computer executable instructions in the memory 802 on a page processing device of the IoT device. The page processing device of the IoT device may also include one or more power supplies 803, one or more wired or wireless network interfaces 804, one or more input/output interfaces 805, one or more keyboards 806, and the like.
In one particular embodiment, a page processing device of an IoT device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in the page processing device of the IoT device, and configured to be executed by the one or more processors, the one or more programs comprising computer-executable instructions for:
initializing a page object according to page parameters for page display at the IoT device;
determining a display mode of page display at the IoT device based on the object parameters obtained by the initializing;
if the determined display mode is a combined display mode, calculating the area display parameter of a screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device;
and reading page layout information of the global page object, carrying out page rendering by taking the page layout information and the region display parameters as an input rendering interface, and outputting a page unit obtained by rendering to the screen region for display.
An embodiment of a storage medium provided in the present specification is as follows:
one or more embodiments of the present specification also provide a storage medium, based on the same technical idea, corresponding to the above-described page processing method of the IoT device.
The storage medium provided in this embodiment is configured to store computer executable instructions that, when executed by a processor, implement the following flow:
initializing a page object according to page parameters for page display at the IoT device;
determining a display mode of page display at the IoT device based on the object parameters obtained by the initializing;
if the determined display mode is a combined display mode, calculating the area display parameter of a screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device;
and reading page layout information of the global page object, carrying out page rendering by taking the page layout information and the region display parameters as an input rendering interface, and outputting a page unit obtained by rendering to the screen region for display.
It should be noted that, in the present specification, an embodiment of a storage medium and an embodiment of a page processing method of an IoT device in the present specification are based on the same inventive concept, so that a specific implementation of the embodiment may refer to an implementation of the foregoing corresponding method, and a repetition is omitted.
In this specification, each embodiment is described in a progressive manner, and the same or similar parts of each embodiment are referred to each other, and each embodiment focuses on the differences from other embodiments, for example, an apparatus embodiment, and a storage medium embodiment, which are all similar to a method embodiment, so that description is relatively simple, and relevant content in reading apparatus embodiments, and storage medium embodiments is referred to the part description of the method embodiment.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In the 30 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each unit may be implemented in the same piece or pieces of software and/or hardware when implementing the embodiments of the present specification.
One skilled in the relevant art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising at least one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
One or more embodiments of the present specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The foregoing description is by way of example only and is not intended to limit the present disclosure. Various modifications and changes may occur to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present document are intended to be included within the scope of the claims of the present document.

Claims (14)

1. A method of page processing for an IoT device, comprising:
initializing a page object according to page parameters for page display at the IoT device;
determining a display mode of page display at the IoT device based on the object parameters obtained by the initializing;
if the determined display mode is a combined display mode, calculating the area display parameter of a screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device;
and reading page layout information of the global page object, carrying out page rendering by taking the page layout information and the region display parameters as an input rendering interface, and outputting a page unit obtained by rendering to the screen region for display.
2. The method for processing a page of an IoT device according to claim 1, wherein a screen area corresponding to the page object is in a first display screen of the IoT device;
The display screen of the screen page of the global page object includes the first display screen and a second display screen of the IoT device.
3. The method of page processing for IoT devices of claim 1, the global page object comprising: and displaying the page object of the full-screen page matched with the screen of the IoT device in a horizontal display mode or a vertical display mode.
4. The method of page processing of the IoT device of claim 1, the determining a display mode for page display at the IoT device based on the initialized obtained object parameters, comprising:
detecting whether a page height value and/or a page width value contained in the display parameter is greater than a screen display height value and/or a screen display width value of the IoT device;
if so, determining the display direction of the page object according to the page height value and the page width value, and taking a display mode corresponding to the display direction as the combined display mode.
5. The method of page processing of IoT devices in accordance with claim 4, the determining a display direction of the page object from the page height value and the page width value, comprising:
If the page width value is greater than or equal to the page height value, determining that the display direction of the page display performed on the IoT device is vertical display;
and if the page width value is smaller than the page height value, determining that the display direction of the page display on the IoT device is transverse display.
6. The method of page processing of IoT devices in accordance with claim 4, the determining a display mode for page display at the IoT device based on the initialized obtained object parameters, further comprising:
and updating the display direction parameters in the object parameters of the page object based on the display direction.
7. The method for processing the page of the IoT device according to claim 1, wherein the calculating the area display parameter of the screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device comprises:
adjusting the display size parameter contained in the global display parameter according to the display size parameter contained in the display parameter;
and adjusting the display position parameters contained in the global display parameters according to the position parameters configured by the display parameters, and taking the adjusted global display parameters as the regional display parameters.
8. The method of page processing of IoT devices of claim 1, the reading page layout information of the global page object, comprising:
and reading page layout information of an object instance of the global page object adapted to the display direction of the page object.
9. The method for processing a page of an IoT device according to claim 1, wherein if the determined display mode is a combined display mode, after the step of calculating the area display parameter of the screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device is performed, and the step of reading the page layout information of the global page object, performing page rendering by using the page layout information and the area display parameter as a rendering interface, and outputting a page unit obtained by rendering to the screen area for performing the display step, further includes:
configuring an object event of the page object; after the configuration is performed, the event trigger of the page object corresponds to the screen area.
10. The method for processing the page of the IoT device according to claim 1, wherein the initializing the page object according to the page parameter for displaying the page on the IoT device comprises:
Reading global display parameters of the global page object;
and initializing and configuring the page object to the global display parameter to obtain the object parameter.
11. The method for processing a page of an IoT device according to claim 1, wherein the step of reading page layout information of the global page object, performing page rendering with the page layout information and the region display parameter as a rendering interface for entry, and outputting a page unit obtained by rendering to the screen region for display, further comprises:
calculating a second area display parameter of a second screen area corresponding to a second page object according to a second display parameter carried by the second object parameter and the global display parameter; the second object parameters are obtained by initializing the second page object for page display at the IoT device;
and taking the page layout information and the second area display parameter as input parameters to perform page rendering by using the rendering interface, and outputting a second page unit obtained by rendering to the second screen area for display.
12. A page processing apparatus of an IoT device, comprising:
an object initialization module configured to initialize a page object according to a page parameter for page display at an IoT device;
A display mode determination module configured to determine a display mode for page display at the IoT device based on the initialized object parameters;
a display parameter calculation module configured to calculate, when the determined display mode is a combined display mode, an area display parameter of a screen area corresponding to the page object according to the display parameter carried by the object parameter and a global display parameter of a global page object of the IoT device;
the page rendering module is configured to read page layout information of the global page object, perform page rendering by taking the page layout information and the area display parameters as an input call rendering interface, and output a page unit obtained by rendering to the screen area for display.
13. A page processing device of an IoT device, comprising:
a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to:
initializing a page object according to page parameters for page display at the IoT device;
determining a display mode of page display at the IoT device based on the object parameters obtained by the initializing;
If the determined display mode is a combined display mode, calculating the area display parameter of a screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device;
and reading page layout information of the global page object, carrying out page rendering by taking the page layout information and the region display parameters as an input rendering interface, and outputting a page unit obtained by rendering to the screen region for display.
14. A storage medium storing computer-executable instructions that when executed by a processor implement the following:
initializing a page object according to page parameters for page display at the IoT device;
determining a display mode of page display at the IoT device based on the object parameters obtained by the initializing;
if the determined display mode is a combined display mode, calculating the area display parameter of a screen area corresponding to the page object according to the display parameter carried by the object parameter and the global display parameter of the global page object of the IoT device;
and reading page layout information of the global page object, carrying out page rendering by taking the page layout information and the region display parameters as an input rendering interface, and outputting a page unit obtained by rendering to the screen region for display.
CN202310652573.1A 2023-06-02 2023-06-02 Page processing method and device of internet traffic (IoT) device Pending CN116700869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310652573.1A CN116700869A (en) 2023-06-02 2023-06-02 Page processing method and device of internet traffic (IoT) device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310652573.1A CN116700869A (en) 2023-06-02 2023-06-02 Page processing method and device of internet traffic (IoT) device

Publications (1)

Publication Number Publication Date
CN116700869A true CN116700869A (en) 2023-09-05

Family

ID=87827038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310652573.1A Pending CN116700869A (en) 2023-06-02 2023-06-02 Page processing method and device of internet traffic (IoT) device

Country Status (1)

Country Link
CN (1) CN116700869A (en)

Similar Documents

Publication Publication Date Title
CN107093096B (en) Traffic prediction method and device
CN112364277B (en) Webpage loading method and device
TW201923546A (en) Data processing method and apparatus for displaying interface content, and processing device
CN110941784A (en) Page generation method and device
CN110852503B (en) Payment channel selection method and device and payment channel route
CN110263050B (en) Data processing method, device, equipment and storage medium
CN110806847A (en) Distributed multi-screen display method, device, equipment and system
CN111144974A (en) Information display method and device
CN113672323A (en) Page display method and device
CN116700869A (en) Page processing method and device of internet traffic (IoT) device
CN116245051A (en) Simulation software rendering method and device, storage medium and electronic equipment
CN112000329B (en) Data display method, device, equipment and medium
CN116302230A (en) Page display method, device and equipment
CN110008358B (en) Resource information display method and system, client and server
CN111581574B (en) Method and device for displaying guide information
CN110399582B (en) Page display method and device
CN114637568B (en) Split-screen adaptive processing method and device for equipment
CN112698882A (en) Page component loading method and device
WO2023179182A1 (en) Device split screen adaptation processing
CN114968457B (en) Form processing method and device applied to subprogram
CN113343136B (en) Method and device for displaying information
CN113687894B (en) Transition processing method, device and equipment for animation items
CN117348999B (en) Service execution system and service execution method
CN117932131A (en) Service data display processing method and device
CN116932081A (en) Resource loading method and device based on webpage

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