CN108287643B - Page layout adjustment method and device - Google Patents

Page layout adjustment method and device Download PDF

Info

Publication number
CN108287643B
CN108287643B CN201711329413.4A CN201711329413A CN108287643B CN 108287643 B CN108287643 B CN 108287643B CN 201711329413 A CN201711329413 A CN 201711329413A CN 108287643 B CN108287643 B CN 108287643B
Authority
CN
China
Prior art keywords
data
page
long
dimension
icon
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
CN201711329413.4A
Other languages
Chinese (zh)
Other versions
CN108287643A (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.)
Beijing Jindi Technology Co Ltd
Original Assignee
Beijing Jindi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jindi Technology Co Ltd filed Critical Beijing Jindi Technology Co Ltd
Priority to CN201711329413.4A priority Critical patent/CN108287643B/en
Publication of CN108287643A publication Critical patent/CN108287643A/en
Application granted granted Critical
Publication of CN108287643B publication Critical patent/CN108287643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Abstract

The embodiment of the invention discloses a method and a device for adjusting page layout, wherein after a page is adjusted to enter an editing state, if long-time pressing operation is detected, whether the time of the long-time pressing operation is greater than first preset time is judged, and if yes, a target data dimension icon at the position where the long-time pressing operation is located is directly moved to a first display position under data classification of the long-time pressing operation. According to the method, after the long-time of the long-time pressing operation meets the condition, the target data dimension icon is directly moved to the first position, the dragging operation for moving the target data dimension icon is omitted, the operation is convenient, the realization is easy, and the efficiency is high. By the method, the user can self-define the layout of the adjustment page through simple operation, so that the adjustment page provides more effective information, the user experience is improved, and the utilization rate of the page is improved.

Description

Page layout adjustment method and device
Technical Field
The embodiment of the invention relates to the technical field of computer display, in particular to a method and a device for adjusting page layout.
Background
Different users have different requirements and needs for products, and the attention degrees of users in different industries to companies are different, so that the requirements are obviously reflected on enterprise detail pages. The enterprises are divided into different types, the enterprises of different types have different characteristics, and the optimized display mode can enable the user to find the concerned data dimension better and faster, so that better user experience can be provided. And the part which is not frequently used by the user is removed to a certain extent, so that the page is tidier, the utilization rate of the page is improved, and the participation sense of the user is enhanced.
However, in the current custom page editing operation of the mobile phone, a user needs to press a module/icon for activation and then drag the module/icon, and the method has the defect that the method is inconvenient when the current icon needs to be moved to a position far away from the current screen or other pages. This method often causes the finger to disengage from the screen during the sliding drag process, which results in the icon returning to its original position or entering an undesired position, and requiring a second drag to adjust. For example, in an enterprise detail page, the information amount is large, and the user often needs to slide up and down for a long time to reach a required position, so that the error rate is improved when the user needs to perform personalized page adjustment, the efficiency is low, and the user experience is poor.
In the process of implementing the embodiment of the invention, the inventor finds that the conventional method for adjusting the page layout of the display page in the display page needs to be implemented in a dragging mode, and the method has the advantages of high error rate, inconvenience in operation and low efficiency.
Disclosure of Invention
The invention aims to solve the technical problems that the conventional method for adjusting the page layout of a display page in the display page needs to be realized in a dragging mode, and the method has high error rate, inconvenient operation and low efficiency.
In view of the above technical problems, an embodiment of the present invention provides a method for adjusting a page layout, including:
after the page is adjusted to enter the editing state, judging whether long-press operation is detected, if so, acquiring a data dimension icon at the position of the long-press operation as a target data dimension icon;
judging whether the long-press time of the long-press operation is greater than a first preset time, if so, acquiring a data classification to which the target data dimension icon belongs and a display position for displaying the data dimension icon belonging to the data classification;
under a preset arrangement sequence, acquiring a position at the head from the display positions to serve as the head position, and moving the target data dimension icon to the head position;
the data classification is a classification for classifying data of a preset data source, the data in each data classification is divided according to dimensions, and the dimension data in each dimension corresponds to one data dimension icon in the data classification.
Optionally, the method further comprises:
judging whether the long-time is longer than a second preset time, if so, acquiring title dimension data which is selected from the dimension data corresponding to the target data dimension icon and is used for displaying on a home page of the adjustment page;
and generating a target display position on the home page of the adjustment page, and displaying the target data dimension icon and the title dimension data at the target display position.
Optionally, the first preset time belongs to [1.5s, 3s ], and the second preset time belongs to [4s, 6s ].
Optionally, the first preset time is 2s, and the second preset time is 4s or 5 s;
alternatively, the first and second electrodes may be,
the first preset time is 2.5s, and the second preset time is 4s or 5 s.
Optionally, the method further comprises: acquiring data dimension icons except the target data dimension icon in the data dimension icons, and using the data dimension icons as to-be-adjusted data dimension icons needing to be subjected to display position adjustment when the target data dimension icon is moved to the first position;
and for each data dimension icon to be adjusted, acquiring a display position where the data dimension icon to be adjusted is located before the target data dimension icon is moved to the head position as a pre-adjustment position, acquiring a display position which is adjacent to the pre-adjustment position in the preset arrangement sequence and is located behind the pre-adjustment position as a post-adjustment position, and moving the data dimension icon to be adjusted from the pre-adjustment position to the post-adjustment position.
Optionally, after the adjusting page enters the editing state, the method further includes:
if the target data dimension icon is detected to trigger a deleting operation, deleting the target data dimension;
if the trigger operation of the preset storage key is detected, storing the display position of each data dimension icon in the current time adjustment page;
and if the trigger operation of the preset restoring key is detected, acquiring the adjustment page which is stored for the last time before the adjustment page at the current moment is stored, taking the adjustment page as a restoring page, and displaying the restoring page.
Optionally, after the adjusting page enters the editing state, determining whether a long press operation is detected includes:
after detecting that long-time pressing operation is carried out on a displayed adjusting page or triggering operation is carried out on a preset editing key, displaying an editing page corresponding to the adjusting page to obtain an adjusting page entering an editing state;
after the adjusting page enters an editing state, judging whether an operation of which the pressing time is greater than a third preset time is detected, if so, judging that the operation of which the pressing time is greater than the third preset time is the long-pressing operation;
the third preset time is less than the first preset time, and the third preset time is less than the second preset time.
In a second aspect, the present embodiment provides an apparatus for adjusting a page layout, including:
the judging module is used for judging whether long-press operation is detected or not after the page is adjusted to enter the editing state, and if yes, acquiring a data dimension icon at the position of the long-press operation as a target data dimension icon;
the acquisition module is used for judging whether the long-press time of the long-press operation is greater than a first preset time or not, and if so, acquiring the data classification to which the target data dimension icon belongs and the display position for displaying the data dimension icon belonging to the data classification;
the adjusting module is used for acquiring a position located at the head from the display positions in a preset arrangement sequence to serve as the head position, and moving the target data dimension icon to the head position;
the data classification is a classification for classifying data of a preset data source, the data in each data classification is divided according to dimensions, and the dimension data in each dimension corresponds to one data dimension icon in the data classification.
In a third aspect, the present embodiment provides an electronic device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor calling the program instructions to perform any of the methods described above.
In a fourth aspect, embodiments of the invention provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform any of the methods described above.
The embodiment of the invention provides a method and a device for adjusting page layout, wherein after a page is adjusted to enter an editing state, if long-time pressing operation is detected, whether the time of the long-time pressing operation is greater than first preset time is judged, and if yes, a target data dimension icon at the position where the long-time pressing operation is located is directly moved to the first display position under the data classification of the long-time pressing operation. According to the method, after the long-time of the long-time press operation meets the condition, the target data dimension icon is directly moved to the head position under the data classification to which the target data dimension icon belongs, the dragging operation of moving the target data dimension icon is omitted, the operation is convenient, the implementation is easy, and the efficiency is high. By the method, the user can self-define the layout of the adjustment page through simple operation, so that the adjustment page provides more effective information, the user experience is improved, and the utilization rate of the page is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for adjusting a page layout according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of a display page of business details of a company provided by another embodiment of the invention;
FIG. 3 is a diagram of a trim page before entering an edit state according to another embodiment of the present invention;
FIG. 4 is a diagram illustrating a trim page entering an edit state according to another embodiment of the present invention;
FIG. 5 is a schematic diagram of a trim page for moving a target dimension icon to a top position and displaying target dimension data at a target display position according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of a trimming page after the data dimension icon is trimmed to the head position of the corresponding data category according to another embodiment of the present invention;
FIG. 7 is a schematic illustration of a display page being adjusted back to an edit status according to another embodiment of the invention;
FIG. 8 is a block diagram of an apparatus for adjusting a page layout according to another embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of a method for adjusting a page layout provided in this embodiment, and referring to fig. 1, the method includes:
101: after the page is adjusted to enter the editing state, judging whether long-press operation is detected, if so, acquiring a data dimension icon at the position of the long-press operation as a target data dimension icon;
102: judging whether the long-press time of the long-press operation is greater than a first preset time, if so, acquiring a data classification to which the target data dimension icon belongs and a display position for displaying the data dimension icon belonging to the data classification;
103: under a preset arrangement sequence, acquiring a position at the head from the display positions to serve as the head position, and moving the target data dimension icon to the head position;
the data classification is a classification for classifying data of a preset data source, the data in each data classification is divided according to dimensions, and the dimension data in each dimension corresponds to one data dimension icon in the data classification.
It should be noted that the method provided in this embodiment is executed by a terminal (e.g., a mobile phone or a tablet computer) capable of executing the method. Data information of a certain data source (for example, related data of a business) is displayed in the adjustment page, and the data classification is a classification of the data source. The data in each data classification is divided according to different dimensions (for example, the division refers to a relationship that the data in the data classification is subjected to refined classification or the data in the data classification is obtained according to a certain dimension), so that dimension data corresponding to the dimension can be obtained, and the dimension data is represented by adjusting a data dimension icon in a page. The preset arrangement order is, for example, the order of the data dimension icons from left to right under each "data classification".
For example, fig. 2 is a display page of enterprise details of a company, and referring to fig. 2, "data classification" refers to a broad category of enterprise background, enterprise development, and the like. The "data dimension icon" refers to information under a certain "data classification", for example, the "data dimension icon" under the "enterprise background" has "business information", "business relationship", "shareholder information", "main person", and the like, and the dimension data corresponding to the "data dimension icon" can be viewed by triggering (for example, clicking) each "data dimension icon".
The judgment of the long press time can be realized by a pressure sensor installed on the screen, and the embodiment does not specifically limit this. The judgment of the long press time is continued in the whole long press process, for example, as long as the long press time is detected to be longer than the first preset time at a certain moment, the target data dimension icon is moved to the first position. When the hand of the user is detected to leave the screen of the mobile phone, the long press is finished.
The embodiment provides a method for adjusting page layout, which includes after a page is adjusted to enter an editing state, if a long-press operation is detected, judging whether the time of the long-press operation is longer than a first preset time, and if so, directly moving a target data dimension icon at a position where the long-press operation is located to a first display position under data classification of the target data dimension icon. According to the method, after the long-time of the long-time press operation meets the condition, the target data dimension icon is directly moved to the head position under the data classification to which the target data dimension icon belongs, the dragging operation of moving the target data dimension icon is omitted, the operation is convenient, the implementation is easy, and the efficiency is high. By the method, the user can self-define the layout of the adjustment page through simple operation, so that the adjustment page provides more effective information, the user experience is improved, and the utilization rate of the page is improved.
Further, on the basis of the above embodiment, the method further includes:
judging whether the long-time is longer than a second preset time, if so, acquiring title dimension data which is selected from the dimension data corresponding to the target data dimension icon and is used for displaying on a home page of the adjustment page;
and generating a target display position on the home page of the adjustment page, and displaying the target data dimension icon and the title dimension data at the target display position.
It should be noted that the title dimension data is usually selected by the user according to the needs. For example, main data in the dimension data corresponding to the target data dimension icon is selected as the title dimension data. After the target data dimension icon is displayed at the target display position, the display of the target data dimension icon displayed at the first position of the data classification is not affected. After the target data dimension icon and the title dimension data are displayed at the target display position, a user can view all the dimension data of the data dimension icon by clicking the target display position.
For example, after pressing the data dimension icon "agent client" in FIG. 4 for more than a first predetermined time, as shown in FIG. 5, the data dimension icon moves to the first position under the data classification "business development", and the other data dimension icons under the data classification move back in sequence. And when the long-time press of the data dimension icon 'agent client' exceeds a second preset time, the data dimension icon and the title dimension data of the data dimension icon are displayed at the target display position. As shown in fig. 5, the title dimension data in the dimension data corresponding to the "proxy client" includes: the data classification "business development" to which the agent client belongs, the client name of the main agent client among the agent clients of the company agent, the client legal representative of the main agent client, the registered capital of the main agent client, the registered time of the main agent client, the current state of whether the main agent client is working, and the like.
The target display position is positioned on the home page, so that the display content of the target display position can be conveniently seen without sliding or turning pages after the user opens the detail page of the enterprise. The specific location of the target display location on the top page can be set by the user according to the needs, and the target display location is usually located under the basic information of the enterprise, for example, the target display location is located under the contact information as shown in fig. 5.
Typically, the second predetermined time is greater than the first predetermined time. When the long press time is longer than a first preset time, movement of the data dimension icon within the data classification to a first position within the data classification occurs. Further, when the long press time is longer than a second preset time, the data dimension icon and the title dimension data move to the target display position of the home page. It can be understood that when the data dimension icon pressed for a long time is just positioned at the first position of the data classification, the data dimension icon does not move when the long time is longer than a first preset time, and when the long time is longer than a second preset time, the data dimension icon and the title dimension data move to the target display position of the home page.
The target display position is in the top page of the adjustment page, and the display content of the target display position can be seen in the top page when the enterprise detail page is opened. Preferably, the target display location is under the name of the company or under basic information, such as above the background of the business).
The embodiment provides a method for adjusting page layout, which moves a target data dimension icon and title dimension data operated by a long press to a target display position after detecting that the long press time is longer than a second preset time, so that the target data dimension icon and the title dimension data are presented when an enterprise detail page is opened, and the target data dimension icon and the corresponding title dimension data are conveniently and timely known.
Further, on the basis of the above embodiments, the first preset time belongs to [1.5s, 3s ], and the second preset time belongs to [4s, 6s ].
Further, on the basis of the above embodiments, the first preset time is 2s, and the second preset time is 4s or 5 s;
alternatively, the first and second electrodes may be,
the first preset time is 2.5s, and the second preset time is 4s or 5 s.
The first preset time and the second preset time are both preset times, and the second preset time is usually greater than the first preset time. For example, the first preset time is 1.5s, and the second preset time is 4s, 5s or 6 s; the first preset time is 2s, and the second preset time is 4s, 5s or 6 s; the first preset time is 2s, and the second preset time is 4s, 5s or 6 s; the first preset time is 2.5s, and the second preset time is 4s, 5s or 6 s. This embodiment does not specifically limit this.
For example, fig. 3-7 show the business details for the business name "company a". Fig. 3 is a page to be adjusted before entering the editing state, fig. 4 is an adjustment page entering the editing state, fig. 5 is an adjustment page in which the target data dimension icon is moved to the head position and the target dimension data icon is displayed at the target display position, fig. 6 is an adjustment page in which the data dimension icon is adjusted to the head position of the corresponding data classification, and fig. 7 is a display page after being adjusted to exit the editing state. After the adjustment page enters the editing state, as shown in fig. 4, a target data dimension icon "agent client" is found in the data classification "enterprise development" in fig. 4, a long-press operation is performed on the "agent client" icon, and when the long-press time is longer than a first preset time, the "agent client" is moved to a first position (i.e., a display position where an original "agent case" is located) under the "enterprise development", as shown in fig. 5. Then, the duration of the long press operation is continuously monitored, and if the long press time of the long press operation is longer than a second preset time, the target dimension data "agent client" and the main dimension data corresponding to the "agent client" are displayed in the target display position under the basic information of the company A. The dimension data corresponding to the 'agent client' can be viewed by clicking on the target display position.
The adjustment page in fig. 5 is still in the editing state, and thus adjustment of the page layout can be performed through the adjustment page in fig. 5. For example, a target data dimension icon "main person" is found in the data classification "enterprise background" in fig. 5, a long-press operation is performed on the "main person" icon, and when the long-press time is longer than a first preset time, the main person is moved to a first position (i.e., a display position where the original "business information" is located) under the "enterprise background", so as to obtain an adjustment page as shown in fig. 6. Since the time of the long press operation performed on the "main person" is less than the second preset time, the "main person" icon is simply moved to the first position under the "enterprise background". When the editing is completed, the editing state is exited, resulting in the display page shown in fig. 7.
The embodiment provides a method for adjusting page layout, wherein a first preset time is shorter than a second preset time, and a target data dimension icon is not located at a first position of a corresponding data classification through monitoring a long pressing time, and then the target data dimension icon is moved to the first position of the corresponding data classification; and then displaying the target data dimension icon and the title dimension data corresponding to the target data dimension icon at the target display position.
Further, on the basis of the above embodiments, the method further includes:
acquiring data dimension icons except the target data dimension icon in the data dimension icons, and using the data dimension icons as to-be-adjusted data dimension icons needing to be subjected to display position adjustment when the target data dimension icon is moved to the first position;
and for each data dimension icon to be adjusted, acquiring a display position where the data dimension icon to be adjusted is located before the target data dimension icon is moved to the head position as a pre-adjustment position, acquiring a display position which is adjacent to the pre-adjustment position in sequence and is located behind the pre-adjustment position as a post-adjustment position, and moving the data dimension icon to be adjusted from the pre-adjustment position to the post-adjustment position.
It should be noted that, when the position of the target data dimension icon is not the first position, after the display position of the target data dimension icon is adjusted, the display positions of the data dimension icons to be adjusted in the data dimension icons except the target data dimension icon need to be adjusted under the data classification. For example, when the long press operation is performed on the "main person" in fig. 5, the display positions of the "business information", "business relationship", "stockholder information", "investments", "change records", and "annual newspaper of business" also need to be adjusted appropriately. In the method defined in this embodiment, the data dimension icons to be adjusted are sequentially moved to the display position after the pre-adjustment position where the data dimension icon to be adjusted is located before the position adjustment of the target data dimension icon is performed.
For example, as shown in fig. 5, before the target data dimension icon is moved to the first position, the pre-adjustment position of the "business information" is the first position, and the post-adjustment position is the second position, and after the "main person" is moved to the first position, the "business information" is moved to the second position. The "business information" is shown in fig. 6 after being moved.
The embodiment provides a page layout adjusting method, which limits a method for correspondingly adjusting the positions of the remaining data dimension icons to be adjusted after adjusting the positions of the target data dimension icons. After the data dimension icon to be adjusted is adjusted by the method. The relative position between each data dimension icon to be adjusted is kept unchanged, and the relative relation of other icons is kept while the target data dimension icon is adjusted.
Further, on the basis of the foregoing embodiments, after the adjusting page enters the editing state, the method further includes:
if the target data dimension icon is detected to trigger a deleting operation, deleting the target data dimension;
if the trigger operation of the preset storage key is detected, storing the display position of each data dimension icon in the current time adjustment page;
and if the trigger operation of the preset restoring key is detected, acquiring the adjustment page which is stored for the last time before the adjustment page at the current moment is stored, taking the adjustment page as a restoring page, and displaying the restoring page.
It should be noted that, as shown in fig. 4, triggering of the delete operation can be achieved by clicking the "cross" at the upper right corner of the target data dimension icon. Both the save key and the restore key are displayed after the adjustment page has entered the editing state as shown in fig. 4 (these two keys are not shown in fig. 4). And clicking the storage key to store the page layout of the current adjusted page. And the page saved at the previous time can be restored by clicking the restoring button.
The embodiment provides a method for adjusting page layout, which provides operations of saving and restoring an adjustment page and deleting a data dimension icon, and perfects an operation of adjusting the layout of the adjustment page.
Further, on the basis of the foregoing embodiments, after the adjusting page enters the editing state, the method includes:
and after detecting that the displayed adjusting page is subjected to long-time pressing operation or triggering operation is performed on a preset editing key, displaying an editing page corresponding to the adjusting page to obtain the adjusting page entering an editing state.
As shown in fig. 3, the adjustment page is not in the display state before the editing state, and when a long-press operation on the page or a click operation on an editing key provided on the page is detected, the adjustment page is entered into the editing page shown in fig. 4, so that the user can edit the adjustment page.
The embodiment provides a method for adjusting page layout, which provides a method for editing a state of a page to be adjusted, and can quickly enable a currently displayed page to enter an editing state through long-time pressing operation or triggering operation on an editing key, so that editing of page layout is realized.
Further, on the basis of the foregoing embodiments, after the adjusting page enters the editing state, the determining whether the long press operation is detected includes:
after the page is adjusted to enter the editing state, judging whether the operation that the pressing time is greater than a third preset time is detected, if so, judging that the operation that the pressing time is greater than the third preset time is the long-pressing operation;
the third preset time is less than the first preset time, and the third preset time is less than the second preset time.
It should be noted that the third preset time is a time for determining the long press operation, and is usually smaller than the first preset time and the second preset time. For example, the third preset time is 1s, the first preset time is 2s, and the second preset time is 4 s.
The embodiment provides a method for adjusting page layout, which provides a method for judging long press operation, realizes the judgment of the long press operation, and provides a basis for the subsequent judgment of whether the long press time exceeds a second preset time and a first preset time.
As a specific embodiment, this embodiment provides a personalized enterprise detail page adjustment method, as shown in fig. 3 to 7. The user can delete, add and move different data dimensions according to different fields, concerned contents and daily requirements of the user, wherein the method for adjusting the enterprise detail page comprises the following steps:
step S201: whether each dimension enters an editable state or not is detected, and if the dimension enters the editable state, step S202 is executed.
The data dimension icon can be brought into an editable state by an "edit" button or other prescribed operation (e.g., long pressing a data dimension icon, etc.). Two concepts in the business detail page are illustrated: "data classification" refers to the broad categories of business background, business development, and the like. The "data dimension" refers to information in a certain category, for example, the data dimension in the enterprise background includes "business information", "enterprise relationship", "shareholder information", "main person", and the like. As shown in fig. 2.
Step S202: detecting the operation of a user, timing the long press operation, judging whether the operation of the user is the long press operation, and if so, timing the long press operation.
When the data dimension icons are in an editable state, operations such as deleting, moving, adding, saving (saving the current page), restoring (restoring the page to the arrangement sequence of the previous data dimension icons) and the like can be performed on each data dimension icon.
Step S203: if the long-press position data dimension icon is not located at the first position of the data classification (i.e. the first position in the data classification), and the long-press time T1 is greater than T1 (i.e. the first preset time), automatically moving the data dimension icon to the first position in the data classification, and going to step S204; if the data dimension icon of the long-press position is already at the first position of the data classification, go directly to step S205;
wherein the long press time t1 refers to a long press time for performing a long press operation at a position other than the first bit in the data classification; t1 is preferably 2 seconds, but may be 1.5 seconds or 2.5 seconds. The length of T1 can be determined based on ergonomics. If the length of time T1 is greater than T1, the data dimension icon is moved to the position of the first bit of its corresponding data category. As shown in FIGS. 4 and 5, when T1 is greater than T1, the "proxy client" is moved to the first place of business development. At this time, the user may interrupt the operation of pressing the screen and perform other operations.
Step S204: detecting whether the operation of pressing the screen is continuously executed, if so, executing the step S205, otherwise, executing the step S202;
step S205: detecting that the long press time T2 is greater than T2, the data dimension icon and title dimension data are automatically moved to a display position below the base information of the home page.
The long press time t2 refers to the time when the long press operation is performed at the position of the first bit in a certain data classification. T2 is preferably 5 seconds, and may be 4 seconds, 6 seconds, or the like.
The reason why the data dimension icon and the title dimension data are moved to the display position below the basic information of the top page is to make it possible to see the data dimension icon and the part of the dimension data (title dimension data) corresponding to the data dimension icon on the top page when the top page is opened. As shown in FIG. 7, the top page of "enterprise details" is opened, so that the data dimension icon of "agent client" and the corresponding partial dimension data of "agent client" can be seen.
It should be noted that, when it is detected that the long-press operation is no longer performed by the user, the long-press operation is detected again, so that the long-press time is calculated again to re-lay the page.
Because a certain data dimension icon which is long-pressed by a user is often a data dimension icon which is regarded by the user and needs to be moved to a prominent position, the data dimension icon is automatically moved to the head position of the data classification according to the long-pressing time of the long-pressing operation executed on the data dimension icon by the user, the trouble that the user drags the data dimension icon and accurately moves the data dimension icon to a set target position can be omitted, and the user experience is improved. And then, through the saving operation, the page layout of the enterprise detail page adjusted by the user can be recorded, so that the page layout of the enterprise detail page can be displayed when the user accesses the enterprise detail page next time.
On the other hand, in this embodiment, when the data dimension icon corresponding to the long-press operation is located at the top position, and enters the editable state through the long-press operation, if the long-press time is longer than 5 seconds (or 4 seconds or 4.5 seconds), the data dimension icon and part of the dimension data are directly promoted to the basic information of the page top page (i.e., the target display position).
On one hand, the method provided by the embodiment enables a user to freely customize the page layout to obtain the layout effect of the data dimension icons required by the user, and improves the user experience and the use efficiency; on the other hand, more related information can be provided for the user through the adjusted page layout, so that the page is simpler and clearer, and the utilization rate is improved.
Fig. 8 is a block diagram illustrating a structure of an apparatus for adjusting a page layout according to an embodiment of the present invention, and referring to fig. 8, the apparatus for adjusting a page layout according to the embodiment includes a determining module 801, an obtaining module 802, and an adjusting module 803, wherein,
a judging module 801, configured to judge whether a long press operation is detected after the adjustment page enters the editing state, and if so, obtain a data dimension icon at a position where the long press operation is located as a target data dimension icon;
an obtaining module 802, configured to determine whether the long-press time of the long-press operation is greater than a first preset time, and if so, obtain a data classification to which the target data dimension icon belongs and a display position for displaying the data dimension icon belonging to the data classification;
an adjusting module 803, configured to obtain, from the display positions, a position located at a top position in a preset arrangement order, as the top position, and move the target data dimension icon to the top position;
the data classification is a classification for classifying data of a preset data source, the data in each data classification is divided according to dimensions, and the dimension data in each dimension corresponds to one data dimension icon in the data classification.
The page layout adjusting apparatus provided in this embodiment is suitable for the page layout adjusting method provided in the foregoing embodiment, and is not described herein again.
The embodiment provides a device for adjusting page layout, which, after a page is adjusted to enter an editing state, determines whether a long-time pressing operation is performed for more than a first preset time if the long-time pressing operation is detected, and if the long-time pressing operation is performed, directly moves a target data dimension icon at a position where the long-time pressing operation is performed to a first display position of the target data dimension icon under data classification. According to the method, after the long-time of the long-time press operation meets the condition, the target data dimension icon is directly moved to the head position under the data classification to which the target data dimension icon belongs, the dragging operation of moving the target data dimension icon is omitted, the operation is convenient, the implementation is easy, and the efficiency is high. Through the device, the user can self-define the layout of adjustment page through simple operation to make the adjustment page provide more effective information, promote user experience, improve the utilization ratio of page.
In a third aspect, fig. 9 is a block diagram showing a configuration of an electronic apparatus provided in the present embodiment.
Referring to fig. 9, includes: at least one processor (processor) 901;
and at least one memory (memory)902, a bus 903 connected to the processor 901; wherein the content of the first and second substances,
the processor 901 and the memory 902 complete mutual communication through the bus 903;
the processor 901 is configured to call program instructions in the memory 902 to perform the methods provided by the above-mentioned method embodiments, for example, including: after the page is adjusted to enter the editing state, judging whether long-press operation is detected, if so, acquiring a data dimension icon at the position of the long-press operation as a target data dimension icon; judging whether the long-press time of the long-press operation is greater than a first preset time, if so, acquiring a data classification to which the target data dimension icon belongs and a display position for displaying the data dimension icon belonging to the data classification; under a preset arrangement sequence, acquiring a position at the head from the display positions to serve as the head position, and moving the target data dimension icon to the head position; the data classification is a classification for classifying data of a preset data source, the data in each data classification is divided according to dimensions, and the dimension data in each dimension corresponds to one data dimension icon in the data classification.
In a fourth aspect, the present embodiment provides a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method provided by the above method embodiments, for example, including: after the page is adjusted to enter the editing state, judging whether long-press operation is detected, if so, acquiring a data dimension icon at the position of the long-press operation as a target data dimension icon; judging whether the long-press time of the long-press operation is greater than a first preset time, if so, acquiring a data classification to which the target data dimension icon belongs and a display position for displaying the data dimension icon belonging to the data classification; under a preset arrangement sequence, acquiring a position at the head from the display positions to serve as the head position, and moving the target data dimension icon to the head position; the data classification is a classification for classifying data of a preset data source, the data in each data classification is divided according to dimensions, and the dimension data in each dimension corresponds to one data dimension icon in the data classification.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments, for example, comprising: after the page is adjusted to enter the editing state, judging whether long-press operation is detected, if so, acquiring a data dimension icon at the position of the long-press operation as a target data dimension icon; judging whether the long-press time of the long-press operation is greater than a first preset time, if so, acquiring a data classification to which the target data dimension icon belongs and a display position for displaying the data dimension icon belonging to the data classification; under a preset arrangement sequence, acquiring a position at the head from the display positions to serve as the head position, and moving the target data dimension icon to the head position; the data classification is a classification for classifying data of a preset data source, the data in each data classification is divided according to dimensions, and the dimension data in each dimension corresponds to one data dimension icon in the data classification.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the electronic device and the like are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for adjusting page layout, comprising:
after the page is adjusted to enter the editing state, judging whether long-press operation is detected, if so, acquiring a data dimension icon at the position of the long-press operation as a target data dimension icon;
judging whether the long-press time of the long-press operation is greater than a first preset time, if so, acquiring a data classification to which the target data dimension icon belongs and a display position for displaying the data dimension icon belonging to the data classification;
under a preset arrangement sequence, acquiring a position at the head from the display positions to serve as the head position, and moving the target data dimension icon to the head position;
the data classification is a classification for classifying data of a preset data source, the data in each data classification is divided according to dimensions, and the dimension data in each dimension corresponds to one data dimension icon in the data classification;
further comprising:
judging whether the long-time is longer than a second preset time, if so, acquiring title dimension data which is selected from the dimension data corresponding to the target data dimension icon and is used for displaying on a home page of the adjustment page;
and generating a target display position on the home page of the adjustment page, and displaying the target data dimension icon and the title dimension data at the target display position.
2. The method according to claim 1, wherein the first preset time belongs to [1.5s, 3s ], and the second preset time belongs to [4s, 6s ].
3. The method of claim 2,
the first preset time is 2s, and the second preset time is 4s or 5 s;
alternatively, the first and second electrodes may be,
the first preset time is 2.5s, and the second preset time is 4s or 5 s.
4. The method of claim 1, further comprising:
acquiring data dimension icons except the target data dimension icon in the data dimension icons, and using the data dimension icons as to-be-adjusted data dimension icons needing to be subjected to display position adjustment when the target data dimension icon is moved to the first position;
and for each data dimension icon to be adjusted, acquiring a display position where the data dimension icon to be adjusted is located before the target data dimension icon is moved to the head position as a pre-adjustment position, acquiring a display position which is adjacent to the pre-adjustment position in the preset arrangement sequence and is located behind the pre-adjustment position as a post-adjustment position, and moving the data dimension icon to be adjusted from the pre-adjustment position to the post-adjustment position.
5. The method of claim 1, after the adjusting the page into the edit state, further comprising:
if the target data dimension icon is detected to trigger a deleting operation, deleting the target data dimension;
if the trigger operation of the preset storage key is detected, storing the display position of each data dimension icon in the current time adjustment page;
and if the trigger operation of the preset restoring key is detected, acquiring the adjustment page which is stored for the last time before the adjustment page at the current moment is stored, taking the adjustment page as a restoring page, and displaying the restoring page.
6. The method of claim 1, wherein determining whether a long press operation is detected after the adjustment page enters the editing state comprises:
after detecting that long-time pressing operation is carried out on a displayed adjusting page or triggering operation is carried out on a preset editing key, displaying an editing page corresponding to the adjusting page to obtain an adjusting page entering an editing state;
after the adjusting page enters an editing state, judging whether an operation of which the pressing time is greater than a third preset time is detected, if so, judging that the operation of which the pressing time is greater than the third preset time is the long-pressing operation;
the third preset time is less than the first preset time, and the third preset time is less than the second preset time.
7. An apparatus for adjusting a page layout, comprising:
the judging module is used for judging whether long-press operation is detected or not after the page is adjusted to enter the editing state, and if yes, acquiring a data dimension icon at the position of the long-press operation as a target data dimension icon;
the acquisition module is used for judging whether the long-press time of the long-press operation is greater than a first preset time or not, and if so, acquiring the data classification to which the target data dimension icon belongs and the display position for displaying the data dimension icon belonging to the data classification;
the adjusting module is used for acquiring a position located at the head from the display positions in a preset arrangement sequence to serve as the head position, and moving the target data dimension icon to the head position;
the data classification is a classification for classifying data of a preset data source, the data in each data classification is divided according to dimensions, and the dimension data in each dimension corresponds to one data dimension icon in the data classification;
further comprising:
judging whether the long-time is longer than a second preset time, if so, acquiring title dimension data which is selected from the dimension data corresponding to the target data dimension icon and is used for displaying on a home page of the adjustment page;
and generating a target display position on the home page of the adjustment page, and displaying the target data dimension icon and the title dimension data at the target display position.
8. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 6.
9. A non-transitory computer-readable storage medium comprising a computer program stored on the non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method of any of claims 1 to 6.
CN201711329413.4A 2017-12-13 2017-12-13 Page layout adjustment method and device Active CN108287643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711329413.4A CN108287643B (en) 2017-12-13 2017-12-13 Page layout adjustment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711329413.4A CN108287643B (en) 2017-12-13 2017-12-13 Page layout adjustment method and device

Publications (2)

Publication Number Publication Date
CN108287643A CN108287643A (en) 2018-07-17
CN108287643B true CN108287643B (en) 2020-11-06

Family

ID=62831881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711329413.4A Active CN108287643B (en) 2017-12-13 2017-12-13 Page layout adjustment method and device

Country Status (1)

Country Link
CN (1) CN108287643B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445889A (en) * 2018-09-25 2019-03-08 北京奇艺世纪科技有限公司 Page display method, device, terminal, server, computer readable storage medium
CN110221741B (en) 2019-05-31 2021-01-08 维沃移动通信有限公司 Icon management method and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377051A (en) * 2013-07-16 2013-10-30 广东欧珀移动通信有限公司 Application interface customizing method based on Android system
CN105892792A (en) * 2015-12-01 2016-08-24 乐视网信息技术(北京)股份有限公司 Operation method of terminal equipment, and terminal equipment
CN106201246A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 Page layout processing method and processing device
CN106406679A (en) * 2016-11-28 2017-02-15 深圳市金立通信设备有限公司 Icon moving method, and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI365402B (en) * 2007-12-28 2012-06-01 Htc Corp User interface dynamic layout system, method for arranging user interface layout and touch display system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377051A (en) * 2013-07-16 2013-10-30 广东欧珀移动通信有限公司 Application interface customizing method based on Android system
CN105892792A (en) * 2015-12-01 2016-08-24 乐视网信息技术(北京)股份有限公司 Operation method of terminal equipment, and terminal equipment
CN106201246A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 Page layout processing method and processing device
CN106406679A (en) * 2016-11-28 2017-02-15 深圳市金立通信设备有限公司 Icon moving method, and terminal

Also Published As

Publication number Publication date
CN108287643A (en) 2018-07-17

Similar Documents

Publication Publication Date Title
US10554805B2 (en) Information processing method, terminal, and computer-readable storage medium
CN106610774B (en) Webpage table editing method and device
US20160154686A1 (en) Method and apparatus for presenting clipboard contents on a mobile terminal
CN107066188B (en) A kind of method and terminal sending screenshot picture
WO2014075582A1 (en) Method and apparatus for storing webpage access records
CN108762654B (en) Text editing method, text editing device, text editing terminal and computer readable storage medium
CN103577068A (en) Method for dynamically adjusting size of desktop icon, and mobile terminal
CN108170342B (en) Application program interface display method and device, terminal and readable storage medium
CN104881408A (en) Method, device and system for counting number of clicks on page and displaying result
CN106293120B (en) Expression input method and mobile terminal
CN104158972A (en) Method for calling third-party application in conversation process and user terminal
US9710134B1 (en) Smart contact lists
EP3274940A1 (en) Providing attachment control to manage attachments in conversation
CN106445972B (en) Page display method and device
WO2017032066A1 (en) Contact management method and mobile terminal
US20130021275A1 (en) Display method and terminal
CN108287643B (en) Page layout adjustment method and device
KR20160125401A (en) Inline and context aware query box
CN105786295A (en) Character input method and device
CN104778007A (en) Screen capturing method and screen capturing device
TWI566165B (en) Method for adaptively invoking applications and electronic apparatus using the same
CN112099706A (en) Page display method and device, electronic equipment and computer readable storage medium
CN103577085A (en) Control method and device applied to page display
US20170168686A1 (en) Method and electronic device for processing list item operation
CN106293354B (en) Shortcut menu self-adaptive display control method, server and portable terminal

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