CN115904582A - Method for processing input frame of small program, computer device and storage medium - Google Patents

Method for processing input frame of small program, computer device and storage medium Download PDF

Info

Publication number
CN115904582A
CN115904582A CN202211409525.1A CN202211409525A CN115904582A CN 115904582 A CN115904582 A CN 115904582A CN 202211409525 A CN202211409525 A CN 202211409525A CN 115904582 A CN115904582 A CN 115904582A
Authority
CN
China
Prior art keywords
applet
input
input box
operating system
host application
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
Application number
CN202211409525.1A
Other languages
Chinese (zh)
Inventor
赵爽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211409525.1A priority Critical patent/CN115904582A/en
Publication of CN115904582A publication Critical patent/CN115904582A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to the technical field of computer technology/smart home, in particular to a small program input frame processing method, computer equipment and a storage medium, and aims to solve the problem that the type of an input frame virtual keyboard is configured one by one and is complex. To this end, the input frame processing method of the applet of the present invention includes: before page rendering of page initialization is carried out on the small program, detecting information of a host application program of the small program and an operating system of computer equipment running the host application program, and meanwhile judging whether an input cursor of an input frame of the small program drifts or not; and if so, the input box is forced to call the built-in web network keyboard of the operating system all the time to be used as a virtual keyboard for data input, and then page rendering is carried out. By forcibly adopting the network keyboard to input data into the input box with the input cursor drifting, the problem that the type configuration of the input box virtual keyboard needs to be carried out one by one under the condition of more input boxes is solved.

Description

Method for processing input frame of small program, computer device and storage medium
Technical Field
The invention relates to the technical field of computer technology/smart home, in particular to an input frame processing method of a small program, computer equipment and a storage medium.
Background
The uni-app is a framework capable of developing all front-end applications, and a developer can publish the uni-app to the iOS, the Android and various small programs (such as WeChat/Paibao/Baidu/Rebate/Fei Shu/QQ/Kuchiou/nailing/Taobao and the like) by only adopting the framework to write a set of codes, so that the development efficiency is high.
However, in development, compatibility problems of input boxes are often encountered, for example, when a user inputs or deletes different contents, such as name, age and other information, in an input box of a pay baby applet under the iOS, because the type of a keyboard needs to be switched, a problem that the contents in the input box and the position of an input cursor move from inside to outside of the input box occurs, so that the user may input the contents by mistake due to wrong input cursor position, and the user experience is seriously affected. In the prior art, when a user finishes inputting one piece of information and clicks and switches to another input box to input another piece of information, the virtual keyboard type of the input box clicked by the user most recently needs to be configured first, that is, the virtual keyboard type of the input box clicked by the user most recently is switched to be a network keyboard, so that the user can input information through the network keyboard. However, when the types of information that the user needs to input are many, performing the virtual keyboard type configuration on the input frame by using the above method requires frequent switching of the virtual keyboard, which is cumbersome.
Accordingly, there is a need in the art for a new solution to the above problems.
Disclosure of Invention
In order to overcome the above-mentioned drawbacks, the present invention is proposed to provide an input box processing method, a computer device, and a storage medium for a small program that solve or at least partially solve the technical problem of cumbersome configuration of a virtual keyboard with multiple input boxes.
In a first aspect, there is provided an input box processing method of an applet, the method including:
detecting a host application of the applet and detecting an operating system of a computer device running the host application before page rendering of page initialization of the applet;
judging whether an input cursor of an input box of the applet drifts according to the information of the host application program and the operating system;
if so, forcing the input box to call a network keyboard built in the operating system all the time to serve as a virtual keyboard for data input, and then rendering the page;
if not, directly performing page rendering.
In one technical solution of the above method for processing an input frame of an applet, before the step of "directly rendering a page", the method further includes:
judging whether the size of the input box is not matched with the size of a UI (user interface) actually displayed by the small program or not according to the information of the host application program and the operating system;
if so, adjusting the size of the input box to enable the size of the input box to be matched with the size of the UI, and then rendering the page;
if not, directly performing page rendering.
In one technical solution of the above processing method for an input box of a applet, the step of "forcing the input box to always call a network keyboard built in an operating system as a virtual keyboard for data input" specifically includes:
and switching the virtual keyboard of the small program into a network keyboard built in the operating system and enabling the mandatory system attribute of the input box so as to force the input box to call the network keyboard all the time.
In one technical solution of the above method for processing an input frame of an applet, the page initialization includes sequentially performing page data loading and page rendering on the applet, and the steps of detecting a host application of the applet and detecting an operating system of a computer device running the host application before performing the page rendering of the page initialization on the applet specifically include:
detecting a host application program of the applet before page data loading is carried out on the applet;
detecting an operating system of computer equipment running a host application program in the process of loading page data of the applet;
and/or the presence of a gas in the gas,
the step of determining whether the input cursor of the input box of the applet drifts according to the host application program and the operating system specifically comprises the following steps:
judging whether the host application program is a specific payment application program and whether the operating system is an iOS operating system;
if so, determining that an input cursor of an input frame of the applet can drift;
and if not, judging that the input cursor of the input frame of the applet does not drift.
In one embodiment of the above method for processing an input box of an applet, the step of "determining whether the size of the input box does not match the size of the UI interface actually displayed by the applet according to the information of the host application and the operating system" specifically includes:
judging whether the host application program is a specific payment application program and whether the operating system is an android operating system;
if so, judging that the size of the input box is not matched with the size of the UI;
and if not, judging that the size of the input box is matched with the size of the UI interface.
In one technical solution of the above method for processing an input box of an applet, before the step of "detecting an operating system of a computer device running a host application program during page data loading of the applet", the method further includes:
judging whether a host application program of the applet is a preset application program or not;
if so, the step of detecting the operating system of the computer equipment running the host application program in the process of loading the page data of the small program is not executed any more, and the page rendering is directly carried out;
if not, continuing to execute the step of detecting the operating system of the computer equipment running the host application program in the process of loading the page data of the small program.
In one technical solution of the processing method for the input box of the applet, the preset application program is a non-specific payment application program.
In one embodiment of the above method for processing an input frame of an applet, the method further includes:
obtaining program code adapted to be loaded and run by a processor to perform an input box processing method of an applet;
and encapsulating the input box of the small program and the program code into an input box component.
In a second aspect, there is provided a computer device comprising a processor and a storage means adapted to store a plurality of program codes adapted to be loaded and run by the processor to perform the input frame processing method of an applet described in any one of the above-mentioned aspects of the input frame processing method of an applet.
In a third aspect, there is provided a computer-readable storage medium having stored therein a plurality of program codes adapted to be loaded and run by a processor to execute the input frame processing method of an applet described in any one of the above-described aspects of the input frame processing method of an applet.
One or more technical schemes of the invention at least have one or more of the following beneficial effects:
in the technical scheme of the invention, before the page rendering of the page initialization is carried out on the applet, the host application program of the applet and the operating system of the computer equipment running the host application program are firstly obtained, and whether the phenomenon of the cursor drifting of the input frame of the applet can occur is judged according to the information of the host application program and the operating system. After the small program with the cursor drifting phenomenon is accurately determined, the small program is forced to call the network keyboard built in the operating system all the time, the virtual keyboard type of the input frame does not need to be frequently switched, the running efficiency of the small program is obviously improved, and meanwhile the workload of setting the virtual keyboard type of the input frame is reduced.
In another technical solution of implementing the present invention, when it is determined that the host application of the applet is the unspecific payment-type application, the operating system of the computer device of the host application is no longer judged, but page rendering is directly performed. Because the phenomenon of input cursor drifting cannot occur when the host application program of the applet is the non-specific payment application program, the page rendering efficiency is further improved by skipping the step of judging the operating system of the computer equipment of the host application program.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flow diagram illustrating the main steps of an input box processing method of an applet according to one embodiment of the present invention;
FIG. 2 is a flow chart illustrating the main steps of a method for resizing an input box of an applet, according to one embodiment of the present invention;
fig. 3 is a schematic diagram of an application scenario according to the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the term "comprises/comprising" and any variations thereof in the description and claims of this invention and the above-described drawings is intended to cover non-exclusive inclusions, such that a process, method, or apparatus that comprises a list of steps is not necessarily limited to those steps explicitly recited, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The following describes an embodiment of an input frame processing method for an applet according to the present invention.
1. Method embodiment for processing input box of first small program
Referring first to fig. 1, fig. 1 is a flow chart illustrating the main steps of an input frame processing method of an applet according to an embodiment of the present invention. As shown in fig. 1, the method for processing an input frame of an applet in the embodiment of the present invention mainly includes the following steps S101 to S104.
Step S101: the method includes detecting a host application of the applet and detecting an operating system of a computer device running the host application prior to page rendering of the applet for page initialization.
The page initialization comprises two parts of page initial data communication and page rendering, and the host application program of the applet is an application program providing functions for the applet. The applet can only run under the host application program, and if the host application program is not installed, the applet cannot run normally. The operating system of a computer device running a host application refers to the operating system environment on which the host application must run.
For example, if the host application of an applet is WeChat, the applet may use the functions of WeChat Payment, weChat code scanning, weChat Login, geolocation, etc. provided by WeChat. If the WeChat is not installed on the computer device, then the applet with the WeChat hosting application cannot run. The operating system for running the WeChat may be an iOS operating system or an android (android) operating system, and it should be noted that the WeChat running in the android operating system cannot run in the iOS system, and similarly, the WeChat running in the iOS system cannot run in the android system. However, whether the system of the mobile phone is the android operating system or the iOS operating system, the host environment of the wechat applet is wechat.
Step S102: and judging whether an input cursor of an input frame of the applet drifts according to the information of the host application program and the operating system, if so, executing a step S103, and if not, executing a step S104.
The input cursor of the input box of the small program is used for prompting the position input by the user, and the drift of the input cursor is a phenomenon that the input cursor moves to a blank part outside the input box or moves to other input boxes from the input box input by the user.
For example, a page requires a user to fill in personal information such as age, sex, address, etc., the user inputs the age in the personal information, and the input cursor moves to an input box corresponding to the address of the personal information, that is, the cursor drifts.
Step S103: and the small program is forced to call a network keyboard built in the operating system all the time to be used as a virtual keyboard for data input, and then page rendering is carried out.
A variety of virtual keyboards are included within the operating system, such as a numeric keyboard for numeric input, a symbolic keyboard for special character input, an alphabetic keyboard for alphabetic input, and the like. After the applet is forced to call the network keyboard built in the operating system all the time, the input box can only select the network keyboard as the only keyboard for data input. The network keyboard refers to a virtual keyboard which can simultaneously support a plurality of different types of text data and punctuation marks for inputting. For example, a network keyboard is a virtual keyboard that supports numeric, english, chinese, and various punctuation marks simultaneously.
Step S104: and directly performing page rendering.
Based on the method described in the above steps S101 to S104, before page rendering for page initialization is performed on the applet, the host application of the applet and the operating system of the computer device running the host application are first obtained, and it is determined whether a phenomenon that an input frame cursor of the applet drifts may occur according to the host application and the operating system. After the small program which can generate the cursor drifting phenomenon is accurately determined, the small program is forced to call the network keyboard built in the operating system all the time, the virtual keyboard type of the input frame is not required to be set one by one after the page rendering is finished, the running efficiency of the small program is obviously improved, and the workload of setting the virtual keyboard type of the input frame is reduced.
The following further describes step S101.
Since all functions of the applet need to be implemented by the host application, it is necessary to determine the host application and the operating system of the computer device running the host application, and then perform page data loading and page rendering.
In a possible implementation manner according to the first embodiment of the present invention, the page initialization includes sequentially performing page data loading and page rendering on the applet, and the step of detecting the host application of the applet and detecting the operating system of the computer device running the host application (the foregoing step S101) before performing the page rendering of the page initialization on the applet includes the following steps 11 to 12:
step 11: a host application of the applet is detected prior to page data loading of the applet.
The page data refers to data related to page rendering such as a page size and a page scroll position. Since the full functional implementation of the applet needs to be done by the host application, the applet needs to retrieve the page data through the host application as well. The host application program for detecting the applet can obtain the software for providing the service for the applet by calling the information acquisition method of the service providing software, thereby determining the host application program. The information acquisition method of the service providing software may be acquired by uni.
Step 12: during page data loading of an applet, an operating system of a computer device running a host application is detected.
The computer device running the host application program may not be limited to a mobile terminal device such as a smart phone or a tablet computer. Detecting the operating system of a computer device running a host application may be accomplished by invoking a method of obtaining information for the computer device.
For example, detecting the operating system of a computer device running a host application during page data loading of an applet can be accomplished by calling the my. After the my. The operating system of the computer device running the host application program can be determined according to the operating system information.
In a possible implementation manner according to the first embodiment of the present invention, the step of "determining whether the input cursor of the input box of the applet is likely to drift (step S102) according to the host application and the operating system" specifically includes the following steps 21 to 23:
step 21: and judging whether the host application program is the specific payment application program and whether the operating system is the iOS operating system, if so, executing the step 22, and if not, executing the step 23.
In some embodiments, the specific payment application is a pay pal (Alipay) application, and since the input cursor is frequently shifted under the condition that the host application is a pay pal and the operating system is iOS, the condition that the host application is a pay pal and the operating system is iOS may be used as a determination condition that the input cursor is shifted.
Step 22: it is determined that the input cursor of the input box of the applet may drift.
Step 23: it is determined that the input cursor of the input box of the applet does not drift.
If the host application is the Payment treasure, but the operating system is not the iOS, or if the host application is not the Payment treasure, but the operating system is the iOS, the situation judges that the input cursor of the input box of the small program does not drift.
Based on the method described in the above steps 21 to 23, it can be determined quickly and accurately whether the input cursor of the applet input box will drift according to the host application program and the operating system, so as to facilitate the targeted optimization of the applet according to the determination result.
Under the condition that the input cursor of the small program input box is determined to drift, the problem that the input cursor drifts can be solved by inputting through a network keyboard.
In a possible implementation manner according to the first embodiment of the present invention, the step of "forcing the input box to always call a network keyboard built in an operating system as a virtual keyboard for data input (step S103) specifically includes:
and switching the virtual keyboard of the small program into a network keyboard built in the operating system and enabling the mandatory system attribute of the input box so as to force the input box to call the network keyboard all the time.
Wherein the mandatory system attribute refers to an always-system attribute. always-system is a type of Boolean attribute for the input box itself, with values of 0 and 1. When the user enters information in an input box with the always-system attribute having a value of 0, the applet will force the input box to call the network keyboard for the user to enter information. The time for calling the network keyboard can be determined by monitoring the behavior of the user, and after the behavior that the user clicks the input box is monitored, the network keyboard is called for the user to input information.
By setting the always-system attribute of the input box as the Boolean attribute, the network keyboard used by the user when inputting the content in the input box can be controlled, thereby solving the problem of drifting of an input cursor caused by frequently switching the keyboard, further avoiding the user from inputting wrong information due to wrong input cursor position, and improving the user experience.
The above is a description of an embodiment of an input frame processing method of a first applet, and the following continues with a description of an embodiment of an input frame processing method of a second applet.
2. Second method for processing input frame of applet
Since computer devices with Android (Android) systems are available in various brands and models and have different display devices, if input boxes with uniform sizes are provided, the display may be too small or may not be displayed completely on the display devices.
Referring to fig. 2, before the step of "rendering a page directly (S104), the method for processing an input frame of an applet according to the embodiment of the present invention mainly includes the following steps S201 to S203 to adjust the size of the input frame:
step S201: judging whether the size of the input frame is not matched with the size of the UI actually displayed by the small program or not according to the host application program and the operating system; if yes, go to step S202, otherwise go to step S203.
The size of the input box is the length and width of the input box, and a person skilled in the art can set the specific numerical values of the length and width of the input box according to business needs, and the invention does not limit the specific numerical values. The size of the input box is matched with the size of the UI actually displayed by the small program, so that the input box can be completely displayed in the UI, and the size of the input box meets the requirements of services.
Step S202: adjusting the size of the input box to enable the size of the input box to be matched with the size of the UI interface, and then performing page rendering;
because the size of the input box is not matched with the size of the UI interface, the input box may be too small or may not be displayed completely, and therefore rendering needs to be performed after the size of the input box is adjusted.
For example, the interface size of the UI interface excluding the taskbar and the title bar may be acquired, and the size setting of the size of the input box may be performed according to the interface size excluding the taskbar and the title bar. Wherein the interface size excluding the taskbar and the title bar can be obtained by object. Of course, other methods that can obtain the interface size that does not include the taskbar and the title bar may also be used, and the method for obtaining the interface size that does not include the taskbar and the title bar is not limited in the present invention. Alternatively, the input box size may be resized by taking the ratio of the physical pixels of the display device to the pixels of the device. The method for obtaining the physical pixels of the display device by the object.
Step S203: and directly performing page rendering.
Based on the method described in the above steps S21 to S23, the size of the input frame may be adjusted by obtaining the actual physical pixel of the display device of the computer device and the pixel ratio of the device. Or, the interface size which does not include the task bar and the title bar in the acquisition device may be used as the available interface size, and the size of the input box size may be adjusted according to the available interface size. Thereby guaranteed to show the input box of size moderate on the computer equipment of different installation Android (Android) systems.
In a possible implementation manner according to the second embodiment of the present invention, the step of "determining whether the size of the input box does not match the size of the UI interface actually displayed by the applet (S201) according to the host application and the operating system" specifically includes the following steps 31 to 33:
step 31: and judging whether the host application program is a specific payment application program and whether the operating system is an android operating system, if so, executing the step 32, and if not, executing the step 33.
Step 32: it is determined that the size of the input box does not match the size of the UI interface.
Step 33: it is determined that the size of the input box matches the size of the UI interface.
By judging the host application program and the operating system through the method in the steps 31 to 33, whether the size of the input box is matched with the size of the UI can be determined conveniently, so that the size of the unmatched input box can be corrected conveniently.
The above is a description of an embodiment of an input frame processing method of the second applet, and the following continues with a description of an embodiment of an input frame processing method of the third applet.
3. Method for processing input frame of third small program
In a possible implementation manner according to the third embodiment of the present invention, before the step of "detecting the operating system of the computer device running the host application program during the process of page data loading on the applet (the aforementioned step 12)", the method further includes the following steps 41 to 43:
step 41: and judging whether the host application program of the applet is a preset application program, if so, executing the step 42, and if not, executing the step 43.
When the host application of the applet is the pay pal (Alipay), the problem that the input cursor of the input box drifts can occur, and when the host application is an application other than the pay pal (Alipay), the problem that the input cursor of the input box drifts can not occur. It may not be necessary to further check the operating system of the computer device running the host application when the host application of the applet is determined to be an application other than the tender (Alipay), i.e. the above-mentioned preset application. In one possible implementation, the preset application is a non-specific payment class application.
Step 42: the step of detecting the operating system of the computer device running the host application (the aforementioned step 12) is not executed any more and the page rendering is performed directly during the process of page data loading of the applet;
step 43: the step of detecting the operating system of the computer device running the host application (step 12, described above) during the loading of page data to the applet continues.
Based on the method described in the above steps 41 to 43, when it is determined that the host application is a non-specific payment application (a preset application) that does not cause a drift of an input cursor of the input box other than the specific payment application, the operating system of the computer device running the host application may not be further detected, and on the premise of ensuring normal running of the applet, the steps of loading the applet page data are reduced, thereby increasing the speed of loading the applet page data.
The above is a description of an embodiment of an input frame processing method of the third applet, and the following continues with a description of an embodiment of an input frame processing method of the fourth applet.
4. Method for processing input frame of fourth small program
Entering data in the input box of the applet is an operation that is often performed by the user while using the applet. Therefore, the input box of the applet needs to be frequently processed.
In a possible implementation manner according to the fourth embodiment of the present invention, the method further includes packaging the program code of the input frame processing method of the applet by using the following steps 51 to 52:
step 51: program code adapted to be loaded and run by a processor to perform an input box processing method of an applet is obtained.
Step 52: and packaging the input box of the small program and the program code into an input box component.
After the input frame and the program code of the small program are packaged into the input frame assembly, the packaged input frame assembly can be directly called when data needs to be input in the small program, so that the work load of writing the small program is reduced, and the writing efficiency of the small program is improved.
It should be noted that, although the foregoing embodiments describe each step in a specific sequence, those skilled in the art can understand that, in order to achieve the effect of the present invention, different steps do not have to be executed in such a sequence, and they may be executed simultaneously (in parallel) or in other sequences, and these changes are all within the scope of the present invention.
It will be understood by those skilled in the art that all or part of the flow of the method according to the above-described embodiment may be implemented by a computer program, which may be stored in a computer-readable storage medium and used to implement the steps of the above-described embodiments of the method when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying said computer program code, media, usb disk, removable hard disk, magnetic diskette, optical disk, computer memory, read-only memory, random access memory, electrical carrier wave signals, telecommunication signals, software distribution media, etc. It should be noted that the computer readable storage medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable storage media that does not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
Furthermore, the invention also provides computer equipment. In an embodiment of the computer device according to the invention, the computer device comprises a processor and a storage, the storage may be configured to store a program for executing the input frame processing method of the applet of the above-described method embodiment, and the processor may be configured to execute a program in the storage, the program including, but not limited to, a program for executing the input frame processing method of the applet of the above-described method embodiment. For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and details of the specific techniques are not disclosed. The computer device may be a control apparatus device formed including various electronic devices. As shown in fig. 3, the computer device can be widely applied to all-House intelligent digital control application scenarios such as Smart Home (Smart Home), smart Home device ecology, smart Home (intelligent House) ecology, and the like. Optionally, in this embodiment, the smart home device may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 3. As shown in fig. 3, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, provide a database on or independent of the server for providing a data storage service for the server 104, and configure a cloud computing and/or edge computing service on or independent of the server for providing a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
Further, the invention also provides a computer readable storage medium.
In an embodiment of a computer-readable storage medium according to the present invention, the computer-readable storage medium may be configured to store a program that executes the input frame processing method of the applet according to the above-described method embodiment, and the program may be loaded and executed by a processor to implement the input frame processing method of the applet. For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and details of the specific techniques are not disclosed. The computer readable storage medium may be a storage device formed by including various electronic devices, and optionally, the computer readable storage medium is a non-transitory computer readable storage medium in the embodiment of the present invention.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and amendments can be made without departing from the principle of the present invention, and these modifications and amendments should also be considered as the protection scope of the present invention.

Claims (10)

1. A method for processing an input box of an applet, the method comprising:
detecting a host application of an applet and detecting an operating system of a computer device running the host application prior to page rendering for page initialization of the applet;
judging whether an input cursor of an input frame of the small program drifts or not according to the information of the host application program and the operating system;
if so, forcing the input box to call a network keyboard built in the operating system all the time to serve as a virtual keyboard for data input, and then rendering the page;
if not, the page rendering is directly carried out.
2. The applet input box processing method according to claim 1, wherein before the step of "directly performing the page rendering", the method further comprises:
judging whether the size of the input box is not matched with the size of a UI (user interface) actually displayed by the small program or not according to the information of the host application program and the operating system;
if so, adjusting the size of the input box to enable the size of the input box to be matched with the size of the UI interface, and then rendering the page;
if not, the page rendering is directly carried out.
3. The applet input box processing method according to claim 1, wherein the step of forcing the input box to always call a network keyboard built in the operating system as a virtual keyboard for data input specifically includes:
and switching the virtual keyboard of the small program into a network keyboard built in the operating system and enabling the mandatory system attribute of the input box so as to force the input box to call the network keyboard all the time.
4. The method according to claim 1, wherein the page initialization includes sequentially performing page data loading and page rendering on the applet, and the steps of detecting the host application of the applet and detecting the operating system of the computer device running the host application before performing the page rendering of the page initialization on the applet specifically include:
detecting a host application of the applet before the page data loading of the applet;
detecting an operating system of the computer device running the host application program in the process of loading the page data of the applet;
and/or the presence of a gas in the gas,
the step of determining whether the input cursor of the input box of the applet drifts according to the host application program and the operating system specifically includes:
judging whether the host application program is a specific payment application program or not and whether the operating system is an iOS operating system or not;
if so, judging that an input cursor of an input frame of the applet can drift;
and if not, judging that the input cursor of the input frame of the small program does not drift.
5. The method according to claim 2, wherein the step of determining whether the size of the input box does not match the size of the UI interface actually displayed by the applet, based on the information of the host application and the operating system, specifically comprises:
judging whether the host application program is a specific payment application program or not and whether the operating system is an android operating system or not;
if so, judging that the size of the input box is not matched with the size of the UI;
and if not, judging that the size of the input box is matched with the size of the UI interface.
6. The applet input box processing method according to claim 4, wherein before the step of detecting the operating system of the computer device running the host application during the page data loading of the applet, the method further comprises:
judging whether a host application program of the small program is a preset application program or not;
if so, not executing the step of detecting the operating system of the computer equipment running the host application program in the process of loading the page data of the applet, and directly rendering the page;
if not, continuing to execute the step of detecting the operating system of the computer equipment running the host application program in the process of loading the page data of the small program.
7. The applet input box processing method according to claim 6, characterized in that the preset application is a non-specific payment type application.
8. The applet input box processing method according to any one of claims 1 to 7, characterized in that the method further comprises:
obtaining program code adapted to be loaded and run by a processor to perform an input box processing method of the applet;
and packaging the input box of the small program and the program code into an input box component.
9. A computer device comprising a processor and storage means adapted to store a plurality of program codes, characterized in that said program codes are adapted to be loaded and run by said processor to perform an input box processing method of an applet according to any one of claims 1 to 7.
10. A computer-readable storage medium in which a plurality of program codes are stored, characterized in that the program codes are adapted to be loaded and run by a processor to perform an input box processing method of an applet according to any one of claims 1 to 7.
CN202211409525.1A 2022-11-11 2022-11-11 Method for processing input frame of small program, computer device and storage medium Pending CN115904582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211409525.1A CN115904582A (en) 2022-11-11 2022-11-11 Method for processing input frame of small program, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211409525.1A CN115904582A (en) 2022-11-11 2022-11-11 Method for processing input frame of small program, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN115904582A true CN115904582A (en) 2023-04-04

Family

ID=86477093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211409525.1A Pending CN115904582A (en) 2022-11-11 2022-11-11 Method for processing input frame of small program, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN115904582A (en)

Similar Documents

Publication Publication Date Title
EP2950203B1 (en) Application scenario identification method, power consumption management method and apparatus and terminal device
CN110020292B (en) Webpage content extraction method and terminal equipment
WO2020238425A1 (en) Application starting method and apparatus
TWI604368B (en) Data processing method and device
KR101894688B1 (en) Method and apparatus for realizing display of component's content
JP7106001B2 (en) SUB-APPLICATION DEVELOPMENT METHOD, APPARATUS, COMPUTER DEVICE, AND COMPUTER PROGRAM
WO2014173141A1 (en) Method of switching desktop subjects of mobile terminal and its switching apparatus
CN113051016B (en) Page display method, device, equipment and storage medium
CN111767002B (en) Page display method, device, equipment and storage medium
CN105446739A (en) UI interface setting method and apparatus
US11616860B2 (en) Information display method, terminal, and server
US20140164942A1 (en) Method and system to layout applications on multiple platforms
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN111158788B (en) Desktop starter control method and device and storage medium
WO2015139406A1 (en) Operation method for display page of terminal, and terminal
CN111966273A (en) Information display processing method and device
CN106843559B (en) User instruction identification and processing method and device
CN109522021B (en) Parameter callback processing method and device, electronic equipment and storage medium
US20140282058A1 (en) Electronic device with a funiction of applying applications of different operating systems, system and method thereof
CN111078424A (en) Information interaction method and device, computer equipment and storage medium
US20200356266A1 (en) Touch hotspot adjustment method, apparatus, and device, and touchscreen terminal device
CN106227413A (en) A kind of application based on mobile terminal starts detection method and system
CN111866557B (en) Configuration method and device of large-screen display equipment, storage medium and electronic equipment
WO2017067459A1 (en) Desktop data loading method and device
CN115904582A (en) Method for processing input frame of small program, computer device and storage medium

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