Movatterモバイル変換


[0]ホーム

URL:


CN110502682A - Inquiry method, device and storage medium for weather information - Google Patents

Inquiry method, device and storage medium for weather information
Download PDF

Info

Publication number
CN110502682A
CN110502682ACN201910645952.1ACN201910645952ACN110502682ACN 110502682 ACN110502682 ACN 110502682ACN 201910645952 ACN201910645952 ACN 201910645952ACN 110502682 ACN110502682 ACN 110502682A
Authority
CN
China
Prior art keywords
information
page
area
weather
weather information
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
CN201910645952.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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201910645952.1ApriorityCriticalpatent/CN110502682A/en
Publication of CN110502682ApublicationCriticalpatent/CN110502682A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本公开是关于一种天气信息的查询方法及装置、存储介质。该方法包括:获取地点信息;在所述结果显示页面的第一区域显示所述输入信息所指示地理范围内的天气信息;在所述结果显示页面的第二区域显示所述地理范围内至少一个地区的地区信息;其中,所述地区信息为:切换到显示所述地区信息所指示地区的天气信息的第一页面的入口信息。通过本公开的技术方案,能够根据获取到的地点信息将对应地区的天气信息显示出来,并同时提供地点信息所指示地理范围内至少一个地区的地区信息,从而便于切换至显示对应地区天气信息的页面,操作简便,提升用户使用感受。

The disclosure relates to a weather information query method, device, and storage medium. The method includes: acquiring location information; displaying weather information within the geographic range indicated by the input information in the first area of the result display page; displaying at least one weather information within the geographic range in the second area of the result display page Area information of the area; wherein, the area information is: the entry information for switching to the first page displaying the weather information of the area indicated by the area information. Through the technical solution of the present disclosure, the weather information of the corresponding region can be displayed according to the obtained location information, and at the same time, the region information of at least one region within the geographical range indicated by the location information can be provided, so as to facilitate switching to displaying the weather information of the corresponding region Page, easy to operate, enhance user experience.

Description

Translated fromChinese
天气信息的查询方法及装置、存储介质Inquiry method, device and storage medium for weather information

技术领域technical field

本公开涉及信息处理技术,尤其涉及一种天气信息的查询方法及装置、存储介质。The present disclosure relates to information processing technologies, and in particular to a query method and device for weather information, and a storage medium.

背景技术Background technique

随着智能移动终端的不断普及,越来越多的应用程序被广泛使用。应用程序可以实现各种不同的功能,满足用户生活、娱乐、建立人脉关系网络以及获取各种信息的需求。天气查询应用程序已经被广泛应用于移动终端,用户可以随时查询不同地区当前的天气以及获取一段时间的天气预报等。With the continuous popularization of smart mobile terminals, more and more applications are widely used. The application program can realize various functions to meet the needs of users for life, entertainment, establishment of personal network and access to various information. Weather query applications have been widely used in mobile terminals, and users can check the current weather in different regions at any time and obtain weather forecasts for a period of time.

然而,相关技术中,天气查询应用程序通常查询天气比较繁琐,尤其是查询默认显示地区以外的天气信息需要多次输入操作和/或页面切换操作,操作较为繁复。However, in related technologies, the weather query application program is generally cumbersome to query the weather, especially the query of weather information outside the default display area requires multiple input operations and/or page switching operations, and the operation is relatively complicated.

发明内容Contents of the invention

本公开提供一种天气信息的查询方法及装置、存储介质。The disclosure provides a weather information query method and device, and a storage medium.

根据本公开实施例的第一方面,提供一种天气信息的查询方法,该方法包括:According to a first aspect of an embodiment of the present disclosure, a method for querying weather information is provided, the method including:

获取地点信息;obtain location information;

在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的天气信息;displaying weather information within the geographical range indicated by the location information in the first area of the result display page;

在所述结果显示页面的第二区域显示所述地理范围内至少一个地区的地区信息;其中,所述地区信息为:切换到显示所述地区信息所指示地区的天气信息的第一页面的入口。The area information of at least one area within the geographical range is displayed in the second area of the result display page; wherein, the area information is: an entry for switching to a first page displaying weather information of an area indicated by the area information .

基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:

当检测到针对所述地区信息的第一操作时,切换至所述第一页面;switching to the first page when a first operation on the region information is detected;

在所述第一页面显示所述第一操作所作用的地区信息所指示地区的天气信息。The weather information of the area indicated by the area information on which the first operation is applied is displayed on the first page.

基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:

当检测到针对所述地区信息的第二操作时,将所述地区信息添加至所述第一地区列表;When detecting a second operation on the region information, adding the region information to the first region list;

当所述结果显示页面被关闭后,显示第二页面或第三页面;其中,所述第二页面用于显示所述第一地区列表中的至少一个地区信息所指示地区的天气信息;所述第三页面用于显示所述第一地区列表。When the result display page is closed, a second page or a third page is displayed; wherein, the second page is used to display weather information of an area indicated by at least one area information in the first area list; the The third page is used to display the first region list.

基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:

当显示所述第三页面时,检测作用于所述第一地区列表中的地区信息的第三操作;When the third page is displayed, detecting a third operation acting on the region information in the first region list;

当检测到所述第三操作时,切换至所述第二页面;When the third operation is detected, switch to the second page;

在所述第二页面,显示所述第三操作所作用地区信息所指示地区的天气信息。On the second page, the weather information of the region indicated by the region information on which the third operation is applied is displayed.

基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:

在所述结果显示页面的第二区域与所述地区信息的并列位置显示添加状态标识;其中,所述第一状态的所述添加状态标识用于表示所述地区信息已经被添加至第一地区列表中。In the second area of the result display page and the regional information are displayed side by side with the adding status mark; wherein, the adding state mark in the first state is used to indicate that the region information has been added to the first region List.

基于上述方案,所述天气信息,至少包括:对应地区在至少一个时间段内的天气状态信息和/或温度信息;Based on the above solution, the weather information at least includes: weather state information and/or temperature information of the corresponding region within at least one time period;

所述方法还包括:在所述结果显示页面的第二区域与所述地区信息的并列位置显示天气概要信息;其中,所述天气概要信息用于表示所述地区信息所指示地区在当前日期的天气概要。The method further includes: displaying summary weather information in the second area of the result display page in parallel with the region information; wherein the summary weather information is used to indicate the current date of the region indicated by the region information Weather summary.

基于上述方案,所述在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的天气信息,包括:Based on the above solution, the displaying the weather information within the geographical range indicated by the location information in the first area of the result display page includes:

在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的当前日期的天气信息;或Displaying the weather information of the current date within the geographical range indicated by the location information in the first area of the result display page; or

在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的当前日期和当前日期相邻的至少一天的天气信息。The current date within the geographical range indicated by the location information and the weather information of at least one day adjacent to the current date are displayed in the first area of the result display page.

基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:

在所述结果显示页面显示所述第一页面当前默认地区的天气信息。The weather information of the current default region on the first page is displayed on the result display page.

基于上述方案,所述在所述结果显示页面显示所述第一页面当前默认地区的天气信息,包括:Based on the above scheme, the displaying the weather information of the current default region on the first page on the result display page includes:

获取所述第一页面当前默认地区的天气信息;Obtain the weather information of the current default region on the first page;

形成具有预设显示效果且能够表征当前默认地区天气信息的背景图像;Form a background image with a preset display effect and be able to represent the current default regional weather information;

在所述结果显示页面显示所述背景图像。The background image is displayed on the result display page.

基于上述方案,所述方法还包括:Based on the above scheme, the method also includes:

当所述结果显示页面被关闭时,删除内存中存储的所述背景图像的文件。When the result display page is closed, delete the background image file stored in memory.

根据本公开实施例的第二方面,提供一种天气信息的查询装置,该装置包括:According to a second aspect of an embodiment of the present disclosure, there is provided a device for querying weather information, the device comprising:

第一获取模块,用于获取结果显示页面的内的地点信息;The first obtaining module is used to obtain the location information in the result display page;

第一显示模块,用于在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的天气信息;A first display module, configured to display weather information within the geographical range indicated by the location information in the first area of the result display page;

第二显示模块,用于在所述结果显示页面的第二区域显示所述地理范围内至少一个地区的地区信息;其中,所述地区信息为:切换到显示所述地区信息所指示地区的天气信息的第一页面的入口。The second display module is configured to display area information of at least one area within the geographical range in the second area of the result display page; wherein, the area information is: switch to displaying the weather of the area indicated by the area information The entry to the first page of information.

基于上述方案,所述装置还包括:Based on the above scheme, the device also includes:

第一切换模块,用于当检测到针对所述地区信息的第一操作时,切换至所述第一页面;A first switching module, configured to switch to the first page when a first operation on the region information is detected;

第三显示模块,用于在所述第一页面显示所述第一操作所作用的地区信息所指示地区的天气信息。The third display module is configured to display, on the first page, the weather information of the region indicated by the region information on which the first operation acts.

基于上述方案,所述装置还包括:Based on the above scheme, the device also includes:

添加模块,用于当检测到针对所述地区信息的第二操作时,将所述地区信息添加至所述第一地区列表;An adding module, configured to add the region information to the first region list when a second operation on the region information is detected;

第四显示模块,用于当所述结果显示页面被关闭后,显示第二页面或第三页面;其中,所述第二页面用于显示所述第一地区列表中的至少一个地区信息所指示地区的天气信息;所述第三页面用于显示所述第一地区列表。The fourth display module is used to display the second page or the third page after the result display page is closed; wherein, the second page is used to display at least one region information indicated in the first region list Regional weather information; the third page is used to display the first region list.

基于上述方案,所述装置还包括:Based on the above scheme, the device also includes:

检测模块,用于当显示所述第三页面时,检测作用于所述第一地区列表中的地区信息的第三操作;a detection module, configured to detect a third operation acting on the region information in the first region list when the third page is displayed;

第二切换模块,用于当检测到所述第三操作时,切换至所述第二页面;A second switching module, configured to switch to the second page when the third operation is detected;

第五显示模块,用于在所述第二页面,显示所述第三操作所作用地区信息所指示地区的天气信息。The fifth display module is configured to display, on the second page, the weather information of the region indicated by the region information on which the third operation is applied.

基于上述方案,所述装置还包括:Based on the above scheme, the device also includes:

第六显示模块,用于在所述结果显示页面的第二区域与所述地区信息的并列位置显示添加状态标识;其中,第一状态的所述添加状态标识用于表示所述地区信息已经被添加至第一地区列表中。The sixth display module is used to display the addition status mark in the second area of the result display page in parallel with the region information; wherein, the addition state mark in the first state is used to indicate that the region information has been Added to the list of first regions.

基于上述方案,所述天气信息,至少包括:对应地区在至少一个时间段内的天气状态信息和/或温度信息;Based on the above solution, the weather information at least includes: weather state information and/or temperature information of the corresponding region within at least one time period;

所述装置还包括:第七显示模块,用于在所述结果显示页面的第二区域与所述地区信息的并列位置显示天气概要信息;其中,所述天气概要信息用于表示所述地区信息所指示地区在当前日期的天气概要。The device further includes: a seventh display module, configured to display summary weather information at a position juxtaposed with the region information in the second area of the result display page; wherein the summary weather information is used to represent the region information A summary of the weather for the indicated area for the current date.

基于上述方案,所述第一显示模块,包括:Based on the above solution, the first display module includes:

第一显示子模块,用于在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的当前日期的天气信息;或The first display submodule is used to display the weather information of the current date within the geographical range indicated by the location information in the first area of the result display page; or

第二显示子模块,用于在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的当前日期和当前日期相邻的至少一天的天气信息。The second display submodule is configured to display the current date within the geographical range indicated by the location information and the weather information of at least one day adjacent to the current date in the first area of the result display page.

基于上述方案,所述装置还包括:Based on the above scheme, the device also includes:

第八显示模块,用于在所述结果显示页面显示所述第一页面当前默认地区的天气信息。The eighth display module is configured to display the weather information of the current default region on the first page on the result display page.

基于上述方案,所述第八显示模块,包括:Based on the above solution, the eighth display module includes:

获取子模块,用于获取所述第一页面当前默认地区的天气信息;Obtaining a submodule, configured to obtain the weather information of the current default region on the first page;

形成子模块,用于形成具有预设显示效果且能够表征当前默认地区天气信息的背景图像;Forming a sub-module for forming a background image with a preset display effect and capable of representing weather information in the current default region;

第三显示子模块,用于在所述结果显示页面显示所述背景图像。The third display submodule is configured to display the background image on the result display page.

基于上述方案,所述装置还包括:Based on the above scheme, the device also includes:

删除模块,用于当所述结果显示页面被关闭时,删除内存中存储的所述背景图像的文件。A deletion module, configured to delete the background image file stored in memory when the result display page is closed.

根据本公开实施例的第三方面,提供一种天气信息的查询装置,所述控制装置至少包括:处理器和用于存储能够在所述处理器上运行的可执行指令的存储器,其中:According to a third aspect of an embodiment of the present disclosure, there is provided a weather information query device, the control device at least includes: a processor and a memory for storing executable instructions that can run on the processor, wherein:

处理器用于运行所述可执行指令时,所述可执行指令执行上述任一项天气信息的查询方法中的步骤。When the processor is used to run the executable instructions, the executable instructions execute the steps in any one of the methods for querying weather information above.

根据本公开实施例的第四方面,一种非临时性计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,该计算机可执行指令被处理器执行时实现上述任一项天气信息的查询方法中的步骤。According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, any one of the above-mentioned Steps in the method for querying item weather information.

本公开的实施例提供的技术方案可以包括以下有益效果:通过本公开的技术方案,能够在能够根据获取到的地点信息,在结果显示页面显示地点信息对应地区的天气信息,并同时提供地点信息所指示地理范围内至少一个地区的地区信息,从而便于切换至显示对应天气信息的页面,也就是根据地点信息既进行了地理位置的数据的查询,又进行了天气信息的数据的查询,并同时展示在结果显示页面上,操作简便,有效提升用户的使用感受。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: through the technical solution of the present disclosure, the weather information of the region corresponding to the location information can be displayed on the result display page according to the obtained location information, and the location information can be provided at the same time Regional information of at least one region within the indicated geographical range, so as to facilitate switching to the page displaying the corresponding weather information, that is, according to the location information, both the geographical location data query and the weather information data query are performed, and at the same time Displayed on the result display page, it is easy to operate and effectively improves the user experience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of 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.

图1是根据一示例性实施例示出的一种天气信息的查询方法的流程图;Fig. 1 is a flowchart of a query method for weather information according to an exemplary embodiment;

图2是根据一示例性实施例示出的结果显示页面的显示界面示意图;Fig. 2 is a schematic diagram of a display interface of a result display page according to an exemplary embodiment;

图3是根据另一示例性实施例示出的结果显示页面的显示界面示意图;Fig. 3 is a schematic diagram of a display interface of a result display page according to another exemplary embodiment;

图4是根据又一示例性实施例示出的结果显示页面的显示界面示意图;Fig. 4 is a schematic diagram of a display interface of a result display page according to yet another exemplary embodiment;

图5是根据一示例性实施例示出的搜索页的显示界面示意图;Fig. 5 is a schematic diagram of a display interface of a search page according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种天气信息的查询装置的框图;Fig. 6 is a block diagram of a device for querying weather information according to an exemplary embodiment;

图7是根据一示例性实施例示出的一种天气信息的查询装置的实体结构框图。Fig. 7 is a block diagram of a physical structure of an apparatus for querying weather information according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

图1是根据一示例性实施例示出的一种天气信息的查询方法的流程图,如图1所示,该方法用于移动终端中,包括以下步骤:Fig. 1 is a flowchart of a weather information query method shown according to an exemplary embodiment. As shown in Fig. 1, the method is used in a mobile terminal and includes the following steps:

在步骤S11中,获取地点信息;In step S11, location information is obtained;

在步骤S12中,在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的天气信息;In step S12, displaying weather information within the geographical range indicated by the location information in the first area of the result display page;

在步骤S13中,在所述结果显示页面的第二区域显示所述地理范围内至少一个地区的地区信息;其中,所述地区信息为:切换到显示所述地区信息所指示地区的天气信息的第一页面的入口信息。In step S13, the area information of at least one area within the geographical range is displayed in the second area of the result display page; wherein, the area information is: switching to displaying the weather information of the area indicated by the area information The entry information of the first page.

这里,结果显示页面用于显示地点信息对应的天气信息。可以是用于接收地点信息的页面,可以是任何包括输入框的显示页面,例如搜索页,以及接收到搜索控件的点击操作后弹出的浮窗、下拉框等等。如图2所示,结果显示页面10可以具有输入区域110,输入区域110内包括如输入框111等的输入控件,用于接收地点信息112。地点信息112是用户输入的用于搜索某地区天气信息的内容,包括地区、城市、省、国家等区域的名称或缩写、简写等。例如,当地点信息为“上海”,则确定地点信息所指示的地理范围为上海市的范围内。此时,在结果显示页面10的第一区域120内显示上海的天气信息。上述结果显示页面中也可以不包含用于接收地点信息的页面,可以在结果显示页面对应显示的画面中,加入一个输入框用于接收文字输入的上述地点信息,或加入语音输入按钮用于接收语音输入的地点信息等等。Here, the result display page is used to display weather information corresponding to the location information. It can be a page for receiving location information, and it can be any display page including an input box, such as a search page, and a floating window, a drop-down box, etc. that pop up after receiving a click operation of the search control. As shown in FIG. 2 , the result display page 10 may have an input area 110 including input controls such as an input box 111 for receiving location information 112 . The location information 112 is the content input by the user for searching the weather information of a certain area, including the names or abbreviations, abbreviations, etc. of regions, cities, provinces, countries, etc. For example, when the location information is "Shanghai", it is determined that the geographical range indicated by the location information is within the scope of Shanghai. At this time, the weather information of Shanghai is displayed in the first area 120 of the result display page 10 . The above result display page may not include a page for receiving location information, and an input box may be added to receive the above location information of text input in the corresponding display screen of the result display page, or a voice input button may be added for receiving Voice input location information and more.

上述获取地点信息可以是在检测到用户输入操作时进行实时地获取操作,当获取到地点信息时,可以直接在结果显示页面显示上述天气信息。The acquisition of location information may be performed in real time when a user input operation is detected, and when the location information is acquired, the weather information may be directly displayed on the result display page.

上述第一区域120也位于结果显示页面10中,当检测到地点信息112时,就可以直接在第一区域120内显示对应地理范围内的天气信息,而无需点击选择订阅。这里的天气信息可以包括不同时间段内的天气信息,例如,当前日期起最近5天内的天气信息,或当前日期不同时段内的天气信息等。所显示的天气信息的内容,可以包括图像信息和文字信息。图像信息用于表示天气状态,例如,太阳的图像表示晴天,云朵的图像表示阴天等;文字信息可以包括天气状态,例如,“晴”、“多云”和“暴雨”等,也可以包括温度信息,例如,“30℃”或“18℃-27℃”等。通过这些天气信息,可以迅速向用户提供地点信息对应的天气状态,用户在输入地理位置的名称后就能够直接获得,无需其他订阅、添加至主页等操作。The above-mentioned first area 120 is also located in the result display page 10. When the location information 112 is detected, the weather information within the corresponding geographic range can be directly displayed in the first area 120 without clicking to subscribe. The weather information here may include weather information in different time periods, for example, weather information in the last 5 days from the current date, or weather information in different time periods in the current date. The content of the displayed weather information may include image information and text information. Image information is used to represent the weather status, for example, the image of the sun indicates a sunny day, and the image of a cloud indicates a cloudy day, etc.; the text information can include weather status, for example, "sunny", "cloudy" and "rainstorm", etc., and can also include temperature Information, for example, "30°C" or "18°C-27°C" etc. Through these weather information, the weather status corresponding to the location information can be quickly provided to the user, and the user can directly obtain it after inputting the name of the location, without other operations such as subscribing or adding to the homepage.

上述结果显示页面10还包括第二区域130,用于显示上述地点信息112所指示的地理范围内地区的地区信息131,这里的地区可以是上述地理范围内的下级地区等,例如,地点信息为“上海”,那么该地理范围内的地区可以包括:“闵行,上海”、“松江,上海”等等。The above-mentioned result display page 10 also includes a second area 130, which is used to display the area information 131 of the area within the geographical range indicated by the above-mentioned location information 112. The area here may be a lower-level area within the above-mentioned geographic range. For example, the location information is "Shanghai", then the regions within the geographical range may include: "Minhang, Shanghai", "Songjiang, Shanghai" and so on.

上述入口信息用于在接收到用户的操作指令后,切换到第一页面,第一页面用于显示对应地区的天气信息。The above entry information is used to switch to the first page after receiving the user's operation instruction, and the first page is used to display the weather information of the corresponding region.

通过上述步骤,可以在结果显示页面接收到用户的地点信息后直接展示出地点信息所指示地理范围内的天气信息,并同时提供该地理范围内至少一个地区的地区信息。如此,能够以简便的操作快速提供用户查询地区的天气信息,提升了用户的使用感受。Through the above steps, after the user's location information is received on the result display page, the weather information within the geographic range indicated by the location information can be displayed directly, and at the same time, the area information of at least one region within the geographic range can be provided. In this way, the weather information of the region inquired by the user can be quickly provided with simple operations, which improves the user experience.

在一些实施例中,上述方法还包括:In some embodiments, the above method also includes:

步骤S21、当检测到所述地区信息的第一操作时,切换至所述第一页面;Step S21, switching to the first page when the first operation on the region information is detected;

步骤S22、在所述第一页面显示所述第一操作所作用的地区信息所指示地区的天气信息。Step S22 , displaying on the first page the weather information of the region indicated by the region information on which the first operation acts.

第一页面可以是天气应用程序的主页,当一个上述地区信息对应的入口信息处接收到用户的操作指令后,将对应的地区设置为主页默认地区,并切换至主页,在主页显示该地区的天气信息。当第一页面为主页时,重新开启天气应用程序时则直接展示该第一页面,并显示对应地区的天气信息。上述第一页面也可以是不同于主页的其他页面,当入口信息处接收到用户的操作指令后,切换至第一页面并显示对应地区的天气信息。The first page can be the home page of the weather application program. When the entry information corresponding to the above-mentioned area information receives the user's operation instruction, the corresponding area is set as the default area of the home page, and the home page is switched to, and the information of the area is displayed on the home page. weather information. When the first page is the home page, when the weather application is restarted, the first page is directly displayed and the weather information of the corresponding region is displayed. The above-mentioned first page may also be a different page than the home page. When the user's operation instruction is received at the entrance information, it will switch to the first page and display the weather information of the corresponding region.

上述第一操作可以通过触控显示屏上检测到的点击操作、双击操作或滑动操作等实现,也可以通过语音、键盘输入等来实现。The above-mentioned first operation may be realized through a click operation, a double-click operation, or a sliding operation detected on the touch screen, or may be realized through voice, keyboard input, and the like.

通过检测上述地区信息的第一操作,就可以根据用户的需求切换至更准确的地区对应的显示页面,并显示对应的天气信息,从而便于用户获取到所需地理范围内准确的地区的天气信息。Through the first operation of detecting the above-mentioned area information, it is possible to switch to a display page corresponding to a more accurate area according to the user's needs, and display the corresponding weather information, so that the user can easily obtain the weather information of the accurate area within the desired geographical range .

在一些实施例中,上述方法还包括:In some embodiments, the above method also includes:

步骤S31、当检测到所述地区信息的第二操作时,将所述地区信息添加至所述第一地区列表;Step S31, when detecting the second operation on the region information, adding the region information to the first region list;

步骤S32、当所述结果显示页面被关闭后,显示第二页面或第三页面;其中,所述第二页面用于显示所述第一地区列表中的至少一个地区信息所指示地区的天气信息;所述第三页面用于显示所述第一地区列表。Step S32, after the result display page is closed, display the second page or the third page; wherein, the second page is used to display the weather information of the region indicated by at least one region information in the first region list ; The third page is used to display the first region list.

上述第一地区列表为可以为常用地区列表,用于保存已添加或订阅的地区。第二页面用于显示第一地区列表中的至少一个地区信息所指示地区的天气信息,因此,当显示第二页面时,展示已添加或订阅的地区。当已添加或订阅的地区有多个时,可以同时分布在第二页面的不同区域进行展示,也可以仅展示其中一个地区的天气信息,还可以展示其中一个地区的天气信息,并展示其他地区的地区名称或天气概要信息等等。这里的天气概要信息是指能够表示一个地区当前日期的天气信息的概要,可以是上述天气信息所包含内容的概括,也可以是上述天气信息所包含的部分内容。可以仅包括文字,例如当前温度、当前日期的温度范围、当前天气状态等;也可以仅包括图形,例如当前天气为晴天时,则显示一个太阳的图形。当第二页面仅展示一个地区的天气信息,或展示其中一个地区的天气信息,并同时展示其他地区的地区名称或概要信息时,检测到滑动或点击等操作后可以展示第一地区列表中的其他地区的天气信息。The above-mentioned first region list may be a frequently used region list, which is used to save the added or subscribed regions. The second page is used to display the weather information of the region indicated by at least one region information in the first region list. Therefore, when the second page is displayed, the added or subscribed regions are displayed. When there are multiple regions that have been added or subscribed, they can be displayed in different areas of the second page at the same time, or only display the weather information of one of the regions, or display the weather information of one of the regions and display the other regions area names or weather summary information, etc. Here, the weather summary information refers to a summary of weather information capable of representing a current date in a region, which may be a summary of the content contained in the above weather information, or may be a part of the content contained in the above weather information. It can only include text, such as the current temperature, the temperature range of the current date, the current weather status, etc.; it can also only include graphics, for example, when the current weather is sunny, a graphic of the sun is displayed. When the second page only displays the weather information of one region, or displays the weather information of one of the regions, and displays the region names or summary information of other regions at the same time, after detecting operations such as sliding or clicking, the first region list can be displayed. Weather information for other regions.

上述第三页面用于展示第一地区列表,在显示第三页面的情况下,当检测到滑动或点击等操作选择第一地区列表中某一地区的操作时,可以切换至第二页面,并展示选中地区的天气信息。The above-mentioned third page is used to display the first region list. When the third page is displayed, when an operation such as sliding or clicking is detected to select a region in the first region list, it can switch to the second page, and Display the weather information of the selected area.

由于结果显示页面是用于接收地点信息的页面,例如搜索页,或接收到搜索控件的点击操作后弹出的浮窗、下拉框等等。当结果显示页面被关闭时,可以显示第二页面,展示已添加或订阅至第一地区列表的地区的天气信息,也可以显示第三页面,展示上述第一地区列表。Because the result display page is a page for receiving location information, such as a search page, or a floating window, a drop-down box, etc. that pop up after receiving a click operation of the search control. When the result display page is closed, a second page can be displayed to display the weather information of regions that have been added or subscribed to the first region list, or a third page can be displayed to display the above-mentioned first region list.

通过上述步骤,提供了灵活、丰富展示的方式,即可以在结果显示页面直接展示搜索的地区的天气信息,也可以添加或订阅天气至第一地区列表,方便用户的各种需求。Through the above steps, a flexible and rich display method is provided, that is, the weather information of the searched region can be directly displayed on the result display page, and the weather information can also be added or subscribed to the list of the first region to facilitate various needs of users.

在一些实施例中,上述方法还包括:In some embodiments, the above method also includes:

步骤S41、当显示所述第三页面时,检测作用于所述第一地区列表中的地区信息的第三操作;Step S41, when the third page is displayed, detecting a third operation acting on the region information in the first region list;

步骤S42、当检测到所述第三操作时,切换至所述第二页面;Step S42, switching to the second page when the third operation is detected;

步骤S43、在所述第二页面,显示所述第三操作所作用地区信息所指示地区的天气信息。Step S43. On the second page, display the weather information of the region indicated by the region information on which the third operation is applied.

这里,第三页面中展示了已添加或订阅的第一地区列表,当检测到第三操作,例如点击操作或滑动操作等用于选中地区的操作时,就可以直接切换至第二页面,显示选中的地区的天气信息。Here, the third page shows the list of the first regions that have been added or subscribed to. When a third operation is detected, such as a click operation or a slide operation for selecting a region, it can directly switch to the second page, displaying Weather information for the selected area.

在一些实施例中,上述方法还包括:In some embodiments, the above method also includes:

步骤S51、在所述结果显示页面的第二区域与所述地区信息的并列位置显示添加状态标识;其中,所述第一状态的所述添加状态标识用于表示所述地区信息已经被添加至第一地区列表中。Step S51, displaying the addition status mark in the second area of the result display page in parallel with the region information; wherein, the addition state mark in the first state is used to indicate that the region information has been added to in the first region list.

如图3所示,在显示结果显示页面时,如果在第二区域130内显示的地区中有至少一个地区已经被添加至第一地区列表中时,则在该地区的地区信息131旁边显示第一状态的所述添加状态标识132,来表示该地区已被添加,从而方便用户查看,减少不必要的操作。As shown in FIG. 3 , when the result display page is displayed, if at least one region in the regions displayed in the second region 130 has been added to the first region list, the region information 131 of the region will display the first region. The adding state mark 132 of a state indicates that the area has been added, so that it is convenient for the user to view and reduce unnecessary operations.

在一些实施例中,所述添加状态标识还包括:第二状态的添加状态标识,第二状态的添加标识,用于表示所述地区信息尚未添加到所述第一地区列表中,或者,所述地区信息待添加到所述第一地区列表中。In some embodiments, the adding state identifier further includes: an adding state identifier of the second state, the adding identifier of the second state is used to indicate that the region information has not been added to the first region list, or, the The region information is to be added to the first region list.

在一些实施例中,所述方法还包括:In some embodiments, the method also includes:

检测作用于所述添加状态标识的输入操作;Detecting an input operation acting on the adding status flag;

根据所述输入操作,控制所述添加状态标识在所述第一状态和所述第二状态之间切换,并对应的控制与所述添加状态标识对应的地区信息添加到所述第一地区列表中或者从所述第一地区列表中删除。According to the input operation, control the adding state identifier to switch between the first state and the second state, and correspondingly control the region information corresponding to the adding state identifier to be added to the first region list in or deleted from the first region list.

在一些实施例中,上述天气信息,至少包括:对应地区在至少一个时间段内的天气状态信息和/或温度信息;In some embodiments, the above weather information at least includes: weather state information and/or temperature information of the corresponding region within at least one time period;

上述方法还包括:在所述结果显示页面的第二区域与所述地区信息的并列位置显示天气概要信息;其中,所述天气概要信息用于表示所述地区信息所指示地区在当前日期的天气概要。The above method further includes: displaying summary weather information in the second area of the result display page in parallel with the region information; wherein the summary weather information is used to represent the weather of the region indicated by the region information on the current day summary.

如图4所示,这里的天气信息可以包括通过图形表示的天气状态信息以及通过文字表示的温度信息等。在第二区域130的地区信息131的并列位置显示天气概要信息133,天气概要信息133可以是图形表示的天气状态信息,也可以是文字表示的天气状态信息或文字表示的温度信息等。As shown in FIG. 4 , the weather information here may include weather state information represented by graphics, temperature information represented by text, and the like. The summary weather information 133 is displayed in the second area 130 in parallel with the region information 131 . The summary weather information 133 may be weather status information represented graphically, or weather status information represented textually or temperature information represented textually.

这样,就可以在展示地点信息所指示地区的天气信息的同时,展示出地理范围内至少一个地区的天气概要信息,用户可以方便直观地了解到各个地区的天气概要。In this way, while displaying the weather information of the region indicated by the location information, the weather summary information of at least one region within the geographical range can be displayed, and the user can easily and intuitively understand the weather summary of each region.

在一些实施例中,上述步骤S12包括:In some embodiments, the above step S12 includes:

步骤S61、在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的当前日期的天气信息;或Step S61, displaying the weather information of the current date within the geographical range indicated by the location information in the first area of the result display page; or

步骤S62、在所述结果显示页面的第一区域显示所述地点信息所指示地理范围内的当前日期和当前日期相邻的至少一天的天气信息。Step S62, displaying the weather information of the current date within the geographical range indicated by the location information and at least one day adjacent to the current date in the first area of the result display page.

这里,在第一区域内显示的天气信息可以包括不同时段的天气信息,例如,从当前日期即今天起的5天内的天气信息,或当前日期的前一天即昨天起5天的天气信息。也可以仅显示当前日期不同时段的天气信息,例如今天上午6点至10点、10点至下午2点、下午2点至下午6点,以及下午6点至晚上10点共5个时间段内的天气信息。Here, the weather information displayed in the first area may include weather information of different time periods, for example, weather information within 5 days from the current date, ie today, or 5 days from yesterday, the day before the current date. It is also possible to display only the weather information for different periods of the current date, for example, 5 time periods from 6 am to 10 am, 10 am to 2 pm, 2 pm to 6 pm, and 6 pm to 10 pm today weather information.

如此,用户不仅可以快速获知当前的天气情况,还可以获知相邻时间不同时段内的天气情况,包括天气预报等信息,满足用户的各种需求。In this way, users can not only quickly know the current weather conditions, but also know the weather conditions in different periods of time adjacent to each other, including weather forecast and other information, to meet various needs of users.

在一些实施例中,上述方法还包括:In some embodiments, the above method also includes:

步骤S71、在所述结果显示页面显示所述第一页面当前默认地区的天气信息。Step S71, displaying the weather information of the current default region on the first page on the result display page.

由于结果显示页面用于为用户提供搜索的界面并同时显示地点信息所对应的地区以及天气信息等,此时,用户可能需要对比了解当前默认地区的天气信息,例如主页或第一页面等显示的天气信息,或当前定位位置的天气信息等。因此,在结果显示页面还可以同时显示默认地区的天气信息,该默认地区可以与地点信息无关,而是由主页显示的内容复制得到。显示的方式可以是在结果显示页面的第四区域进行显示,也可以以背景图像的形式来显示,使显示界面更加丰富美观。Since the result display page is used to provide users with a search interface and display the region and weather information corresponding to the location information at the same time, at this time, the user may need to compare the weather information of the current default region, such as the one displayed on the homepage or the first page. Weather information, or weather information at the current location, etc. Therefore, the weather information of the default region may also be displayed on the result display page, and the default region may not be related to the location information, but copied from the content displayed on the home page. The display method can be displayed in the fourth area of the result display page, or displayed in the form of a background image, so that the display interface is richer and more beautiful.

在一些实施例中,上述步骤S71具体包括:In some embodiments, the above step S71 specifically includes:

步骤S81、获取所述第一页面当前默认地区的天气信息;Step S81, obtaining the weather information of the current default region on the first page;

步骤S82、形成具有预设显示效果且能够表征当前默认地区天气信息的背景图像;Step S82, forming a background image that has a preset display effect and can represent the weather information of the current default area;

步骤S83、在所述结果显示页面显示所述背景图像。Step S83, displaying the background image on the result display page.

这里,默认地区是第一页面当前的选定的地区,根据该地区的天气信息生成背景图像,显示在结果显示页面。当显示第一页面时,可以通过图形来表示当前天气状态,例如,晴天时通过太阳的图形来表示当前的天气状态,阴天时通过云朵的图形来表示当前的天气状态。因此,这里通过第一页面当前选定的地区,来生成背景图像,可以根据当前第一页面显示的图形来生成相应的背景图像,背景图像中可以包含用来表示当前天气状态的图形。Here, the default region is the currently selected region on the first page, and a background image is generated according to the weather information of the region and displayed on the result display page. When the first page is displayed, the current weather state may be represented by a graph, for example, the current weather state is represented by a sun graph on a sunny day, and the current weather state is represented by a cloud graph on a cloudy day. Therefore, here, the background image is generated through the region currently selected on the first page, and the corresponding background image can be generated according to the graphics currently displayed on the first page, and the background image can include graphics used to represent the current weather state.

为了能够使背景图像不影响结果显示页面显示的其他内容,上述预设显示效果可以是使背景图像的清晰度低于上述第一页面清晰度来进行显示,也就是通过模糊的显示效果来显示当前天气状态的图形。为了提升显示的视觉效果或趣味性等,上述预设显示效果还可以包括动态效果、静态效果等等其他效果。In order to prevent the background image from affecting other content displayed on the result display page, the above-mentioned preset display effect can be displayed by making the resolution of the background image lower than that of the above-mentioned first page, that is, displaying the current page with a blurred display effect. A graph of the weather status. In order to improve the visual effect or interest of the display, the preset display effect may also include other effects such as dynamic effect and static effect.

生成背景图像的方式可以直接将第一页面的图像进行复制,并调整清晰度,使该图像以预设清晰度在结果显示页面呈现。该预设清晰度可以低于原第一页面图像的清晰度,从而以模糊的视觉效果来呈现,这样可以在不影响结果显示页面的其他信息显示的前提下显示背景图像。该背景图像中可以包含表示天气状态的图形,例如,晴天时,该背景图像中包括太阳的图形,如此,即使背景图像带有模糊效果,也可以呈现出天气的状态。上述表示天气状态的图形还可以是带有动画效果的动态图形,从而呈现更加美观的视觉效果。The method of generating the background image may directly copy the image on the first page, and adjust the definition so that the image is presented on the result display page with the preset definition. The preset sharpness may be lower than the sharpness of the image on the original first page, so that it is presented with a blurred visual effect, so that the background image can be displayed without affecting the display of other information on the result display page. The background image may contain graphics representing weather conditions. For example, when it is sunny, the background image may include a graphic of the sun. In this way, even if the background image has a blurred effect, the weather status can also be presented. The above-mentioned graph representing the weather state may also be a dynamic graph with animation effect, so as to present a more beautiful visual effect.

形成上述背景图像的方式也可以通过调整结果显示页面的透明度来实现,当结果显示页面具有一定的透明度时,可以呈现出位于下层的第一页面的图像,从而展示出第一页面中显示的天气信息。The method of forming the above background image can also be realized by adjusting the transparency of the result display page. When the result display page has a certain transparency, the image of the first page located in the lower layer can be presented, thereby showing the weather displayed on the first page information.

通过该方法,不仅可以使用户同时了解搜索地区的天气信息和默认地区的天气信息,还可以提升视觉效果。Through this method, not only can the user know the weather information of the search area and the weather information of the default area at the same time, but also the visual effect can be improved.

在一些实施例中,上述方法还包括:In some embodiments, the above method also includes:

当所述结果显示页面被关闭时,删除内存中存储的所述背景图像的文件。When the result display page is closed, delete the background image file stored in memory.

图像文件较大,占用内存多,而结果显示页面作为提供搜索功能的页面往往仅作为临时使用的页面。如果每次调用结果显示页面都生成一个背景图像的文件,就会占用大量的内存,造成资源浪费。因此,这里考虑到内存的回收,在结果显示页面被关闭时,可以直接删除内存中存储的背景图像的文件。从而在保证视觉效果的基础上,不浪费内存的使用,降低内存溢出的发生概率。The image file is large and takes up a lot of memory, and the page that provides the search function is usually only used temporarily. If a background image file is generated every time the result display page is called, a large amount of memory will be occupied and resources will be wasted. Therefore, considering memory recycling here, when the result shows that the page is closed, the background image file stored in the memory can be directly deleted. Therefore, on the basis of ensuring the visual effect, the use of memory is not wasted, and the probability of memory overflow is reduced.

为了更清楚地说明上述技术方案,本公开还提供如下示例:In order to illustrate the above technical solutions more clearly, the present disclosure also provides the following examples:

用户在使用天气应用程序时,有搜索城市天气的需求。而现有天气应用程序仅提供订阅某城市到应用程序主页的功能,并在主页进行查看,无法在用户搜索城市时,同时满足天气查询的需求。因此,本示例提供一种方法,在搜索城市的同时直接展示未来几天的天气信息,无需订阅城市或添加至主页。同时用户也可以将搜索的城市添加到主页。When users use weather applications, they need to search for city weather. However, the existing weather application only provides the function of subscribing a certain city to the homepage of the application and viewing it on the homepage, which cannot satisfy the demand for weather query when the user searches for a city. Therefore, this example provides a way to directly display the weather information for the next few days while searching for a city, without subscribing to the city or adding it to the home page. At the same time, users can also add the searched city to the home page.

现有应用程序的搜索天气的功能页面如图5所示,当检测到用户点击输入框210的操作时,获取输入框210中输入的城市的输入信息。显示该输入信息指示的地理范围内至少一个城市或地区,并以列表220的形式显示在输入框210下方。这种方式在搜索时仅能显示地区或城市的信息,当选中一个地区并添加后才能够在切换回主页时显示天气信息,操作较为复杂。并且,这种方式存在较大的局限性,因为用户进入搜索页面时可能是以查看某地区的天气为目的的,而并非将搜索地区作为默认或常用地区,但这种感觉方案需要将城市选中加入首页列表才能够显示天气信息,显然不够合理。The weather search function page of the existing application is shown in FIG. 5 . When the operation of clicking the input box 210 by the user is detected, the input information of the city input in the input box 210 is obtained. At least one city or region within the geographical range indicated by the input information is displayed, and displayed below the input box 210 in the form of a list 220 . This method can only display the information of the region or city when searching, and the weather information can only be displayed when switching back to the home page after a region is selected and added, and the operation is more complicated. Moreover, this method has great limitations, because the user may enter the search page for the purpose of checking the weather in a certain area, rather than using the search area as the default or common area, but this feeling scheme needs to select the city It is obviously not reasonable to add the home page list to be able to display weather information.

而本示例中在搜索天气时,可以满足两种需求:查询该城市的天气和添加该城市天气到主页。In this example, when searching for weather, two requirements can be met: query the weather of the city and add the weather of the city to the home page.

因此,本示例中采用如图2的方式来进行展示,在搜索的同时显示搜索地区的天气,并同时显示输入内容指示的地理范围内的多个区域的入口,通过这些入口进行点击后,可以将对应的地区添加至主页的列表中。展示天气信息的方式可以通过卡片的形式置于搜索框下,然后将多个区域的名称作为一个个条目显示于卡片下方,提供上述入口。Therefore, in this example, the method shown in Figure 2 is used to display. While searching, the weather in the search area is displayed, and the entrances of multiple areas within the geographical range indicated by the input content are displayed at the same time. After clicking through these entrances, you can Add the corresponding region to the list on the home page. The way to display weather information can be placed under the search box in the form of a card, and then the names of multiple regions are displayed under the card as entries one by one to provide the above-mentioned entrance.

如此,当用户在输入框内键入想要查看天气的城市时,客户端根据输入信息向服务器发送搜索城市列表的请求,返回相关地区的列表,并显示在上述卡片下作为上述入口。当检测到这些入口上的点击操作时,就可以将对应的城市或地区添加至主页的列表中。同时,客户端也根据输入信息的服务器发送天气数据的请求,并根据返回的结果显示输入的城市或上述相关地区的列表中的第一个城市的天气信息。可以同时显示近五天的天气信息。In this way, when the user enters the city where he wants to check the weather in the input box, the client sends a request for searching the city list to the server according to the input information, returns a list of relevant regions, and displays it under the above card as the above entry. When clicking operations on these portals are detected, the corresponding cities or regions can be added to the list on the home page. At the same time, the client also sends a request for weather data according to the server of the input information, and displays the weather information of the input city or the first city in the above list of relevant regions according to the returned result. The weather information of the last five days can be displayed at the same time.

此外,可以增加背景图像,包括动画效果的图像,来显示当前默认地区或主页显示地区的天气状况。并以一定的清晰度呈现模糊效果,从而提升搜索页面的显示效果。这里,可以通过获取首页当前显示地区的天气状态,并将相关数据复制到当前的搜索页,来形成背景图像。但是值得注意的是,图像文件尤其是全屏的动态图像较大,占用内存多,而搜索页往往仅作为临时使用的页面。如果每次调用搜索页都生成一个背景图像的文件,就会占用大量的内存,造成资源浪费。因此,在处理背景图像时需要考虑到内存的回收,在退出搜索页或回到桌面时,可以通过jvm(Java Virtual Machine,Java虚拟机)对内存进行回收,降低出现OOM(Out of Memory,内存溢出)的异常的概率。In addition, background images, including images with animation effects, can be added to display the weather conditions of the current default region or the region displayed on the homepage. And present a blur effect with a certain degree of clarity, thereby improving the display effect of the search page. Here, the background image can be formed by obtaining the weather status of the area currently displayed on the homepage and copying the relevant data to the current search page. But it is worth noting that image files, especially full-screen dynamic images, are large and take up a lot of memory, and the search page is often only used temporarily. If a background image file is generated every time the search page is invoked, a large amount of memory will be occupied and resources will be wasted. Therefore, memory recovery needs to be considered when processing background images. When exiting the search page or returning to the desktop, the memory can be recovered through jvm (Java Virtual Machine, Java Virtual Machine) to reduce the occurrence of OOM (Out of Memory, memory overflow) abnormal probability.

图6是根据一示例性实施例示出的一种天气信息的查询装置600的结构框图。参照图6,该装置600包括第一获取模块601、第一显示模块602和第二显示模块603。Fig. 6 is a structural block diagram of an apparatus 600 for querying weather information according to an exemplary embodiment. Referring to FIG. 6 , the device 600 includes a first acquisition module 601 , a first display module 602 and a second display module 603 .

第一获取模块601,用于获取地点信息;A first acquiring module 601, configured to acquire location information;

第一显示模块602,用于在所述结果显示页面的第一区域显示所述输入信息所指示地理范围内的天气信息;A first display module 602, configured to display weather information within the geographical range indicated by the input information in the first area of the result display page;

第二显示模块603,用于在所述结果显示页面的第二区域显示所述地理范围内至少一个地区的地区信息;其中,所述地区信息为:切换到显示所述地区信息所指示地区的天气信息的第一页面的入口信息。The second display module 603 is configured to display the area information of at least one area within the geographical range in the second area of the result display page; wherein, the area information is: switch to displaying the area indicated by the area information The entry information of the first page of weather information.

在一些实施例中,所述装置还包括:In some embodiments, the device also includes:

第一切换模块,用于当检测到所述地区信息的第一操作时,切换至所述第一页面;A first switching module, configured to switch to the first page when a first operation on the region information is detected;

第三显示模块,用于在所述第一页面显示所述第一操作所作用的地区信息所指示地区的天气信息。The third display module is configured to display, on the first page, the weather information of the region indicated by the region information on which the first operation acts.

在一些实施例中,所述装置还包括:In some embodiments, the device also includes:

添加模块,用于当检测到所述地区信息的第二操作时,将所述地区信息添加至所述第一地区列表;An adding module, configured to add the region information to the first region list when a second operation on the region information is detected;

第四显示模块,用于当所述结果显示页面被关闭后,显示第二页面或第三页面;其中,所述第二页面用于显示所述第一地区列表中的至少一个地区信息所指示地区的天气信息;所述第三页面用于显示所述第一地区列表。The fourth display module is used to display the second page or the third page after the result display page is closed; wherein, the second page is used to display at least one region information indicated in the first region list Regional weather information; the third page is used to display the first region list.

在一些实施例中,所述装置还包括:In some embodiments, the device also includes:

检测模块,用于当显示所述第三页面时,检测作用于所述第一地区列表中的地区信息的第三操作;a detection module, configured to detect a third operation acting on the region information in the first region list when the third page is displayed;

第二切换模块,用于当检测到所述第三操作时,切换至所述第二页面;A second switching module, configured to switch to the second page when the third operation is detected;

第五显示模块,用于在所述第二页面,显示所述第三操作所作用地区信息所指示地区的天气信息。The fifth display module is configured to display, on the second page, the weather information of the region indicated by the region information on which the third operation is applied.

在一些实施例中,所述装置还包括:In some embodiments, the device also includes:

第六显示模块,用于在所述结果显示页面的第二区域与所述地区信息的并列位置显示添加状态标识;其中,所述第一状态的所述添加状态标识用于表示所述地区信息已经被添加至第一地区列表中。The sixth display module is used to display the addition status mark in the second area of the result display page in parallel with the region information; wherein, the addition state mark in the first state is used to represent the region information has been added to the list of first regions.

在一些实施例中,所述天气信息,至少包括:对应地区在至少一个时间段内的天气状态信息和/或温度信息;In some embodiments, the weather information at least includes: weather state information and/or temperature information of the corresponding region within at least one time period;

所述装置还包括:第七显示模块,用于在所述结果显示页面的第二区域与所述地区信息的并列位置显示天气概要信息;其中,所述天气概要信息用于表示所述地区信息所指示地区在当前日期的天气概要。The device further includes: a seventh display module, configured to display summary weather information at a position juxtaposed with the region information in the second area of the result display page; wherein the summary weather information is used to represent the region information A summary of the weather for the indicated area for the current date.

在一些实施例中,所述第一显示模块,包括:In some embodiments, the first display module includes:

第一显示子模块,用于在所述结果显示页面的第一区域显示所述输入信息所指示地理范围内的当前日期的天气信息;或The first display submodule is used to display the weather information of the current date within the geographical range indicated by the input information in the first area of the result display page; or

第二显示子模块,用于在所述结果显示页面的第一区域显示所述输入信息所指示地理范围内的当前日期和当前日期相邻的至少一天的天气信息。The second display submodule is configured to display the current date within the geographical range indicated by the input information and the weather information of at least one day adjacent to the current date in the first area of the result display page.

在一些实施例中,所述装置还包括:In some embodiments, the device also includes:

第八显示模块,用于在所述结果显示页面显示所述第一页面当前默认地区的天气信息。The eighth display module is configured to display the weather information of the current default region on the first page on the result display page.

在一些实施例中,所述第八显示模块,包括:In some embodiments, the eighth display module includes:

获取子模块,用于获取所述第一页面当前默认地区的天气信息;Obtaining a submodule, configured to obtain the weather information of the current default region on the first page;

形成子模块,用于形成具有预设显示效果且能够表征当前默认地区天气信息的背景图像;Forming a sub-module for forming a background image with a preset display effect and capable of representing weather information in the current default area;

第三显示子模块,用于在所述结果显示页面显示所述背景图像。The third display submodule is configured to display the background image on the result display page.

在一些实施例中,所述装置还包括:In some embodiments, the device also includes:

删除模块,用于当所述结果显示页面被关闭时,删除内存中存储的所述背景图像的文件。A deletion module, configured to delete the background image file stored in memory when the result display page is closed.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图7是根据一示例性实施例示出的一种天气信息的查询装置700的框图。例如,装置700可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。Fig. 7 is a block diagram of an apparatus 700 for querying weather information according to an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图7,装置700可以包括以下一个或多个组件:处理组件701,存储器702,电源组件703,多媒体组件704,音频组件705,输入/输出(I/O)接口706,传感器组件707,以及通信组件708。7, device 700 may include one or more of the following components: processing component 701, memory 702, power supply component 703, multimedia component 704, audio component 705, input/output (I/O) interface 706, sensor component 707, and Communication component 708 .

处理组件701通常控制装置700的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件701可以包括一个或多个处理器710来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件701还可以包括一个或多个模块,便于处理组件701和其他组件之间的交互。例如,处理组件701可以包括多媒体模块,以方便多媒体组件704和处理组件701之间的交互。The processing component 701 generally controls the overall operations of the device 700, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 701 may include one or more processors 710 to execute instructions, so as to complete all or part of the steps of the above method. In addition, the processing component 701 may further include one or more modules to facilitate the interaction between the processing component 701 and other components. For example, the processing component 701 may include a multimedia module to facilitate interaction between the multimedia component 704 and the processing component 701 .

存储器710被配置为存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器702可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器、磁盘或光盘。The memory 710 is configured to store various types of data to support operations at the device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 702 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件703为装置700的各种组件提供电力。电源组件703可以包括:电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。The power supply component 703 provides power to various components of the device 700 . Power component 703 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 700 .

多媒体组件704包括在所述装置700和用户之间提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件704包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和/或后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 704 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 704 includes a front camera and/or a rear camera. When the device 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and/or rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件705被配置为输出和/或输入音频信号。例如,音频组件705包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器710或经由通信组件708发送。在一些实施例中,音频组件705还包括一个扬声器,用于输出音频信号。The audio component 705 is configured to output and/or input audio signals. For example, the audio component 705 includes a microphone (MIC) configured to receive external audio signals when the device 700 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 710 or sent via communication component 708 . In some embodiments, the audio component 705 also includes a speaker for outputting audio signals.

I/O接口706为处理组件701和外围接口模块之间提供接口,上述外围接口模块可以是键盘、点击轮、按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 706 provides an interface between the processing component 701 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件707包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件707可以检测到装置700的打开/关闭状态、组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件707还可以检测装置700或装置700的一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件707可以包括接近传感器,被配置为在没有任何的物理接触时检测附近物体的存在。传感器组件707还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件707还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。Sensor assembly 707 includes one or more sensors for providing status assessments of various aspects of device 700 . For example, the sensor component 707 can detect the open/closed state of the device 700, the relative positioning of components such as the display and keypad of the device 700, the sensor component 707 can also detect the position of the device 700 or a component of the device 700 Changes, presence or absence of user contact with device 700, device 700 orientation or acceleration/deceleration and temperature changes of device 700. The sensor assembly 707 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 707 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 707 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件708被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi、2G或3G,或它们的组合。在一个示例性实施例中,通信组件708经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件708还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术、红外数据协会(IrDA)技术、超宽带(UWB)技术、蓝牙(BT)技术或其他技术来实现。The communication component 708 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The device 700 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 708 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 708 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology or other technologies.

在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器702,上述指令可由装置700的处理器710执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 702 including instructions, which can be executed by the processor 710 of the device 700 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种移动终端提示信号的控制方法,所述方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute a method for controlling a prompt signal of the mobile terminal, the method comprising:

获取与所述移动终端接触的接触面的材质参数;Acquiring material parameters of the contact surface in contact with the mobile terminal;

根据所述材质参数,调整所述移动终端的提示信号的信号强度。Adjusting the signal strength of the prompt signal of the mobile terminal according to the material parameter.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (22)

CN201910645952.1A2019-07-172019-07-17 Inquiry method, device and storage medium for weather informationPendingCN110502682A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910645952.1ACN110502682A (en)2019-07-172019-07-17 Inquiry method, device and storage medium for weather information

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910645952.1ACN110502682A (en)2019-07-172019-07-17 Inquiry method, device and storage medium for weather information

Publications (1)

Publication NumberPublication Date
CN110502682Atrue CN110502682A (en)2019-11-26

Family

ID=68585348

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910645952.1APendingCN110502682A (en)2019-07-172019-07-17 Inquiry method, device and storage medium for weather information

Country Status (1)

CountryLink
CN (1)CN110502682A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111753173A (en)*2020-06-172020-10-09北京字节跳动网络技术有限公司Information query method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1391764A (en)*1999-10-182003-01-15株式会社电通Television broadcasting method, television broadcasting apparatus receiver and medium
CN104484361A (en)*2014-12-022015-04-01百度在线网络技术(北京)有限公司Method and device for displaying information
CN105278836A (en)*2015-09-242016-01-27小米科技有限责任公司Content switching method and apparatus, and terminal
CN107004040A (en)*2014-09-102017-08-01气象预报公司 Customizable weather analysis system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1391764A (en)*1999-10-182003-01-15株式会社电通Television broadcasting method, television broadcasting apparatus receiver and medium
CN107004040A (en)*2014-09-102017-08-01气象预报公司 Customizable weather analysis system
CN104484361A (en)*2014-12-022015-04-01百度在线网络技术(北京)有限公司Method and device for displaying information
CN105278836A (en)*2015-09-242016-01-27小米科技有限责任公司Content switching method and apparatus, and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邹建明等: "基于移动互联网气象信息发布APP技术实现", 《计算机光盘软件与应用》*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111753173A (en)*2020-06-172020-10-09北京字节跳动网络技术有限公司Information query method and device
WO2021254046A1 (en)*2020-06-172021-12-23北京字节跳动网络技术有限公司Information query method and device

Similar Documents

PublicationPublication DateTitle
US10942616B2 (en)Multimedia resource management method and apparatus, and storage medium
US20180121040A1 (en)Method and device for managing notification messages
CN106528617B (en)A kind of method and device that Web page picture is shown
CN107544809A (en)The method and apparatus for showing the page
CN109918001B (en) Interface display method, device and storage medium
CN110110315B (en) To-do item management method and device
CN104462296B (en)File management method and device and terminal
US11112951B2 (en)Method, device and storage medium for displaying content in notification bar
CN107273448B (en)Information display method, device and computer readable storage medium
US11836342B2 (en)Method for acquiring historical information, storage medium, and system
CN106020682A (en)Multi-task management method and device
CN106484392A (en)icon display method and device
CN106775202A (en)A kind of method and device of information transfer
CN107402767B (en) Method and apparatus for displaying push messages
CN107368233A (en)Switching method, device and the equipment of background picture
CN107045541A (en)data display method and device
CN107229637A (en)A kind of webpage collection method and device
CN105930163A (en)Interface switching method and apparatus
CN110636318A (en)Message display method, message display device, client device, server and storage medium
CN111859209A (en) Content display method, device and storage medium
CN107729098A (en)Method for displaying user interface and device
CN106294596A (en)The method and device of information search
CN110020082B (en)Searching method and device
CN110502682A (en) Inquiry method, device and storage medium for weather information
CN113010077A (en)Weather information display method and device, terminal and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp