CN111324244B - Method and device for switching picture display types - Google Patents

Method and device for switching picture display types Download PDF

Info

Publication number
CN111324244B
CN111324244B CN201811531976.6A CN201811531976A CN111324244B CN 111324244 B CN111324244 B CN 111324244B CN 201811531976 A CN201811531976 A CN 201811531976A CN 111324244 B CN111324244 B CN 111324244B
Authority
CN
China
Prior art keywords
picture
type
target page
determining
display type
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
CN201811531976.6A
Other languages
Chinese (zh)
Other versions
CN111324244A (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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201811531976.6A priority Critical patent/CN111324244B/en
Publication of CN111324244A publication Critical patent/CN111324244A/en
Application granted granted Critical
Publication of CN111324244B publication Critical patent/CN111324244B/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/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
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application discloses a method and a device for switching picture display types. One embodiment of the method comprises: responding to the first operation of the user on the target page, and generating a first operation instruction according to the first operation; in response to determining that the first operation instruction characterizes a switch of the target page from a current picture display type to a first picture display type, determining whether the current picture display type is the first picture display type; in response to determining not, determining whether an operation instruction matching the first operation instruction exists in a prestored operation instruction list; in response to determining that the current picture display type of the target page exists, switching the current picture display type of the target page to the first picture display type. The embodiment enriches the display function of the page.

Description

Method and device for switching picture display types
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the field of website interaction, and specifically relates to a method and a device for switching picture display types.
Background
With the development of computer technology, the interactive interface technology is gradually mature. Generally, an interactive interface is a channel for information exchange between a person and a computer, a user inputs information to the computer through the interactive interface and operates the computer, and the computer provides information to the user through the interactive interface for reading, analyzing and judging.
Disclosure of Invention
The embodiment of the application provides a method and a device for switching picture display types.
In a first aspect, an embodiment of the present application provides a method for switching a picture display type, where the method includes: responding to the first operation of the user on the target page, and generating a first operation instruction according to the first operation; in response to determining that the first operation instruction characterizes a switch of the target page from the current picture display type to the first picture display type, determining whether the current picture display type is the first picture display type; in response to determining not, determining whether an operation instruction matching the first operation instruction exists in a prestored operation instruction list; and in response to determining that the current picture display type of the target page exists, switching the current picture display type of the target page to the first picture display type.
In some embodiments, the target page includes a preset picture frame set.
In some embodiments, switching the current picture display type of the target page to the first picture display type includes: determining whether at least one first type picture corresponding to a picture frame exists in electronic equipment displaying a target page or not for the picture frame in the picture frame set; in response to determining that there is a first type picture, selecting a first type picture from the at least one first type picture, and filling the selected first type picture into the picture frame.
In some embodiments, the method further comprises: in response to determining that at least one first type picture corresponding to the picture frame does not exist in the electronic equipment, acquiring the first type picture from the target server, and determining whether the acquisition is successful; in response to determining that the fetching is successful, filling the fetched first type picture into the picture frame; and filling a preset picture into the picture frame in response to determining that the acquisition fails.
In some embodiments, the method further comprises: and in response to determining that the current picture display type of the target page is the first picture display type, for a picture frame in the picture frame set, acquiring a first type picture corresponding to the picture frame from the target server, and in response to determining that the acquired first type picture is different from the first type picture corresponding to the picture frame in the electronic equipment for displaying the target page, filling the acquired first type picture into the picture frame.
In some embodiments, the method further comprises: and in response to determining that the target page is switched from the second picture display type to the first picture display type, determining whether a user operation on the target page is detected within a preset time length, and in response to determining that the operation is not detected within the preset time length, switching the target page back to the second picture display type.
In a second aspect, an embodiment of the present application provides an apparatus for switching a picture display type, where the apparatus includes: the detection unit is configured to respond to the detection of a first operation of a user on the target page, and generate a first operation instruction according to the first operation; a first determining unit configured to determine whether the current picture display type is a first picture display type in response to determining that the first operation instruction characterizes a switch of the target page from the current picture display type to the first picture display type; a second determination unit configured to determine whether an operation instruction matching the first operation instruction exists in a pre-stored operation instruction list in response to the determination of no; and the switching unit is configured to switch the current picture display type of the target page to the first picture display type in response to determining that the current picture display type exists.
In some embodiments, the target page includes a preset set of picture frames.
In some embodiments, the switching unit is further configured to: determining whether at least one first type picture corresponding to a picture frame exists in electronic equipment displaying a target page or not for the picture frame in the picture frame set; in response to determining that there is a first type picture, selecting a first type picture from the at least one first type picture, and filling the selected first type picture into the picture frame.
In some embodiments, the switching unit is further configured to: in response to determining that at least one first type picture corresponding to the picture frame does not exist in the electronic equipment, acquiring the first type picture from the target server, and determining whether the acquisition is successful; filling the acquired first type picture into the picture frame in response to determining that the acquisition is successful; and filling a preset picture into the picture frame in response to determining that the acquisition fails.
In some embodiments, the second determination unit is further configured to: and in response to determining that the current picture display type of the target page is the first picture display type, for a picture frame in the picture frame set, acquiring a first type picture corresponding to the picture frame from the target server, and in response to determining that the acquired first type picture is different from the first type picture corresponding to the picture frame in the electronic equipment for displaying the target page, filling the acquired first type picture into the picture frame.
In some embodiments, the apparatus further comprises: and the switching-back unit is configured to respond to the fact that the target page is determined to be switched from the second picture display type to the first picture display type, determine whether the operation of the user on the target page is detected within a preset time length, and respond to the fact that the operation is not detected within the preset time length, and switch the target page back to the second picture display type.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement a method as in any one embodiment of a method for switching picture display types.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which when executed by a processor implements the method as in any one of the embodiments of the method for switching picture display types.
The method and the device for switching the picture display types are provided by the embodiment of the application. Responding to the first operation of the user on the target page, and then generating a first operation instruction according to the first operation; responding to the first operation instruction which is determined to represent the switching of the target page from the current picture display type to the first picture display type, and then determining whether the current picture display type is the first picture display type; and finally, switching the current picture display type of the target page to the first picture display type in response to determining not to be. The embodiment enriches the display function of the page. The method and the device have the advantages that the operation of the user on the target page is detected, the picture display type of the target page is switched, and the personalized requirements of the user are met.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is an exemplary system architecture diagram to which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for switching picture display types according to the present application;
fig. 3 is a schematic diagram of an application scenario of a method for switching picture display types according to an embodiment of the present application;
FIG. 4 is a flow diagram of yet another embodiment of a method for switching picture display types according to the present application;
FIG. 5 is a schematic block diagram illustrating an embodiment of an apparatus for switching picture display types according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which a method for switching a picture display type or an apparatus for switching a picture display type according to an embodiment of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 101, 102, 103 may interact with the server 105 via the network 104 to receive data or to send messages or the like. The terminal devices 101, 102, 103 may include a display and a processor. The terminals 101, 102, 103 may have various client applications installed thereon, such as shopping applications, video applications, picture applications, map applications, web browsers, instant messenger applications, and the like.
The server 105 may be a server that provides various services, such as a backend server that analyzes information transmitted by the terminal apparatuses 101, 102, 103. The server 105 may be a database server that can store data such as pictures. The terminal devices 101, 102, 103 may obtain information such as pictures from a database server.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for switching the picture display type provided in the embodiment of the present application is generally executed by the terminal devices 101, 102, and 103, and accordingly, the apparatus for switching the picture display type is generally disposed in the terminal devices 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for switching picture display types in accordance with the present application is shown. The method for switching the picture display type comprises the following steps:
step 201, in response to detecting a first operation of a user on a target page, generating a first operation instruction according to the first operation.
In the present embodiment, an execution subject (e.g., terminal apparatuses 101, 102, 103 shown in fig. 1) of the method for switching the picture display type may detect an operation of a target page by a user. The operations include various interactions of the user with the target page. For example, a finger-belly click operation, a slide screen operation, a finger joint tap screen operation, and the like. The first operation may be an operation specified according to actual needs. Optionally, the first operation may be a character input operation, may also be a gesture (for example, double-click on a target page by a finger joint, quick triple-click on a target page, and the like), and may also be a voice narration, which is not limited herein. The target page may be an interactive interface of an application installed in the execution main body, or may be a web interface displayed by the execution main body, which is not limited herein. The user may be any user who operates the target page. When the execution main body detects the operation of the user on the target page, the execution main body identifies and processes the operation to generate an operation instruction. Optionally, the first operation instruction may be a character, gesture information (for example, "finger joint double-click page", "three-continuous-click page", or the like), or voice information of a voice narration (for example, "switch to first type picture"). When the first operation is a character input operation, the input character may be used as the first operation instruction. When the first operation is a gesture, the recognized gesture information may be used as a first operation instruction. When the first operation is a voice narration, the detected voice information may be used as the first operation instruction.
Step 202, in response to determining that the first operation instruction represents switching of the target page from the current picture display type to the first picture display type, determining whether the current picture display type is the first picture display type.
In this embodiment, the picture display type may be used to represent a picture type displayed by the target page. The picture types can include a first picture type with a pixel value smaller than a preset threshold value, and can also include a second picture type with a definition larger than a specified threshold value. As an example, when the target page is a search page of a shopping website, the second picture type may be a picture type showing goods in the shopping website. The picture type of the displayed goods is usually a picture type which is taken by a professional photographer and has good definition and beauty. The second picture type may be a type of a picture in a commodity evaluation in a shopping website. The picture in the evaluation of the commodity is generally a commodity picture closer to the true state of the commodity. The first picture display type may be any picture type displayed on the target page. For example, the first picture display type may be a type of a picture in a commodity evaluation.
In this embodiment, a handover matching the handover type characterized by the first operation instruction may be searched from a prestored handover type set. If the switching type is found, whether the switching type is switched from the current picture display type to the first picture display type is further determined. If so, the first operation instruction represents the switching of the target page from the current picture display type to the first picture display type.
In this embodiment, the above-mentioned determining whether the current picture display type is the first picture display type may be implemented by determining whether a picture currently displayed on the target page is a first type picture.
Step 203, responding to the determination of no, determining whether an operation instruction matched with the first operation instruction exists in the pre-stored operation instruction list.
In this embodiment, whether the operation instruction matches the first operation instruction may be determined by a specified matching relationship, and may be specifically set according to actual needs, which is not limited herein. As an example, the matching relationships may be the same or similar. For example, there is a similar relationship between "triple tap" and "triple tap".
And step 204, in response to the determination that the current picture display type of the target page exists, switching the current picture display type of the target page to a first picture display type.
In this embodiment, when it is determined that the current picture display type is not the first picture display type, the current picture display type of the target page is switched to the first picture display type. As an example, if the target page is a product information list page of a shopping website, if the type of the currently displayed product picture is not the type of the picture in the product evaluation, the currently displayed product picture is replaced with the type of the picture in the product evaluation.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for switching picture display types according to the present embodiment. In the application scenario of fig. 3, the terminal device 301 detects a first operation (character input operation: input "ABCD") of the user on the target page (goods information list page). A first operation instruction ("ABCD") is generated according to the above-described first operation (character input operation: input "ABCD"). In response to determining that the first operation instruction ("ABCD") represents a switching instruction of the target page (product information list page) from a current picture display type to a first picture display type (type of picture in product evaluation), determining whether the current picture display type is the first picture display type (type of picture in product evaluation). And switching the current picture display type of the target page to the first picture display type (the type of the picture in the commodity evaluation). The method provided by the embodiment of the application enriches the display function of the page. The method and the device have the advantages that the operation of the user on the target page is detected, the picture display type of the target page is switched, and the personalized requirements of the user are met.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method for switching picture display types is shown. The process 400 of the method for switching picture display types includes the following steps:
step 401, in response to detecting a first operation of a user on a target page, generating a first operation instruction according to the first operation.
Step 402, in response to determining that the first operation instruction represents a switching indication of the target page from the current picture display type to the first picture display type, determining whether the current picture display type is the first picture display type.
In the present embodiment, the specific operations of steps 401-402 are substantially the same as the operations of steps 201-202 in the embodiment shown in fig. 2, and are not repeated herein.
Step 403, in response to determining that the picture frame in the picture frame set is not the first type picture, determining whether at least one first type picture corresponding to the picture frame exists in the electronic device displaying the target page; in response to determining that there is a first type picture, selecting a first type picture from the at least one first type picture, and filling the selected first type picture into the picture frame.
In this embodiment, the target page includes a preset picture frame set. The picture frame can be used for displaying pictures in the target page. The picture frame can also be used for determining the position of the picture on the target page. The first type picture may be a preset specified type picture. As one example, the first type may be a type of picture in a merchandise evaluation. The picture frames described above typically also include numbering. The first type of pictures described above are also typically numbered. The picture frame is numbered to correspond to the first type picture. The electronic device displaying the target page refers to an execution subject (e.g., terminal devices 101, 102, 103 shown in fig. 1). The presence or absence of the first type picture in the electronic device generally refers to the presence or absence of the first type picture in a storage medium in the electronic device. The storage medium may be a cache, a flash memory, or other types of storage media, and is not limited herein.
In some optional implementation manners of this embodiment, in response to determining that at least one first-type picture corresponding to the picture frame does not exist in the electronic device displaying the target page, obtaining the first-type picture from the target server, and determining whether the obtaining is successful; filling the acquired first type picture into the picture frame in response to determining that the acquisition is successful; and filling a preset picture into the picture frame in response to determining that the acquisition fails.
The target server is a server storing the first type of picture set, and may be a database server communicatively connected to the execution agent, or a control server communicatively connected to the execution agent. The obtaining of the first type picture may be searching for a first type picture with a picture number matching the picture frame number from the first type picture set according to the picture frame number. The preset picture is usually a blank picture or a designated icon, and may be other designated pictures, which is not limited herein.
Step 404, in response to the determination that the first type picture corresponding to the picture frame in the picture frame set is obtained from the target server, and in response to the determination that the obtained first type picture is different from the first type picture corresponding to the picture frame in the electronic device displaying the target page, filling the obtained first type picture into the picture frame.
In this embodiment, the obtained first type picture is different from the first type picture corresponding to the picture frame in the electronic device displaying the target page, which specifically means that the first type picture obtained by the execution main body from the server is not overlapped with the first type picture stored in the storage medium of the execution main body.
In some optional implementation manners of this embodiment, in response to determining that the target page is switched from the second picture display type to the first picture display type, in response to detecting that the user has not performed an operation on the target page within a preset time, the target page is switched back to the second picture display type.
The second picture display type is a picture display type different from the first picture display type. The second picture display type may be used to indicate that the picture type displayed on the target page is the second picture type. As an example, if the target page is a product information list page of a shopping website, the pictures include a picture for displaying a product and a picture in product evaluation. The picture display type comprises a picture type of the displayed commodity and a picture type in commodity evaluation. The second picture display type may be any picture type included in the picture display types. For example, the second picture display type may be a picture type of a displayed article.
In some optional implementations of this embodiment, in response to receiving a page turning instruction for the target page, determining whether a current picture display type of the target page is a first picture display type; and responding to the determination result, executing a page turning instruction, determining the page after page turning as a target page, and setting the current picture display type of the target page as the first picture display type.
The page flip instruction may be a jump to a previous page, a jump to a next page, or a jump to any existing non-current page. The page after page turning is determined as a target page, and the current picture display type of the target page is set as a first picture display type. Namely, the current picture display type of the page after page turning is set as the first picture display type. Specifically, the type of the picture displayed on the page after page turning is the first type picture. That is, the first type of picture is shown on the page after the page is turned.
In some optional implementation manners of this embodiment, it is determined that the target page is switched from the second picture display type to the first picture display type, and in response to that no operation of the target page by the user is detected within a preset time, the target page is switched back to the second picture display type.
Whether the picture display types are switched or not is a trigger condition. The responding determines that the target page is switched from the second picture display type to the first picture display type, specifically, timing is started when the target page is switched to the first picture display type. The preset time may be a preset time. The second picture display type generally refers to a default picture display type of the target page, that is, a type of the target page showing a default picture. As an example, when the target page is a goods information list page of a shopping website, the type of the default picture may be a picture type showing goods. This may avoid the user forgetting to switch back to the default picture type.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for switching the picture display types in this embodiment represents that the switching result that the target page is the first picture display type is different from the switching result that the target page is not the first picture display type. The switching result of the former is to show the first type picture stored by the execution main body. The switching result of the latter is to show the first type picture which is acquired from the server and is not overlapped with the first type picture stored by the execution main body. Therefore, the scheme described in the embodiment can enrich the switching modes of the picture display types, and simultaneously further meet the personalized requirements of the user.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for switching a picture display type, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus is particularly applicable to various electronic devices.
As shown in fig. 5, the apparatus 500 for switching picture display types of the present embodiment includes: the detection unit 501 is configured to respond to detection of a first operation of a user on a target page, and generate a first operation instruction according to the first operation; a first determining unit 502, configured to determine whether the current picture display type is a first picture display type in response to determining that the first operation instruction represents a switch of the target page from the current picture display type to the first picture display type; a second determination unit 503 configured to determine whether or not an operation instruction matching the first operation instruction exists in a prestored operation instruction list in response to the determination of no; a switching unit 504 configured to switch the current picture display type of the target page to the first picture display type in response to determining that the current picture display type exists.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the features and resulting advantages described above with respect to the method are equally applicable to the apparatus 500 and the units included therein, and are not described in detail here.
In some optional implementations of this embodiment, the target page may include a preset picture frame set.
In some optional implementations of this embodiment, the switching unit 504 is further configured to: determining whether at least one first type picture corresponding to the picture frame exists in the electronic equipment displaying the target page or not for the picture frame in the picture frame set; and in response to determining that the picture frame exists, selecting a first type picture from the at least one first type picture, and filling the selected first type picture into the picture frame.
In some optional implementations of the present embodiment, the switching unit 504 is further configured to: responding to the situation that at least one first type picture corresponding to the picture frame does not exist in the electronic equipment for displaying the target page, acquiring the first type picture from the target server, and determining whether the acquisition is successful or not; filling the acquired first type picture into the picture frame in response to determining that the acquisition is successful; and filling a preset picture into the picture frame in response to determining that the acquisition fails.
In some optional implementations of this embodiment, the second determining unit 503 is further configured to: and in response to determining that the current picture display type of the target page is a first picture display type, acquiring a first type picture corresponding to the picture frame from the target server for the picture frame in the picture frame set, and filling the acquired first type picture into the picture frame in response to determining that the acquired first type picture is different from the first type picture corresponding to the picture frame in the electronic equipment for displaying the target page.
In some optional implementations of this embodiment, the apparatus further includes: a third determining unit (not shown in the figure) configured to determine whether the current picture display type of the target page is the first picture display type in response to receiving a page turning instruction for the target page; and the page turning unit is configured to execute a page turning instruction in response to the determination that the page is the target page, and set the current picture display type of the target page to be the first picture display type.
In some optional implementations of this embodiment, the apparatus further includes: and a switching-back unit (not shown in the figure) configured to switch the target page back to the second picture display type in response to determining that the target page is switched from the second picture display type to the first picture display type and in response to detecting no operation of the target page by the user within a preset time.
It will be appreciated that the elements described in the above alternative implementation of the present embodiment correspond to the various steps in the method described with reference to fig. 4. Thus, the features and resulting advantages described above for the method are also applicable to the apparatus and the units included in the apparatus in the above-mentioned alternative implementations, and are not described herein again.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use to implement a server according to embodiments of the present application is shown. The server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, touch screen, microphone, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601. It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a detection unit, a first determination unit, a second determination unit, and a switching unit. Here, the names of these units do not constitute a limitation to the unit itself in some cases, and for example, the switching unit may also be described as a "unit that switches the current picture display type of the target page to the first picture display type".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: responding to the first operation of a user on a target page, and generating a first operation instruction according to the first operation; in response to determining that the first operation instruction represents switching of the target page from a current picture display type to a first picture display type, determining whether the current picture display type is the first picture display type; in response to the determination result, determining whether an operation instruction matched with the first operation instruction exists in a prestored operation instruction list or not; and in response to determining that the current picture display type of the target page exists, switching the current picture display type of the target page to the first picture display type. The embodiment enriches the display function of the page.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (14)

1. A method for switching picture display types, comprising:
responding to the detection of a first operation of a user on a target page, and generating a first operation instruction according to the first operation;
in response to determining that the first operation instruction represents switching of the type of the picture displayed by the target page from a current picture display type to a first picture display type, determining whether the current picture display type is the first picture display type;
in response to determining not, determining whether an operation instruction matching the first operation instruction exists in a prestored operation instruction list;
in response to determining that the current picture display type of the picture displayed by the target page is the first picture display type, switching the current picture display type of the picture displayed by the target page to the first picture display type.
2. The method of claim 1, wherein the target page comprises a preset set of picture frames.
3. The method of claim 2, wherein the switching the current picture display type of the picture displayed by the target page to the first picture display type comprises:
determining whether at least one first type picture corresponding to a picture frame exists in the electronic equipment displaying the target page or not for the picture frame in the picture frame set; in response to determining that there is a first type picture, selecting a first type picture from the at least one first type picture, and filling the selected first type picture into the picture frame.
4. The method of claim 3, wherein the method further comprises:
in response to determining that at least one first type picture corresponding to the picture frame does not exist in the electronic equipment, acquiring the first type picture from a target server, and determining whether the acquisition is successful; in response to determining that the fetching is successful, filling the fetched first type picture into the picture frame; and filling a preset picture into the picture frame in response to determining that the acquisition fails.
5. The method of claim 2, wherein the method further comprises:
and in response to determining that the current picture display type of the picture displayed on the target page is a first picture display type, acquiring a first type picture corresponding to the picture frame from a target server for the picture frame in the picture frame set, and in response to determining that the acquired first type picture is different from the first type picture corresponding to the picture frame in the electronic equipment displaying the target page, filling the acquired first type picture into the picture frame.
6. The method according to one of claims 1-5, wherein the method further comprises:
and in response to determining that the type of the picture displayed by the target page is switched from the second picture display type to the first picture display type, determining whether a user operation on the target page is detected within a preset time length, and in response to determining that the user operation is not detected within the preset time length, switching the target page back to the second picture display type.
7. An apparatus for switching picture display types, comprising:
the detection unit is configured to respond to detection of a first operation of a user on a target page, and generate a first operation instruction according to the first operation;
a first determination unit configured to determine whether the current picture display type is a first picture display type in response to determining that the first operation instruction characterizes a switching of a type of a picture displayed by the target page from the current picture display type to the first picture display type;
a second determination unit configured to determine whether an operation instruction matching the first operation instruction exists in a pre-stored operation instruction list in response to a determination of no;
a switching unit configured to switch the current picture display type of a picture displayed by the target page to the first picture display type in response to determining that there is.
8. The apparatus of claim 7, wherein the target page comprises a preset set of picture frames.
9. The apparatus of claim 8, wherein the switching unit is further configured to:
determining whether at least one first type picture corresponding to a picture frame exists in the electronic equipment displaying the target page or not for the picture frame in the picture frame set; in response to determining that there is a first type picture, selecting a first type picture from the at least one first type picture, and filling the selected first type picture into the picture frame.
10. The apparatus of claim 9, wherein the switching unit is further configured to:
in response to determining that at least one first type picture corresponding to the picture frame does not exist in the electronic equipment, acquiring the first type picture from a target server, and determining whether the acquisition is successful; in response to determining that the fetching is successful, filling the fetched first type picture into the picture frame; and filling a preset picture into the picture frame in response to determining that the acquisition fails.
11. The apparatus of claim 8, wherein the second determining unit is further configured to:
and in response to determining that the current picture display type of the picture displayed on the target page is a first picture display type, acquiring a first type picture corresponding to the picture frame from a target server for the picture frame in the picture frame set, and in response to determining that the acquired first type picture is different from the first type picture corresponding to the picture frame in the electronic equipment displaying the target page, filling the acquired first type picture into the picture frame.
12. The apparatus according to one of claims 7-11, wherein the apparatus further comprises:
The switching-back unit is configured to respond to the fact that the type of the picture displayed by the target page is switched from the second picture display type to the first picture display type, determine whether the operation of the target page by the user is detected within a preset time length, and respond to the fact that the operation is not detected within the preset time length, and switch the target page back to the second picture display type.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201811531976.6A 2018-12-14 2018-12-14 Method and device for switching picture display types Active CN111324244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811531976.6A CN111324244B (en) 2018-12-14 2018-12-14 Method and device for switching picture display types

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811531976.6A CN111324244B (en) 2018-12-14 2018-12-14 Method and device for switching picture display types

Publications (2)

Publication Number Publication Date
CN111324244A CN111324244A (en) 2020-06-23
CN111324244B true CN111324244B (en) 2022-06-07

Family

ID=71168363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811531976.6A Active CN111324244B (en) 2018-12-14 2018-12-14 Method and device for switching picture display types

Country Status (1)

Country Link
CN (1) CN111324244B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113625979A (en) * 2021-07-06 2021-11-09 深圳点猫科技有限公司 Picture self-adaptive display method, device, system and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289479A (en) * 2011-08-01 2011-12-21 百度在线网络技术(北京)有限公司 Method, device and equipment for determining image showing mode and showing image
CN106407383A (en) * 2016-09-13 2017-02-15 乐视控股(北京)有限公司 Picture ranking method and device
CN107133336A (en) * 2017-05-15 2017-09-05 在线途游(北京)科技有限公司 The switching methods of exhibiting and device of a kind of user interface element
WO2018029827A1 (en) * 2016-08-10 2018-02-15 楽天株式会社 Information processing device, information processing method, program and storage medium
CN107728892A (en) * 2017-09-20 2018-02-23 平安科技(深圳)有限公司 picture display method, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289479A (en) * 2011-08-01 2011-12-21 百度在线网络技术(北京)有限公司 Method, device and equipment for determining image showing mode and showing image
WO2018029827A1 (en) * 2016-08-10 2018-02-15 楽天株式会社 Information processing device, information processing method, program and storage medium
CN106407383A (en) * 2016-09-13 2017-02-15 乐视控股(北京)有限公司 Picture ranking method and device
CN107133336A (en) * 2017-05-15 2017-09-05 在线途游(北京)科技有限公司 The switching methods of exhibiting and device of a kind of user interface element
CN107728892A (en) * 2017-09-20 2018-02-23 平安科技(深圳)有限公司 picture display method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN111324244A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
CN110708346B (en) Information processing system and method
CN110046021B (en) Page display method, device, system, equipment and storage medium
US10664516B2 (en) Search system, method and apparatus
CN109981787B (en) Method and device for displaying information
CN109446442B (en) Method and apparatus for processing information
CN108646972B (en) Method and equipment for displaying information and searching information
KR102087807B1 (en) Character inputting method and apparatus
CN110619100B (en) Method and apparatus for acquiring data
CN109582317B (en) Method and apparatus for debugging hosted applications
US20230239546A1 (en) Theme video generation method and apparatus, electronic device, and readable storage medium
CN109413056B (en) Method and apparatus for processing information
CN111459364A (en) Icon updating method and device and electronic equipment
CN111461967B (en) Picture processing method, device, equipment and computer readable medium
CN111309225B (en) Screen clearing processing method and device
CN113190152A (en) Method and device for switching application program theme
US20220050562A1 (en) Methods and apparatuses for generating a hosted application
CN111694629A (en) Information display method and device and electronic equipment
CN110673886B (en) Method and device for generating thermodynamic diagrams
CN109409419B (en) Method and apparatus for processing data
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN111324244B (en) Method and device for switching picture display types
CN107291235B (en) Control method and device
CN109947528B (en) Information processing method and device
CN109951380B (en) Method, electronic device, and computer-readable medium for finding conversation messages
CN109522429B (en) Method and apparatus for generating information

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