A data processing method and device based on bullet screen
By introducing barrage and dialog functions into the shopping process of e-commerce platforms, the problem of lack of social attributes in the shopping process is solved, and users' immersive shopping experience during online shopping is realized.
Patent Information
- Application Number
- CN202010737524.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-28
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2040-07-28
AI Technical Summary
The existing e-commerce platforms lack social attributes in the shopping process, which makes it impossible for users to experience the feeling of shopping with friends during the purchase process.
By displaying the barrage on the page and receiving the barrage click event to display the dialog box, users can have real-time conversations with members in the dialog box and upload dialogue records in real-time to the server.
It has added social attributes in the shopping process, allowing users to have a shopping experience shopping with friends while shopping online, and improving the overall shopping experience and user stickiness.
Smart Images

Figure CN113761317B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data processing method and device based on bullet screen. Background Art
[0002] With the rapid development of the e-commerce industry, people's living habits have also changed. Instead of spending a whole block of time shopping, they can use their spare time to place online orders, which greatly facilitates users' lives.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] Currently, each e-commerce platform can attract traffic to the e-commerce platform through social methods such as sharing on social applications, but after entering the purchase process, the social methods are not fully integrated into the shopping process, resulting in users not feeling immersed in the mall during the purchase process. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a data processing method and device based on barrage to solve the technical problem that the shopping process lacks social attributes.
[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a data processing method based on barrage is provided, comprising:
[0007] Obtain bullet comments from the server and display them on the page;
[0008] Receiving a click event of any bullet screen on the page, displaying a dialog box on the page, and thus conducting a conversation with members in the dialog box;
[0009] The conversation record in the dialog box is uploaded to the server in real time.
[0010] Optionally, obtaining the bullet comment from the server and displaying the bullet comment on the page includes:
[0011] Receive a keyword query request, and obtain page data and bullet comments corresponding to the keyword from the server;
[0012] The page data and the bullet comments are displayed on the page.
[0013] Optionally, obtaining the bullet comment from the server and displaying the bullet comment on the page includes:
[0014] Receive a browsing request for an item page, and obtain a bullet comment corresponding to the item page from a server;
[0015] The bullet comment is displayed on the item page.
[0016] Optionally, after displaying the dialog box on the page, the method further includes:
[0017] Displaying a pop-up window on the page, the pop-up window including a member list, the member list being used to display each member in the dialog box;
[0018] The identifier of the dialog box and the page data of the page are forwarded to the target user through the server, so as to conduct a dialogue with the target user in the dialog box.
[0019] Optionally, the pop-up window also includes a search box;
[0020] After the pop-up window is displayed on the page, the following is also included:
[0021] Receiving a query request for search content input through the search box, and obtaining page data corresponding to the search content from the server; wherein the search content includes an item name or a store name;
[0022] Displaying a drop-down list below the search box, and displaying the page data in the drop-down list;
[0023] A click event of any page data in the drop-down list is received, and the any page data is displayed in the dialog box.
[0024] Optionally, displaying the page data in the drop-down list includes:
[0025] Encapsulate the page data corresponding to the search content into a json object, and display the json object corresponding to the page data in the drop-down list;
[0026] Receiving a click event of any page data in the drop-down list, and displaying the any page data in the dialog box, comprises:
[0027] Receive a click event of a json object corresponding to any one of the page data in the drop-down list, convert the json object corresponding to the any one of the page data into page data in html format, and display the page data in html format in the dialog box.
[0028] Optionally, it also includes:
[0029] Receive a message sent by a target user through a server, wherein the message carries a dialog box identifier and page data;
[0030] Receive a click event of the message, display the page data on the current page, display a dialog box on the current page, obtain a conversation record corresponding to the dialog box from the server, display the conversation record in the dialog box, and thus conduct a conversation with the target user.
[0031] In addition, according to another aspect of an embodiment of the present invention, a data processing device based on barrage is provided, comprising:
[0032] The bullet comment module is used to obtain bullet comments from the server and display them on the page;
[0033] A dialogue module, used to receive a click event of any bullet screen on the page, and display a dialog box on the page, so as to conduct a dialogue with the members in the dialog box;
[0034] The uploading module is used to upload the conversation record in the dialog box to the server in real time.
[0035] Optionally, the bullet screen module is further used for:
[0036] Receive a keyword query request, and obtain page data and bullet comments corresponding to the keyword from the server;
[0037] The page data and the bullet comments are displayed on the page.
[0038] Optionally, the bullet screen module is further used for:
[0039] Receive a browsing request for an item page, and obtain a bullet comment corresponding to the item page from a server;
[0040] The bullet comment is displayed on the item page.
[0041] Optionally, the dialogue module is further used for:
[0042] After the dialog box is displayed on the page, a pop-up window is displayed on the page, wherein the pop-up window includes a member list, and the member list is used to display each member in the dialog box;
[0043] The identifier of the dialog box and the page data of the page are forwarded to the target user through the server, so as to conduct a dialogue with the target user in the dialog box.
[0044] Optionally, the pop-up window also includes a search box;
[0045] The dialogue module is also used to:
[0046] After the pop-up window is displayed on the page, a query request for search content input through the search box is received, and page data corresponding to the search content is obtained from the server; wherein the search content includes an item name or a store name;
[0047] Displaying a drop-down list below the search box, and displaying the page data in the drop-down list;
[0048] A click event of any page data in the drop-down list is received, and the any page data is displayed in the dialog box.
[0049] The dialogue module is also used to:
[0050] Encapsulate the page data corresponding to the search content into a json object, and display the json object corresponding to the page data in the drop-down list;
[0051] Receive a click event of a json object corresponding to any one of the page data in the drop-down list, convert the json object corresponding to the any one of the page data into page data in html format, and display the page data in html format in the dialog box.
[0052] The dialogue module is also used to:
[0053] Receive a message sent by a target user through a server, wherein the message carries a dialog box identifier and page data;
[0054] Receive a click event of the message, display the page data on the current page, display a dialog box on the current page, obtain a conversation record corresponding to the dialog box from the server, display the conversation record in the dialog box, and thus conduct a conversation with the target user.
[0055] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including:
[0056] one or more processors;
[0057] a storage device for storing one or more programs,
[0058] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.
[0059] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0060] An embodiment of the above invention has the following advantages or beneficial effects: because it adopts the technical means of displaying bullet screen on the page, receiving the click event of any bullet screen on the page, displaying a dialog box on the page, and thus communicating with the members in the dialog box, it overcomes the technical problem of the lack of social attributes in the shopping process in the prior art. The embodiment of the present invention adds social attributes to the shopping process through bullet screens and dialog boxes, so that users can have the shopping experience of shopping in a mall with friends while shopping online. The embodiment of the present invention can enhance the overall shopping experience, make the social and e-commerce platforms more closely integrated, and thus bring users a more immersive shopping experience.
[0061] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0063] Figure 1 is a schematic diagram of the main process of the data processing method based on barrage according to an embodiment of the present invention;
[0064] Figure 2 is a schematic diagram of displaying bullet comments on a page according to an embodiment of the present invention;
[0065] Figure 3 is a schematic diagram of displaying bullet comments on a page according to another embodiment of the present invention;
[0066] Figure 4 is a schematic diagram of displaying a dialog box and a pop-up window on a page according to an embodiment of the present invention;
[0067] Figure 5 is a schematic diagram of the main process of a data processing method based on barrage according to a reference embodiment of the present invention;
[0068] Figure 6 is a schematic diagram of displaying a dialog box and a pop-up window on a page according to another embodiment of the present invention;
[0069] Figure 7 is a schematic diagram of main modules of a data processing device based on barrage according to an embodiment of the present invention;
[0070] Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0071] Fig. 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0072] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0073] Figure 1 Schematic diagram of the main flow of the data processing method based on bullet screen according to an embodiment of the present invention. Figure 1 As shown, the data processing method based on barrage may include:
[0074] Step 101, obtain the bullet comment from the server and display the bullet comment on the page.
[0075] You can use the front-end js framework (such as the Jquery framework) to implement the bullet message sending box. Each user can enter the bullet message in the bullet message sending box. After the bullet message content is submitted, it will be uploaded to the message queue on the server (such as Kafka). Kafka is a high-throughput distributed publish-subscribe messaging system that can process all action stream data of consumers on the website. Jquery: Encapsulates the commonly used functional codes of JavaScript, provides a simple JavaScript design mode, and optimizes HTML document operations, event processing, animation design, and Ajax interaction.
[0076] When the user is browsing the page, he can get the barrage from the server in real time and display it on the current page. Specifically, the page and the web application on the server use the WebSocket long connection method to pull the barrage messages from the message queue in real time, so as to display the barrage on the page in real time through the js framework and dom (Document Object Model) rendering. Among them, the web application can be built using java. WebSocket is a new protocol added to HTML5. Its purpose is to establish an unrestricted two-way communication channel between the browser and the server. For example, the server can send messages to the browser at any time.
[0077] Optionally, obtaining a bullet screen from a server and displaying the bullet screen on a page includes: receiving a query request for a keyword, obtaining page data and bullet screen corresponding to the keyword from a server; and displaying the page data and bullet screen on the page. Figure 2As shown, the user enters a keyword in the search box of the page, the terminal receives the keyword entered by the user, sends the keyword to the server, thereby obtaining the search results (i.e., page data) and barrage corresponding to the keyword from the server, and then displays these page data and corresponding barrage on the page.
[0078] Optionally, obtaining the bullet comments from the server and displaying the bullet comments on the page includes: receiving a browsing request for an item page, obtaining the bullet comments corresponding to the item page from the server; and displaying the bullet comments on the item page. Figure 2 After the item is displayed, the terminal obtains the page data of the item from the server and displays the page data of the item on the page, such as Figure 3 At the same time, when the user browses the item page, the terminal also obtains the bullet screen corresponding to the item page from the server, so as to display the bullet screen on the item page.
[0079] It should be noted that, in another embodiment of the present invention, when the user clicks Figure 2 After the item is displayed, the terminal obtains the page data and bullet comments of the item from the server, and displays the page data and bullet comments of the item on the page, such as Figure 3 shown.
[0080] Step 102, receiving a click event of any bullet screen on the page, displaying a dialog box on the page, and thus conducting a conversation with the members in the dialog box.
[0081] When the user clicks on any bullet screen on the page, the terminal displays a dialog box on the page in response to the user's operation of clicking the bullet screen, so as to have a conversation with other members in the dialog box. It should be noted that if the dialog box is established for the first time, the server will assign it an ID, and all conversation records based on the dialog box will be associated with the ID and stored on the server, so that the previous context can be seen as long as the dialog box is entered.
[0082] If the dialog box is not created for the first time, after the dialog box is displayed on the page, all conversation records associated with the dialog box ID are pulled from the server-side web application and displayed in the dialog box so that each member in the dialog box can see the previous context.
[0083] Alternatively, you can use the click event of the Jquery framework to implement the click, thereby displaying a dialog box on the page, such as Figure 4 Then, all the conversation records corresponding to the dialog box obtained from the server are displayed in the dialog box, and the user can have a conversation with other members in the dialog box, such as Figure 4 shown.
[0084] Step 103, uploading the conversation record in the dialog box to the server in real time.
[0085] Users who enter the dialog box are all members of the dialog box, and can have conversations with other members in the dialog box. The terminal uploads the conversation record in real time, and the server updates the conversation record corresponding to the dialog box ID in real time. Optionally, when there is a new conversation record in the dialog box, the server will also send a message reminder to other members in the dialog box so that other members can have a conversation in time.
[0086] Optionally, after displaying the dialog box on the page, the method further includes: displaying a pop-up window on the page, wherein the pop-up window includes a member list, wherein the member list is used to display each member in the dialog box; forwarding the dialog box identifier and the page data of the page to the target user through the server, so as to conduct a conversation with the target user in the dialog box. Figure 4 As shown, while a dialog box is displayed on the page, a pop-up window is also displayed on the page, and the pop-up window includes a member list, that is, each member in the dialog box. When the user chooses to forward the conversation record and page data to a friend (i.e., the target user), the terminal sends an instruction to the server to forward the dialog box identifier and page data to the target user. The server sends the dialog box identifier and page data to the target user. After the target user receives the dialog box identifier and page data, the page data is displayed on the current page of the target user, and a dialog box is displayed on the page, and then all conversation records corresponding to the dialog box identifier are obtained from the server and displayed in the dialog box. Therefore, the target user becomes a member in the dialog box and can have a conversation with the user.
[0087] Optionally, the method further includes: receiving a message sent by the target user through the server, the message carrying the dialog box identifier and page data; in response to the user clicking on the message, displaying the page data on the current page, and displaying a dialog box on the current page to have a conversation with the target user in the dialog box. The user can not only forward the dialog box identifier and page data to the target user (such as a friend), but also receive the dialog box identifier and page data forwarded by the target user. Figure 3 As shown, a message can be displayed in the lower left corner. When the user clicks the message, the page data is displayed on the current page, and a dialog box is displayed on the current page. Then, all the conversation records corresponding to the dialog box identifier are obtained from the server and displayed in the dialog box. Therefore, the user becomes a member of the dialog box and can have a conversation with the target user.
[0088] According to the various embodiments described above, it can be seen that the embodiments of the present invention solve the technical problem of the lack of social attributes in the shopping process in the prior art by displaying barrages on the page, receiving click events of any barrage on the page, and displaying a dialog box on the page, thereby communicating with the members in the dialog box. The embodiments of the present invention add social attributes to the shopping process through barrages and dialog boxes, so that users can have the shopping experience of shopping in a mall with friends while shopping online. The embodiments of the present invention can enhance the overall shopping experience, make social and e-commerce platforms more closely integrated, and thus bring users a more immersive shopping experience.
[0089] Figure 5 Schematic diagram of the main flow of a data processing method based on bullet screen according to a reference embodiment of the present invention. As another embodiment of the present invention, Figure 5 As shown, the data processing method based on barrage may include:
[0090] Step 501, obtain the bullet comment from the server and display the bullet comment on the page.
[0091] Each user can enter a bullet comment in the bullet comment sending box, and the bullet comment content will be uploaded to the message queue of the server after submission. When the user browses the page, the bullet comment can be obtained from the server in real time and displayed on the current page.
[0092] like Figure 2 As shown, the user enters a keyword in the search box of the page, the terminal receives the query request for the keyword, sends the keyword to the server, thereby obtaining the search results (i.e., page data) and barrage corresponding to the keyword from the server, and then displays these page data and corresponding barrage on the page.
[0093] When the user clicks Figure 2 After the item is displayed, the terminal obtains the page data of the item from the server and displays the page data of the item on the page, such as Figure 3 At the same time, when the user browses the item page, the terminal also obtains the bullet screen corresponding to the item page from the server, so as to display the bullet screen on the item page.
[0094] Step 502, receiving a click event of any bullet screen on the page, displaying a dialog box on the page, thereby having a conversation with the members in the dialog box, and uploading the conversation record in the dialog box to the server in real time.
[0095] When the user clicks on any bullet screen on the page, the terminal displays a dialog box on the page in response to the user's operation of clicking the bullet screen, so as to have a conversation with other members in the dialog box. It should be noted that if the dialog box is established for the first time, the server will assign it an ID, and all conversation records based on the dialog box will be associated with the ID and stored on the server, so that the previous context can be seen as long as the dialog box is entered.
[0096] If the dialog box is not created for the first time, after the dialog box is displayed on the page, all conversation records associated with the dialog box ID are pulled from the server-side web application and displayed in the dialog box so that each member in the dialog box can see the previous context.
[0097] Users who enter the dialog box are all members of the dialog box and can have conversations with other members in the dialog box. The terminal uploads the conversation record in real time, and the server updates the conversation record corresponding to the dialog box ID in real time.
[0098] Step 503: display a pop-up window on the page.
[0099] like Figure 6 As shown, while the dialog box is displayed on the page, a pop-up window is also displayed on the page, the pop-up window includes a member list and a search box, and the member list is used to display each member in the dialog box.
[0100] Optionally, after step 503, the identifier of the dialog box and the page data of the page can be forwarded to the target user through the server, so as to have a conversation with the target user in the dialog box. When the user chooses to forward the conversation record and page data to a friend (i.e., the target user), the terminal sends an instruction to the server to forward the dialog box identifier and page data to the target user. The server sends the dialog box identifier and page data to the target user. After the target user receives the dialog box identifier and page data, the page data is displayed on the current page of the target user, and the dialog box is displayed on the page, and then all conversation records corresponding to the dialog box identifier are obtained from the server and displayed in the dialog box. Therefore, the target user becomes a member in the dialog box and can have a conversation with the user.
[0101] Step 504: Receive a query request for search content input through the search box, and obtain page data corresponding to the search content from the server. The search content includes an item name or a store name.
[0102] The search box and search button can be implemented using the js framework. The user can enter the search content in the input box, such as the name of an item or the name of a store. After receiving the search content entered by the user in the search box, the terminal asynchronously calls the http interface of the item background or search background to obtain the page data corresponding to the search content, such as item information or store information.
[0103] Step 505: display a drop-down list below the search box, and display the page data in the drop-down list.
[0104] like Figure 6 As shown, after obtaining the page data from the server, a drop-down list is displayed below the search box, and each obtained page data is displayed in the drop-down list. Optionally, displaying the page data in the drop-down list includes: encapsulating the page data corresponding to the search content into a json object, and displaying the json object corresponding to the page data in the drop-down list. In an embodiment of the present invention, the terminal encapsulates the obtained page data into json objects respectively, and displays the json objects corresponding to each page data in a drop-down list.
[0105] Step 506: receiving a click event of any page data in the drop-down list, and displaying the any page data in the dialog box.
[0106] Optionally, step 507 may include: receiving a click event of a json object corresponding to any one of the page data in the drop-down list, converting the json object corresponding to any one of the page data into page data in html format, and displaying the page data in html format in the dialog box. When the user selects the json object corresponding to any one of the page data in the drop-down list, the terminal uses the js framework and dom rendering method to convert the json object into page data in html format, and displays the page data in html format in the dialog box. After the members of the dialog box click the page data in html format in the dialog box, the item page or store page can be displayed on the current page. Therefore, each member in the dialog box can send item information and store information to other members in the dialog box, realize the function of helping to consult items and stores, and recommending items and stores, and achieve the effect of shopping with friends.
[0107] Therefore, the embodiments of the present invention can bring social attributes into the shopping process, giving users a more immersive shopping experience, thereby increasing the activity and user stickiness of the shopping website.
[0108] In addition, the specific implementation content of the data processing method based on barrage in a reference embodiment of the present invention has been described in detail in the data processing method based on barrage described above, so the repeated content will not be described here.
[0109] Figure 7 is a schematic diagram of main modules of a data processing device based on bullet screen according to an embodiment of the present invention. Figure 7 As shown, the barrage-based data processing device 700 includes a barrage module 701, a dialogue module 702 and an upload module 703; wherein the barrage module 701 is used to obtain barrages from the server and display the barrages on the page; the dialogue module 702 is used to receive a click event of any barrage on the page, display a dialog box on the page, and thus conduct a dialogue with the members in the dialog box; the upload module 703 is used to upload the dialogue records in the dialog box to the server in real time.
[0110] Optionally, the bullet screen module 701 is further used for:
[0111] Receive a keyword query request, and obtain page data and bullet comments corresponding to the keyword from the server;
[0112] The page data and the bullet comments are displayed on the page.
[0113] Optionally, the bullet screen module 701 is further used for:
[0114] Receive a browsing request for an item page, and obtain a bullet comment corresponding to the item page from a server;
[0115] The bullet comment is displayed on the item page.
[0116] Optionally, the dialogue module 702 is further used for:
[0117] After the dialog box is displayed on the page, a pop-up window is displayed on the page, wherein the pop-up window includes a member list, and the member list is used to display each member in the dialog box;
[0118] The identifier of the dialog box and the page data of the page are forwarded to the target user through the server, so as to conduct a dialogue with the target user in the dialog box.
[0119] Optionally, the pop-up window also includes a search box;
[0120] The dialogue module 702 is also used for:
[0121] After the pop-up window is displayed on the page, a query request for search content input through the search box is received, and page data corresponding to the search content is obtained from the server; wherein the search content includes an item name or a store name;
[0122] Displaying a drop-down list below the search box, and displaying the page data in the drop-down list;
[0123] A click event of any page data in the drop-down list is received, and the any page data is displayed in the dialog box.
[0124] The dialogue module 702 is also used for:
[0125] Encapsulate the page data corresponding to the search content into a json object, and display the json object corresponding to the page data in the drop-down list;
[0126] Receive a click event of a json object corresponding to any one of the page data in the drop-down list, convert the json object corresponding to the any one of the page data into page data in html format, and display the page data in html format in the dialog box.
[0127] The dialogue module 702 is also used for:
[0128] Receive a message sent by a target user through a server, wherein the message carries a dialog box identifier and page data;
[0129] Clicking the click event of the message, displaying the page data on the current page, displaying a dialog box on the current page, obtaining a conversation record corresponding to the dialog box from the server, and displaying the conversation record in the dialog box, thereby conducting a conversation with the target user.
[0130] According to the various embodiments described above, it can be seen that the embodiments of the present invention solve the technical problem of the lack of social attributes in the shopping process in the prior art by displaying barrages on the page, and displaying a dialog box on the page in response to a click event of any barrage on the page, thereby conducting a conversation with the members in the dialog box. The embodiments of the present invention add social attributes to the shopping process through barrages and dialog boxes, so that users can have the shopping experience of shopping in a mall with friends while shopping online. The embodiments of the present invention can enhance the overall shopping experience, make social and e-commerce platforms more closely integrated, and thus bring users a more immersive shopping experience.
[0131] It should be noted that the specific implementation content of the barrage-based data processing device of the present invention has been described in detail in the above-mentioned barrage-based data processing method, so the repeated content will not be described here.
[0132] Figure 8 An exemplary system architecture 800 is shown to which a method for processing data based on a bullet screen or a device for processing data based on a bullet screen according to an embodiment of the present invention can be applied.
[0133] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0134] Users can use terminal devices 801, 802, and 803 to interact with server 805 through network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0135] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0136] The server 805 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 801, 802, and 803. The backend management server may analyze and process the received data such as the item information query request, and feed back the processing results (such as target push information, item information - only an example) to the terminal device.
[0137] It should be noted that the data processing method based on barrage provided in the embodiment of the present invention is executed by the terminal devices 801 , 802 , and 803 , and accordingly, the data processing device based on barrage is arranged in the terminal devices 801 , 802 , and 803 .
[0138] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0139] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 of a terminal device suitable for implementing an embodiment of the present invention. Fig. 9 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0140] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0141] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.
[0142] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present invention are executed.
[0143] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0144] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0145] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a bullet screen module, a dialogue module, and an upload module, wherein the names of these modules do not constitute a limitation on the modules themselves in some cases.
[0146] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device implements the following method: obtaining bullet screens from a server and displaying the bullet screens on a page; receiving a click event of any bullet screen on the page, displaying a dialog box on the page, and thus having a conversation with the members in the dialog box; uploading the conversation records in the dialog box to the server in real time.
[0147] According to the technical solution of the embodiment of the present invention, the technical problem of the lack of social attributes in the shopping process in the prior art is overcome because the technical means of displaying bullet screens on the page, receiving click events of any bullet screen on the page, and displaying a dialog box on the page are adopted to communicate with the members in the dialog box. The embodiment of the present invention adds social attributes to the shopping process through bullet screens and dialog boxes, so that users can have the shopping experience of shopping in a mall with friends while shopping online. The embodiment of the present invention can enhance the overall shopping experience, make social and e-commerce platforms more closely integrated, and thus bring users a more immersive shopping experience.
[0148] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data processing method based on barrage, characterized in that: include: Obtain bullet comments from the server and display them on the page; Receiving a click event of any bullet screen on the page, displaying a dialog box on the page, and thus conducting a conversation with members in the dialog box; Uploading the conversation record in the dialog box to the server in real time; After showing the dialog on said page, also include: Displaying a pop-up window on the page, the pop-up window including a member list, the member list being used to display each member in the dialog box; forwarding the identifier of the dialog box and the page data of the page to the target user through the server, so as to conduct a conversation with the target user in the dialog box; Also includes: Receive a message sent by a target user through a server, wherein the message carries a dialog box identifier and page data; Receiving a click event of the message, displaying the page data on the current page, displaying a dialog box on the current page, obtaining a conversation record corresponding to the dialog box from the server, and displaying the conversation record in the dialog box, thereby conducting a conversation with the target user; The pop-up window also includes a search box; After the pop-up window is displayed on the page, the following is also included: Receiving a query request for search content input through the search box, and obtaining page data corresponding to the search content from the server; wherein the search content includes an item name or a store name; Displaying a drop-down list below the search box, and displaying the page data in the drop-down list; A click event of any page data in the drop-down list is received, and the any page data is displayed in the dialog box.
2. The method according to claim 1, characterized in that Obtain bullet comments from the server and display them on the page, including: Receive a keyword query request, and obtain page data and bullet comments corresponding to the keyword from the server; The page data and the bullet comments are displayed on the page.
3. The method according to claim 1, characterized in that: Obtain bullet comments from the server and display them on the page, including: Receive a browsing request for an item page, and obtain a bullet comment corresponding to the item page from a server; The bullet comment is displayed on the item page.
4. The method according to claim 1, characterized in that: Displaying the page data in the drop-down list includes: Encapsulate the page data corresponding to the search content into a json object, and display the json object corresponding to the page data in the drop-down list; Receiving a click event of any page data in the drop-down list, and displaying the any page data in the dialog box, comprises: Receive a click event of a json object corresponding to any one of the page data in the drop-down list, convert the json object corresponding to the any one of the page data into page data in html format, and display the page data in html format in the dialog box.
5. A data processing device based on barrage, characterized in that: include: The bullet comment module is used to obtain bullet comments from the server and display them on the page; A dialogue module, used to receive a click event of any bullet screen on the page, and display a dialog box on the page, so as to conduct a dialogue with the members in the dialog box; An uploading module, used for uploading the conversation record in the dialog box to the server in real time; The dialogue module is also used to: After the dialog box is displayed on the page, a pop-up window is displayed on the page, wherein the pop-up window includes a member list, and the member list is used to display each member in the dialog box; forwarding the identifier of the dialog box and the page data of the page to the target user through the server, so as to conduct a conversation with the target user in the dialog box; The dialogue module is also used to: Receive a message sent by a target user through a server, wherein the message carries a dialog box identifier and page data; Receiving a click event of the message, displaying the page data on the current page, displaying a dialog box on the current page, obtaining a conversation record corresponding to the dialog box from the server, and displaying the conversation record in the dialog box, thereby conducting a conversation with the target user; The pop-up window also includes a search box; The dialogue module is also used to: After the pop-up window is displayed on the page, a query request for search content input through the search box is received, and page data corresponding to the search content is obtained from the server; wherein the search content includes an item name or a store name; Displaying a drop-down list below the search box, and displaying the page data in the drop-down list; A click event of any page data in the drop-down list is received, and the any page data is displayed in the dialog box.
6. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
7. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Bullet screen social method and device
CN108966032A