Specific embodiment
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to this specification embodiment
Technical solution be described in detail, it should be understood that the specific features in this specification embodiment and embodiment are to this explanation
The detailed description of book embodiment technical solution, rather than the restriction to this specification technical solution, in the absence of conflict,
Technical characteristic in this specification embodiment and embodiment can be combined with each other.
In a first aspect, this specification embodiment provides a kind of dialog box component call method, as shown in Figure 1, being this explanation
A kind of flow chart for dialog box component call method that book embodiment provides, method includes the following steps:
Step S11: when detecting the first operation for showing dialog box entrance on current page, work as described in acquisition
The target pages label of the preceding page;
Step S12: according to the target pages label, determining the target display pattern of the dialog box entrance, and by institute
Dialog box entrance is stated to be shown on the current page with the target display pattern;
Step S13: when detecting the second operation for the dialog box entrance, dialog box component is called, to use
Family is interacted by the dialog box component with target object, wherein the target object is positioned at described current page N grades
Object under catalogue, N are positive integer.
Scheme in this specification embodiment is applied in electronic equipment, such as mobile phone, laptop, tablet computer
Deng, can be equipped in electronic equipment Video Applications, stock market application etc. application programs.For each application program, operation
The page can be carried out on the display screen of electronic equipment when application program show that each application program there can be multiple pages to be used for
Display.
It should be noted that current page can be the page of the display screen display of electronic equipment, for example, working as electronic equipment
When current operation Video Applications, if electronic equipment current presentation be Video Applications the video playing page, current page
For the video playing page.It is stock market in application, if electronic equipment current presentation is stock market when electronic equipment is currently running
Market displayed page, then current page is quotations on the stock market displayed page.
In this specification embodiment, dialog box component is the component being independently arranged, i.e., dialog box component is not included in currently
In the component of the page, tangible current page realizes the function of dialog box component by calling after the completion of showing.It should be understood that
Due to needing to call dialog box component in current page, it include the target object that can be interacted in current page, such as
Target object is user, the intelligent assistant of application program etc. in contacts list.Target object can be located at the N of current page
Under grade catalogue, N is positive integer.That is, can be opened and target by clicking one or more levels catalogue in current page
The dialogue page of object.In this specification embodiment, dialog box component is associated with target object, that is, calls in current page
When dialog box component, it can be realized by dialog box component and carry out chat conversations with target object, without opening and target object
The dialogue page.
Above scheme, due to using dialog box component as an independent component, can when calling dialog box component
Not influence the function of the former page, i.e., on the basis of keeping the displaying and dynamic change of the former page, realize and target object
It engages in the dialogue.Further, due to dialog box component be it is associated with the object under N grades of catalogues of current page, pass through we
To the calling of dialog box in case, it can quickly start the interactive function with target object.
In the following, the dialog box component call method provided this specification embodiment is illustrated, firstly, executing step
S11: when detecting the first operation for showing dialog box entrance on current page, the target of the current page is obtained
Page-tag.
In this specification embodiment, dialog box entrance can be shown by the first operation of detection, the first operation can root
It is preset according to being actually needed.For example, first operation can be double-click current page, long-pressing target object option or
It is the dialogue page of long-pressing and target object, can also be other operations, be not specifically limited here.
When detecting the first operation, the page-tag that a step obtains current page is carried out, page-tag can be according to reality
Border needs to be configured, for example, adding label according to content of pages, adding label according to page layout, according to the page
Type adds label etc..
Next, executing step S12: according to the target pages label, determining that the target of the dialog box entrance is shown
Mode, and the dialog box entrance is shown on the current page with the target display pattern.
After target pages label has been determined, the further target display pattern for determining dialog box entrance.In a reality
It applies in example, the corresponding relationship of page-tag and display pattern can be preset, after obtaining target pages label, pass through
Target pages label is searched in corresponding relationship to determine corresponding target display pattern.It is, of course, also possible to use others side
Formula determines the target display pattern of dialog box entrance.Target display pattern may include the display shape of dialog box entrance, show
Show size, display color, display position etc..
Finally, executing step S13: when detecting the second operation for the dialog box entrance, calling dialog box group
Part, so that user is interacted by the dialog box component with target object, wherein the target object is to work as positioned at described
Object under preceding page N grades of catalogues, N is positive integer.
In this specification embodiment, dialog box entrance can be regarded as the call entry of dialog box component, show pair
After talking about frame entrance, dialog box component can be called by the second operation of detection.Second operation can according to actual needs into
Row setting, for example, clicking dialog box entrance or long-pressing dialog box entrance etc..After detecting the second operation, dialogue is called
Frame component.
It should be understood that dialog box component may include input frame and input keyboard, dialog box group is called detecting
When part, input frame and input keyboard can be shown on current page, so that user and target object carry out chat conversations
Equal interacting activities.
In addition, obtaining institute when detecting the first operation for showing dialog box entrance on current page described
Before the target pages label for stating current page, the method also includes: the page is added to each page in default pool of page
Label, wherein include the display page in destination application in the default pool of page.
In the specific implementation process, destination application can be the one or more application journey installed in electronic equipment
Sequence is applied by stock market of destination application, and stock market's application may include that multiple display pages have in this multiple page
The page includes the object that user can talk with chat, and some pages do not include the object that user can talk with chat, for example,
Stock market application in, in some pages contain wealth consultant list, user can by click financial consultant's list in object come
It engages in the dialogue;Some pages are only used for showing stock market's relevant information.
In this specification embodiment, default pool of page can wrap all display pages containing destination application, can also
The page is shown with the part for including destination application.Still by taking stock market applies as an example, it can wrap in default pool of page containing stock
All display pages in city's application, can also only by stock market apply in include that the page of interactive object is added to default page
In the library of face, here without limitation.
For presetting each page in pool of page, addition page-tag is required.Page-tag can be according to practical need
To be configured.For example, adding page-tag according to whether including interactive object in the page, being added according to content of pages
Add page-tag, add page-tag etc. according to page layout.
In the following, be illustrated for adding page-tag according to page type, it is specific the following steps are included: really
The page type of each page in the fixed default pool of page, wherein the page type includes the target viewing area of the page
In domain there are target show content the first kind and the page the destination display area show there is no the target in
The Second Type of appearance;Based on the page type of each page, label addition is carried out to each page.
In this embodiment, destination display area can be any position on the page, for example, destination display area is page
The bottom in face or destination display area are the top of the page, here without limitation.Target shows that content can be according to practical need
It is configured, such as target shows that content is input field, menu bar, tab bar etc..For example, destination display area is page
The bottom in face, target shows that content is tab option column, then having the page on tab option column to be determined as the first kind page bottom
Page bottom is not had the page on tab option column to be determined as Second Type by type, please refers to Fig. 2 and Fig. 3, and Fig. 2 is the first kind
Page schematic diagram, Fig. 2 are the quotations on the stock market displayed page in stock market's application, and there are tab option column below the page, Fig. 3 is
The page schematic diagram of Second Type, Fig. 3 are the quotations on the stock market displayed page in stock market's application, and tab is not present in the lower section of the page
Option column.
Next, the page to every kind of page type adds label.In this specification embodiment, since the page is divided into
The first kind and Second Type, therefore label can also correspond to and be divided into two classes, for distinguishing the above-mentioned two classes page.That is, to first
The page of type adds the first label, adds the second label to the page of Second Type.Certainly, page-tag can also include more
Kind, for example, specifically adding label etc. according to the structure of the page in the first kind page, can carry out according to actual needs
Addition, here without limitation.
It further, can in order to avoid dialog box entrance shows that content is blocked to target for the different types of page
To be arranged the target display pattern of dialog box entrance in the following manner: showing the current page in the target pages label
When the page type in face is the first kind, determine that the target display pattern is icon display mode;In the page object
When face label shows that the page type of the current page is the Second Type, determine that the target display pattern is input frame
Display pattern.
In this specification embodiment, for different page-tags, different display moulds is can be set in dialog box entrance
The corresponding relationship of the display pattern of formula, page-tag and dialog box entrance, which can be, to be pre-set.Still with the above-mentioned first kind
The type page is page bottom there are the page on tab option column, and the Second Type page is that page bottom does not have the page on tab option column
For.When needing to show dialog box entrance on the first kind page, it is assumed that dialog box entrance, which has been set, to be shown in
Page bottom, and dialog box entrance is shown in upper one layer of current page, at this point, if dialog box talks about entrance with the mould of input frame
Formula is shown, then then may accidentally contact tab option column when operating dialog box entrance, that is to say, that tab option column will affect
The operation and displaying of dialog box entrance.
In order to avoid the above problem, when determining that current page type is the first kind by page-tag, by dialog box
Entrance shown with icon display mode, as shown in figure 4, for the schematic diagram of the dialog box entrance under icon display mode,
In Fig. 4, dialog box entrance is the border circular areas for showing " icon " for being shown in page lower left.It is determined by page-tag
When current page type is Second Type, i.e., when page bottom does not have the option column tab, operation dialog box entrance will not be to the former page
When, dialog box entrance directly can be shown with input frame display pattern, as shown in figure 5, for pair under input frame display pattern
The schematic diagram of frame entrance is talked about, in Fig. 5, dialog box entrance is the input frame region being shown in below the page.
It should be noted that above scheme is to show that a kind of mode of dialog box entrance in the specific implementation process can
According to actual needs come the display pattern for the frame entrance that engages in the dialogue.For example, can will be talked with according to the layout and content of the page
Frame entrance is shown in the blank space of current page with preset shape, or do not influence at the position of current page function etc..In addition,
The display pattern of dialog box entrance may include display shape, display position, transparency etc..In one embodiment, dialog box enters
Mouth is suspended in a manner of translucent is shown in the upper layer of current page (such as top set is shown).Certainly, display pattern can also include
Other content, every content can according to need to set, here without limitation.
It should be understood that when dialog box component is called, user can pass through dialog box component in this specification embodiment
Chat conversations are carried out with target object.Therefore, it is necessary to which dialog box component and the target object in current page are associated, with
Make when calling dialog box component, user is interacted by dialog box component with target object.
Dialog box component can be accomplished in several ways with being associated with for target object, for example, pre-setting and talking with
Frame component associated target object can also be realized by the operation of detection user and is associated with target object.
In one embodiment, when detecting that the dialogue page interacted with the target object is opened, by institute
Dialog box component is stated to be associated with the target object.In this embodiment, on the current page that electronic equipment is shown, root
According to path of the target object on current page, the corresponding dialogue page opened with target object can be on the dialogue page
Chat record, input frame, the input keyboard etc. of display and target object.When the dialogue page is opened, by dialog box component
It is associated with target object, that is to say, that when calling dialog box component, user is to carry out chat conversations with the target object
's.
It is, of course, also possible to be associated by other operations to carry out target object with dialog box component, for example, passing through length
According to target object options are associated, or when detecting the operation for the dialogue page for exiting above-mentioned target object, are closed
Connection etc., here without limitation.
In this specification embodiment, the calling of dialog box component be by detect for dialog box entrance second operate come
It realizes, the method after calling dialog box component, in this specification embodiment further include: by the mesh of the dialog box component
Mark sub-component is shown on the current page with the first default display mode, and the target sub-component includes dialogue input frame
Component and input keyboard sub-component.
In the specific implementation process, the first default display mode can be arranged according to actual needs, the first default display
Mode may include that the display mode of each target sub-component to be shown is (including display position, display shape, color, transparent
Degree etc.), such as talk with the display mode of input frame sub-component and the display mode of input keyboard sub-component.In one embodiment
In, after calling dialog box component, dialogue input frame sub-component and input keyboard sub-component are shown in current page
Lower section, as shown in Figure 6.
Further, the method in this specification embodiment further include: received detecting by the dialog box component
Or when sending message, the message is shown on the current page with the second default display mode.
It specifically, can be by being shown in when user is engaged in the dialogue by dialog box component and target object to chat
Text is sent to target pair to input text by the dialogue input frame sub-component and input keyboard sub-component of current page
As, while also can receive the message of target object transmission.In this specification embodiment, message that user sends or receives can be with
It is directly displayed on current page, without opening the original dialogue page interacted with target object.It ensures that and is chatting in this way
While its dialogue, the content dynamic on current page is checked.
In addition, the second default display mode can be configured according to actual needs, in this specification embodiment, in order not to
Influence shows that the second default display mode can be the translucent bubble of barrage pattern, such as Fig. 7 institute to the content of current page
Show, the schematic diagram of message display is carried out for the translucent bubble with barrage pattern that this specification embodiment provides.
It further, can be by current page if it is desired into the original dialogue page interacted with target object
Execute pulling operation so that this dialogue in history message slided on current page, current page show this dialogue
When a piece of news, if also persistently pulled down, the original dialogue page interacted with target object is shown.For example, user thinks
All history chat records with target object are checked, at this point it is possible to make first of current session by lasting pulling operation
Message is shown on current page, if still detecting pulling operation, opens the original dialogue page interacted with target object
Face can check all history chat records on the original dialogue page.
In addition, the scheme in this specification embodiment, after showing dialog box entrance, if being not received by closing pair
The operation for talking about frame entrance, can be always maintained at dialog box entrance and be in display state, even if current page is switched to other pages
When, dialog box entrance also may be displayed on other pages.Which, in this way, not having to the page for considering that user currently checks, all may be used
Quickly to arouse the dialogue function with target object by dialog box entrance.
Scheme in this specification embodiment is applied using dialog box component as an independent used space more
In kind page scene, since in the use process of dialog box component, the message of dialog box entrance and transmitting-receiving be each may lie in
The floating layer page of the page, therefore can be in the case where not influencing former page presentation and dynamic change, realization is chatted with target object
Its dialogue, i.e., the displaying of the former page and dynamic change can carry out simultaneously with chat conversations.In addition, due to this specification embodiment
In be provided with dialog box entrance, the dialog box entrance be equivalent to open dialogue function quick entrance, do not need by repeatedly grasping
Make (such as repeatedly click current page the various menu, search target object option in position of current page etc.) come open with
The dialogue page of target object talks with chat to realize.It only can quick calling dialog box by the operation to dialog box entrance
Component, Lai Huanqi dialogue function and input chat content, therefore enormously simplify operating process.
In order to better understand the dialog box component call method in this specification embodiment, below with stock market using being
Example, the dialog box component call method to provide this specification embodiment are illustrated.
In this embodiment, intelligent assistant is provided in stock market's application, user can inquire by talking with intelligent assistant
Account relevant information, such as account fund, income etc..User can first pass through the page dialog of opening and intelligent assistant's dialogue
Face, so that dialog box component is associated with intelligent assistant.Further, in this embodiment, for the display pair on current page
First operation of words frame entrance can be the operation exited with the dialogue page of intelligent assistant's dialogue, that is, detect that exit this right
When talking about the page, the page-tag of current page is obtained.If page-tag shows that current page is that there are tab options for page bottom
When the first kind page on column, determine that the target display pattern of dialog box entrance is icon display mode, and by dialog box entrance
Display is shown on current page with icon display mode.
Further, when detecting the second operation for clicking dialog box entrance, dialog box component is called, and in current page
Face shows dialogue input frame sub-component and input keyboard sub-component, and user can carry out text volume by input keyboard sub-component
Volume, and by text importing in dialogue input frame sub-component.When the text editted is sent to intelligent assistant by user,
Message is shown on current page in the form of translucent bubble, while when receiving the message of intelligent assistant, will also be received
To message be shown on current page in the form of translucent bubble.
Second aspect, this specification embodiment provides a kind of dialog box component call device, referring to FIG. 8, including:
Module 81 is obtained, for obtaining when detecting the first operation for showing dialog box entrance on current page
Take the target pages label of the current page;
Display module 82, for determining the target display pattern of the dialog box entrance according to the target pages label,
And the dialog box entrance is shown on the current page with the target display pattern;
Processing module 83, for calling dialog box component when detecting the second operation for the dialog box entrance,
So that user is interacted by the dialog box component with target object, wherein the target object is positioned at described current
Object under N grades of catalogues of the page, N is positive integer.
In a kind of optional implementation, described device further include:
Label adding module, for adding page-tag to each page in default pool of page, wherein the default page
It include the display page in destination application in the library of face.
In a kind of optional implementation, the label adding module is used for:
Determine the page type of each page in the default pool of page;
Based on the page type of each page, label addition is carried out to each page.
In a kind of optional implementation, display module 82 is used for:
When the target pages label shows that the page type of the current page is the first kind, the target is determined
Display pattern is icon display mode, and the first kind is that there are targets to show content in the destination display area of the page;
When the target pages label shows that the page type of the current page is Second Type, the target is determined
Display pattern be input frame display pattern, the Second Type be the page the destination display area there is no the target show
Show content.
In a kind of optional implementation, described device further include:
Relating module, for the dialog box component to be associated with the target object, so that described right calling
When talking about frame component, the user is interacted by the dialog box component with the target object.
In a kind of optional implementation, the relating module is used for:
When detecting that the dialogue page interacted with the target object is opened, by the dialog box component and institute
Target object is stated to be associated.
In a kind of optional implementation, described device further include:
Component display module, for showing the target sub-component of the dialog box component with the first default display mode
On the current page, the target sub-component includes dialogue input frame sub-component and input keyboard sub-component.
In a kind of optional implementation, described device further include:
Message display module, for detect message is received or sent by the dialog box component when, disappear described
Breath is shown on the current page with the second default display mode.
About above-mentioned apparatus, wherein the concrete function of modules is in dialog box component provided in an embodiment of the present invention
It is described in detail in the embodiment of call method, no detailed explanation will be given here.
The third aspect is based on inventive concept same as dialog box component call method in previous embodiment, and the present invention is also
A kind of server is provided, as shown in figure 9, including memory 604, processor 602 and being stored on memory 604 and can handle
The computer program run on device 602, the processor 602 realize previously described dialog box component tune when executing described program
The step of with method.
Wherein, in Fig. 9, bus architecture (is represented) with bus 600, and bus 600 may include any number of interconnection
Bus and bridge, bus 600 will include the one or more processors represented by processor 602 and what memory 604 represented deposits
The various circuits of reservoir link together.Bus 600 can also will peripheral equipment, voltage-stablizer and management circuit etc. it
Various other circuits of class link together, and these are all it is known in the art, therefore, no longer carry out further to it herein
Description.Bus interface 606 provides interface between bus 600 and receiver 601 and transmitter 603.Receiver 601 and transmitter
603 can be the same element, i.e. transceiver, provide the unit for communicating over a transmission medium with various other devices.Place
It manages device 602 and is responsible for management bus 600 and common processing, and memory 604 can be used for storage processor 602 and execute behaviour
Used data when making.
Fourth aspect, based on the inventive concept based on dialog box component call method in previous embodiment, the present invention also
A kind of computer readable storage medium is provided, computer program is stored thereon with, is realized above when which is executed by processor
Described the step of being based on dialog box component call method.
This specification is referring to the method, equipment (system) and computer program product according to this specification embodiment
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute
In setting for the function that realization is specified in one or more flows of the flowchart and/or one or more blocks of the block diagram
It is standby.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of equipment, the commander equipment realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.