CN118466817A - Interactive control method, device, computer equipment and medium for application page - Google Patents
Interactive control method, device, computer equipment and medium for application page Download PDFInfo
- Publication number
- CN118466817A CN118466817A CN202410616410.2A CN202410616410A CN118466817A CN 118466817 A CN118466817 A CN 118466817A CN 202410616410 A CN202410616410 A CN 202410616410A CN 118466817 A CN118466817 A CN 118466817A
- Authority
- CN
- China
- Prior art keywords
- view
- interactive
- interaction
- control
- user
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及页面交互技术领域,特别是涉及一种应用页面的交互控制方法、应用页面的交互控制装置、计算机设备、计算机可读存储介质和计算机程序产品。The present application relates to the technical field of page interaction, and in particular to an interactive control method for an application page, an interactive control device for an application page, a computer device, a computer-readable storage medium, and a computer program product.
背景技术Background Art
在应用页面的开发过程中,经常需要利用不同层级的视图来实现对页面控件功能的动态使用,现有技术中,通常采用为在应用页面中配置多个功能控件,从而通过用户在应用页面上对各功能控件的触控操作,以触发功能控件执行相应的响应逻辑。In the development process of application pages, it is often necessary to use views at different levels to realize dynamic use of page control functions. In the prior art, multiple function controls are usually configured in the application page, so that the user can touch each function control on the application page to trigger the function control to execute the corresponding response logic.
在现有技术中,由于用户操作不当,常常会出现对功能控件的无效触控,如重复触控、触控位置偏差或者触控类型错误等,导致系统需要花费较多的计算资源去处理这些无效的触控指令,从而增加了系统响应逻辑的复杂度和降低了页面功能使用的有效性。In the prior art, invalid touches on functional controls often occur due to improper user operations, such as repeated touches, touch position deviations, or touch type errors, causing the system to spend more computing resources to process these invalid touch instructions, thereby increasing the complexity of the system response logic and reducing the effectiveness of the page function usage.
发明内容Summary of the invention
针对上述问题,本公开提供一种应用页面的交互控制方法、应用页面的交互控制装置、计算机设备、计算机可读存储介质和计算机程序产品。本公开的技术方案如下:In view of the above problems, the present disclosure provides an interactive control method for an application page, an interactive control device for an application page, a computer device, a computer-readable storage medium, and a computer program product. The technical solution of the present disclosure is as follows:
根据本公开实施例的第一方面,提供一种应用页面的交互控制方法,包括:According to a first aspect of an embodiment of the present disclosure, there is provided an interactive control method for an application page, comprising:
响应用户在展示的应用页面中触发功能交互请求,获取所述用户在所述应用页面中的触控数据;其中,所述应用页面上配置有至少一个交互控件,且在所述交互控件的上层视图中覆盖有预设的交互视图;In response to a user triggering a function interaction request in a displayed application page, acquiring touch data of the user in the application page; wherein at least one interactive control is configured on the application page, and a preset interactive view is covered in an upper view of the interactive control;
基于所述触控数据,对所述功能交互请求进行有效性验证,得到对应的验证结果;Based on the touch data, verify the validity of the function interaction request to obtain a corresponding verification result;
在所述验证结果表征所述功能交互请求无效的情况下,执行针对所述交互视图预设的交互响应逻辑;或者,在所述验证结果表征所述功能交互请求有效的情况下,执行针对所述交互控件预设的交互响应逻辑。When the verification result indicates that the functional interaction request is invalid, the preset interactive response logic for the interactive view is executed; or, when the verification result indicates that the functional interaction request is valid, the preset interactive response logic for the interactive control is executed.
在一示例性实施例中,在所述基于所述触控数据,对所述功能交互请求进行有效性验证,得到对应的验证结果之后,还包括:In an exemplary embodiment, after verifying the validity of the function interaction request based on the touch data and obtaining a corresponding verification result, the method further includes:
在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,In the application page, the interactive control is functionally shielded based on the interactive view to shield the user from touch operations on the interactive control; or,
基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作。The interactive control is functionally enabled based on the interactive view to receive a touch operation of the user on the interactive control.
在一示例性实施例中,在所述响应用户在展示的应用页面中触发功能交互请求,获取所述用户在所述应用页面中的触控数据之前,还包括:In an exemplary embodiment, before responding to a user triggering a function interaction request in a displayed application page and acquiring the touch data of the user in the application page, the method further includes:
在所述应用页面的触控区域上添入一张交互视图,以将所述触控区域内包含的各交互控件覆盖;Adding an interactive view to the touch area of the application page to cover the interactive controls contained in the touch area;
配置所述交互视图的颜色为透明色,以在所述应用页面中隐藏所述交互视图;以及Configuring the color of the interactive view to be transparent so as to hide the interactive view in the application page; and
将所述触控区域内包含的各所述交互控件分别与所述交互视图关联,以在所述用户在所述应用页面中对所述交互视图进行触控操作时,执行针对所述交互视图预设的响应测试函数。Each of the interactive controls contained in the touch area is associated with the interactive view respectively, so that when the user performs a touch operation on the interactive view in the application page, a preset response test function for the interactive view is executed.
在一示例性实施例中,在所述响应用户在展示的应用页面中触发功能交互请求,获取所述用户在所述应用页面中的触控数据之前,还包括:In an exemplary embodiment, before responding to a user triggering a function interaction request in a displayed application page and acquiring the touch data of the user in the application page, the method further includes:
在所述应用页面的每一交互控件上分别添入一张交互视图,以将所述应用页面中包含的各个交互控件覆盖;Adding an interactive view to each interactive control on the application page to cover each interactive control included in the application page;
配置各所述交互视图的颜色为透明色,以在所述应用页面中隐藏各所述交互视图;以及Configuring the color of each of the interactive views to be transparent so as to hide each of the interactive views in the application page; and
获取各所述交互视图的视图信息;所述视图信息包括所述交互视图在所述应用页面中的页面区域大小、所对应的交互控件的交互响应逻辑或者控件类型;Obtaining view information of each of the interactive views; the view information includes the page area size of the interactive view in the application page, the interactive response logic or control type of the corresponding interactive control;
基于各所述交互视图的视图信息,将各所述交互视图分类为对应的多个视图集合,并将所述视图集合存储于预设的存储介质中,以在所述用户对目标交互控件进行触控操作时,从对应的视图集合中提取出目标交互视图,并执行针对所述目标交互视图预设的响应测试函数。Based on the view information of each of the interactive views, each of the interactive views is classified into a corresponding plurality of view sets, and the view sets are stored in a preset storage medium, so that when the user performs a touch operation on a target interactive control, a target interactive view is extracted from the corresponding view set, and a preset response test function for the target interactive view is executed.
在一示例性实施例中,所述在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作,包括:In an exemplary embodiment, in the application page, functionally shielding the interactive control based on the interactive view to shield the user's touch operation on the interactive control; or functionally enabling the interactive control based on the interactive view to receive the user's touch operation on the interactive control includes:
在所述交互视图为由多个子视图复合而成的复合视图的情况下,在所述应用页面中,对所述用户触控的目标交互控件所对应的目标子视图进行显示,以对所述目标交互控件进行功能屏蔽;以及,对所述用户未触控的交互控件所对应的子视图进行隐藏,以对所述交互控件进行功能开启。In the case where the interactive view is a composite view composed of multiple sub-views, in the application page, the target sub-view corresponding to the target interactive control touched by the user is displayed to shield the function of the target interactive control; and the sub-view corresponding to the interactive control not touched by the user is hidden to enable the function of the interactive control.
在一示例性实施例中,所述在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作,包括:In an exemplary embodiment, in the application page, functionally shielding the interactive control based on the interactive view to shield the user's touch operation on the interactive control; or functionally enabling the interactive control based on the interactive view to receive the user's touch operation on the interactive control includes:
在所述交互视图为单个视图的情况下,在所述应用页面中,对所述用户触控的目标交互控件所对应的视图区域进行显示,以对目标交互控件进行功能屏蔽;以及,对所述用户未触控的交互控件所对应的视图区域进行隐藏,以对所述交互控件进行功能开启。When the interactive view is a single view, in the application page, the view area corresponding to the target interactive control touched by the user is displayed to shield the function of the target interactive control; and the view area corresponding to the interactive control not touched by the user is hidden to enable the function of the interactive control.
在一示例性实施例中,所述在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作,包括:In an exemplary embodiment, in the application page, functionally shielding the interactive control based on the interactive view to shield the user's touch operation on the interactive control; or functionally enabling the interactive control based on the interactive view to receive the user's touch operation on the interactive control includes:
在所述交互视图为所述视图集合中提取出的目标交互视图的情况下,将所述目标交互视图移动到所述目标交互控件所对应的页面区域进行覆盖,以对所述目标交互控件进行功能屏蔽;以及,对未覆盖有交互视图的交互控件进行功能开启。When the interaction view is the target interaction view extracted from the view set, the target interaction view is moved to the page area corresponding to the target interaction control to cover it so as to functionally shield the target interaction control; and the interaction control that is not covered by the interaction view is functionally enabled.
在一示例性实施例中,所述在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作,包括:In an exemplary embodiment, in the application page, functionally shielding the interactive control based on the interactive view to shield the user's touch operation on the interactive control; or functionally enabling the interactive control based on the interactive view to receive the user's touch operation on the interactive control includes:
在所述用户在所述应用页面中对所述交互视图进行的触控操作为多重交互操作的情况下,基于所述多重交互操作的交互手势,确定所述多重交互操作在所述应用页面中涉及的父视图和子视图;In a case where the touch operation performed by the user on the interactive view in the application page is a multiple interactive operation, determining a parent view and a child view involved in the multiple interactive operations in the application page based on the interactive gestures of the multiple interactive operations;
将所述多重交互操作从所述父视图的成员属性中移除,以对所述多重交互操作所对应的交互控件进行功能屏蔽;或者,将所述多重交互操作从所述父视图的成员属性中添入,以对所述多重交互操作所对应的交互控件进行功能开启。The multiple interactive operations are removed from the member properties of the parent view to shield the functions of the interactive controls corresponding to the multiple interactive operations; or, the multiple interactive operations are added from the member properties of the parent view to enable the functions of the interactive controls corresponding to the multiple interactive operations.
在一示例性实施例中,所在述基于所述多重交互操作的交互手势,确定所述多重交互操作在所述应用页面中涉及的父视图和子视图之后,还包括:In an exemplary embodiment, after determining the parent view and the child view involved in the multiple interactive operations in the application page based on the interactive gestures of the multiple interactive operations, the method further includes:
将所述多重交互操作的成员变量设置为无效,以对所述多重交互操作所对应的交互控件进行功能屏蔽;或者,将所述多重交互操作的成员变量设置为有效,以对所述多重交互操作所对应的交互控件进行功能开启。The member variables of the multiple interactive operations are set to be invalid to functionally shield the interactive controls corresponding to the multiple interactive operations; or the member variables of the multiple interactive operations are set to be valid to functionally enable the interactive controls corresponding to the multiple interactive operations.
在一示例性实施例中,所在述基于所述多重交互操作的交互手势,确定所述多重交互操作在所述应用页面中涉及的父视图和子视图之后,还包括:In an exemplary embodiment, after determining the parent view and the child view involved in the multiple interactive operations in the application page based on the interactive gestures of the multiple interactive operations, the method further includes:
将针对所述子视图预设的交互开关关闭,以对所述多重交互操作所对应的交互控件进行功能屏蔽;或者,将针对所述子视图预设的交互开关开启,以对所述多重交互操作所对应的交互控件进行功能开启。The preset interactive switch for the sub-view is turned off to shield the functions of the interactive controls corresponding to the multiple interactive operations; or the preset interactive switch for the sub-view is turned on to enable the functions of the interactive controls corresponding to the multiple interactive operations.
在一示例性实施例中,所述在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作,包括:In an exemplary embodiment, in the application page, functionally shielding the interactive control based on the interactive view to shield the user's touch operation on the interactive control; or functionally enabling the interactive control based on the interactive view to receive the user's touch operation on the interactive control includes:
在所述应用页面中,确定出满足预设条件的父视图,或者在所述应用页面中,添入一满足预设条件的父视图;所述预设条件包括在所述父视图下只有一个子视图,以及所述父视图的尺寸大小和颜色与所述子视图相同,或者所述父视图的背景色为透明色;In the application page, a parent view that meets a preset condition is determined, or a parent view that meets a preset condition is added to the application page; the preset condition includes that there is only one child view under the parent view, and the size and color of the parent view are the same as those of the child view, or the background color of the parent view is transparent;
将所述父视图的尺寸大小调整为预设大小,以对所述父视图所对应的交互控件进行功能屏蔽;Adjusting the size of the parent view to a preset size to shield the function of the interactive control corresponding to the parent view;
将所述父视图的尺寸大小从所述预设大小调整回与所述子视图相同,以对所述父视图所对应的交互控件进行功能开启。The size of the parent view is adjusted from the preset size back to the same size as the child view, so as to enable the function of the interactive control corresponding to the parent view.
在一示例性实施例中,所述响应用户在展示的应用页面中触发功能交互请求,获取所述用户在所述应用页面中的触控数据,包括:In an exemplary embodiment, in response to a user triggering a function interaction request in a displayed application page, obtaining touch data of the user in the application page includes:
响应所述用户在所述应用页面中对所述交互视图进行触控操作,获取所述交互视图对应执行的响应测试函数;In response to the user performing a touch operation on the interactive view in the application page, obtaining a response test function executed corresponding to the interactive view;
对所述响应测试函数进行重写,得到所述用户的触控坐标和触控类型;Rewrite the response test function to obtain the touch coordinates and touch type of the user;
基于所述触控坐标和所述触控类型,确定所述触控操作为重复交互操作或者不为重复交互操作。Based on the touch coordinates and the touch type, it is determined whether the touch operation is a repeated interaction operation or not.
在一示例性实施例中,所述基于所述触控数据,对所述功能交互请求进行有效性验证,得到对应的验证结果,包括:In an exemplary embodiment, the performing validity verification on the function interaction request based on the touch data to obtain a corresponding verification result includes:
在所述触控数据满足预设的验证条件的情况下,确定所述功能交互请求有效,得到对应表征所述功能交互请求有效的验证结果;或者In a case where the touch data satisfies a preset verification condition, determining that the function interaction request is valid, and obtaining a verification result corresponding to the validity of the function interaction request; or
在所述触控数据不满足预设的验证条件的情况下,确定所述功能交互请求无效,得到对应表征所述功能交互请求无效的验证结果;In the case where the touch data does not satisfy a preset verification condition, determining that the function interaction request is invalid, and obtaining a verification result corresponding to the invalidity of the function interaction request;
其中,所述验证条件包括以下三项:The verification conditions include the following three items:
所述用户的触控类型是否为预设类型、所述用户的触控坐标是否处于所述交互控件的区域范围内,以及所述用户的触控操作是否不为重复交互操作。Whether the touch type of the user is a preset type, whether the touch coordinates of the user are within the area of the interactive control, and whether the touch operation of the user is not a repeated interactive operation.
根据本公开实施例的第二方面,提供一种应用页面的交互控制装置,包括:According to a second aspect of an embodiment of the present disclosure, there is provided an interactive control device for an application page, including:
数据获取模块,用于响应用户在展示的应用页面中触发功能交互请求,获取所述用户在所述应用页面中的触控数据;其中,所述应用页面上配置有至少一个交互控件,且在所述交互控件的上层视图中覆盖有预设的交互视图;A data acquisition module, configured to respond to a user triggering a function interaction request in a displayed application page, and acquire the touch data of the user in the application page; wherein at least one interactive control is configured on the application page, and a preset interactive view is covered in the upper view of the interactive control;
有效验证模块,用于基于所述触控数据,对所述功能交互请求进行有效性验证,得到对应的验证结果;A validity verification module, used to verify the validity of the functional interaction request based on the touch data to obtain a corresponding verification result;
响应逻辑模块,用于在所述验证结果表征所述功能交互请求无效的情况下,执行针对所述交互视图预设的交互响应逻辑;或者,在所述验证结果表征所述功能交互请求有效的情况下,执行针对所述交互控件预设的交互响应逻辑。The response logic module is used to execute the interaction response logic preset for the interaction view when the verification result indicates that the functional interaction request is invalid; or to execute the interaction response logic preset for the interaction control when the verification result indicates that the functional interaction request is valid.
根据本公开实施例的第三方面,提供一种计算机设备,包括:According to a third aspect of an embodiment of the present disclosure, a computer device is provided, including:
处理器以及与所述处理器连接的存储器,其中,所述存储器中存储有程序数据,所述处理器用于调取所述存储器中存储的所述程序数据,以实现如上述任一项所述的应用页面的交互控制方法。A processor and a memory connected to the processor, wherein the memory stores program data, and the processor is used to call the program data stored in the memory to implement the interactive control method of the application page as described in any one of the above items.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质中包括程序数据,当所述程序数据由计算机设备的处理器执行时,使得所述计算机设备能够执行如上述任一项所述的应用页面的交互控制方法。According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes program data, and when the program data is executed by a processor of a computer device, the computer device is enabled to execute the interactive control method of the application page as described in any one of the above items.
根据本公开实施例的第五方面,提供一种计算机程序产品,所述计算机程序产品中包括程序指令,所述程序指令被计算机设备的处理器执行时,使得所述计算机设备能够执行如上述任一项所述的应用页面的交互控制方法。According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes program instructions, and when the program instructions are executed by a processor of a computer device, the computer device is enabled to execute the interactive control method of the application page as described in any one of the above items.
本公开的实施例提供的技术方案至少带来以下有益效果:The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
一方面,本方案先通过响应用户触发的功能交互请求,以获取用户的触控数据,然后再对该对功能交互请求进行有效性验证,以在功能交互请求无效的情况下,执行针对交互视图预设的交互响应逻辑;或在功能交互请求有效的情况下,执行针对交互控件预设的交互响应逻辑,从而优化了对页面的交互控制流程,有效提高了页面功能使用的效率,降低了计算资源的消耗;另一方面,本方案通过用户在应用页面中的触控数据,来判断用户触发的功能交互请求是否有效,以执行针对交互视图预设的交互响应逻辑或者执行针对交互控件预设的交互响应逻辑,从而能够对用户触发的功能交互请求进行有效管理,实现对应的交互响应逻辑,以降低了系统响应逻辑的复杂度和增加了页面功能使用的有效性。On the one hand, this solution first obtains the user's touch data by responding to the function interaction request triggered by the user, and then verifies the validity of the function interaction request, so that when the function interaction request is invalid, the preset interaction response logic for the interaction view is executed; or when the function interaction request is valid, the preset interaction response logic for the interaction control is executed, thereby optimizing the interaction control process of the page, effectively improving the efficiency of page function use, and reducing the consumption of computing resources; on the other hand, this solution determines whether the function interaction request triggered by the user is valid through the user's touch data in the application page, so as to execute the preset interaction response logic for the interaction view or the preset interaction response logic for the interaction control, so as to effectively manage the function interaction request triggered by the user and implement the corresponding interaction response logic, thereby reducing the complexity of the system response logic and increasing the effectiveness of page function use.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对本申请实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments of the present application or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
图1是根据一示例性实施例示出的一种应用页面的交互控制方法的应用环境图。Fig. 1 is an application environment diagram showing an interactive control method for an application page according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种应用页面的交互控制方法的流程图。Fig. 2 is a flow chart showing a method for interactive control of an application page according to an exemplary embodiment.
图3是根据一示例性实施例示出的第一种对应用页面进行交互控制的流程图。Fig. 3 is a flow chart showing a first method of interactively controlling an application page according to an exemplary embodiment.
图4是根据一示例性实施例示出的第二种对应用页面进行交互控制的流程图。Fig. 4 is a flow chart showing a second method of interactively controlling an application page according to an exemplary embodiment.
图5是根据一示例性实施例示出的第三种对应用页面进行交互控制的流程图。Fig. 5 is a flowchart showing a third method of interactively controlling an application page according to an exemplary embodiment.
图6是根据一示例性实施例示出的第一种添加交互视图的页面图。Fig. 6 is a page diagram showing a first method of adding an interactive view according to an exemplary embodiment.
图7是根据一示例性实施例示出的第二种添加交互视图的页面图。Fig. 7 is a page diagram showing a second method of adding an interactive view according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种自定义的管理模块的结构图。Fig. 8 is a structural diagram showing a customized management module according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种对交互视图进行存储管理的流程图。Fig. 9 is a flow chart showing a method of storing and managing interactive views according to an exemplary embodiment.
图10是根据一示例性实施例示出的一种对应用页面进行交互控制的页面图。Fig. 10 is a page diagram showing interactive control of an application page according to an exemplary embodiment.
图11是根据一示例性实施例示出的一种多重交互操作的相关视图的页面图。Fig. 11 is a page diagram showing related views of a multiple interactive operation according to an exemplary embodiment.
图12是根据一示例性实施例示出的一种调整视图尺寸的页面图。Fig. 12 is a page diagram showing a method of adjusting a view size according to an exemplary embodiment.
图13是根据一示例性实施例示出的一种应用页面的交互控制装置的结构框图。Fig. 13 is a structural block diagram of an interactive control device for an application page according to an exemplary embodiment.
图14是根据一示例性实施例示出的一种用于应用页面交互控制的计算机设备的框图。Fig. 14 is a block diagram showing a computer device for interactive control of application pages according to an exemplary embodiment.
具体实施方式DETAILED DESCRIPTION
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
本申请实施例中的术语“和/或”指的是包括相关联的列举项目中的一个或多个的任何和全部的可能组合。还要说明的是:当用在本说明书中时,“包括/包含”指定所陈述的特征、整数、步骤、操作、元件和/或组件的存在,但是不排除一个或多个其他特征、整数、步骤、操作、元件和/或组件和/或它们的组群的存在或添加。The term "and/or" in the embodiments of the present application refers to any and all possible combinations of one or more of the associated enumerated items. It should also be noted that when used in this specification, "include/comprise" specifies the existence of the stated features, integers, steps, operations, elements and/or components, but does not exclude the existence or addition of one or more other features, integers, steps, operations, elements and/or components and/or their groups.
本申请中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
另外,本申请中尽管多次采用术语“第一”、“第二”等来描述各种操作(或各种元件或各种应用或各种指令或各种数据)等,不过这些操作(或元件或应用或指令或数据)不应受这些术语的限制。这些术语只是用于区分一个操作(或元件或应用或指令或数据)和另一个操作(或元件或应用或指令或数据)。In addition, although the terms "first", "second", etc. are used many times in this application to describe various operations (or various elements or various applications or various instructions or various data), etc., these operations (or elements or applications or instructions or data) should not be limited by these terms. These terms are only used to distinguish one operation (or element or application or instruction or data) from another operation (or element or application or instruction or data).
本申请实施例提供的应用页面的交互控制方法,可以应用于如图1所示的应用环境中。其中,终端102通过通信网络与服务器104进行通信。数据存储系统可以存储服务器104需要处理的数据。数据存储系统可以集成在服务器104上,也可以放在云上或其他网络服务器上。The interactive control method of the application page provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through a communication network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers.
在一些实施例中,参考图1,服务器104响应用户在展示的应用页面中触发功能交互请求,获取用户在应用页面中的触控数据;其中,应用页面上配置有至少一个交互控件,且在交互控件的上层视图中覆盖有预设的交互视图;基于触控数据,对功能交互请求进行有效性验证,得到对应的验证结果;在验证结果表征功能交互请求无效的情况下,执行针对交互视图预设的交互响应逻辑;或者,在验证结果表征功能交互请求有效的情况下,执行针对交互控件预设的交互响应逻辑。In some embodiments, referring to FIG1 , the server 104 responds to a user triggering a function interaction request in a displayed application page, and obtains the touch data of the user in the application page; wherein, at least one interaction control is configured on the application page, and a preset interaction view is covered in the upper view of the interaction control; based on the touch data, the validity of the function interaction request is verified to obtain a corresponding verification result; when the verification result indicates that the function interaction request is invalid, the interaction response logic preset for the interaction view is executed; or, when the verification result indicates that the function interaction request is valid, the interaction response logic preset for the interaction control is executed.
在一些实施例中,终端102(如移动终端、固定终端)可以以各种形式来实施。其中,终端102可为包括诸如移动电话、智能电话、笔记本电脑、便携式手持式设备、个人数字助理(PDA,Personal Digital Assistant)、平板电脑(PAD)等等的移动终端,终端102也可以是自动柜员机(Automated Teller Machine,ATM)、自动一体机、数字TV、台式计算机、固式计算机等等的固定终端。In some embodiments, the terminal 102 (such as a mobile terminal, a fixed terminal) can be implemented in various forms. The terminal 102 can be a mobile terminal including a mobile phone, a smart phone, a laptop, a portable handheld device, a personal digital assistant (PDA), a tablet computer (PAD), etc. The terminal 102 can also be a fixed terminal such as an automated teller machine (ATM), an automatic all-in-one machine, a digital TV, a desktop computer, a fixed computer, etc.
下面,假设终端102是固定终端。然而,本领域技术人员将理解的是,若有特别用于移动目的的操作或者元件,根据本申请公开的实施方式的构造也能够应用于移动类型的终端102。In the following, it is assumed that the terminal 102 is a fixed terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiments disclosed in this application can also be applied to a mobile type terminal 102 if there are operations or elements specifically for mobile purposes.
在一些实施例中,服务器104运行的数据处理组件可以加载正在被执行的可以包括各种附加服务器应用和/或中间层应用中的任何一种,如包括HTTP(超文本传输协议)、FTP(文件传输协议)、CGI(通用网关界面)、RDBMS(关系型数据库管理系统)等。In some embodiments, the data processing component running on the server 104 may load any of a variety of additional server applications and/or middle-tier applications being executed, such as HTTP (Hypertext Transfer Protocol), FTP (File Transfer Protocol), CGI (Common Gateway Interface), RDBMS (Relational Database Management System), etc.
在一些实施例中,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。服务器104可以适于运行提供前述公开中描述的终端102的一个或多个应用服务或软件组件。In some embodiments, the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers. The server 104 may be suitable for running one or more application services or software components that provide the terminal 102 described in the above disclosure.
在一些实施例中,应用服务或软件组件运行的操作系统可以包括各种版本的MicrosoftApple和/或Linux操作系统、各种商用或类操作系统(包括但不限于各种GNU/Linux操作系统、GoogleOS等)和/或移动操作系统,诸如 Phone、OS、OS、OS操作系统,以及其它在线操作系统或者离线操作系统,在这里不做具体的限制。In some embodiments, the operating system running the application service or software component may include various versions of Microsoft Apple and/or Linux operating system, various commercial or similar Operating systems (including but not limited to various GNU/Linux operating systems, Google OS, etc.) and/or mobile operating systems such as Phone, OS, OS, OS operating system, and other online operating systems or offline operating systems are not specifically limited here.
在一些实施例中,如图2所示,图2为本申请中关于应用页面的交互控制方法一实施例中的流程示意图,以该方法应用于图1中的服务器104或移动端系统为例进行说明,该方法包括以下步骤:In some embodiments, as shown in FIG. 2 , FIG. 2 is a flow chart of an embodiment of an interactive control method for an application page in the present application, and the method is applied to the server 104 or the mobile terminal system in FIG. 1 as an example for explanation. The method includes the following steps:
步骤S11:响应用户在展示的应用页面中触发功能交互请求,获取用户在应用页面中的触控数据。Step S11: responding to a user triggering a function interaction request in a displayed application page, and acquiring the user's touch data in the application page.
其中,应用页面上配置有至少一个交互控件,且在交互控件的上层视图中覆盖有预设的交互视图。Among them, at least one interactive control is configured on the application page, and a preset interactive view is covered in the upper view of the interactive control.
具体地,用户在浏览应用页面时,可以通过点击应用页面中显示的交互控件,以触控到对应的交互视图,从而通过该交互视图响应用户发起的功能交互请求。其中,该功能交互请求可以是获取新的内容、更新现有内容或执行其他操作,以满足用户的需求和提供更好的用户体验。例如,用户在车载媒体应用中的“车辆状态”页面点击覆盖在“胎压”控件上方的交互视图,以触发该“车辆状态”页面的功能交互请求,从而服务器获取用户在该交互视图中的触控数据。Specifically, when browsing an application page, the user can click on the interactive control displayed in the application page to touch the corresponding interactive view, thereby responding to the functional interaction request initiated by the user through the interactive view. Among them, the functional interaction request can be to obtain new content, update existing content, or perform other operations to meet the needs of the user and provide a better user experience. For example, the user clicks on the interactive view overlaid on the "Tire Pressure" control on the "Vehicle Status" page in the in-vehicle media application to trigger the functional interaction request of the "Vehicle Status" page, so that the server obtains the user's touch data in the interactive view.
在一些实施例中,响应用户在展示的应用页面中触发功能交互请求,获取用户在应用页面中的触控数据,可以包括以下步骤:In some embodiments, in response to a user triggering a function interaction request in a displayed application page, obtaining the user's touch data in the application page may include the following steps:
步骤一:响应用户在应用页面中对交互视图进行触控操作,获取交互视图对应执行的响应测试函数。Step 1: In response to the user performing a touch operation on the interactive view in the application page, obtain a response test function executed corresponding to the interactive view.
具体地,每当用户对交互视图进行触控操作时,该交互视图将会执行其预设的响应测试函数,以完成对应的函数逻辑,从而服务器可以获取到该交互视图对应执行的响应测试函数。Specifically, whenever a user performs a touch operation on an interactive view, the interactive view will execute its preset response test function to complete the corresponding function logic, so that the server can obtain the response test function executed by the interactive view.
其中,该响应测试函数是用来测试应用页面中视图元素(例如各种交互控件)的交互和响应功能的测试函数。这些测试函数通常会模拟用户与视图元素的交互行为,例如点击按钮、输入文本、选择下拉菜单等操作,并验证视图元素是否正确响应了这些操作。通过交互视图的响应测试函数,开发人员可以确保应用页面的交互功能正常运作,提高应用程序的质量和稳定性。Among them, the response test function is a test function used to test the interaction and response functions of the view elements (such as various interactive controls) in the application page. These test functions usually simulate the interaction between the user and the view elements, such as clicking buttons, entering text, selecting drop-down menus, etc., and verify whether the view elements respond to these operations correctly. Through the response test function of the interactive view, developers can ensure that the interactive functions of the application page are working properly and improve the quality and stability of the application.
步骤二:对响应测试函数进行重写,得到用户的触控坐标和触控类型。Step 2: Rewrite the response test function to obtain the user's touch coordinates and touch type.
步骤三:基于触控坐标和触控类型,确定触控操作为重复交互操作或者不为重复交互操作。Step 3: Based on the touch coordinates and the touch type, determine whether the touch operation is a repeated interaction operation or not.
具体地,服务器首先对交互视图的响应测试函数进行重写,以拿到该函数具体交互的参数,并从中提取出交互发生的坐标点(利润x、y坐标),然后再通过系统函数转换这个坐标点到交互视图的坐标系下,以得到触控坐标;以及,服务器从函数具体交互的参数中提取出用户对交互视图的触控类型,例如用户是点击视图、双击视图还是长按视图等;最后,服务器根据用户触控坐标和触控类型,确定用户的本次触控操作是属于重复交互操作或者不属于重复交互操作。Specifically, the server first rewrites the response test function of the interactive view to obtain the parameters of the specific interaction of the function, and extracts the coordinate point where the interaction occurs (x, y coordinates), and then converts this coordinate point to the coordinate system of the interactive view through the system function to obtain the touch coordinates; and the server extracts the user's touch type on the interactive view from the parameters of the specific interaction of the function, such as whether the user clicks on the view, double-clicks the view, or long presses the view; finally, the server determines whether the user's touch operation is a repeated interaction operation or not based on the user's touch coordinates and touch type.
步骤S12:基于触控数据,对功能交互请求进行有效性验证,得到对应的验证结果。Step S12: Based on the touch data, the validity of the function interaction request is verified to obtain a corresponding verification result.
在一些实施例中,服务器基于触控数据,对功能交互请求进行有效性验证,得到对应的验证结果,可以包括:在触控数据满足预设的验证条件的情况下,确定功能交互请求有效,得到对应表征功能交互请求有效的验证结果;或者,在触控数据不满足预设的验证条件的情况下,确定功能交互请求无效,得到对应表征功能交互请求无效的验证结果。In some embodiments, the server verifies the validity of the function interaction request based on the touch data and obtains a corresponding verification result, which may include: when the touch data meets the preset verification conditions, determining that the function interaction request is valid, and obtaining a verification result corresponding to the validity of the function interaction request; or, when the touch data does not meet the preset verification conditions, determining that the function interaction request is invalid, and obtaining a verification result corresponding to the invalidity of the function interaction request.
其中,验证条件包括以下三项:用户的触控类型是否为预设类型、用户的触控坐标是否处于交互控件的区域范围内,以及用户的触控操作是否不为重复交互操作。The verification conditions include the following three items: whether the user's touch type is a preset type, whether the user's touch coordinates are within the area of the interactive control, and whether the user's touch operation is not a repeated interactive operation.
具体地,服务器结合具体的业务需求的要求,对用户的触控坐标、触控类型和触控操作进行判断,如果触控类型是属于预设类型、触控坐标处于交互控件的区域范围内,以及用户的触控操作是不属于重复交互操作,则确定用户的触控数据满足预设的验证条件,从而用户发起的功能交互请求有效,并得到对应表征功能交互请求有效的验证结果;或者,如果上述三种条件中的至少一项不满足(即触控类型不属于预设类型、触控坐标未处于交互控件的区域范围内,或者用户的触控操作是属于重复交互操作),则确定用户的触控数据不满足预设的验证条件,从而用户发起的功能交互请求无效,并得到对应表征功能交互请求无效的验证结果。Specifically, the server judges the user's touch coordinates, touch type and touch operation in combination with the requirements of specific business needs. If the touch type belongs to the preset type, the touch coordinates are within the area of the interactive control, and the user's touch operation is not a repeated interactive operation, it is determined that the user's touch data meets the preset verification conditions, so that the function interaction request initiated by the user is valid, and a corresponding verification result representing the validity of the function interaction request is obtained; or, if at least one of the above three conditions is not met (that is, the touch type does not belong to the preset type, the touch coordinates are not within the area of the interactive control, or the user's touch operation is a repeated interactive operation), it is determined that the user's touch data does not meet the preset verification conditions, so that the function interaction request initiated by the user is invalid, and a corresponding verification result representing the invalidity of the function interaction request is obtained.
步骤S13:在验证结果表征功能交互请求无效的情况下,执行针对交互视图预设的交互响应逻辑;或者,在验证结果表征功能交互请求有效的情况下,执行针对交互控件预设的交互响应逻辑。Step S13: When the verification result indicates that the functional interaction request is invalid, the preset interactive response logic for the interactive view is executed; or, when the verification result indicates that the functional interaction request is valid, the preset interactive response logic for the interactive control is executed.
其中,交互响应逻辑即为交互响应函数,其是指在应用页面中用来处理用户操作或事件的函数。这些函数通常与特定的视图元素(如按钮、输入框、下拉菜单等)相关联,当用户与这些视图元素进行交互时,相应的交互响应函数会被触发并执行相应的操作或逻辑。例如,一个按钮的点击事件可能会触发一个交互响应函数,该函数可以执行一些特定的操作,比如保存表单数据、跳转到另一个页面、显示提示信息等。交互响应函数的设计和实现可以帮助开发人员实现用户界面的交互功能,并提升用户体验。Among them, the interactive response logic is the interactive response function, which refers to the function used to handle user operations or events in the application page. These functions are usually associated with specific view elements (such as buttons, input boxes, drop-down menus, etc.). When the user interacts with these view elements, the corresponding interactive response function will be triggered and the corresponding operation or logic will be executed. For example, a button click event may trigger an interactive response function, which can perform some specific operations, such as saving form data, jumping to another page, displaying prompt information, etc. The design and implementation of interactive response functions can help developers realize the interactive functions of the user interface and improve the user experience.
在一实施例中,如果功能交互请求对应的验证结果为无效,则服务器执行针对交互视图预设的交互响应逻辑。其中,该交互响应逻辑可以是通过交互视图的交互响应函数执行一个空值,即交互视图对用户的触控操作不会产生任何的反应;或者,该交互响应逻辑可以是通过交互响应函数执行一个提示窗口的功能逻辑,例如,该提示窗口的功能逻辑可以是在应用页面中弹出一个对话框,并显示文案“不要重复点击哦”,从而提示用户。In one embodiment, if the verification result corresponding to the functional interaction request is invalid, the server executes the interaction response logic preset for the interaction view. The interaction response logic may be to execute a null value through the interaction response function of the interaction view, that is, the interaction view will not produce any response to the user's touch operation; or, the interaction response logic may be to execute the functional logic of a prompt window through the interaction response function, for example, the functional logic of the prompt window may be to pop up a dialog box in the application page and display the copy "Do not click repeatedly" to prompt the user.
在一实施例中,如果功能交互请求对应的验证结果为有效,则服务器执行针对交互控件预设的交互响应逻辑。其中,该交互响应逻辑用于执行交互控件所对应的功能应用,例如,针对“胎压”控件预设的交互响应逻辑可以是在应用页面中显示出车辆的各个车胎的胎压数据。In one embodiment, if the verification result corresponding to the functional interaction request is valid, the server executes the interactive response logic preset for the interactive control. The interactive response logic is used to execute the functional application corresponding to the interactive control. For example, the interactive response logic preset for the "tire pressure" control may be to display the tire pressure data of each tire of the vehicle on the application page.
在一具体实施例中,如图3所示,图3为本申请中对应用页面进行交互控制一实施例中的流程示意图。其中,对应用页面进行交互控制具体可以包括如下步骤:In a specific embodiment, as shown in FIG3, FIG3 is a flow chart of an embodiment of interactive control of an application page in the present application. The interactive control of an application page may specifically include the following steps:
步骤一:当用户交互发生时,移动端系统自动调用交互视图的响应测试函数。Step 1: When user interaction occurs, the mobile system automatically calls the response test function of the interactive view.
步骤二:对交互视图的响应测试函数进行重写,以得到响应测试函数的交互参数。Step 2: Rewrite the response test function of the interactive view to obtain the interaction parameters of the response test function.
步骤三:从交互参数中提取出交互发生的交互坐标和交互类型。Step 3: Extract the interaction coordinates and interaction type from the interaction parameters.
步骤四:判断交互类型是否为业务需求所要求的类型;以及,判断交互坐标点是否处于交互控件的区域范围内。Step 4: Determine whether the interaction type is the type required by the business needs; and determine whether the interaction coordinate point is within the area of the interaction control.
其中,若交互类型不是业务需求所要求的类型,则控制交互视图的响应测试函数向交互响应函数返回空值,或者返回交互视图自身的引用数据。If the interaction type is not the type required by the business needs, the response test function that controls the interaction view returns a null value to the interaction response function, or returns the reference data of the interaction view itself.
其中,交互响应函数可以根据交互视图自身的引用数据执行一个提示窗口的功能逻辑,例如,该提示窗口的逻辑数据可以是在应用页面中弹出一个对话框,并显示文案“不要重复点击哦”,从而提示用户。Among them, the interaction response function can execute the functional logic of a prompt window according to the reference data of the interaction view itself. For example, the logical data of the prompt window can pop up a dialog box in the application page and display the copy "Don't click repeatedly" to prompt the user.
其中,若交互坐标点不处于交互控件的区域范围内,则控制交互视图的响应测试函数向交互响应函数返回空值,或者返回交互视图自身的引用数据。If the interaction coordinate point is not within the area of the interaction control, the response test function controlling the interaction view returns a null value to the interaction response function, or returns the reference data of the interaction view itself.
步骤五:在交互类型为业务需求所要求的类型,以及交互坐标点处于交互控件的区域范围内的情况下,再判断交互视图是否为重复交互的视图。Step 5: When the interaction type is the type required by the business needs and the interaction coordinate point is within the area of the interaction control, determine whether the interaction view is a repeated interaction view.
其中,若是,则控制交互视图的响应测试函数向交互响应函数返回交互视图自身的引用数据。If so, the response test function controlling the interactive view returns the reference data of the interactive view itself to the interactive response function.
其中,若不是,则控制交互视图的响应测试函数向交互响应函数返回交互控件自身的引用数据,以执行交互控件所对应的功能逻辑,例如,针对“胎压”控件预设的交互响应逻辑可以是在应用页面中显示出车辆的各个车胎的胎压数据。If not, the response test function that controls the interactive view returns the reference data of the interactive control itself to the interactive response function to execute the functional logic corresponding to the interactive control. For example, the interactive response logic preset for the "tire pressure" control can be to display the tire pressure data of each tire of the vehicle on the application page.
在一具体实施例中,如图4所示,图4为本申请中对应用页面进行交互控制另一实施例中的流程示意图。其中,服务器对应用页面进行交互控制具体可以包括如下步骤:In a specific embodiment, as shown in FIG4, FIG4 is a flow chart of another embodiment of interactive control of application pages in the present application. The server may specifically perform the following steps to interactively control the application page:
步骤一:当用户交互发生时,自动调用交互视图的响应测试函数。Step 1: When user interaction occurs, the response test function of the interactive view is automatically called.
步骤二:对交互视图的响应测试函数进行重写,以得到响应测试函数的交互参数。Step 2: Rewrite the response test function of the interactive view to obtain the interaction parameters of the response test function.
步骤三:从交互参数中提取出交互发生的交互坐标和交互类型。Step 3: Extract the interaction coordinates and interaction type from the interaction parameters.
步骤四:判断交互类型是否为业务需求所要求的类型;以及,判断交互坐标点是否处于交互控件的区域范围内。Step 4: Determine whether the interaction type is the type required by the business needs; and determine whether the interaction coordinate point is within the area of the interaction control.
其中,若交互类型不是业务需求所要求的类型,则控制交互视图的响应测试函数向交互响应函数返回空值。If the interaction type is not the type required by the business requirement, the response test function that controls the interaction view returns a null value to the interaction response function.
其中,若交互坐标点不处于交互控件的区域范围内,则控制交互视图的响应测试函数向交互响应函数返回空值,或者返回预设的分叉2的交互逻辑。其中,分叉2的交互逻辑用于执行交互控件原有的功能应用,例如,针对“胎压”控件预设的交互响应逻辑可以是在应用页面中显示出车辆的各个车胎的胎压数据。If the interactive coordinate point is not within the area of the interactive control, the response test function controlling the interactive view returns a null value to the interactive response function, or returns the preset interactive logic of fork 2. The interactive logic of fork 2 is used to execute the original functional application of the interactive control. For example, the preset interactive response logic for the "tire pressure" control can be to display the tire pressure data of each tire of the vehicle on the application page.
步骤五:在交互类型为业务需求所要求的类型,以及交互坐标点处于交互控件的区域范围内的情况下,再判断交互视图是否为重复交互的视图。Step 5: When the interaction type is the type required by the business needs and the interaction coordinate point is within the area of the interaction control, determine whether the interaction view is a repeated interaction view.
其中,若是,则控制交互视图的响应测试函数向交互响应函数返回预设的分叉1的交互逻辑。其中,分叉1的交互逻辑用于执行关于交互视图的一个提示窗口的功能逻辑,例如,该提示窗口的逻辑数据可以是在应用页面中弹出一个对话框,并显示文案“不要重复点击哦”,从而提示用户。If so, the response test function of the control interactive view returns the preset interaction logic of fork 1 to the interaction response function. The interaction logic of fork 1 is used to execute the functional logic of a prompt window about the interactive view. For example, the logic data of the prompt window can be to pop up a dialog box in the application page and display the text "Do not click repeatedly" to prompt the user.
其中,若不是,则控制返回预设的分叉2的交互逻辑。If not, the control returns to the preset interaction logic of fork 2.
在一实施例中,在基于所述触控数据,对功能交互请求进行有效性验证,得到对应的验证结果之后,还可以执行以下步骤:在应用页面中,基于交互视图对交互控件进行功能屏蔽,以屏蔽用户对交互控件的触控操作;或者,基于交互视图对交互控件进行功能开启,以接收用户对交互控件的触控操作。In one embodiment, after the validity of the functional interaction request is verified based on the touch data and the corresponding verification result is obtained, the following steps can also be performed: in the application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or, the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control.
具体地,在应用页面中,控制开启交互视图,以对交互控件进行功能屏蔽,从而可以屏蔽用户后续对交互控件的重复触控操作;或者,控制关闭交互视图,以对交互控件进行功能开启,从而可以接收用户后续对交互控件的再次触控操作。Specifically, in the application page, the control opens the interactive view to shield the interactive control function, thereby shielding the user's subsequent repeated touch operations on the interactive control; or, the control closes the interactive view to open the interactive control function, thereby receiving the user's subsequent touch operations on the interactive control.
在一具体实施例中,如图5所示,图5为本申请中对应用页面进行交互控制另一实施例中的流程示意图。其中,对应用页面进行交互控制具体可以包括如下步骤:In a specific embodiment, as shown in FIG5 , FIG5 is a flow chart of another embodiment of interactive control of application pages in the present application. The interactive control of application pages may specifically include the following steps:
步骤一:当用户交互发生时,自动调用交互视图的响应测试函数。Step 1: When user interaction occurs, the response test function of the interactive view is automatically called.
步骤二:对交互视图的响应测试函数进行重写,以得到响应测试函数的交互参数。Step 2: Rewrite the response test function of the interactive view to obtain the interaction parameters of the response test function.
步骤三:从交互参数中提取出交互发生的交互坐标和交互类型。Step 3: Extract the interaction coordinates and interaction type from the interaction parameters.
步骤四:判断交互类型是否为业务需求所要求的类型;以及,判断交互坐标点是否处于交互控件的区域范围内。Step 4: Determine whether the interaction type is the type required by the business needs; and determine whether the interaction coordinate point is within the area of the interaction control.
其中,若交互类型不是业务需求所要求的类型,则控制交互视图的响应测试函数向交互响应函数返回空值。If the interaction type is not the type required by the business requirement, the response test function that controls the interaction view returns a null value to the interaction response function.
其中,若交互坐标点不处于交互控件的区域范围内,则控制交互视图的响应测试函数向交互响应函数返回空值。If the interaction coordinate point is not within the area of the interactive control, the response test function controlling the interactive view returns a null value to the interactive response function.
步骤五:在交互类型为业务需求所要求的类型,以及交互坐标点处于交互控件的区域范围内的情况下,再判断交互视图是否为重复交互的视图。Step 5: When the interaction type is the type required by the business needs and the interaction coordinate point is within the area of the interaction control, determine whether the interaction view is a repeated interaction view.
其中,若是,则控制交互视图的响应测试函数向交互响应函数返回交互视图自身的引用数据;以及,在交互视图中,显示出关于交互控件的局部区域,从而对该局部区域进行功能屏蔽,隐藏交互视图中的其他局部区域,从而对该局部区域进行功能开启。Among them, if so, the response test function that controls the interactive view returns the reference data of the interactive view itself to the interactive response function; and, in the interactive view, a local area about the interactive control is displayed, thereby shielding the function of the local area, hiding other local areas in the interactive view, thereby enabling the function of the local area.
其中,这里的隐藏视图其具体的实现办法是例如设置交互视图的部分视图的isHidden属性为true,或者设置交互视图的部分视图的alpha属性为0.0,或者设置交互视图的部分视图的layer属性的opacity属性为0.0等等。而显示视图则其具体的实现办法是例如设置交互视图的部分视图的isHidden属性为false,或者设置交互视图的部分视图的alpha属性为1.0,或者设置交互视图的部分视图的layer属性的opacity属性为1.0等等The specific implementation method of hiding the view here is, for example, setting the isHidden property of some views of the interactive view to true, or setting the alpha property of some views of the interactive view to 0.0, or setting the opacity property of the layer property of some views of the interactive view to 0.0, etc. The specific implementation method of showing the view is, for example, setting the isHidden property of some views of the interactive view to false, or setting the alpha property of some views of the interactive view to 1.0, or setting the opacity property of the layer property of some views of the interactive view to 1.0, etc.
其中,若不是,则控制交互视图的响应测试函数向交互响应函数返回交互控件自身的引用数据,以执行交互控件所对应的功能逻辑;然后再判断条件1:在交互视图中是否已显示出交互控件所对应的局部区域,以及条件2:在交互视图中是否已隐藏交互视图中的其他局部区域。If not, the response test function that controls the interactive view returns the reference data of the interactive control itself to the interactive response function to execute the functional logic corresponding to the interactive control; and then judges condition 1: whether the local area corresponding to the interactive control has been displayed in the interactive view, and condition 2: whether other local areas in the interactive view have been hidden in the interactive view.
其中,若满足上述条件1和条件2,则结束;若不满足上述条件1和条件2中的至少一个,则再在交互视图中,显示出关于交互控件的局部区域,从而对该局部区域进行功能屏蔽,隐藏交互视图中的其他局部区域,从而对该局部区域进行功能开启。Among them, if the above conditions 1 and condition 2 are met, the process ends; if at least one of the above conditions 1 and condition 2 is not met, the local area of the interactive control is displayed in the interactive view, so that the function of the local area is shielded, and other local areas in the interactive view are hidden, so that the function of the local area is enabled.
上述应用页面的交互控制的过程中,一方面,本方案先通过响应用户触发的功能交互请求,以获取用户的触控数据,然后再对该对功能交互请求进行有效性验证,以在功能交互请求无效的情况下,执行针对交互视图预设的交互响应逻辑;或在功能交互请求有效的情况下,执行针对交互控件预设的交互响应逻辑,从而优化了对页面的交互控制流程,有效提高了页面功能使用的效率,降低了计算资源的消耗;另一方面,本方案通过用户在应用页面中的触控数据,来判断用户触发的功能交互请求是否有效,从而执行针对交互视图预设的交互响应逻辑或者执行针对交互控件预设的交互响应逻辑,以能够对用户触发的功能交互请求进行有效管理,实现对应的交互响应逻辑,以降低了系统响应逻辑的复杂度和增加了页面功能使用的有效性。In the process of interactive control of the above-mentioned application page, on the one hand, this scheme first obtains the user's touch data by responding to the function interaction request triggered by the user, and then verifies the validity of the function interaction request, so that when the function interaction request is invalid, the preset interactive response logic for the interactive view is executed; or when the function interaction request is valid, the preset interactive response logic for the interactive control is executed, thereby optimizing the interactive control process of the page, effectively improving the efficiency of the use of page functions, and reducing the consumption of computing resources; on the other hand, this scheme determines whether the function interaction request triggered by the user is valid through the touch data of the user in the application page, thereby executing the preset interactive response logic for the interactive view or executing the preset interactive response logic for the interactive control, so as to be able to effectively manage the function interaction request triggered by the user and implement the corresponding interactive response logic, thereby reducing the complexity of the system response logic and increasing the effectiveness of the use of page functions.
本领域技术人员可以理解地,在具体实施方式的上述方法中,所揭露的方法可以通过更为具体的方式以实现。例如,以上所描述的服务器基于交互视图对交互控件进行功能屏蔽,以屏蔽用户对交互控件的触控操作;或者,基于交互视图对交互控件进行功能开启,以接收用户对交互控件的触控操作的实施方式仅仅是示意性的。Those skilled in the art can understand that in the above method of the specific implementation, the disclosed method can be implemented in a more specific manner. For example, the above described server shields the interactive control based on the interactive view to shield the user's touch operation on the interactive control; or, based on the interactive view, the interactive control is functionally enabled to receive the user's touch operation on the interactive control. The implementation is only illustrative.
在一示例性实施例中,如图6所示,图6为本申请中添加交互视图一实施例中的页面示意图,服务器在响应用户在展示的应用页面中触发功能交互请求,获取用户在应用页面中的触控数据之前,具体还可以包括如下步骤:In an exemplary embodiment, as shown in FIG. 6 , which is a schematic diagram of a page in an embodiment of adding an interactive view in the present application, before the server responds to a user triggering a function interaction request in a displayed application page and obtains the user's touch data in the application page, the server may further include the following steps:
步骤一:在应用页面的触控区域上添入一张交互视图,以将触控区域内包含的各交互控件覆盖。Step 1: Add an interactive view to the touch area of the application page to cover the interactive controls contained in the touch area.
具体地,在应用页面中设置有交互控件的区域添加上一张交互视图。如图6所示,该应用页面为车载应用程序中显示的车辆状态页面,在该车辆状态页面的标题栏位置预先配置有“行程”控件、“车胎”控件和“提醒”控件,用户可以分别点击该三个控件,以分别在车辆状态页面中显示出对应的车辆行程信息、车胎信息和车辆提醒信息。Specifically, an interactive view is added to the area where the interactive controls are set in the application page. As shown in FIG6 , the application page is a vehicle status page displayed in the vehicle application. The title bar of the vehicle status page is pre-configured with a "trip" control, a "tire" control, and a "reminder" control. The user can click on the three controls to display the corresponding vehicle trip information, tire information, and vehicle reminder information in the vehicle status page.
其中,在该标题栏的位置上添加一张交互视图X,该交互视图X覆盖在视图层级的最上层,且其尺寸大小和标题栏相同。其中,该交互视图X和车辆状态页面中现有的视图层级上的任何视图都没有任何关系限制,即交互视图X可以是标题栏所在视图的兄弟视图、父视图、子视图、祖先视图等等,从而当用户对应用页面中标题栏区域进行触控交互时,该交互视图X将会首先接收到触控信号,以执行其响应测试函数。An interactive view X is added at the position of the title bar, and the interactive view X covers the top layer of the view hierarchy, and its size is the same as the title bar. There is no relationship restriction between the interactive view X and any view on the existing view hierarchy in the vehicle status page, that is, the interactive view X can be a sibling view, parent view, child view, ancestor view, etc. of the view where the title bar is located, so that when the user touches the title bar area in the application page, the interactive view X will first receive the touch signal to execute its response test function.
步骤二:配置交互视图的颜色为透明色,以在应用页面中隐藏交互视图;以及,将触控区域内包含的各交互控件分别与交互视图关联,以在用户在应用页面中对交互视图进行触控操作时,执行针对交互视图预设的响应测试函数。Step 2: Configure the color of the interactive view to be transparent to hide the interactive view in the application page; and associate each interactive control contained in the touch area with the interactive view respectively, so that when the user performs a touch operation on the interactive view in the application page, a preset response test function for the interactive view is executed.
具体地,继续如图6所示,在一方面,设置交互视图X的颜色为透明,这样交互视图X对用户不可见,但其是真实存在于视图层级上的,其可以对用户的触控操作产生响应。在另一方面,服务器将标题栏区域内的“行程”控件、“车胎”控件和“提醒”控件分别存储为交互视图X的三个成员属性(例如,将“行程”控件、“车胎”控件和“提醒”控件分别记作交互视图X的成员属性:n、m、k),以将“行程”控件、“车胎”控件和“提醒”控件分别与交互视图X关联,从而在用户在应用页面中对交互视图X进行触控操作时,服务器可以根据触控信号执行针对交互视图X预设的响应测试函数。Specifically, as shown in FIG. 6 , on one hand, the color of the interactive view X is set to transparent, so that the interactive view X is invisible to the user, but it actually exists in the view level and can respond to the user's touch operation. On the other hand, the server stores the "trip" control, "tire" control, and "reminder" control in the title bar area as three member attributes of the interactive view X (for example, the "trip" control, "tire" control, and "reminder" control are recorded as member attributes of the interactive view X: n, m, k), respectively, to associate the "trip" control, "tire" control, and "reminder" control with the interactive view X, respectively, so that when the user performs a touch operation on the interactive view X in the application page, the server can execute a preset response test function for the interactive view X according to the touch signal.
在一示例性实施例中,如图7所示,图7为本申请中添加交互视图另一实施例中的页面示意图,在响应用户在展示的应用页面中触发功能交互请求,获取用户在应用页面中的触控数据之前,具体还可以包括如下步骤:In an exemplary embodiment, as shown in FIG. 7 , which is a schematic diagram of a page in another embodiment of adding an interactive view in the present application, before responding to a user triggering a function interaction request in a displayed application page and obtaining the user's touch data in the application page, the following steps may be specifically included:
步骤一:在应用页面的每一交互控件上分别添入一张交互视图,以将应用页面中包含的各个交互控件覆盖。Step 1: Add an interactive view to each interactive control on the application page to cover each interactive control included in the application page.
其中,在上述实施例中是通过一张交互视图x管理了一片触控区域,在这片区域中包括了多个交互控件及其控件视图,但若在用户的交互响应事件特别多的区域继续使用一张交互视图x来进行统一管理效率不高,从而可以分别采用一张单独的交互视图来管理一个交互控件的方式。Among them, in the above embodiment, a touch area is managed by an interactive view x, and this area includes multiple interactive controls and their control views. However, if an interactive view x is continued to be used for unified management in an area with a particularly large number of user interactive response events, it is not efficient. Therefore, a separate interactive view can be used to manage each interactive control.
具体地,在应用页面中为每个交互控件所对应的触控区域上均添加上添入一张交互视图。如图7所示,该应用页面为车载应用程序中显示的车辆状态页面,在该车辆状态页面的标题栏位置预先配置有“行程”控件、“车胎”控件和“提醒”控件,用户可以分别点击该三个控件,以分别在车辆状态页面中显示出对应的车辆行程信息、车胎信息和车辆提醒信息。Specifically, an interactive view is added to the touch area corresponding to each interactive control in the application page. As shown in FIG7 , the application page is a vehicle status page displayed in the vehicle application. The title bar of the vehicle status page is pre-configured with a "trip" control, a "tire" control, and a "reminder" control. The user can click on the three controls to display the corresponding vehicle trip information, tire information, and vehicle reminder information in the vehicle status page.
其中,分别在“行程”控件上添加一张交互视图single-A、在“车胎”控件上添加一张交互视图single-B和在“提醒”控件上添加一张交互视图single-C,其中,这三张交互视图single的位置均覆盖在应用页面的各个视图层级的最上层,且其尺寸大小和对应的控件相同。其中,这三张交互视图single和车辆状态页面中现有的视图层级上的任何视图都没有任何关系限制,即视图single可以是各个交互控件所属的控件视图的兄弟视图、父视图、子视图、祖先视图等等,从而当用户对应用页面中触控区域进行触控交互时,该三张交互视图single将会首先接收到触控信号,以执行其响应测试函数。Among them, an interactive view single-A is added to the "trip" control, an interactive view single-B is added to the "tire" control, and an interactive view single-C is added to the "reminder" control. The positions of these three interactive views single are all covered at the top layer of each view hierarchy of the application page, and their sizes are the same as the corresponding controls. Among them, these three interactive views single have no relationship restrictions with any views on the existing view hierarchy in the vehicle status page, that is, the view single can be a brother view, parent view, child view, ancestor view, etc. of the control view to which each interactive control belongs, so that when the user touches the touch area in the application page, the three interactive views single will first receive the touch signal to execute its response test function.
步骤二:配置各交互视图的颜色为透明色,以在应用页面中隐藏各交互视图;以及,获取各交互视图的视图信息;视图信息包括交互视图在应用页面中的页面区域、所对应的交互控件的交互响应逻辑或者控件类型。Step 2: Configure the color of each interactive view to be transparent to hide each interactive view in the application page; and obtain the view information of each interactive view; the view information includes the page area of the interactive view in the application page, the interactive response logic or control type of the corresponding interactive control.
具体地,继续如图7所示,在一方面,设置各张交互视图single的颜色为透明,这样交互视图single对用户不可见,但其是真实存在于视图层级上的,其可以对用户的触控操作产生响应。在另一方面,需要获取各交互视图single的视图信息。Specifically, as shown in Figure 7, on the one hand, the color of each interactive view single is set to transparent, so that the interactive view single is invisible to the user, but it actually exists in the view hierarchy and can respond to the user's touch operation. On the other hand, the view information of each interactive view single needs to be obtained.
在一实施例中,交互视图single的视图信息包括并不限于:视图single的坐标位置(表示为:x,y,width,height)、视图single对应的源区域(也就是交互视图single覆盖的页面区域)、视图single当前是否处于显示状态或隐藏状态、视图single对应的交互控件的控件类型、视图single对应的交互响应逻辑和视图single在内存中实际存储的地址。In one embodiment, the view information of the interactive view single includes but is not limited to: the coordinate position of the view single (expressed as: x, y, width, height), the source area corresponding to the view single (that is, the page area covered by the interactive view single), whether the view single is currently in a displayed state or a hidden state, the control type of the interactive control corresponding to the view single, the interactive response logic corresponding to the view single, and the address where the view single is actually stored in the memory.
步骤三:基于各交互视图的视图信息,将各交互视图分类为对应的多个视图集合,并将视图集合存储于预设的存储介质中,以在用户对目标交互控件进行触控操作时,从对应的视图集合中提取出目标交互视图,并执行针对目标交互视图预设的响应测试函数。Step three: Based on the view information of each interactive view, classify each interactive view into corresponding multiple view sets, and store the view sets in a preset storage medium, so that when the user performs a touch operation on the target interactive control, the target interactive view is extracted from the corresponding view set, and the preset response test function for the target interactive view is executed.
具体地,可以根据各交互视图single的视图信息,确定其之间的共同点,再根据其共同点将各交互视图single分类为对应的多个视图集合。例如可以按照交互视图single在应用页面中的页面区域大小,将对应相同页面区域大小的交互视图single划分为一类视图集合single-X,或者,可以按照交互视图single所对应的交互控件的交互响应逻辑,将对应相同交互响应逻辑的交互视图single划分为一类视图集合single-Y,或者,服务器可以按照交互视图single所对应的交互控件的控件类型,将对应相同控件类型的交互视图single划分为一类视图集合single-Z等等。Specifically, the common points between the interactive views single can be determined based on the view information of each interactive view single, and then the interactive views single can be classified into corresponding multiple view sets based on the common points. For example, according to the page area size of the interactive view single in the application page, the interactive views single corresponding to the same page area size can be divided into a type of view set single-X, or, according to the interactive response logic of the interactive control corresponding to the interactive view single, the interactive views single corresponding to the same interactive response logic can be divided into a type of view set single-Y, or, the server can divide the interactive views single corresponding to the same control type into a type of view set single-Z according to the control type of the interactive control corresponding to the interactive view single, and so on.
在一示例性实施例中,如图8所示,图8为本申请中自定义的管理模块一实施例中的结构示意图,其中,可以进一步地将分类的多个视图集合交由自定义的管理模块进行统一管理。例如:交互视图single-A是页面A的覆盖视图,交互视图single-B和交互视图single-C是页面B的覆盖视图。每当需要这样的交互视图时,可以将其加入管理模块。In an exemplary embodiment, as shown in FIG8 , FIG8 is a schematic diagram of the structure of an embodiment of a custom management module in the present application, wherein the classified multiple view sets can be further handed over to the custom management module for unified management. For example: the interactive view single-A is the overlay view of page A, and the interactive view single-B and the interactive view single-C are the overlay views of page B. Whenever such an interactive view is needed, it can be added to the management module.
其中,如图8中的a所示,该管理模块可以把视图集合中的各个交互视图single的视图信息单独存储为一个成员变量;如图8中的b所示,管理模块也可以单开一个链表或者字典类型的成员变量,把视图集合中的各个交互视图single的视图信息加入其中;如图8中的c所示,管理模块也可以把视图集合中的各个交互视图single的视图信息存入数据库中,这样管理模块就可以从多维度去对视图信息进行查询(例如:查询页面A使用到的全部交互视图single;查询业务逻辑为空的全部交互视图single)。Among them, as shown in a of Figure 8, the management module can store the view information of each interactive view single in the view set separately as a member variable; as shown in b of Figure 8, the management module can also open a linked list or dictionary type member variable and add the view information of each interactive view single in the view set to it; as shown in c of Figure 8, the management module can also store the view information of each interactive view single in the view set into the database, so that the management module can query the view information from multiple dimensions (for example: query all interactive views single used by page A; query all interactive views single whose business logic is empty).
在一实施例中,需要实际生成多个交互视图single对象,从而再对每个交互视图single进行聚合,但是这样可能会占用一些内存,为了对其存储上进一步的优化,还可以根据待生成交互视图single的视图信息(例如,交互响应逻辑),可生成一张通用、复用的交互视图single进行存储,并将其作为视图集合的成员,以在需要具有这种视图信息的交互视图single时,再将其提取出使用。In one embodiment, it is necessary to actually generate multiple interactive view single objects, and then aggregate each interactive view single, but this may take up some memory. In order to further optimize its storage, a universal and reusable interactive view single can be generated and stored according to the view information of the interactive view single to be generated (for example, the interactive response logic), and it can be used as a member of the view collection, so that when the interactive view single with such view information is needed, it can be extracted and used.
在一示例性实施例中,如图9所示,图9为本申请中对交互视图进行存储管理一实施例中的流程示意图,其中,页面A的业务逻辑是需要一张覆盖视图single-A,页面B的业务逻辑需要覆盖视图single-B和视图single-C,并且这些视图single对应的交互响应逻辑是一样的(例如,其可能是什么都不做或者是弹出一个对应的提示弹框),则这里只需要在管理模块维护的视图池中声明一个视图集合single-X,然后把single-A、single-B、single-C在内存中实际存储的地址指向single-X即可。从而,可以实际只生成一个视图single-X,就可以在不同的页面之间引用具有相同视图信息的视图single。In an exemplary embodiment, as shown in FIG9 , FIG9 is a flow chart of an embodiment of storage management of interactive views in the present application, wherein the business logic of page A requires an overlay view single-A, and the business logic of page B requires overlay views single-B and single-C, and the interactive response logic corresponding to these views single is the same (for example, it may do nothing or pop up a corresponding prompt box), then here it is only necessary to declare a view set single-X in the view pool maintained by the management module, and then point the actual storage addresses of single-A, single-B, and single-C in the memory to single-X. Thus, only one view single-X can be actually generated, and the view single with the same view information can be referenced between different pages.
在一示例性实施例中,在应用页面中,基于交互视图对交互控件进行功能屏蔽,以屏蔽用户对交互控件的触控操作;或者,基于交互视图对交互控件进行功能开启,以接收用户对交互控件的触控操作,具体可以包括:在交互视图为由多个子视图复合而成的复合视图的情况下,在应用页面中,对用户触控的目标交互控件所对应的目标子视图进行显示,以对目标交互控件进行功能屏蔽;以及,对用户未触控的交互控件所对应的子视图进行隐藏,以对交互控件进行功能开启。In an exemplary embodiment, in an application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or, the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control, which may specifically include: when the interactive view is a composite view composed of multiple sub-views, in the application page, the target sub-view corresponding to the target interactive control touched by the user is displayed to functionally shield the target interactive control; and, the sub-view corresponding to the interactive control not touched by the user is hidden to functionally enable the interactive control.
具体地,一张视图X可以由子视图x1、x2、x3……构成,其中,x1、x2、x3分别和“行程”控件、“车胎”控件和“提醒”控件所对应的页面区域的大小相同,x4是除开“行程”控件、“车胎”控件和“提醒”控件之外的区域,如为“行程”控件、“车胎”控件和“提醒”控件之间的间隙区域或者边缘区域。其中,对各子视图进行分别管理,包括根据业务需求,自由实现部分视图的显/隐,从而控制对应交互控件的屏蔽或者开启。Specifically, a view X can be composed of subviews x1, x2, x3, etc., where x1, x2, x3 are the same size as the page areas corresponding to the "trip" control, "tire" control, and "reminder" control, respectively, and x4 is the area other than the "trip" control, "tire" control, and "reminder" control, such as the gap area or edge area between the "trip" control, "tire" control, and "reminder" control. Each subview is managed separately, including freely realizing the display/hiding of some views according to business needs, thereby controlling the shielding or opening of the corresponding interactive controls.
以上述图6中所述的实施例为例,在视图X为由多个子视图复合而成的复合视图的情况下,服务器可以在应用页面中,对用户所触控的目标交互控件所对应的目标子视图进行显示,即在视图X中显示出和目标交互控件相同大小和位置的局部视图,以对目标交互控件进行功能屏蔽,从而视图X不能再接收用户对该目标交互控件的触控信号;以及,对用户未触控的交互控件所对应的子视图进行隐藏,即在视图X中隐藏和用户未触控的交互控件相同大小和位置的局部视图,以对这部分未触控的交互控件进行功能开启,从而视图X能够开启接收用户对这部分未触控的交互控件的触控信号。Taking the embodiment described in FIG. 6 as an example, when view X is a composite view composed of multiple sub-views, the server can display the target sub-view corresponding to the target interactive control touched by the user in the application page, that is, display a partial view of the same size and position as the target interactive control in view X to functionally shield the target interactive control, so that view X can no longer receive the user's touch signal for the target interactive control; and hide the sub-view corresponding to the interactive control not touched by the user, that is, hide the partial view of the same size and position as the interactive control not touched by the user in view X to enable the function of this part of the interactive control not touched, so that view X can start receiving the user's touch signal for this part of the interactive control not touched.
在一示例性实施例中,在应用页面中,基于交互视图对交互控件进行功能屏蔽,以屏蔽用户对交互控件的触控操作;或者,基于交互视图对交互控件进行功能开启,以接收用户对交互控件的触控操作,具体可以包括:在交互视图为单个视图的情况下,在应用页面中,对用户触控的目标交互控件所对应的视图区域进行显示,以对目标交互控件进行功能屏蔽;以及,对用户未触控的交互控件所对应的视图区域进行隐藏,以对交互控件进行功能开启。In an exemplary embodiment, in an application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or, the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control, which may specifically include: when the interactive view is a single view, in the application page, the view area corresponding to the target interactive control touched by the user is displayed to functionally shield the target interactive control; and, the view area corresponding to the interactive control not touched by the user is hidden to functionally enable the interactive control.
具体地,一张视图single可以由一个单独视图构成,其中,可以修改其响应测试函数,以将用户的交互操作选择性的屏蔽或者开启,从而对视图single中覆盖的目标交互控件进行功能屏蔽或者功能开启。Specifically, a view single can be composed of a separate view, wherein its response test function can be modified to selectively block or enable the user's interactive operations, thereby blocking or enabling the functions of the target interactive controls covered in the view single.
其中,响应测试函数的返回值决定了视图single的哪一部分响应用户的交互,并通过重写该视图single的响应测试函数,以确定在用户交互发生时的坐标点和交互类型,从而返回视图single中针对局部区域的返回值,以控制对应局部区域所覆盖的目标交互控件进行功能屏蔽或者功能开启。Among them, the return value of the response test function determines which part of the view single responds to the user's interaction, and by rewriting the response test function of the view single, the coordinate point and interaction type when the user interaction occurs are determined, thereby returning the return value for the local area in the view single to control the target interactive control covered by the corresponding local area to perform function shielding or function activation.
例如:如果坐标点在目标交互控件的范围内,且用户对其交互操作是属于重复操作,则服务器控制响应测试函数向交互响应函数返回交互视图自身的引用数据(关键字或特殊变量),以通过交互响应函数执行关于交互视图自身的功能逻辑。而如果用户对该目标交互控件交互操作不属于重复操作,则控制响应测试函数向交互响应函数返回交互控件自身的引用数据(关键字或特殊变量),以通过交互响应函数执行关于交互控件自身的功能逻辑。For example: if the coordinate point is within the range of the target interactive control, and the user's interactive operation on it is a repeated operation, the server control response test function returns the reference data (keywords or special variables) of the interactive view itself to the interactive response function, so as to execute the functional logic of the interactive view itself through the interactive response function. If the user's interactive operation on the target interactive control is not a repeated operation, the control response test function returns the reference data (keywords or special variables) of the interactive control itself to the interactive response function, so as to execute the functional logic of the interactive control itself through the interactive response function.
在一示例性实施例中,在应用页面中,基于交互视图对交互控件进行功能屏蔽,以屏蔽用户对交互控件的触控操作;或者,基于交互视图对交互控件进行功能开启,以接收用户对交互控件的触控操作,具体可以包括:在交互视图为视图集合中提取出的目标交互视图的情况下,将目标交互视图移动到目标交互控件所对应的页面区域进行覆盖,以对目标交互控件进行功能屏蔽;以及,对未覆盖有交互视图的交互控件进行功能开启。In an exemplary embodiment, in an application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or, the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control, which may specifically include: when the interactive view is a target interactive view extracted from a view set, moving the target interactive view to the page area corresponding to the target interactive control to cover it, so as to functionally shield the target interactive control; and, enabling the function of the interactive control that is not covered by the interactive view.
在一实施例中,在对交互控件进行功能控制之前,需要预先统计该状态页面中的区域信息,以确定具有相同视图信息的交互控件;然后再根据视图信息,对交互控件进行分类,并为每类交互控件分别创建1个交互视图single;最后,将各交互视图single及其视图信息进行分类,以得到对应的视图集合,并上传到自定义的管理模块中进行统一管理。In one embodiment, before performing functional control on an interactive control, it is necessary to pre-count the area information in the status page to determine the interactive controls having the same view information; then, the interactive controls are classified according to the view information, and an interactive view single is created for each type of interactive control; finally, each interactive view single and its view information are classified to obtain a corresponding view set, and uploaded to a custom management module for unified management.
在一示例性实施例中,如图10所示,图10为本申请中对应用页面进行交互控制一实施例的页面示意图。其中,该应用页面为车载应用程序中显示的车辆状态页面,在该车辆状态页面的标题栏位置预先配置有“行程”控件、“车胎”控件和“提醒”控件,并且该三个控件所对应的视图信息相同,即该三个控件之间可以使用同一个视图集合single-X中的交互视图;以及,在该车辆状态页面的车辆位置预先配置有关于四个车胎的“胎压”控件,并且该四个控件所对应的交互信息相同,即该四个控件之间可以使用同一个视图集合single-Y中的交互视图。In an exemplary embodiment, as shown in FIG10, FIG10 is a page schematic diagram of an embodiment of interactive control of an application page in the present application. The application page is a vehicle status page displayed in a vehicle-mounted application, and a "trip" control, a "tire" control, and a "reminder" control are pre-configured in the title bar position of the vehicle status page, and the view information corresponding to the three controls is the same, that is, the three controls can use the same interactive view in the view set single-X; and a "tire pressure" control for four tires is pre-configured in the vehicle position of the vehicle status page, and the interactive information corresponding to the four controls is the same, that is, the four controls can use the same interactive view in the view set single-Y.
进一步地,当用户交互到应用页面中的某块区域时,例如“行程”控件所对应的页面区域,则服务器将该“行程”控件作为入参,以从管理模块中查询到该“行程”控件对应的视图集合single-X,以得到目标交互视图single;然后,服务器再触发该“行程”控件原有的交互响应函数;以及将目标交互视图single移动到“行程”控件所对应的页面区域进行覆盖,以对“行程”控件进行功能屏蔽;而对其他交互控件所对应的页面区域不做覆盖,以对未覆盖有交互视图的交互控件进行功能开启。其中,服务器移动视图的方法包括:动画移动、修改坐标、利用系统提供的translate系列函数等。Furthermore, when the user interacts with a certain area in the application page, such as the page area corresponding to the "itinerary" control, the server uses the "itinerary" control as an input parameter to query the view set single-X corresponding to the "itinerary" control from the management module to obtain the target interactive view single; then, the server triggers the original interactive response function of the "itinerary" control; and moves the target interactive view single to the page area corresponding to the "itinerary" control to cover it, so as to shield the function of the "itinerary" control; and does not cover the page area corresponding to other interactive controls, so as to enable the functions of the interactive controls that are not covered by the interactive view. Among them, the server's method of moving the view includes: animation movement, modifying coordinates, and using the translate series of functions provided by the system.
在一示例性实施例中,服务器在应用页面中,基于交互视图对交互控件进行功能屏蔽,以屏蔽用户对交互控件的触控操作;或者,基于交互视图对交互控件进行功能开启,以接收用户对交互控件的触控操作,具体可以包括以下步骤:In an exemplary embodiment, the server shields the interactive control based on the interactive view in the application page to shield the user's touch operation on the interactive control; or enables the interactive control based on the interactive view to receive the user's touch operation on the interactive control, which may specifically include the following steps:
步骤一:在用户在应用页面中对交互视图进行的触控操作为多重交互操作的情况下,基于多重交互操作的交互手势,确定多重交互操作在应用页面中涉及的父视图和子视图。Step 1: When the touch operation performed by the user on the interactive view in the application page is a multiple interactive operation, the parent view and the child view involved in the multiple interactive operations in the application page are determined based on the interactive gestures of the multiple interactive operations.
在一实施例中,在业务需求是要屏蔽某个触控区域内用户的多重交互操作的情况下,首先可以遍历在该触控区域内的所有视图;然后针对每个视图调用其成员属性,以得到在视图上挂载的手势数组;最后对各手势数组进行检查,以检查出存在的关于多重交互操作的交互手势,以得出对应与多重交互操作相关的父视图和子视图。In one embodiment, when the business requirement is to block multiple interactive operations of the user in a touch area, all views in the touch area can be traversed first; then the member properties of each view are called to obtain the gesture array mounted on the view; finally, each gesture array is checked to check for existing interactive gestures related to multiple interactive operations, so as to obtain the parent view and child view corresponding to the multiple interactive operations.
在一示例性实施例中,如图11所示,图11为本申请中多重交互操作的相关视图一实施例的页面示意图。其中,在应用页面中,多重交互操作所对应的触控手势是挂载在父视图上的,从而多重交互操作涉及到用户的多个手指来移动父视图的多个子视图。例如,用户的一个多重交互操作为一个捏手势(pinch),该手势挂载在父视图上,当用户的2根手指在其子视图1和子视图2上移动时,它就可以将2个子视图移动,从而将它们捏近或捏远。In an exemplary embodiment, as shown in FIG11 , FIG11 is a page schematic diagram of an embodiment of a related view of multiple interactive operations in the present application. Among them, in the application page, the touch gesture corresponding to the multiple interactive operations is mounted on the parent view, so that the multiple interactive operations involve the user's multiple fingers to move multiple subviews of the parent view. For example, a user's multiple interactive operations are a pinch gesture, which is mounted on the parent view. When the user's two fingers move on its subview 1 and subview 2, it can move the two subviews, thereby pinching them closer or farther.
步骤二:对父视图和子视图进行处理,以对交互控件进行功能屏蔽或者对交互控件进行功能开启。Step 2: Process the parent view and the child view to shield the function of the interactive control or enable the function of the interactive control.
在一种实施例中,可以将多重交互操作从父视图的成员属性中移除,以对多重交互操作所对应的交互控件进行功能屏蔽;或者,将多重交互操作从父视图的成员属性中添入,以对多重交互操作所对应的交互控件进行功能开启。In one embodiment, multiple interactive operations can be removed from the member properties of the parent view to shield the functions of the interactive controls corresponding to the multiple interactive operations; or, multiple interactive operations can be added from the member properties of the parent view to enable the functions of the interactive controls corresponding to the multiple interactive operations.
具体地,可以将用户的多重交互操作从父视图的成员属性gesture Recognizers中删除,以对多重交互操作所对应的交互控件进行功能屏蔽;或者,将多重交互操作从父视图的成员属性gesture Recognizers中添入,以对多重交互操作所对应的交互控件进行功能开启。Specifically, the user's multiple interactive operations can be deleted from the member attribute gesture Recognizers of the parent view to shield the functions of the interactive controls corresponding to the multiple interactive operations; or, the multiple interactive operations can be added from the member attribute gesture Recognizers of the parent view to enable the functions of the interactive controls corresponding to the multiple interactive operations.
其中,父视图的成员属性gesture Recognizers是一个数组,用于存储与该视图关联的手势识别器对象。其中,该手势识别器对象用于识别用户在视图上执行的手势操作,如点击、拖动、缩放等。可以通过添加手势识别器对象到gesture Recognizers数组中,可以让视图响应用户的手势操作,并执行相应的操作。The member property gesture Recognizers of the parent view is an array used to store gesture recognizer objects associated with the view. The gesture recognizer object is used to recognize gesture operations performed by the user on the view, such as clicking, dragging, and scaling. By adding gesture recognizer objects to the gesture Recognizers array, the view can respond to user gesture operations and perform corresponding operations.
在另一种实施例中,可以将多重交互操作的成员变量设置为无效,以对多重交互操作所对应的交互控件进行功能屏蔽;或者,将多重交互操作的成员变量设置为有效,以对多重交互操作所对应的交互控件进行功能开启。In another embodiment, the member variables of multiple interactive operations can be set to invalid to shield the functions of the interactive controls corresponding to the multiple interactive operations; or, the member variables of multiple interactive operations can be set to valid to enable the functions of the interactive controls corresponding to the multiple interactive operations.
具体地,可以将多重交互操作的成员变量isEnable设置为无效,以对多重交互操作所对应的交互控件进行功能屏蔽;或者,将多重交互操作的成员变量isEnable设置为有效,以对多重交互操作所对应的交互控件进行功能开启。Specifically, the member variable isEnable of multiple interactive operations can be set to invalid to shield the functions of the interactive controls corresponding to the multiple interactive operations; or the member variable isEnable of multiple interactive operations can be set to valid to enable the functions of the interactive controls corresponding to the multiple interactive operations.
具体地,当用户的某个多重交互操作发生时,可以遍历本次和该多重交互操作有关的各个子视图;若设置多重交互操作的成员变量isExclusiveTouch为true,则对多重交互操作所对应的交互控件进行功能屏蔽,若设置多重交互操作的成员变量isExclusiveTouch为false,则对多重交互操作所对应的交互控件进行功能开启。Specifically, when a certain multiple interactive operation of the user occurs, the subviews related to the multiple interactive operations can be traversed; if the member variable isExclusiveTouch of the multiple interactive operations is set to true, the interactive controls corresponding to the multiple interactive operations are functionally shielded; if the member variable isExclusiveTouch of the multiple interactive operations is set to false, the interactive controls corresponding to the multiple interactive operations are functionally enabled.
其中,成员变量isExclusiveTouch通常用于表示视图是否启用多重交互。当isExclusiveTouch为true时,只能响应多重交互操作中的一个手势操作,而其他手势会被忽略,从而破坏了这个多重交互操作,导致这个多重交互手势不能被识别成功。当isExclusiveTouch为false时,能够同时响应多重交互操作中的多个手势操作,比如同时进行拖动和缩放操作。Among them, the member variable isExclusiveTouch is usually used to indicate whether the view enables multiple interactions. When isExclusiveTouch is true, only one gesture operation in the multiple interaction operation can be responded to, and other gestures will be ignored, thus destroying the multiple interaction operation and causing the multiple interaction gesture to fail to be recognized successfully. When isExclusiveTouch is false, multiple gesture operations in the multiple interaction operation can be responded to at the same time, such as dragging and zooming at the same time.
在另一种实施例中,可以将针对子视图预设的交互开关关闭,以对多重交互操作所对应的交互控件进行功能屏蔽;或者,将针对子视图预设的交互开关开启,以对多重交互操作所对应的交互控件进行功能开启。In another embodiment, the interaction switch preset for the sub-view can be turned off to shield the functions of the interaction controls corresponding to the multiple interaction operations; or, the interaction switch preset for the sub-view can be turned on to enable the functions of the interaction controls corresponding to the multiple interaction operations.
具体地,当用户的某个多重交互操作发生时,可以遍历本次和该多重交互操作有关的各个子视图;若设置它们的交互开关关闭,则对多重交互操作所对应的交互控件进行功能屏蔽,若设置它们的交互开关开启,则对多重交互操作所对应的交互控件进行功能开启。Specifically, when a certain multiple interactive operation of the user occurs, the various sub-views related to the multiple interactive operations can be traversed; if their interactive switches are set to be turned off, the interactive controls corresponding to the multiple interactive operations will be functionally shielded; if their interactive switches are set to be turned on, the interactive controls corresponding to the multiple interactive operations will be functionally enabled.
其中,可以为每个或某几个视图X(或视图single)设置一个功能开关,并支持根据业务需求,随时使用、随时删除,以控制其开关功能的作用与否。其中,这个开关的值可以存储在服务器(管理模块中),便于随时下发给客户端,通过更改这个值,就达到开启/关闭功能的目的。其中,关的存储、赋值和应用可以放在前述提到的管理模块中,也可以放在其他地方。A function switch can be set for each or several views X (or view single), and can be used and deleted at any time according to business needs to control the effect of the switch function. The value of this switch can be stored in the server (management module) to facilitate sending to the client at any time. By changing this value, the purpose of turning on/off the function can be achieved. The storage, assignment and application of the switch can be placed in the aforementioned management module or elsewhere.
在一示例性实施例中,在应用页面中,基于交互视图对交互控件进行功能屏蔽,以屏蔽用户对交互控件的触控操作;或者,基于交互视图对交互控件进行功能开启,以接收用户对交互控件的触控操作,具体可以包括以下步骤:In an exemplary embodiment, in an application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control, which may specifically include the following steps:
步骤一:在应用页面中,确定出满足预设条件的父视图,或者在应用页面中,添入一满足预设条件的父视图。Step 1: In the application page, determine a parent view that meets the preset conditions, or add a parent view that meets the preset conditions in the application page.
具体地,在应用页面中,查询在由业务需求制定的触控区域内各个视图的视图层级,确定在触控区域内是否存在符合预设条件的父视图。Specifically, in the application page, the view hierarchy of each view in the touch area determined by business requirements is queried to determine whether there is a parent view that meets preset conditions in the touch area.
其中,预设条件包括:在父视图下只有一个子视图,以及父视图的尺寸大小和颜色与子视图相同,或者父视图的背景色为透明色。可以理解地,的查询标准为:查看只有一个子视图的父视图的背景色是否为透明,若为透明即其是符合预设条件的父视图;或,即使该父视图的背景色不透明,但是其和子视图的颜色一样,其也是符合预设条件的父视图;或,即使父视图的背景色不透明,且其和子视图颜色不一样,但是其尺寸大小和子视图一样,则该父视图也是符合预设条件的父视图。Among them, the preset conditions include: there is only one child view under the parent view, and the size and color of the parent view are the same as those of the child view, or the background color of the parent view is transparent. It can be understood that the query standard is: check whether the background color of the parent view with only one child view is transparent. If it is transparent, it is a parent view that meets the preset conditions; or, even if the background color of the parent view is opaque, but it is the same color as the child view, it is also a parent view that meets the preset conditions; or, even if the background color of the parent view is opaque and its color is different from that of the child view, but its size is the same as that of the child view, then the parent view is also a parent view that meets the preset conditions.
在一些实施例中,若在应用页面中没有查询出满足预设条件的父视图,则服务器可以在应用页面中,添入一满足预设条件的父视图。其中,添加的父视图的标准是:该父视图与其对应的子视图的尺寸大小和颜色相同。In some embodiments, if no parent view that meets the preset condition is found in the application page, the server can add a parent view that meets the preset condition to the application page, wherein the standard for adding the parent view is that the size and color of the parent view and its corresponding child view are the same.
步骤二:将父视图的尺寸大小调整为预设大小,以对父视图所对应的交互控件进行功能屏蔽。Step 2: Adjust the size of the parent view to a preset size to shield the functions of the interactive controls corresponding to the parent view.
步骤三:将父视图的尺寸大小从预设大小调整回与子视图相同,以对父视图所对应的交互控件进行功能开启。Step 3: Adjust the size of the parent view from the preset size back to the same size as the child view to enable the interactive controls corresponding to the parent view.
在一实施例中,在应用页面中,若子视图的尺寸比父视图大,那么子视图对应超出父视图的页面区域无法响应任何用户的触控交互操作。因此,当需要屏蔽用户对某个交互控件的触控操作时,可以将该交互控件所对应的父视图的尺寸大小调整为预设大小(例如为0,或接近于0),从而可以对该交互控件进行功能屏蔽;以及,当需要恢复用户对某个交互控件的触控操作时,可以将该交互控件所对应的父视图的尺寸大小调整回与其子视图相同大小,从而可以对该交互控件进行功能开启。In one embodiment, in an application page, if the size of a subview is larger than that of a parent view, the page area corresponding to the subview that exceeds the parent view cannot respond to any user's touch interaction operation. Therefore, when it is necessary to block the user's touch operation on a certain interactive control, the size of the parent view corresponding to the interactive control can be adjusted to a preset size (for example, 0, or close to 0), so that the function of the interactive control can be blocked; and when it is necessary to restore the user's touch operation on a certain interactive control, the size of the parent view corresponding to the interactive control can be adjusted back to the same size as its subview, so that the function of the interactive control can be enabled.
在一示例性实施例中,如图12所示,图12为本申请中调整视图尺寸一实施例的页面示意图。其中,当交互发生在子视图n上时,一方面,执行该子视图n本身的交互响应函数;另一方面,修改该子视图n对应的父视图的尺寸大小为预设尺寸(例如,调整宽度为0或接近0,调整高度为0或接近0),使得用户点不到该子视图,从而实现后续对该子视图所对应的交互控件的功能屏蔽效果;另一方面,还可以把其他父视图(图未示出)的尺寸大小恢复成与其对应的子视图相同,使得其他父视图所对应的子视图的交互控件可以被触控交互。In an exemplary embodiment, as shown in FIG12, FIG12 is a page schematic diagram of an embodiment of adjusting the view size in the present application. Among them, when the interaction occurs on the subview n, on the one hand, the interactive response function of the subview n itself is executed; on the other hand, the size of the parent view corresponding to the subview n is modified to a preset size (for example, the width is adjusted to 0 or close to 0, and the height is adjusted to 0 or close to 0), so that the user cannot click on the subview, thereby achieving the subsequent function shielding effect of the interactive control corresponding to the subview; on the other hand, the size of other parent views (not shown) can also be restored to the same as the corresponding subviews, so that the interactive controls of the subviews corresponding to other parent views can be touched and interacted.
这样,一方面,本方案先通过响应用户触发的功能交互请求,以获取用户的触控数据,然后再对该对功能交互请求进行有效性验证,以在功能交互请求无效的情况下,执行针对交互视图预设的交互响应逻辑;或在功能交互请求有效的情况下,执行针对交互控件预设的交互响应逻辑,从而优化了对页面的交互控制流程,有效提高了页面功能使用的效率,降低了计算资源的消耗;另一方面,本方案通过用户在应用页面中的触控数据,来判断用户触发的功能交互请求是否有效,从而执行针对交互视图预设的交互响应逻辑或者执行针对交互控件预设的交互响应逻辑,以能够对用户触发的功能交互请求进行有效管理,实现对应的交互响应逻辑,以降低了系统响应逻辑的复杂度和增加了页面功能使用的有效性。In this way, on the one hand, this solution first obtains the user's touch data by responding to the function interaction request triggered by the user, and then verifies the validity of the function interaction request, so that when the function interaction request is invalid, the interaction response logic preset for the interaction view is executed; or when the function interaction request is valid, the interaction response logic preset for the interaction control is executed, thereby optimizing the interaction control process of the page, effectively improving the efficiency of page function use, and reducing the consumption of computing resources; on the other hand, this solution uses the user's touch data in the application page to determine whether the function interaction request triggered by the user is valid, thereby executing the interaction response logic preset for the interaction view or executing the interaction response logic preset for the interaction control, so as to be able to effectively manage the function interaction request triggered by the user and implement the corresponding interaction response logic, thereby reducing the complexity of the system response logic and increasing the effectiveness of page function use.
应该理解的是,虽然图2-图12的附图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以通过其它的顺序执行。而且,图2-图12中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the accompanying drawings of Fig. 2-Fig. 12 are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in Fig. 2-Fig. 12 may include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.
可以理解的是,本说明书中上述方法的各个实施例之间相同/相似的部分可互相参见,每个实施例重点说明的是与其他实施例的不同之处,相关之处参见其他方法实施例的说明即可。It can be understood that the same/similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.
图13是本申请实施例提供的一种应用页面的交互控制装置的结构框图。参照图13,该应用页面的交互控制装置10包括:数据获取模块11、有效验证模块12、响应逻辑模块13和控件开闭模块14。Fig. 13 is a structural block diagram of an interactive control device for an application page provided in an embodiment of the present application. Referring to Fig. 13 , the interactive control device 10 for an application page includes: a data acquisition module 11 , a valid verification module 12 , a response logic module 13 and a control opening and closing module 14 .
其中,该数据获取模块11,用于响应用户在展示的应用页面中触发功能交互请求,获取所述用户在所述应用页面中的触控数据;其中,所述应用页面上配置有至少一个交互控件,且在所述交互控件的上层视图中覆盖有预设的交互视图;The data acquisition module 11 is used to respond to a user triggering a function interaction request in a displayed application page, and acquire the touch data of the user in the application page; wherein at least one interactive control is configured on the application page, and a preset interactive view is covered in the upper view of the interactive control;
其中,该有效验证模块12,用于基于所述触控数据,对所述功能交互请求进行有效性验证,得到对应的验证结果;The validity verification module 12 is used to verify the validity of the functional interaction request based on the touch data to obtain a corresponding verification result;
其中,该响应逻辑模块13,用于在所述验证结果表征所述功能交互请求无效的情况下,执行针对所述交互视图预设的交互响应逻辑;或者,在所述验证结果表征所述功能交互请求有效的情况下,执行针对所述交互控件预设的交互响应逻辑。Among them, the response logic module 13 is used to execute the interaction response logic preset for the interactive view when the verification result indicates that the functional interaction request is invalid; or to execute the interaction response logic preset for the interactive control when the verification result indicates that the functional interaction request is valid.
在一实施例中,在所述基于所述触控数据,对所述功能交互请求进行有效性验证,得到对应的验证结果之后,该应用页面的交互控制装置10还用于执行:In one embodiment, after the validity of the functional interaction request is verified based on the touch data and a corresponding verification result is obtained, the interactive control device 10 of the application page is further used to execute:
在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,In the application page, the interactive control is functionally shielded based on the interactive view to shield the user from touch operations on the interactive control; or,
基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作。The interactive control is functionally enabled based on the interactive view to receive a touch operation of the user on the interactive control.
在一实施例中,在所述响应用户在展示的应用页面中触发功能交互请求,获取所述用户在所述应用页面中的触控数据之前,该应用页面的交互控制装置10还用于执行:In one embodiment, before responding to the user triggering a function interaction request in the displayed application page and obtaining the touch data of the user in the application page, the application page interaction control device 10 is further used to perform:
在所述应用页面的触控区域上添入一张交互视图,以将所述触控区域内包含的各交互控件覆盖;Adding an interactive view to the touch area of the application page to cover the interactive controls contained in the touch area;
配置所述交互视图的颜色为透明色,以在所述应用页面中隐藏所述交互视图;以及Configuring the color of the interactive view to be transparent so as to hide the interactive view in the application page; and
将所述触控区域内包含的各所述交互控件分别与所述交互视图关联,以在所述用户在所述应用页面中对所述交互视图进行触控操作时,执行针对所述交互视图预设的响应测试函数。Each of the interactive controls contained in the touch area is associated with the interactive view respectively, so that when the user performs a touch operation on the interactive view in the application page, a preset response test function for the interactive view is executed.
在一实施例中,在所述响应用户在展示的应用页面中触发功能交互请求,获取所述用户在所述应用页面中的触控数据之前,该应用页面的交互控制装置10还用于执行:In one embodiment, before responding to the user triggering a function interaction request in the displayed application page and obtaining the touch data of the user in the application page, the application page interaction control device 10 is further used to perform:
在所述应用页面的每一交互控件上分别添入一张交互视图,以将所述应用页面中包含的各个交互控件覆盖;Adding an interactive view to each interactive control on the application page to cover each interactive control included in the application page;
配置各所述交互视图的颜色为透明色,以在所述应用页面中隐藏各所述交互视图;以及Configuring the color of each of the interactive views to be transparent so as to hide each of the interactive views in the application page; and
获取各所述交互视图的视图信息;所述视图信息包括所述交互视图在所述应用页面中的页面区域大小、所对应的交互控件的交互响应逻辑或者控件类型;Obtaining view information of each of the interactive views; the view information includes the page area size of the interactive view in the application page, the interactive response logic or control type of the corresponding interactive control;
基于各所述交互视图的视图信息,将各所述交互视图分类为对应的多个视图集合,并将所述视图集合存储于预设的存储介质中,以在所述用户对目标交互控件进行触控操作时,从对应的视图集合中提取出目标交互视图,并执行针对所述目标交互视图预设的响应测试函数。Based on the view information of each of the interactive views, each of the interactive views is classified into a corresponding plurality of view sets, and the view sets are stored in a preset storage medium, so that when the user performs a touch operation on a target interactive control, a target interactive view is extracted from the corresponding view set, and a preset response test function for the target interactive view is executed.
在一实施例中,在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作的方面,该应用页面的交互控制装置10还用于执行:In one embodiment, in the application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or, the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control, and the interactive control device 10 of the application page is further used to perform:
在所述交互视图为由多个子视图复合而成的复合视图的情况下,在所述应用页面中,对所述用户触控的目标交互控件所对应的目标子视图进行显示,以对所述目标交互控件进行功能屏蔽;以及,对所述用户未触控的交互控件所对应的子视图进行隐藏,以对所述交互控件进行功能开启。In the case where the interactive view is a composite view composed of multiple sub-views, in the application page, the target sub-view corresponding to the target interactive control touched by the user is displayed to shield the function of the target interactive control; and the sub-view corresponding to the interactive control not touched by the user is hidden to enable the function of the interactive control.
在一实施例中,在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作的方面,该应用页面的交互控制装置10还用于执行:In one embodiment, in the application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or, the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control, and the interactive control device 10 of the application page is further used to perform:
在所述交互视图为单个视图的情况下,在所述应用页面中,对所述用户触控的目标交互控件所对应的视图区域进行显示,以对目标交互控件进行功能屏蔽;以及,对所述用户未触控的交互控件所对应的视图区域进行隐藏,以对所述交互控件进行功能开启。When the interactive view is a single view, in the application page, the view area corresponding to the target interactive control touched by the user is displayed to shield the function of the target interactive control; and the view area corresponding to the interactive control not touched by the user is hidden to enable the function of the interactive control.
在一实施例中,在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作的方面,该应用页面的交互控制装置10还用于执行:In one embodiment, in the application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or, the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control, and the interactive control device 10 of the application page is further used to perform:
在所述交互视图为所述视图集合中提取出的目标交互视图的情况下,将所述目标交互视图移动到所述目标交互控件所对应的页面区域进行覆盖,以对所述目标交互控件进行功能屏蔽;以及,对未覆盖有交互视图的交互控件进行功能开启。When the interaction view is the target interaction view extracted from the view set, the target interaction view is moved to the page area corresponding to the target interaction control to cover it so as to functionally shield the target interaction control; and the interaction control that is not covered by the interaction view is functionally enabled.
在一实施例中,在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作的方面,该应用页面的交互控制装置10还用于执行:In one embodiment, in the application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or, the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control, and the interactive control device 10 of the application page is further used to perform:
在所述用户在所述应用页面中对所述交互视图进行的触控操作为多重交互操作的情况下,基于所述多重交互操作的交互手势,确定所述多重交互操作在所述应用页面中涉及的父视图和子视图;In a case where the touch operation performed by the user on the interactive view in the application page is a multiple interactive operation, determining a parent view and a child view involved in the multiple interactive operations in the application page based on the interactive gestures of the multiple interactive operations;
将所述多重交互操作从所述父视图的成员属性中移除,以对所述多重交互操作所对应的交互控件进行功能屏蔽;或者,将所述多重交互操作从所述父视图的成员属性中添入,以对所述多重交互操作所对应的交互控件进行功能开启。The multiple interactive operations are removed from the member properties of the parent view to shield the functions of the interactive controls corresponding to the multiple interactive operations; or, the multiple interactive operations are added from the member properties of the parent view to enable the functions of the interactive controls corresponding to the multiple interactive operations.
在一实施例中,在所在述基于所述多重交互操作的交互手势,确定所述多重交互操作在所述应用页面中涉及的父视图和子视图之后,该应用页面的交互控制装置10还用于执行:In one embodiment, after determining the parent view and the child view involved in the multiple interactive operations in the application page based on the interactive gestures of the multiple interactive operations, the interactive control device 10 of the application page is further used to perform:
将所述多重交互操作的成员变量设置为无效,以对所述多重交互操作所对应的交互控件进行功能屏蔽;或者,将所述多重交互操作的成员变量设置为有效,以对所述多重交互操作所对应的交互控件进行功能开启。The member variables of the multiple interactive operations are set to be invalid to functionally shield the interactive controls corresponding to the multiple interactive operations; or the member variables of the multiple interactive operations are set to be valid to functionally enable the interactive controls corresponding to the multiple interactive operations.
在一实施例中,在所在述基于所述多重交互操作的交互手势,确定所述多重交互操作在所述应用页面中涉及的父视图和子视图之后,该应用页面的交互控制装置10还用于执行:In one embodiment, after determining the parent view and the child view involved in the multiple interactive operations in the application page based on the interactive gestures of the multiple interactive operations, the interactive control device 10 of the application page is further used to perform:
将针对所述子视图预设的交互开关关闭,以对所述多重交互操作所对应的交互控件进行功能屏蔽;或者,将针对所述子视图预设的交互开关开启,以对所述多重交互操作所对应的交互控件进行功能开启。The preset interactive switch for the sub-view is turned off to shield the functions of the interactive controls corresponding to the multiple interactive operations; or the preset interactive switch for the sub-view is turned on to enable the functions of the interactive controls corresponding to the multiple interactive operations.
在一实施例中,在所述应用页面中,基于所述交互视图对所述交互控件进行功能屏蔽,以屏蔽所述用户对所述交互控件的触控操作;或者,基于所述交互视图对所述交互控件进行功能开启,以接收所述用户对所述交互控件的触控操作的方面,该应用页面的交互控制装置10还用于执行:In one embodiment, in the application page, the interactive control is functionally shielded based on the interactive view to shield the user's touch operation on the interactive control; or, the interactive control is functionally enabled based on the interactive view to receive the user's touch operation on the interactive control, and the interactive control device 10 of the application page is further used to perform:
在所述应用页面中,确定出满足预设条件的父视图,或者在所述应用页面中,添入一满足预设条件的父视图;所述预设条件包括在所述父视图下只有一个子视图,以及所述父视图的尺寸大小和颜色与所述子视图相同,或者所述父视图的背景色为透明色;In the application page, a parent view that meets a preset condition is determined, or a parent view that meets a preset condition is added to the application page; the preset condition includes that there is only one child view under the parent view, and the size and color of the parent view are the same as those of the child view, or the background color of the parent view is transparent;
将所述父视图的尺寸大小调整为预设大小,以对所述父视图所对应的交互控件进行功能屏蔽;Adjusting the size of the parent view to a preset size to shield the function of the interactive control corresponding to the parent view;
将所述父视图的尺寸大小从所述预设大小调整回与所述子视图相同,以对所述父视图所对应的交互控件进行功能开启。The size of the parent view is adjusted from the preset size back to the same size as the child view, so as to enable the function of the interactive control corresponding to the parent view.
在一实施例中,在所述响应用户在展示的应用页面中触发功能交互请求,获取所述用户在所述应用页面中的触控数据的方面,该应用页面的交互控制装置10还用于执行:In one embodiment, in response to the user triggering a function interaction request in the displayed application page and acquiring the touch data of the user in the application page, the application page interaction control device 10 is further configured to execute:
响应所述用户在所述应用页面中对所述交互视图进行触控操作,获取所述交互视图对应执行的响应测试函数;In response to the user performing a touch operation on the interactive view in the application page, obtaining a response test function executed corresponding to the interactive view;
对所述响应测试函数进行重写,得到所述用户的触控坐标和触控类型;Rewrite the response test function to obtain the touch coordinates and touch type of the user;
基于所述触控坐标和所述触控类型,确定所述触控操作为重复交互操作或者不为重复交互操作。Based on the touch coordinates and the touch type, it is determined whether the touch operation is a repeated interaction operation or not.
在一实施例中,在所述基于所述触控数据,对所述功能交互请求进行有效性验证,得到对应的验证结果的方面,该应用页面的交互控制装置10还用于执行:In one embodiment, in the aspect of performing validity verification on the functional interaction request based on the touch data to obtain a corresponding verification result, the interactive control device 10 of the application page is further used to execute:
在所述触控数据满足预设的验证条件的情况下,确定所述功能交互请求有效,得到对应表征所述功能交互请求有效的验证结果;或者In a case where the touch data satisfies a preset verification condition, determining that the function interaction request is valid, and obtaining a verification result corresponding to the validity of the function interaction request; or
在所述触控数据不满足预设的验证条件的情况下,确定所述功能交互请求无效,得到对应表征所述功能交互请求无效的验证结果;In the case where the touch data does not satisfy a preset verification condition, determining that the function interaction request is invalid, and obtaining a verification result corresponding to the invalidity of the function interaction request;
其中,所述验证条件包括以下三项:The verification conditions include the following three items:
所述用户的触控类型是否为预设类型、所述用户的触控坐标是否处于所述交互控件的区域范围内,以及所述用户的触控操作是否不为重复交互操作。Whether the touch type of the user is a preset type, whether the touch coordinates of the user are within the area of the interactive control, and whether the touch operation of the user is not a repeated interactive operation.
图14是本申请实施例提供的一种计算机设备的框图。参照图14,该计算机设备包括处理器、存储器、输入/输出接口(Input/Output,简称I/O)和通信接口。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储计算机设备的里程保养数据。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现如上述的应用页面的交互控制方法。FIG14 is a block diagram of a computer device provided in an embodiment of the present application. Referring to FIG14 , the computer device includes a processor, a memory, an input/output interface (Input/Output, referred to as I/O) and a communication interface. Among them, the processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store mileage maintenance data of the computer device. The input/output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the interactive control method of the application page as described above is implemented.
在一些实施例中,计算机设备为一种电子设备,该电子设备中的计算系统可以运行一个或多个操作系统,包括以上讨论的任何操作系统以及任何商用的服务器操作系统。该计算机设备还可以运行各种附加服务器应用和/或中间层应用中的任何一种,包括HTTP(超文本传输协议)服务器、FTP(文件传输协议)服务器、CGI(通用网关界面)服务器、超级服务器、数据库服务器等。示例性数据库服务器包括但不限于可从(国际商业机器)等商购获得的数据库服务器。In some embodiments, the computer device is an electronic device in which a computing system can run one or more operating systems, including any of the operating systems discussed above and any commercial server operating systems. The computer device can also run any of a variety of additional server applications and/or middle-tier applications, including HTTP (Hypertext Transfer Protocol) servers, FTP (File Transfer Protocol) servers, CGI (Common Gateway Interface) servers, super servers, database servers, etc. Exemplary database servers include, but are not limited to, database servers commercially available from (International Business Machines) and the like.
在一些实施例中,处理器通常控制计算机设备的整体操作,诸如与显示、数据处理、数据通信和记录操作相关联的操作。处理器可以包括一个或多个处理器组件来执行计算机程序,以完成上述的方法的全部或部分步骤。此外,处理器组件可以包括一个或多个模块,便于处理器组件和其他组件之间的交互。例如,处理器组件可以包括多媒体模块,以方便利用多媒体组件控制用户计算机设备和处理器之间的交互。In some embodiments, the processor generally controls the overall operation of the computer device, such as operations associated with display, data processing, data communication, and recording operations. The processor may include one or more processor components to execute a computer program to complete all or part of the steps of the above method. In addition, the processor component may include one or more modules to facilitate the interaction between the processor component and other components. For example, the processor component may include a multimedia module to facilitate the use of the multimedia component to control the interaction between the user's computer device and the processor.
本申请实施例提供的一种计算机可读存储介质。该计算机可读存储介质上存储有计算机程序,其中,计算机程序被处理器执行时实现如上述的应用页面的交互控制方法。An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for interactively controlling an application page as described above is implemented.
在本申请各个实施例中的各功能单元集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机可读存储介质在一个计算机程序中,包括若干指令用以使得一台计算机设备(可以是个人计算机,系统服务器,或者网络设备等)、电子设备(例如MP3、MP4等,也可以是手机、平板电脑、可穿戴设备等智能终端,也可以是台式电脑等)或者处理器(processor)以执行本申请各个实施方式方法的全部或部分步骤。If the integrated units of the functional units in the various embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer-readable storage medium includes a number of instructions in a computer program to enable a computer device (which can be a personal computer, a system server, or a network device, etc.), an electronic device (such as MP3, MP4, etc., or a smart terminal such as a mobile phone, a tablet computer, a wearable device, or a desktop computer, etc.) or a processor to execute all or part of the steps of the various implementation methods of the present application.
本申请实施例提供的一种计算机程序产品。该计算机程序产品中包括程序指令,该程序指令可由计算机设备的处理器执行以实现如上述的应用页面的交互控制方法。An embodiment of the present application provides a computer program product, which includes program instructions, which can be executed by a processor of a computer device to implement the above-mentioned interactive control method of an application page.
本领域内的技术人员应明白,本申请的实施例可提供有应用页面的交互控制方法、应用页面的交互控制装置、计算机设备、计算机可读存储介质或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机程序指令(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may provide an interactive control method for an application page, an interactive control device for an application page, a computer device, a computer-readable storage medium, or a computer program product. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer program instructions (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本申请是参照根据本申请实施例中的应用页面的交互控制方法、应用页面的交互控制装置、计算机设备、计算机可读存储介质或计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序产品实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序产品到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的程序指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the interactive control method of the application page, the interactive control device of the application page, the computer device, the computer-readable storage medium or the computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be implemented by a computer program product. These computer program products can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the program instructions executed by the processor of the computer or other programmable data processing device generate a device for implementing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.
这些计算机程序产品也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机程序产品中的程序指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program products may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the program instructions stored in the computer program product produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的程序指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the program instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
需要说明的,上述的各种方法、装置、电子设备、计算机可读存储介质、计算机程序产品等根据方法实施例的描述还可以包括其他的实施方式,具体的实现方式可以参照相关方法实施例的描述,在此不作一一赘述。It should be noted that the above-mentioned various methods, devices, electronic devices, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments, and will not be described one by one here.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410616410.2A CN118466817A (en) | 2024-05-17 | 2024-05-17 | Interactive control method, device, computer equipment and medium for application page |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410616410.2A CN118466817A (en) | 2024-05-17 | 2024-05-17 | Interactive control method, device, computer equipment and medium for application page |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118466817A true CN118466817A (en) | 2024-08-09 |
Family
ID=92168263
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410616410.2A Pending CN118466817A (en) | 2024-05-17 | 2024-05-17 | Interactive control method, device, computer equipment and medium for application page |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118466817A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103226446A (en) * | 2013-05-16 | 2013-07-31 | 北京奇虎科技有限公司 | Event response method for user interfacof mobile equipment and mobile equipment |
| US20190004677A1 (en) * | 2009-06-03 | 2019-01-03 | Savant Systems, Llc | Small screen virtual room-based user interface |
| CN109725959A (en) * | 2018-05-08 | 2019-05-07 | 平安普惠企业管理有限公司 | Response method of page control, display device and computer-readable storage medium |
| CN115129202A (en) * | 2022-07-22 | 2022-09-30 | 平安壹钱包电子商务有限公司 | Control method and device for user click event |
| CN115712365A (en) * | 2022-11-30 | 2023-02-24 | 成都赛力斯科技有限公司 | Interface display method and electronic equipment |
-
2024
- 2024-05-17 CN CN202410616410.2A patent/CN118466817A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190004677A1 (en) * | 2009-06-03 | 2019-01-03 | Savant Systems, Llc | Small screen virtual room-based user interface |
| CN103226446A (en) * | 2013-05-16 | 2013-07-31 | 北京奇虎科技有限公司 | Event response method for user interfacof mobile equipment and mobile equipment |
| CN109725959A (en) * | 2018-05-08 | 2019-05-07 | 平安普惠企业管理有限公司 | Response method of page control, display device and computer-readable storage medium |
| CN115129202A (en) * | 2022-07-22 | 2022-09-30 | 平安壹钱包电子商务有限公司 | Control method and device for user click event |
| CN115712365A (en) * | 2022-11-30 | 2023-02-24 | 成都赛力斯科技有限公司 | Interface display method and electronic equipment |
Non-Patent Citations (2)
| Title |
|---|
| COCOCOLA91667: "iOS-UIView属性alpha、opacity、hidden、opaque的区别", pages 1 - 7, Retrieved from the Internet <URL:https://juejin.cn/post/7226171494955253818> * |
| 彭磊PL: "iOS swift UIView及其Subview通过透明度的判读进行事件穿透", pages 1 - 2, Retrieved from the Internet <URL:https://www.jianshu.com/p/9bdb1a8b4841> * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101976202B (en) | Method and device for use of multiple virtual machine monitors to handleprivileged events | |
| US9152529B2 (en) | Systems and methods for dynamically altering a user interface based on user interface actions | |
| US20160342779A1 (en) | System and method for universal user interface configurations | |
| CN103927198B (en) | A kind of software method for cleaning and device | |
| KR102118223B1 (en) | Cross window animation | |
| US20090199127A1 (en) | Previewing target display areas | |
| US20110283231A1 (en) | Methods and systems for performing analytical procedures by interactions with visual representations of datasets | |
| TW202046082A (en) | Thread of conversation displaying method, computer readable recording medium and computer device | |
| JP2021500667A (en) | Touch screen with haptic feedback structure and corresponding virtual user interface elements | |
| EP1955129A2 (en) | Multiple dashboards | |
| TWI670639B (en) | Techniques for identifying user interface elements and systems and devices using the same | |
| WO2010024820A2 (en) | Combining interfaces of shell applications and sub-applications | |
| CN103049280A (en) | Method for achieving key macro definition function and mobile terminal | |
| WO2019019702A1 (en) | Algorithm generation method and device, terminal device and storage medium | |
| US11093548B1 (en) | Dynamic graph for time series data | |
| CN115390720A (en) | Robotic Process Automation (RPA) including automatic document scrolling | |
| CN113268182A (en) | Application icon management method and electronic equipment | |
| CN109298809A (en) | A touch action recognition method, device and terminal device | |
| CN109814857B (en) | Method and device for customizing primitive linkage | |
| JP6175682B2 (en) | Realization of efficient cascade operation | |
| CN116049592A (en) | A display method, device, equipment and medium for tabular data | |
| CN118466817A (en) | Interactive control method, device, computer equipment and medium for application page | |
| CN111095183B (en) | The Semantic Dimension in User Interfaces | |
| WO2015026381A1 (en) | Gesture-based visualization of financial data | |
| Kumar et al. | Segregating user data by tabs in web browsers |
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 |