CN107092634B - Method and device for realizing page preview - Google Patents

Method and device for realizing page preview Download PDF

Info

Publication number
CN107092634B
CN107092634B CN201710076907.XA CN201710076907A CN107092634B CN 107092634 B CN107092634 B CN 107092634B CN 201710076907 A CN201710076907 A CN 201710076907A CN 107092634 B CN107092634 B CN 107092634B
Authority
CN
China
Prior art keywords
page
terminal
configurable data
preview
identifier
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.)
Active
Application number
CN201710076907.XA
Other languages
Chinese (zh)
Other versions
CN107092634A (en
Inventor
陈莲莲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koubei Holding Ltd
Original Assignee
Koubei Holding 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 Koubei Holding Ltd filed Critical Koubei Holding Ltd
Priority to CN201710076907.XA priority Critical patent/CN107092634B/en
Publication of CN107092634A publication Critical patent/CN107092634A/en
Application granted granted Critical
Publication of CN107092634B publication Critical patent/CN107092634B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The application provides a method for realizing page preview, which is applied to a first terminal and comprises the following steps: sending a page generation request to a server, and receiving a page generation response returned by the server, wherein the page generation response comprises a first page identifier of a page to be generated; providing the first page identification for a user or a second terminal; acquiring configurable data of a page to be generated, which is determined by a user, and sending the configurable data to a server for the server to issue the configurable data to a second terminal for page preview on the second terminal; and the second page identifier uploaded to the server by the second terminal is the same as the first page identifier. According to the technical scheme, the page can be previewed on the first terminal on the second terminal, so that a user can see the display effect from the second terminal of the actually used page in the page making process, the making and submitting processes are not required to be repeated, and the page making efficiency of the user is improved while the user operation is reduced.

Description

Method and device for realizing page preview
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for implementing page preview.
Background
With the development and popularization of network technology, more and more business services and public services are migrated to the network. The web service requires making various pages for showing goods or specific service items to the public, and for completing the process of purchasing goods or experiencing services. In order to facilitate a user (such as a merchant or a service provider) to make a page, a plurality of platforms provide page frames of various pages, and the merchant and the service provider only need to select a favorite page frame and fill in specific contents (such as characters, pictures and the like) which the merchant and the service provider wish to display, so that various pages can be generated.
Some platforms also provide a function of previewing the page during the production process so that the user can know the actual effect of the page. In the prior art, a user can only preview a page on a terminal for making the page, and the terminal for actually displaying the page is often different from the terminal for making the page. For example, a user often makes a page on a PC (Personal Computer), and the made page may be used on a tablet or a smartphone. Since the operating systems and screen display parameters of different terminals may be very different, the preview effect on one terminal is often quite different from the effect actually displayed on another terminal. In the prior art, a user can see the actually displayed effect on another terminal after finishing making and submitting the effect to the platform, and if the user is unsatisfied with the effect, the user needs to repeatedly modify and submit the effect, which is very inconvenient and low in efficiency.
Disclosure of Invention
In view of this, the present application provides a method for implementing page preview, which is applied to a first terminal, and includes:
sending a page generation request to a server, and receiving a page generation response returned by the server, wherein the page generation response comprises a first page identifier of a page to be generated;
providing the first page identification for a user or a second terminal;
acquiring configurable data of a page to be generated, which is determined by a user, and sending the configurable data to a server for the server to issue the configurable data to a second terminal for page preview on the second terminal; and the second page identifier uploaded to the server by the second terminal is the same as the first page identifier.
The method for implementing page preview provided by the application is applied to a second terminal, and comprises the following steps:
acquiring a second page identifier of the preview page;
sending a page preview request comprising the second page identifier to a server;
receiving the configurable data of the preview page from a server, and displaying the preview page by adopting the configurable data; the configurable data is uploaded to the server by the first terminal, and the first page identifier and the second page identifier which are issued by the server to the first terminal are the same.
The method for implementing page preview provided by the application is applied to a server and comprises the following steps:
generating a first page identifier of a page to be generated according to a page generation request of a first terminal, and sending a page generation response carrying the first page identifier to the first terminal;
receiving a page preview request of a second terminal including a second page identifier of a preview page;
receiving configurable data of a page to be generated uploaded by a first terminal;
and sending the configurable data uploaded by the first terminal to a second terminal, wherein a page preview request sent by the second terminal carries a second page identifier which is the same as the first page identifier.
The application also provides a device for realizing page preview, which is applied to the first terminal and comprises:
the page generation request unit is used for sending a page generation request to the server and receiving a page generation response returned by the server, wherein the page generation response comprises a first page identifier of a page to be generated;
the page identifier providing unit is used for providing the first page identifier for a user or a second terminal;
the configurable data uploading unit is used for acquiring configurable data of a page to be generated, which is determined by a user, and sending the configurable data to the server, so that the server can issue the configurable data to the second terminal for page preview on the second terminal; and the second page identifier uploaded to the server by the second terminal is the same as the first page identifier.
The application provides a realization device of page preview, uses on the second terminal, includes:
the page identifier acquisition unit is used for acquiring a second page identifier of the preview page;
a page preview request unit, configured to send a page preview request including the second page identifier to a server;
the configurable data receiving unit is used for receiving the configurable data of the preview page from the server and displaying the preview page by adopting the configurable data; the configurable data is uploaded to the server by the first terminal, and the first page identifier and the second page identifier which are issued by the server to the first terminal are the same.
The application provides a realization device of page preview, uses at the server, includes:
the page generation response unit is used for generating a first page identifier of a page to be generated according to a page generation request of the first terminal and sending a page generation response carrying the first page identifier to the first terminal;
the page preview request receiving unit is used for receiving a page preview request of a second terminal including a second page identifier of a preview page;
the uploading configurable data receiving unit is used for receiving configurable data of a page to be generated uploaded by a first terminal;
and the configurable data issuing unit is used for issuing the configurable data uploaded by the first terminal to the second terminal, and the page preview request sent by the second terminal carries a second page identifier which is the same as the first page identifier.
According to the technical scheme, in the embodiment of the application, when the first terminal makes the page to be generated, the first page identifier of the page to be generated, which is generated and issued by the server, is provided for a user or the second terminal, and the second terminal adopts the second page identifier of the preview page to request the server for the configurable data of the preview page; the server matches the first terminal and the second terminal through the first page identifier and the second page identifier, and transmits the configurable data uploaded by the first terminal to the second terminal, so that the page can be previewed on the first terminal on the second terminal, a user can see the page display effect from the second terminal which actually uses the page in the page manufacturing process, the manufacturing and submitting processes do not need to be repeated, and the page manufacturing efficiency of the user is improved while the user operation is reduced.
Drawings
Fig. 1 is a flowchart of an implementation method for page preview applied to a first terminal in an embodiment of the present application;
fig. 2 is a flowchart of an implementation method for page preview applied to a second terminal in an embodiment of the present application;
fig. 3 is a flowchart of a method for implementing a page preview applied to a server in an embodiment of the present application;
FIG. 4 is a schematic diagram of a display of a configurable data entry page in one example of application of the present application;
fig. 5 is a display schematic diagram of a two-dimensional code scanning page and a preview page in an application example one of the present application;
FIG. 6 is a schematic diagram of a display of a configurable data entry page in example two of the present application;
FIG. 7 is a schematic diagram showing a password input page and a preview page in example two of the application of the present application;
FIG. 8 is a hardware block diagram of a device in which a first terminal, a second terminal, or a server is located;
fig. 9 is a logic structure diagram of an implementation apparatus for page preview applied to a first terminal in an embodiment of the present application;
fig. 10 is a logic structure diagram of an implementation apparatus for page preview applied to a second terminal in an embodiment of the present application;
fig. 11 is a logic structure diagram of an implementation apparatus for page preview applied to a server in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a new method for realizing page preview, a server side issues a first page identifier of a page to be generated to a first terminal for making the page, and the first terminal uploads configurable data of the page to be generated to the server side by adopting the first page identifier; the second terminal for page preview provides the second page identification of the preview page to the server when requesting the configurable data of the preview page from the server, the service matches the first terminal and the second terminal through the first page identification and the second page identification, and issues the configurable data uploaded by the first terminal to the second terminal, so that a user can preview the actual display effect of the page being manufactured on the first terminal on the second terminal, and repeated modification and submission processes can be avoided, so that the problems in the prior art are solved.
In the embodiment of the application, the first terminal and the server, and the second terminal and the server are accessible to each other through a network. The first terminal or the second terminal may be a mobile phone, a tablet Computer, a PC (Personal Computer), a notebook, or the like; the server can run on one physical or logical server, or two or more physical or logical servers sharing different responsibilities cooperate with each other to implement various functions of the server in the embodiment of the present application. The embodiment of the application does not limit the types of the equipment where the first terminal, the second terminal or the server are located, and the types, protocols and the like of communication networks between the first terminal and the server and between the second terminal and the service segment.
In the embodiment of the application, the page data of one page consists of two parts, namely configurable data and fixed data. Where configurable data is a portion that a user can determine on his or her own, while fixed data is a portion that a user cannot modify or alter. How to divide the page data into the configurable data and the fixed data can be determined according to the needs of the actual application scenario, and the embodiment of the present application is not limited. For example, the page frame may be taken as fixed data, while the page content (including page display text and pictures) may be taken as configurable data; for another example, the page content, the character font and the color of each page element can be used as configurable data, and the rest can be used as fixed data; in another example, page content specific to a user may be used as configurable data, while page content and page frames that are the same for all users may be used as fixed data.
In the embodiment of the present application, a flow of a method for implementing page preview running on a first terminal is shown in fig. 1, a flow of the method running on a second terminal is shown in fig. 2, and a flow of the method running on a server is shown in fig. 3. The first terminal is used for making a page by a user, and the second terminal is used for previewing the page by the user; in other words, a user makes a page to be generated on a first terminal, previews the page to be generated on a second terminal, and the previewing page on the second terminal is the page to be generated in the making process.
On the first terminal, step 110, a page generation request is sent to the server, and a page generation response returned by the server is received, where the page generation response includes a first page identifier of a page to be generated.
At the server, in step 310, a first page identifier of a page to be generated is generated according to a page generation request of the first terminal, and a page generation response carrying the first page identifier is sent to the first terminal.
When a user wants to make a page, corresponding operation is carried out on the first terminal, and the first terminal is instructed to send a page generation request to the server.
After receiving the page generation request, the server determines a first page identifier of the page to be generated, encapsulates the first page identifier in a page generation response, and replies to the first terminal.
The first page identifier is used to uniquely represent a page in the production process at the server, and any information that can uniquely correspond to a page in production at the server can be used as the first page identifier. For example, the server may allocate a storage location for storing the configurable data of each page to be generated (e.g., a unique index entry of a worksheet for temporarily storing the configurable data, or a storage path and a file name of a file for storing the configurable data of a page to be generated), and use the storage location as the first page identifier. For another example, the server may generate a password corresponding to the page to be generated (e.g., generate a random number or a random string as the password), use the password as the first page identifier of the page to be generated, and the password is different from other passwords already in use; after the to-be-generated page is submitted or discarded, the password may be released (i.e., deleted from the password already in use).
On the first terminal, step 120, the first page identification is provided to the user or the second terminal.
At the second terminal, step 210, a second page identifier of the preview page is obtained.
After receiving the page generation response, the first terminal may display a configurable data entry page to the user and provide the first page identification to the user or the second terminal.
And the user operates on the second terminal which actually displays and uses the page to be generated, and the page preview function is started. And the second terminal acquires a second page identifier of the preview page according to the instruction of the user.
The specific manner in which the first terminal provides the first page identifier to the user or the second terminal may be determined by comprehensively considering factors such as the types of the first terminal and the second terminal, the separation distance between the first terminal and the second terminal, and the network condition of the actual application scenario, and the embodiment of the present application is not limited.
In a first example, the first terminal may render the information carrying the first page identifier into a two-dimensional code, and display the two-dimensional code on the configurable data input page for scanning by the second terminal; and the second terminal scans the two-dimensional code displayed by the first terminal according to the instruction of the user, and uses the first page identifier analyzed from the two-dimensional code as a second page identifier of the preview page.
In a second example, if the first page identifier is a password generated by the server and corresponding to the page to be generated, the first terminal may display the password on the configurable data entry page for viewing by the user. After the user starts the page preview function on the second terminal, the second terminal requires the user to input a password, and after the password which is input by the user and displayed on the first terminal is received, the second terminal takes the password as a second page identifier of the preview page.
In a third example, the first terminal may send the first page identifier to the second terminal via bluetooth, NFC (Near Field Communication), mobile Communication network, etc., and the second terminal may use the first page identifier as the second page identifier of the preview page.
On the second terminal, step 220, a page preview request including the second page identifier is sent to the server.
At the server, step 320, a page preview request including a second page identifier of the preview page is received from the second terminal.
And the second terminal encapsulates the acquired second page identifier of the preview page in the page preview request and sends the page preview request to the server. And the server side extracts a second page identifier of the previewing page on the second terminal from the page previewing request.
On the first terminal, step 130, obtaining the configurable data of the page to be generated determined by the user, and sending the configurable data to the server, so that the server issues the configurable data to the second terminal for page preview on the second terminal. And the second page identifier uploaded to the server by the second terminal is the same as the first page identifier.
At the server, step 330, receiving configurable data of the page to be generated uploaded by the first terminal.
On the configurable data input page displayed by the first terminal, the user can determine the specific numerical value of the configurable data of the page in the manufacturing process according to the actual business requirement. According to the attribute of the configurable data and the design of the configurable data input page, the mode that a user determines the configurable data may include one or more of inputting a text to be displayed on a page to be generated, uploading a picture to be displayed on the page to be generated or inputting a network storage address of the picture, specifying the font size and color of the text, specifying the display effect of the picture, and the like; in addition, default values can be set for at least part of the configurable data items, and when the user does not specify the value of one configurable data item, the value of the configurable data item is the default value; the embodiments of the present application are not limited.
According to the operation of the user, the first terminal can obtain the configurable data of part or all of the pages to be generated determined by the user, and upload the obtained configurable data to the server. The first terminal can upload the acquired configurable data to the server after receiving an instruction of uploading the configurable data from the user; or sending the configurable data which is currently acquired to the server side in a preset uploading period.
For configurable data of a page to be generated uploaded by a first terminal, a server needs to know a first page identifier of the page to be generated. This can be done in different ways in different application scenarios.
In a first example, in an application scenario where a long connection is established between a first terminal and a server and there is only one page to be generated on the first terminal, the server issues a first page identifier to the first terminal through the established long connection, and then the configurable data from the long connection all correspond to the first page identifier issued through the long connection.
In a second example, the first terminal may carry the first page identifier of the page to be generated each time the configurable data of the page to be generated is uploaded to the server.
In a third example, the first terminal may carry the device identifier of the first terminal in the page generation request, and after the server generates the first page identifier for the page to be generated, the server stores the corresponding relationship between the device identifier of the first terminal and the first page identifier; when the first terminal uploads the configurable data subsequently, the configurable data are carried with the equipment identifier of the first terminal, so that the server can know which page to be generated the configurable data are used for through the equipment identifier. The Device Identifier of the first terminal may be any Identifier used to uniquely represent the first terminal, such as an IMEI (International Mobile Equipment Identity), a UDID (Unique Device Identifier), a MAC (Media Access Control) address, and the like. It should be noted that this example is applicable to an application scenario in which only one page to be generated exists on the first terminal.
At the server, there is no timing relationship between steps 320 and 330.
In the server, in step 340, the configurable data uploaded by the first terminal is sent to the second terminal, and the page preview request sent by the second terminal carries a second page identifier that is the same as the first page identifier.
On the second terminal, step 230, receiving the configurable data of the preview page from the server, and displaying the preview page by using the configurable data; the configurable data is uploaded to the server by the first terminal, and the first page identifier and the second page identifier which are issued by the server to the first terminal are the same.
After receiving the configurable data of the page to be generated uploaded by the first terminal, the server can determine that the terminal uploading the second page identifier is the second terminal through the second page identifier which is the same as the first page identifier of the page to be generated. And the server side sends the received configurable data to the second terminal.
And after receiving the configurable data of the preview page from the server, the second terminal combines the received configurable data with the fixed data of the preview page to obtain page data of the preview page. And the second terminal operates the page data of the preview page and displays the preview page to the user. The method for obtaining the preview page fixed data by the second terminal is not limited, and the preview page fixed data can be stored in the second terminal in advance (for example, in the case that the client program of the server is installed on the second terminal); the server may also be notified of which page of the fixed data is to be used in the page preview request, and the server issues the fixed data and the configurable data to the second terminal.
In the implementation mode that the first terminal can upload the configurable data to the server for multiple times, the server can also issue the latest received configurable data to the second terminal for multiple times, so that the user can preview the page to be generated in the process of being manufactured on the second terminal in near real time. The server side can actively send the configurable data received last time to the second terminal after receiving the configurable data uploaded by the first terminal; or the second terminal may adopt a polling mode to send a page preview request to the server in a predetermined polling period, and the server sends the configurable data received last time to the second terminal after receiving the page preview request each time.
In one implementation that the second terminal performs the page preview request in a polling manner, the second terminal may carry a second page identifier in each page preview request sent in a predetermined polling period, so that the server may know, through the second page identifier, which configurable data of the page to be generated is requested by the server, and from which terminal the configurable data originates. And after receiving a page preview request including a second page identifier of the second terminal every time, the server side transmits the configurable data uploaded by the first terminal for the last time to the second terminal. And the second terminal receives the configurable data of the preview page with the second page identifier from the server successively and displays the preview page by adopting the configurable data.
In another implementation that the second terminal performs the page preview request in a polling manner, the second terminal may carry the second page identifier and the device identifier of the second terminal in the page preview request sent to the server. After receiving the page preview request, the server stores the corresponding relationship between the second page identifier and the device identifier of the second terminal, determines which page to be generated is the configurable data requested by the second terminal according to the second page identifier, and sends the configurable data uploaded by the first terminal for the last time to the second terminal. And the subsequent second terminal sends a page preview updating request comprising the equipment identifier of the second terminal to the server in a preset polling period, and the server sends the configurable data uploaded by the first terminal for the last time to the second terminal according to the second page identifier corresponding to the equipment identifier in the page preview updating request. And the second terminal receives the configurable data of the preview page from the server one by one and refreshes the displayed preview page by adopting the newly received configurable data. The device identifier of the second terminal may be any identification code used to uniquely represent the second terminal. It should be noted that this implementation is applicable to an application scenario where there is only one preview page on the second terminal.
Obviously, in the embodiment of the application, the server side issues the first page identifier of the page to be generated to the first terminal for making the page; the method comprises the steps that when a page to be generated is manufactured by a first terminal, a first page identification is provided for a user or a second terminal, the second terminal for page preview provides a second page identification for previewing the page to a server when the second terminal requests configurable data from the server, the server matches the first terminal with the second terminal through the first page identification and the second page identification, and the configurable data uploaded by the first terminal is sent to the second terminal, so that the user can preview the actual display effect of the page being manufactured on the first terminal on the second terminal, the satisfactory page effect can be obtained without repeated manufacturing and submitting processes, the user operation is reduced, and meanwhile, the page manufacturing efficiency of the user is improved.
In an application example one of the present application, a user makes a page on a PC (first terminal), and previews a page being made on a Pad (second terminal) via a browser. The fixed data of the page to be generated is a page frame, and the configurable data is page content.
A user starts the production of a page to be generated on a PC, and the PC sends a page generation request to a page server (a server). The page server creates a file for storing the page content data of the page to be generated, and encapsulates the storage path and the file name of the file as a first page identifier in a page generation response to return to the PC.
On the PC, the configurable data input page of the page to be generated is opened, the information including the access address of the page server and the first page identifier is rendered into a two-dimensional code, and is displayed on the configurable data input page, as shown in fig. 4. The configurable data input page collects all configurable data items in a form, the PC receives all page content data input by a user and uploads the currently collected configurable data to the page server in a preset uploading period, and meanwhile, the first page identification is uploaded at the time of each uploading. After receiving the configurable data uploaded by the PC and the first page identifier each time, the page server finds the corresponding file according to the first page identifier, and updates the file content into the configurable data uploaded at the last time.
The user scans the two-dimensional code displayed on the configurable data entry page on the PC with Pad, as shown in the left diagram of fig. 5. After the Pad analyzes the two-dimensional code, the first page identifier carried in the two-dimensional code is used as a second page identifier for previewing the page, a browser is opened, a page previewing request is sent to a page server in a preset polling period, and the second page identifier is carried in each page previewing request.
And after receiving the page preview request sent by the Pad each time, the page server finds the corresponding file according to the second page identifier, takes the file content as configurable data, issues the configurable data to the Pad, and simultaneously issues the page frame data of the page to be generated.
And after receiving the configurable data and the page frame data, the Pad combines the configurable data and the page frame data into page data. When the Pad runs the page data, the current page effect of the page to be generated can be displayed to the user, as shown in the right diagram of fig. 5.
In a second application example of the present application, a user makes a page on a PC (first terminal), and previews the page being made on a mobile phone (second terminal) through a client App (application). The fixed data of the page to be generated is a page frame, and the configurable data is page content. When the App of the mobile phone is installed, page frame data of a page to be generated are prestored. In the application example, only one page to be generated exists on the PC at the same time, and only one preview page exists on the mobile phone App at the same time.
A user starts the production of a page to be generated on a PC, and the PC sends a page generation request to a page server (a server side), wherein the page generation request carries an MAC address (equipment identification of the PC) of the PC. The page server generates a 6-bit random number which uniquely corresponds to the page to be generated and is used as a password of the page to be generated. After the corresponding relation among the password, the page to be generated and the MAC address is stored, the page server takes the password as a first page identifier, encapsulates the first page identifier in a page generation response and returns the page generation response to the PC.
On the PC, the configurable data entry page for the page to be generated is opened and the password received in the page generation response is displayed on the configurable data entry page, as shown in fig. 6. The configurable data input page collects all configurable data items in a form, the PC receives all page content data input by a user and uploads the currently collected configurable data to the page server in a preset uploading period, and meanwhile, the MAC address of the PC is carried in each uploading process. And after the page server receives the configurable data and the MAC address uploaded by the PC every time, the configurable data is stored as the latest configurable data of the password corresponding to the MAC address.
The user starts a page preview function in the mobile phone App and inputs a password according to the requirements of the App, as shown in the left diagram of fig. 7. After receiving the password, the App sends a page preview request to the page server by using the password as a second page identifier of the preview page, wherein the page preview request carries the password and the IMEI number (equipment identifier of the mobile phone) of the mobile phone.
The page server receives a page preview request of the mobile phone App, stores the corresponding relation between the password and the IMEI number of the mobile phone, and returns the fixed data identification (used for informing the mobile phone of which page fixed data is adopted) of the page to be generated corresponding to the password and the latest configurable data of the password to the mobile phone. The mobile phone App finds a page frame used for previewing a page from a plurality of pre-stored page frames according to the fixed data identifier, combines the page frame and the received configurable data into page data, and displays the previewing page to a user by adopting the page data, as shown in the right diagram of fig. 7.
And the mobile phone App sends a page preview updating request to the page server in a preset polling period, wherein the page preview updating request comprises the IMEI number of the mobile phone. And the page server returns the latest configurable data of the password corresponding to the IMEI number of the mobile phone to the mobile phone. And the mobile phone App updates the preview page displayed to the user according to the page frame and the received configurable data.
Corresponding to the above flow implementation, an embodiment of the present application further provides an implementation apparatus for page preview applied to the first terminal, an implementation apparatus for page preview applied to the second terminal, and an implementation apparatus for page preview applied to the server. The above devices can be realized by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, the device in the logical sense is formed by reading a corresponding computer program instruction into a memory for running through a Central Processing Unit (CPU) of a device in which the first terminal, the second terminal, or the server is located. In terms of hardware, the first terminal or the second terminal where the page preview implementing apparatus is located generally includes other hardware such as a chip for transmitting and receiving wireless signals, in addition to the CPU, the memory, and the nonvolatile memory shown in fig. 8, and the device where the server page preview implementing apparatus is located generally includes other hardware such as a board for implementing a network communication function.
Fig. 9 is a diagram illustrating an implementation apparatus for page preview provided in an embodiment of the present application, which is applied to a first terminal and includes a page generation request unit, a page identifier providing unit, and a configurable data uploading unit, where: the page generation request unit is used for sending a page generation request to the server and receiving a page generation response returned by the server, wherein the page generation response comprises a first page identifier of a page to be generated; the page identifier providing unit is used for providing the first page identifier for a user or a second terminal; the configurable data uploading unit is used for acquiring configurable data of a page to be generated, which is determined by a user, and sending the configurable data to the server, so that the server can issue the configurable data to the second terminal for page preview on the second terminal; and the second page identifier uploaded to the server by the second terminal is the same as the first page identifier.
Optionally, the page identifier providing unit is specifically configured to: and displaying the two-dimensional code carrying the first page identifier on the configurable data input page for scanning by the second terminal.
Optionally, the first page identifier includes: a password corresponding to a page to be generated; the page identifier providing unit is specifically configured to: and displaying the password on a configurable data input page for the user to input the password on the second terminal after acquiring the password.
Optionally, the configurable data uploading unit is specifically configured to: and acquiring the configurable data of the page to be generated determined by the user, and sending the acquired configurable data to the server side in a preset uploading period.
Optionally, the page generation request further includes: a device identification of the first terminal; the configurable data uploading unit is specifically configured to: and acquiring configurable data of the page to be generated determined by the user, and sending the configurable data and the equipment identifier of the first terminal to the server.
Fig. 10 shows an implementation apparatus for page preview provided in an embodiment of the present application, which is applied to a second terminal, and includes a page identifier obtaining unit, a page preview request unit, and a configurable data receiving unit, where: the page identifier acquisition unit is used for acquiring a second page identifier of the preview page; the page preview request unit is used for sending a page preview request comprising the second page identifier to a server; the configurable data receiving unit receives the configurable data of the preview page from a server and displays the preview page by adopting the configurable data; the configurable data is uploaded to the server by the first terminal, and the first page identifier and the second page identifier which are issued by the server to the first terminal are the same.
Optionally, the page identifier obtaining unit is specifically configured to: and scanning the two-dimensional code displayed by the first terminal according to the instruction of the user, and analyzing a second page identifier of the preview page.
Optionally, the second page identifier includes: a password displayed on the first terminal; the page identifier obtaining unit is specifically configured to: a password entered by a user is received.
Optionally, the page preview request unit is specifically configured to: sending a page preview request comprising the second page identifier to a server in a preset polling period; the configurable data receiving unit is specifically configured to: and receiving the configurable data of the preview page from the server one by one, and displaying the preview page by adopting the configurable data.
Optionally, the page preview request further includes: a device identification of the second terminal; the device further comprises: the page preview updating request unit is used for sending a page preview updating request comprising the second terminal equipment identifier to the server side in a preset polling period; and receiving the configurable data of the preview page from the server one by one, and refreshing the displayed preview page by adopting the configurable data.
Fig. 11 shows an implementation apparatus for page preview provided in an embodiment of the present application, which is applied to a server, and includes a page generation response unit, a page preview request receiving unit, an upload configurable data receiving unit, and a configurable data issuing unit, where: the page generation response unit is used for generating a first page identifier of a page to be generated according to a page generation request of the first terminal and sending a page generation response carrying the first page identifier to the first terminal; the page preview request receiving unit is used for receiving a page preview request of the second terminal, wherein the page preview request comprises a second page identifier of a preview page; the uploading configurable data receiving unit is used for receiving configurable data of a page to be generated uploaded by the first terminal; the configurable data issuing unit is used for issuing the configurable data uploaded by the first terminal to the second terminal, and the page preview request sent by the second terminal carries a second page identifier which is the same as the first page identifier.
Optionally, the page generation response unit is specifically configured to: and generating a password corresponding to the page to be generated according to the page generation request of the first terminal, and sending a page generation response carrying the password to the first terminal.
Optionally, the page preview request receiving unit is specifically configured to: and receiving configurable data sent by the first terminal in a preset uploading period.
Optionally, the page generation request further includes: a device identification of the first terminal; the upload configurable data receiving unit is specifically configured to: and receiving the configurable data of the page to be generated uploaded by the first terminal and the equipment identifier of the first terminal.
Optionally, the page preview request receiving unit is specifically configured to: receiving a page preview request which is sent by a second terminal in a preset polling period and comprises a second page identifier; the configurable data issuing unit is specifically configured to: and after receiving a page preview request of the second terminal every time, sending the configurable data uploaded by the first terminal for the last time to the second terminal.
Optionally, the page preview request further includes: a device identification of the second terminal; the device further comprises: and the page preview update response unit is used for issuing the configurable data uploaded by the first terminal for the last time to the second terminal after receiving a page preview update request which is sent by the second terminal in a preset polling period and comprises the identifier of the second terminal equipment each time.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
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 computer storage media 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 Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (24)

1. A method for implementing page preview is applied to a first terminal, and is characterized by comprising the following steps:
sending a page generation request to a server, and receiving a page generation response returned by the server, wherein the page generation response comprises a first page identifier of a page to be generated; the first page identifier is used for uniquely representing a page in the manufacturing process at the server;
displaying the two-dimensional code carrying the first page identifier on the configurable data input page for scanning by a second terminal; or displaying a password which is used as a first page identifier and corresponds to a page to be generated on a configurable data input page, so that a user can input the password on a second terminal after obtaining the password;
acquiring configurable data of a page to be generated, which is determined by a user, and sending the configurable data to a server, so that the server can issue the configurable data to a second terminal uploading a second page identifier, and the configurable data is used for previewing the page on the second terminal; the second page identifier is the same as the first page identifier.
2. The method according to claim 1, wherein the obtaining of the configurable data of the page to be generated determined by the user and the sending of the configurable data to the server side comprise: and acquiring the configurable data of the page to be generated determined by the user, and sending the acquired configurable data to the server side in a preset uploading period.
3. The method according to claim 1, wherein the page generation request further comprises: a device identification of the first terminal;
the sending the configurable data to the server includes: and sending the configurable data and the equipment identifier of the first terminal to a server.
4. A method for implementing page preview is applied to a second terminal, and is characterized by comprising the following steps:
scanning the two-dimensional code displayed by the first terminal according to a user instruction and analyzing a second page identifier of a preview page carried by the two-dimensional code; or, receiving a password which is input by a user and displayed on the first terminal, and using the password as a second page identifier of the preview page;
sending a page preview request comprising the second page identifier to a server;
receiving the configurable data of the preview page from a server, and displaying the preview page by adopting the configurable data; the configurable data is uploaded to a server by a first terminal, and a first page identifier issued by the server to the first terminal is the same as the second page identifier; the first page identifier is used for uniquely representing a page in the manufacturing process at the server.
5. The method of claim 4, wherein sending a page preview request to a server comprises: sending a page preview request comprising the second page identifier to a server in a preset polling period;
the receiving the configurable data of the preview page from the server, and displaying the preview page by adopting the configurable data includes: and receiving the configurable data of the preview page from the server one by one, and displaying the preview page by adopting the configurable data.
6. The method of claim 4, wherein the page preview request further comprises: a device identification of the second terminal;
the method further comprises the following steps: sending a page preview updating request comprising a second terminal equipment identifier to a server side according to a preset polling period; and receiving the configurable data of the preview page from the server one by one, and refreshing the displayed preview page by adopting the configurable data.
7. A method for realizing page preview is applied to a server side, and is characterized by comprising the following steps:
generating a first page identifier of a page to be generated according to a page generation request of a first terminal, and sending a page generation response carrying the first page identifier to the first terminal; the first page identifier is used for uniquely representing a page in the manufacturing process at the server;
receiving a page preview request which is sent by a second terminal and comprises a second page identifier of a preview page;
receiving configurable data of a page to be generated uploaded by a first terminal;
and sending the configurable data uploaded by the first terminal to a second terminal, wherein a page preview request sent by the second terminal carries a second page identifier which is the same as the first page identifier sent to the first terminal.
8. The method according to claim 7, wherein the generating a first page identifier of a page to be generated comprises: a password is generated corresponding to the page to be generated.
9. The method according to claim 7, wherein the receiving configurable data of the page to be generated uploaded by the first terminal comprises: and receiving configurable data sent by the first terminal in a preset uploading period.
10. The method according to claim 7 or 9, wherein the page generation request further comprises: a device identification of the first terminal;
the receiving configurable data of a page to be generated uploaded by a first terminal comprises the following steps: and receiving the configurable data of the page to be generated uploaded by the first terminal and the equipment identifier of the first terminal.
11. The method according to claim 7, wherein the receiving of the page preview request including the identifier of the second page of the preview page sent by the second terminal comprises: receiving a page preview request which is sent by a second terminal in a preset polling period and comprises a second page identifier;
the sending the configurable data uploaded by the first terminal to the second terminal includes: and after receiving a page preview request of the second terminal every time, sending the configurable data uploaded by the first terminal for the last time to the second terminal.
12. The method of claim 7, wherein the page preview request further comprises: a device identification of the second terminal;
the method further comprises the following steps: and after receiving a page preview updating request which is sent by the second terminal in a preset polling period and comprises the identifier of the second terminal equipment each time, transmitting the configurable data uploaded by the first terminal for the last time to the second terminal.
13. An apparatus for implementing page preview is applied to a first terminal, and is characterized by comprising:
the page generation request unit is used for sending a page generation request to the server and receiving a page generation response returned by the server, wherein the page generation response comprises a first page identifier of a page to be generated; the first page identifier is used for uniquely representing a page in the manufacturing process at the server;
the page identifier providing unit is used for displaying the two-dimensional code carrying the first page identifier on the configurable data input page for the second terminal to scan; or, the password display module is used for displaying the password which is used as the first page identifier and corresponds to the page to be generated on the configurable data input page, so that the user can input the password on the second terminal after obtaining the password;
the configurable data uploading unit is used for acquiring configurable data of a page to be generated, which is determined by a user, sending the configurable data to the server, so that the server can issue the configurable data to a second terminal uploading a second page identifier, and the configurable data is used for previewing the page on the second terminal; the second page identifier is the same as the first page identifier.
14. The apparatus of claim 13, wherein the configurable data upload unit is specifically configured to: and acquiring the configurable data of the page to be generated determined by the user, and sending the acquired configurable data to the server side in a preset uploading period.
15. The apparatus of claim 13, wherein the page generation request further comprises: a device identification of the first terminal;
the configurable data uploading unit is specifically configured to: and acquiring configurable data of the page to be generated determined by the user, and sending the configurable data and the equipment identifier of the first terminal to the server.
16. An apparatus for implementing page preview, applied to a second terminal, is characterized by comprising:
the page identifier acquisition unit is used for scanning the two-dimensional code displayed by the first terminal according to an instruction of a user and analyzing a second page identifier of a preview page carried by the two-dimensional code; or, the second terminal is used for receiving a password which is input by a user and displayed on the first terminal, and the password is used as a second page identifier of the preview page;
a page preview request unit, configured to send a page preview request including the second page identifier to a server;
the configurable data receiving unit is used for receiving the configurable data of the preview page from the server and displaying the preview page by adopting the configurable data; the configurable data is uploaded to a server by a first terminal, and a first page identifier issued by the server to the first terminal is the same as the second page identifier; the first page identifier is used for uniquely representing a page in the manufacturing process at the server.
17. The apparatus according to claim 16, wherein the page preview requesting unit is specifically configured to: sending a page preview request comprising the second page identifier to a server in a preset polling period;
the configurable data receiving unit is specifically configured to: and receiving the configurable data of the preview page from the server one by one, and displaying the preview page by adopting the configurable data.
18. The apparatus of claim 16, wherein the page preview request further comprises: a device identification of the second terminal;
the device further comprises: the page preview updating request unit is used for sending a page preview updating request comprising the second terminal equipment identifier to the server side in a preset polling period; and receiving the configurable data of the preview page from the server one by one, and refreshing the displayed preview page by adopting the configurable data.
19. A device for realizing page preview is applied to a server side, and is characterized by comprising:
the page generation response unit is used for generating a first page identifier of a page to be generated according to a page generation request of the first terminal and sending a page generation response carrying the first page identifier to the first terminal; the first page identifier is used for uniquely representing a page in the manufacturing process at the server;
the page preview request receiving unit is used for receiving a page preview request which is sent by a second terminal and comprises a second page identifier of a preview page;
the uploading configurable data receiving unit is used for receiving configurable data of a page to be generated uploaded by a first terminal;
and the configurable data issuing unit is used for issuing the configurable data uploaded by the first terminal to the second terminal, and the page preview request sent by the second terminal carries a second page identifier which is the same as the first page identifier issued to the first terminal.
20. The apparatus according to claim 19, wherein the page generation response unit is specifically configured to: and generating a password corresponding to the page to be generated according to the page generation request of the first terminal, and sending a page generation response carrying the password to the first terminal.
21. The apparatus according to claim 19, wherein the page preview request receiving unit is specifically configured to: and receiving configurable data sent by the first terminal in a preset uploading period.
22. The apparatus according to claim 19 or 21, wherein the page generation request further comprises: a device identification of the first terminal;
the upload configurable data receiving unit is specifically configured to: and receiving the configurable data of the page to be generated uploaded by the first terminal and the equipment identifier of the first terminal.
23. The apparatus according to claim 19, wherein the page preview request receiving unit is specifically configured to: receiving a page preview request which is sent by a second terminal in a preset polling period and comprises a second page identifier;
the configurable data issuing unit is specifically configured to: and after receiving a page preview request of the second terminal every time, sending the configurable data uploaded by the first terminal for the last time to the second terminal.
24. The apparatus of claim 19, wherein the page preview request further comprises: a device identification of the second terminal;
the device further comprises: and the page preview update response unit is used for issuing the configurable data uploaded by the first terminal for the last time to the second terminal after receiving a page preview update request which is sent by the second terminal in a preset polling period and comprises the identifier of the second terminal equipment each time.
CN201710076907.XA 2017-02-13 2017-02-13 Method and device for realizing page preview Active CN107092634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710076907.XA CN107092634B (en) 2017-02-13 2017-02-13 Method and device for realizing page preview

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710076907.XA CN107092634B (en) 2017-02-13 2017-02-13 Method and device for realizing page preview

Publications (2)

Publication Number Publication Date
CN107092634A CN107092634A (en) 2017-08-25
CN107092634B true CN107092634B (en) 2021-04-27

Family

ID=59648613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710076907.XA Active CN107092634B (en) 2017-02-13 2017-02-13 Method and device for realizing page preview

Country Status (1)

Country Link
CN (1) CN107092634B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021954B (en) * 2017-11-01 2020-06-05 阿里巴巴集团控股有限公司 Method and device for starting business process
CN109543119B (en) * 2018-10-08 2021-04-30 深圳市梦网科技发展有限公司 Page preview system and method
CN109740096B (en) * 2018-12-28 2021-04-20 广州华多网络科技有限公司 Method, device and system for realizing real-time preview and storage medium
CN114978937B (en) * 2021-02-26 2023-09-01 腾讯科技(北京)有限公司 Page data verification method and device
CN113691609B (en) * 2021-08-20 2024-04-09 Oppo广东移动通信有限公司 Data acquisition method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572949A (en) * 2014-12-30 2015-04-29 宋小民 Online store page browsing editing method
CN106096064A (en) * 2016-07-19 2016-11-09 百度在线网络技术(北京)有限公司 For the method and apparatus generating the page

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750372B (en) * 2013-12-25 2019-02-01 华为技术有限公司 A kind of file sharing method and device
CN105608078B (en) * 2014-10-28 2019-03-12 阿里巴巴集团控股有限公司 A kind of method and apparatus of Webpage live preview
CN105991682B (en) * 2015-01-30 2019-12-27 阿里巴巴集团控股有限公司 Data sharing method and device
CN105939369A (en) * 2015-09-09 2016-09-14 广州市动景计算机科技有限公司 Webpage sharing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572949A (en) * 2014-12-30 2015-04-29 宋小民 Online store page browsing editing method
CN106096064A (en) * 2016-07-19 2016-11-09 百度在线网络技术(北京)有限公司 For the method and apparatus generating the page

Also Published As

Publication number Publication date
CN107092634A (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN107092634B (en) Method and device for realizing page preview
US11265378B2 (en) Cloud storage methods and systems
US10212244B2 (en) Information push method, server, user terminal and system
JP6683387B2 (en) Resource sharing method, terminal, and storage medium
CN107479861B (en) Page processing method and system
CN111555961B (en) Message display method and device
US10244065B2 (en) Device pairing for content sharing
US9736143B2 (en) Customized log-in experience
TWI686702B (en) File transmission method and device
CN105991682B (en) Data sharing method and device
CN108076079A (en) A kind of user information obtains system, method and device
CN110730208A (en) Local device calling method and device, storage medium and device
WO2015179246A1 (en) Methods and apparatus for pixel encoded web page
US20150324595A1 (en) Providing access to application data
CN110875932A (en) File uploading method, device and system
CN113535267A (en) Applet page configuration method and device, electronic equipment and storage medium
CN116466935A (en) Template processing method, device, computer equipment and storage medium
CN113742601A (en) Content sharing method and device, computer equipment and storage medium
EP2884410B1 (en) A method of operating a handheld mobile telecommunication device
CN109255082B (en) Page label display method and device
CN111079048A (en) Page loading method and device
CN114611481A (en) Template configuration method and device, computer equipment and storage medium
CN106547792B (en) Picture sharing method and device
CN111241438A (en) Cartoon picture display method and device, computer readable storage medium and computer equipment
CN114911388A (en) Intelligent updating method and communication system for website LOGO icon

Legal Events

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