User interface display method, device, equipment and storage medium

By obtaining and using component links, the problems of code replication and repeated development in front-end development are solved, automatic update and efficient utilization of components are realized, and development and update efficiency are improved.

CN114138270BActive Publication Date: 2024-11-26CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111525598.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-14
Publication Date
2024-11-26
Estimated Expiration
2041-12-14

AI Technical Summary

Technical Problem

During the front-end development process, when multiple teams collaborate, code copying and repeated development lead to irregular code, inefficient, and cumbersome update process, which wastes manpower and resources.

Method used

By obtaining the functional requirements information of the components to be developed, obtaining component links and adding them to the development code, the components can be reused and automatic updates, avoiding repeated development and manual updates.

Benefits of technology

Improve development efficiency and update efficiency, reduce labor waste and duplication of work, simplify the update process, and improve component utilization and project update speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138270B_ABST
    Figure CN114138270B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and storage medium for displaying a user interface, including: determining the requirement information of a first component in a set of components to be developed of a first project, wherein the first component is any component in the set of components to be developed; obtaining a component link of the first component according to the requirement information, and adding the component link to the development code of the first project; upon receiving a display instruction for the first project, displaying the user interface of the first project including the user interface of the first component, wherein the user interface of the first component is generated by running a code block in the component link; upon detecting that an update occurs to the code block of the first component, displaying an updated user interface of the first component, wherein the updated user interface of the first component is generated by running an updated code block in the component link. By adopting the embodiments of the present application, there is no need to repeatedly develop components, thereby improving development efficiency. The present application relates to blockchain technology, and the above-mentioned links / codes may be stored in a blockchain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a user interface display method, device, equipment and storage medium. Background Art

[0002] With the development of information technology, smart devices such as mobile phones and computers have become an indispensable part of people's daily lives. People can browse the web through smart terminals, or use applications installed in smart terminals, which brings convenience to people's work and life. At present, in the front-end development process, there are two ways to improve the efficiency of development. The first way is to directly copy a certain code, that is, if a component of project A is to be used in project B, the developer of project B can copy the code of the component of project A to the code of project B, thereby reducing the development time. The second way is to split a front-end development team into multiple small development teams, and each small development team can develop components of its own project. For the above two methods, multiple teams collaborate and directly copy and use codes of different projects, which is easy to cause problems of non-standard code. Each small development team develops components of its own project, which may easily cause waste of manpower and a lot of duplication of work, resulting in low development efficiency.

[0003] Therefore, how to quickly develop large and complex products is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The embodiments of the present application provide a method, device, and storage medium for displaying a user interface. On the one hand, a component link can be directly obtained based on the functional requirement information of the component to be developed, and the component link can be directly added to the development code, thereby improving the development efficiency and eliminating the need for repeated component development. On the other hand, after the original development code in the component link is updated, the project that references the component link can be directly updated, and the updated user interface can be directly displayed without manual operation, thereby improving the update efficiency.

[0005] In a first aspect, an embodiment of the present application provides a method for displaying a user interface, which is applied to a terminal device, comprising:

[0006] Determine functional requirement information of a first component in a set of components to be developed, wherein the set of components to be developed is a set of components in a first project, the first project is an unfinished project, and the first component is any component in the set of components to be developed;

[0007] Obtain a component link of the first component according to the functional requirement information, and add the component link to the development code of the first project, wherein the component link is used to indicate a code block of the first component, the first component is a component developed in the second project, and the second project is a published project;

[0008] In case of receiving a display instruction for the first project, displaying a user interface of the first project, wherein the user interface of the first project includes a user interface of the first component, and the user interface of the first component is generated by running a code block of the first component in the component link;

[0009] In the case where it is detected that the code block of the first component is updated, an updated user interface of the first component is displayed, where the updated user interface of the first component is generated by running the updated code block in the component link.

[0010] Furthermore, the obtaining of the component link of the first component according to the functional requirement information includes:

[0011] Determine the component category according to the above functional requirement information;

[0012] Sending an acquisition request to a preset server, the acquisition request carrying the component category, the acquisition request being used to acquire a project link of a reference project, the reference project being any project in a reference project set, each project in the reference project set being a published project, and each project in the reference project set including a component under the component category;

[0013] Receiving the project link sent by the preset server in response to the acquisition request;

[0014] In the case where it is determined that the second component in the reference project matches the first project, the second component is determined as the first component, and the second component is a component under the component category;

[0015] The component link of the first component is determined according to the project link.

[0016] Furthermore, the functional requirement information further includes first size information of the user interface of the first component. Before determining the second component as the first component, the method further includes:

[0017] Acquire component information of the second component, the component information including first frame information applicable to the second component and second size information of the user interface of the second component;

[0018] Determine the second framework information used to develop the first project;

[0019] When it is determined that the second size information satisfies the first size information and the first frame information is the same as the second frame information, determining that the second component matches the first item;

[0020] The component information also includes a component identifier of the second component. The determining the component link according to the project link includes:

[0021] A link suffix of the second component is generated according to the component identifier, and the link suffix is ​​added to the project link to obtain the component link.

[0022] Furthermore, after adding the component link to the development code of the first project, the method further includes:

[0023] Sending reference information to the preset server, the reference information including the identifier of the reference project, the identifier of the terminal device, the identifier of the first project, and the component identifier of the second component, the reference information being used to indicate that the first project references the second component;

[0024] The reference information is used to instruct the preset server to add the identifier of the first item and the identifier of the terminal device to the reference item table of the second component;

[0025] Before displaying the updated user interface of the first component, the method further includes:

[0026] Receive notification information from the preset server, where the notification information is used to indicate that the code block of the second component has been updated.

[0027] Furthermore, after adding the component link to the development code of the first project, the method further includes:

[0028] Sending publishing information to the preset server, the publishing information including the development code of the first project and component information of each component in the first project, the component information of each component including framework information applicable to each component, component category of each component and size information of the user interface of each component, and the component information also includes component identifiers of shared components;

[0029] The release information is used to instruct the preset server to store the development code of the first project and generate a project link of the first project;

[0030] Receive the shared component update information sent by the preset server, the shared component update information includes a shared component set and component information of each shared component in the shared component set, the shared component set includes the shared components of the first project.

[0031] Furthermore, the generating of the link suffix of the second component according to the component identifier and adding the link suffix to the project link to obtain the component link includes:

[0032] Obtaining a first string, wherein the first string is a string obtained by concatenating the project link and the link suffix, and the first string is a preset string;

[0033] Obtaining the suffix information corresponding to the component identifier according to the correspondence between the component identifier and the suffix information, and converting the suffix information into a second character string;

[0034] The first character string and the second character string are concatenated to obtain the link suffix, and the project link and the link suffix are concatenated to obtain the component link.

[0035] Furthermore, before sending the acquisition request to the preset server, the method further includes:

[0036] Convert the terminal device identifier into a third character string according to a preset information conversion method, and add a preset key to the third character string to obtain a fourth character string;

[0037] The fourth character string is operated according to a preset encryption algorithm to obtain reference signature data;

[0038] Sending verification information to the preset server, the verification information including the identifier of the terminal device and the reference signature data, the verification information being used to instruct the preset server to verify the verification information according to the identifier of the terminal device and the preset key, and sending a prompt message indicating that the verification is successful to the terminal device if the verification information is successful;

[0039] When receiving the prompt information indicating that the verification is successful, the acquisition request is sent to the preset server.

[0040] In a second aspect, an embodiment of the present application provides a display device for a user interface, comprising:

[0041] A determination unit, configured to determine functional requirement information of a first component in a set of components to be developed, wherein the set of components to be developed is a set of components in a first project, the first project is an unfinished project, and the first component is any component in the set of components to be developed;

[0042] an acquisition unit, configured to acquire a component link of the first component according to the functional requirement information, and add the component link to the development code of the first project, wherein the component link is used to indicate a code block of the first component, the first component is a component developed in a second project, and the second project is a published project;

[0043] A display unit is used to display a user interface of the first project when receiving a display instruction for the first project, wherein the user interface of the first project includes a user interface of the first component, and the user interface of the first component is generated by running a code block of the first component in the component link;

[0044] The display unit is used to display an updated user interface of the first component when it is detected that the code block of the first component is updated. The updated user interface of the first component is generated by running the updated code block in the component link.

[0045] In addition, in this aspect, other optional implementations of the display device of the user interface can refer to the relevant content of the first aspect mentioned above, and will not be described in detail here.

[0046] In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a transceiver; the processor is connected to the memory and the transceiver, respectively, wherein the memory stores a computer program code, and the processor and the transceiver are used to call the program code to execute the method provided by the first aspect and / or any possible implementation of the first aspect.

[0047] In a fourth aspect, an embodiment provides a computer-readable storage medium storing a computer program, which, when executed by a computer device, implements a method for displaying a user interface as disclosed in any possible implementation of the first aspect.

[0048] In the embodiment of the present application, by determining the functional requirement information of the first component in the to-be-developed set of the first project being developed, and obtaining the component link of the first component according to the functional requirement information of the first component, and adding the component link to the development code of the first project, the component link is the link of the component in the published second project, and the component link is used to indicate the code block of the component in the second project. Then, in the case of receiving the display instruction for the first project, the user interface of the first project including the user interface of the first component is displayed, and the user interface of the first component is allowed to be generated by the code block in the component link. Therefore, in the process of developing the project, the front-end engineer can develop in the form of components. The components can come from different projects, without the need for manual repeated development, and can also be used by other projects, thereby improving the utilization rate of the components and the efficiency of development. Moreover, in the case of detecting that the code block of the first component is updated, the updated user interface of the first component is displayed, and the updated user interface is generated by running the updated code block in the component link. That is, after the component of the original project is updated, the component that references the original project is directly updated by referencing the component link, and the code of the component link is also updated by running the code of the component link, without the need for additional manual development, shortening the update process and improving the update efficiency of the project. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 It is a structural schematic diagram of a display system of a user interface provided in an embodiment of the present application;

[0051] Figure 2 It is a flowchart of a method for displaying a user interface provided in an embodiment of the present application;

[0052] Figure 3 is another flowchart of a method for displaying a user interface provided in an embodiment of the present application;

[0053] Figure 4 is a structural schematic diagram of a display device of a user interface provided in an embodiment of the present application;

[0054] Figure 5 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0056] The following is combined with Figure 1 -Attached Figure 3 A method for displaying a user interface provided in an embodiment of the present application is schematically described.

[0057] A method for displaying a user interface provided in an embodiment of the present application can be applied to a display platform of a user interface, and the display platform of the user interface can be carried in a system or application based on user interface display. In some embodiments, the display platform of the above-mentioned user interface refers to a platform that can run the development code of a project, and then display the function of the user interface of the program or webpage of the project. The display platform of the user interface can receive the development code of the project being developed written by the user, and when running the development code of the project, the user interface of the project can be generated. Among them, the project can be a program being developed or a webpage being developed. If the developer is finished with the development, the display platform of the user interface can also generate the user interface of the project by running the code developed by the project, and display it. Among them, the display platform of the user interface can be a platform for developing projects, and if the project needs to be online after the development is completed, the project can also be published on a preset server, that is, the display platform of the user interface can establish a communication connection with the preset server. In some embodiments, the above-mentioned communication connection method can include but is not limited to wireless communication technology (Wireless Fidelity, WIFI), Bluetooth, near field communication (Near Field Communication, NFC), etc.

[0058] Specifically, the display platform of the user interface can determine the functional requirement information of the first component in the set of components to be developed of the first project being developed, and obtain the component link of the first component according to the functional requirement information, and add the component link of the first component to the development code of the first project, wherein the component link of the first component is the component developed in the published second project. Furthermore, the display platform of the user interface can display the user interface of the program or webpage of the first project upon receiving a display instruction for the first project, wherein the user interface of the first project includes the user interface of the first component, which is generated by the display platform of the user interface running the code block of the first component in the component link, and display the updated user interface of the first component upon detecting that the code block of the first component is updated, wherein the display platform of the user interface generates the updated user interface of the first component by running the updated code block of the first component in the component link.

[0059] On the one hand, by developing in the form of components, components can come from different projects, and components developed in this project can also be used by other projects under development, which improves the utilization rate of components and the overall development efficiency. On the other hand, by adding component links in the development code, development time is saved, development efficiency is improved, and waste of manpower and duplication of work are avoided. On the other hand, after the code block of the component in the original project is updated, the project using the component can automatically run the updated code and display the updated user interface when running the development code, without the need for manual updates by the project personnel using the component, which shortens the update process, improves the efficiency of project updates, and provides convenience for developers.

[0060] Based on the above description, the following Figure 1 A schematic diagram is provided to illustrate a display system of a user interface provided in an embodiment of the present application.

[0061] See also Figure 1 , Figure 1 is a structural diagram of an information push system based on a logistic regression model provided in an embodiment of the present application, such as Figure 1 As shown, the display system of the above user interface includes one or more terminal devices 101 (terminal device A and terminal device B) and a preset server 102. The terminal devices 101 (terminal device A and terminal device B) can be the display platform of the above user interface. The terminal devices 101 (terminal device A and terminal device B) can be directly or indirectly connected to the preset server 102 through wired or wireless means. It should be noted that Figure 1The number and form of devices shown are only for example and do not constitute a limitation on the embodiments of the present application. In actual applications, the display system of the user interface may also include more than two terminal devices and more than one preset server. The present application takes two terminal devices 101 (terminal device A and terminal device B) and one preset server 102 as an example for explanation.

[0062] Wherein, the terminal device 101 (terminal device A and terminal device B) can be a terminal device of a development project, and the terminal device A can be a terminal device that is developing a first project. Then, the terminal device A can determine a set to be developed in the first project, and the set to be developed includes at least one component, and each component has corresponding functional requirement information. The terminal device A can also obtain a component link of the first component according to the functional requirement information of the first component, and add the component link to the development code of the first component. Wherein, the first component is any component in the above-mentioned set to be developed, and the first component can be a component developed in the second project that has been released, and can be a component developed by the terminal device B. The component link of the first component is used to indicate the code block of the first component. In the case of receiving a display instruction for the first project, the display instruction can be received by the terminal device A after the project is developed but not released, or it can be received by the terminal device A after the project is released. The terminal device A can display the user interface of the first component in the user interface of the first project after running the code block in the component link. In addition, when the terminal device A detects that the code block of the first component is updated, it runs the updated code block and displays the updated user interface of the first component in the user interface of the first project.

[0063] Optionally, after the first project is published, terminal device B may also receive a display instruction for the program or webpage of the first project, run the code block of the component link, and display the user interface of the first project, where the user interface of the first project includes the user interface of the first component. Similarly, when it is detected that the code block of the first component is updated, terminal device B may also display the updated user interface of the first component by running the updated code block indicated by the component link.

[0064] The above-mentioned terminal device 101 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc.; the above-mentioned preset server 102 can be an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms and other basic cloud computing services. This application does not limit this.

[0065] The following is a detailed description of a method for displaying a user interface provided in an embodiment of the present application. Figure 2 , Figure 2 is a flow chart of a method for displaying a user interface provided in an embodiment of the present application. Figure 2 As shown, the method for displaying the user interface may include:

[0066] 201. Determine functional requirement information of a first component in a set of components to be developed, where the set of components to be developed is a set of components in a first project.

[0067] In the embodiment of the present application, there are large and small front-end development teams within the enterprise. The so-called front-end development refers to the process of creating a front-end interface such as a web page or an application to present it to the user, wherein the front-end development is to realize the user interface interaction of Internet products through Hypertext Markup Language (HTML), Cascading Style Sheets (CSS) and JavaScript programming language and various derived technologies, frameworks, and solutions. The so-called project refers to a basic unit of front-end development, such as a certain web page or multiple web pages, or a page of an application. The development of a project includes preliminary preparation, project development, multiple account testing, and project release.

[0068] Among them, during the development process of the project, the developed project can be developed in a componentized manner, that is, the components corresponding to a certain requirement can be directly introduced. The above components can refer to modules that implement a certain function in the user interface. For example, it can be an automatic carousel function, or a login component to implement the login function, a keyboard component to implement the keyboard function, etc., so that components developed by other development teams can be used to reduce development time and improve development efficiency, or components developed by the development team can be shared with other development teams to avoid developing the same components and doing repeated work, reducing manpower waste and improving project development efficiency.

[0069] In a possible implementation, the terminal device can determine a set of components to be developed for a first project under development, that is, the terminal device can determine the functional requirements of the first project. If you want to develop an application or webpage with a certain function, you can determine the components with a certain function and obtain a set of components to be developed. Specifically, the terminal device can determine the functional requirement information of the first component in the set of components to be developed for the first project, and the first component is any component in the above development set. It is understandable that the first project is a project under development and has not yet been completed. The terminal device determines the functional requirement information of the first component may be the functional requirement information received by the terminal device from the user. For example, the functional requirement information may be a login function.

[0070] Furthermore, the terminal device can obtain the relevant components of the login function according to the functional requirement information, such as the login component, which can be used to implement the login function, and the login component can include a code block for generating a user interface corresponding to the login function, and the terminal device can add the component to the development code of the first project to complete the development of the login function. Optionally, if the terminal device cannot obtain the relevant components according to the functional requirement, the terminal device can also receive the components developed by the front-end development team for the functional requirement, and share the components developed by the front-end development team for the functional requirement with other projects for use.

[0071] 202. Obtain a component link of the first component according to the functional requirement information, and add the component link to the development code of the first project.

[0072] Among them, the terminal device can obtain the component link of the first component according to the functional requirement information, and the component link of the first component is used to indicate the code block of the first component. The terminal device can add the component link of the first component to the development code of the first project, wherein the first component is a component developed by the second project, and the second project is a released project. Therefore, by directly using the code block that has been developed for the first component, the front-end development team does not need to repeatedly develop the first component of the functional requirement. Among them, when running the development code of the project, the code block corresponding to the component link can be directly called and executed to realize the function corresponding to the component link.

[0073] In a possible implementation, the terminal device may first determine the component category of the first component according to the functional requirement information, and then the terminal device may send an acquisition request to a preset server, the acquisition request carries the component category, and the acquisition request may be used to obtain a project connection of a reference project. The reference project is any project in a reference project set, each project in the reference project set is a published project, and each project in the reference project set has developed a component under the component category. Further, the terminal device may receive a project link sent by the preset server in response to the acquisition request, and select a project link of a second component matching the first project from a plurality of project links, the second component being a component under the component category. Further, the terminal device may determine the component link of the first component according to the project link, and add it to the development code of the first project. Optionally, the preset server may be a server that publishes the project, that is, a server that publishes the project after the project development is completed.

[0074] Exemplarily, taking the function requirement information as a login function as an example, the component category is determined to be a login category, and the terminal device sends a request to obtain a project connection of at least one reference project (i.e., each reference project in the reference project set) including the component under the login category. Then, the terminal device receives the project link returned by the preset server in response to the acquisition request, and the preset server can provide the project link of each reference project in the reference project set and the component information under the component category. Then, the terminal device can respectively determine whether the component under the login category in each reference project in the reference project set matches the first project. If it matches, the terminal device can determine the second component under the login category of the reference project as the first component. And determine the component link of the first component (second component) from the project link of the reference project sent from the preset server, i.e., the component link of the second component under the login category.

[0075] In a possible implementation, the functional requirement information of the first component also includes the first size information of the user interface of the first component. Before determining the second component as the first component, the terminal device may also obtain the component information of the second component, and the component information includes the first frame information applicable to the second component and the second size information of the user interface of the second component. The terminal device may determine the second frame information used to develop the first project. When the terminal device determines that the second size information satisfies the first size information and the first frame information is the same as the second frame information, it determines that the second component matches the first project, and then obtains the project link of the second project for developing the second component, and determines the component link of the second component based on the project connection of the second project.

[0076] Among them, when determining the functional requirement information, the layout of the user interface can be determined at the same time, that is, the size information of each component / functional module can be roughly determined, and the preset server can send component information to the terminal device in response to the acquisition request sent by the terminal device, and the component information includes the first framework information applicable to the second component and the size information of the user interface of the second component. Optionally, the functional requirement information may include the approximate length and width of the first component. Exemplarily, taking the first component as a carousel component as an example, the first size information of the carousel component may be 336*280 pixels. The second framework information of the first project may be the development framework of the first project. Exemplarily, the second framework information may be any one of Vue, React, QucikUI, Layui, etc.

[0077] Specifically, when the terminal device determines that the length and width values ​​in the second size information are within the range of the length and width in the first size information, it determines that the second size information of the second component meets the first size information of the first component in the functional requirement information. In addition, when the terminal device determines that the first framework information and the second framework information are the same, that is, the development framework applicable to the first project and the second component is the same, it determines that the second component in the reference project matches the first project. Then, the second component is used as the first component, and the component link is determined based on the project connection of the reference project where the first component is located. Optionally, if it is determined that the components under the component category of at least one reference project in the reference project set all match the first project, the second component whose second size information is closest to the first size information can be determined as the first component, or a reference project can be randomly selected from at least one reference project, and the second component under the component category in the selected reference project can be determined as the first component.

[0078] In a possible implementation, the component information of the second component returned by the preset server also includes the component identifier of the second component. Then, a link suffix of the second component can be generated based on the component identifier, and the link suffix is ​​added to the project link of the reference project to obtain the component link of the second component. Specifically, the terminal device can obtain a first string, and the first string is used to concatenate the project link and the link suffix. The first string can be a preset string, and the first string can be stored locally, that is, in the terminal device, or can be sent to the terminal device by the preset server. Furthermore, the terminal device obtains the suffix information corresponding to the component identifier based on the correspondence between the component identifier and the suffix information, and converts the suffix information into a second string. The first string and the second string are concatenated to obtain the link suffix, and the project link of the reference project and the link suffix are concatenated to obtain the component link.

[0079] Specifically, the preset server can generate a project link for each published project, and a component link can be obtained by adding a suffix after the project link. Among them, the first string can include one character. For example, the first string can be "-", "_", etc. The first string can also include multiple characters. For example, the first string can be " / []", etc. The component identifier is used to uniquely identify each component. For example, the second component is a login component, and the component identifier is L091, where L represents login, and 091 represents a serial number used to identify the login component. That is, the L can correspond to the suffix information login, and the suffix information corresponding to 091 is 091, then the suffix information corresponding to the component identifier is login identifier 091, and the second string can be login091 converted from the suffix information. Then, the first string and the second string are spliced. Taking the first string as "-" as an example, the link suffix is ​​"-login091". The terminal device can splice the link suffix after the second item to obtain a component link.

[0080] In a possible implementation, the preset server can also authenticate the terminal device. Only after the authentication is passed, will it receive and respond to the acquisition request sent by the terminal device and return the project link. Before sending the acquisition request to the preset server, the terminal device can convert the terminal device's identifier into a string according to the preset information conversion method, and concatenate the preset key with the converted string (third string) to obtain a fourth string, and operate the fourth string according to the preset encryption algorithm to obtain reference signature data. The preset server sends verification information, which includes the terminal device's identifier and the reference signature data. The verification information is used to instruct the preset server to verify the verification information according to the terminal device's identifier and the preset key. If the verification is passed, the terminal device can receive a prompt message indicating that the verification is passed. Furthermore, after receiving the prompt message, the terminal device sends an acquisition request to the preset server.

[0081] Specifically, the server may convert the terminal device's identification into a first character string. Optionally, the preset information conversion method may be splicing the American Standard Code for Information Interchange (ASCII) in ascending order to obtain a third character string. Then, the terminal device may splice the preset key after the third character string to obtain a fourth character string. The preset key may be a key agreed upon by the terminal device and the preset server. If the terminal device needs to publish a developed project on the preset server, the terminal device may register an account in the preset server and agree on a key, which is a preset character string. After obtaining the fourth character string, the terminal device may use a preset encryption algorithm to operate the fourth character string to obtain reference signature data. After receiving the verification information, the preset server uses the same splicing and operation method as the terminal device to generate the reference signature data. If the received signature is consistent with the calculated data, the preset server determines that the identity authentication of the terminal device is passed, that is, sends a prompt message of verification passing to the terminal device. Optionally, the preset encryption algorithm may be a message digest algorithm (MD5 Message-Digest Algorithm, MD5), a secure hash algorithm 256 (Secure Hash Algorithm 256, SHA256) or the like, and this application does not impose any limitation on this.

[0082] 203. When receiving a display instruction for the first project, display a user interface of the first project, where the user interface of the first project includes a user interface of the first component.

[0083] In a possible implementation, the display instruction may be received by the terminal device during the project testing phase of the first project after the development code is completed, or may be received by the terminal device when using the function / webpage / application of the first project after the project is released. In response to the display instruction for the first project, the terminal device runs the development code of the first project to generate a user interface of the first project, wherein the user interface of the first project includes a user interface of the first component, and the user interface of the first component is generated by running a code block in the component link of the second component.

[0084] Specifically, for the first project, there may be multiple components, some of which are component links that directly reference other projects, and some of which are directly developed by the front-end development team. When the terminal device runs the development code of the first project, if it is the code itself, it can be run directly. If it is detected to be a component link, it can access the component link, determine the code block of the component, and then run the code block in the component link to generate the user interface of the component, thereby obtaining a user interface that includes the user interfaces of each component, that is, the user interface of the first project.

[0085] 204. When it is detected that the code block of the first component is updated, an updated user interface of the first component is displayed.

[0086] In a possible implementation, after adding the component link of the second component (first component) to the development code of the first project, the terminal device may send reference information to the preset server, the reference information is used to indicate that the first project references the second component, and the reference information may include the identifier of the terminal device, the identifier of the first project, and the component identifier of the second component. After receiving the reference information sent by the terminal device, the preset server may add the identifier of the first project and the identifier of the terminal device in the reference information table of the second component. The reference information table stored in the server may be used to store the project that references the second component and the identifier of the terminal device used by the corresponding front-end development team. When the preset server detects that the code block of the second component is updated, it may send notification information to the terminal device corresponding to the identifier of the terminal device, and the notification information is used to indicate that the code block of the second component (i.e., the first component) is updated. Furthermore, the terminal device may display the update user interface of the second component (i.e., the first component).

[0087] Optionally, the action of sending the reference information may be performed simultaneously with the release of the first project, that is, when the final development code is determined, the reference information of each component referenced in the first project is sent to the server.

[0088] Specifically, when the terminal device detects that the code block of the first component has been updated, the terminal device displays the updated user interface of the first component, and the updated user interface is generated by the terminal device by running the updated code block in the component link. It can be understood that when the code in the code block of the first component changes, that is, when the development code of the second component of the second project is updated, the code block in the component link referenced by the terminal device running the first project will directly reference the updated code block, that is, the terminal device runs the updated development code. Therefore, the terminal device will display the updated user interface of the first component. For the first project, this update is imperceptible, and there is no need for the front-end development team of the first project to further debug and develop after the code of the component of the source project is updated. It is also convenient for the front-end development team of the second project to fix the bug of the second component after the bug is fixed by the bugged component. Other projects that reference the second component can also directly fix the component, thereby shortening the update process of each project and improving the efficiency of each project update.

[0089] In the embodiment of the present application, by determining the functional requirement information of the first component in the to-be-developed set of the first project being developed, and obtaining the component link of the first component according to the functional requirement information of the first component, and adding the component link to the development code of the first project, the component link is the link of the component in the published second project, and the component link is used to indicate the code block of the component in the second project. Then, in the case of receiving the display instruction for the first project, the user interface of the first project including the user interface of the first component is displayed, and the user interface of the first component is allowed to be generated by the code block in the component link. Therefore, in the process of developing the project, the front-end engineer can develop in the form of components. The components can come from different projects, without the need for manual repeated development, and can also be used by other projects, thereby improving the utilization rate of the components and the efficiency of development. Moreover, in the case of detecting that the code block of the first component is updated, the updated user interface of the first component is displayed, and the updated user interface is generated by running the updated code block in the component link. That is, after the component of the original project is updated, the component that references the original project is directly updated by referencing the component link, and the code of the component link is also updated by running the code of the component link, without the need for additional manual development, shortening the update process and improving the update efficiency of the project.

[0090] See also Figure 3 , Figure 3It is a flowchart of a method for displaying a user interface provided in an embodiment of the present application. It should be noted that the same or similar parts between the various embodiments in the present application can refer to each other. In the various embodiments in the present application, and the various implementation methods / implementation methods / implementation methods in each embodiment, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The above-mentioned implementation methods of the present application do not constitute a limitation on the scope of protection of the present application. As Figure 3 As shown, the method for displaying the user interface may include:

[0091] 301. Send publishing information to a preset server.

[0092] In a possible implementation, after the development of the first project is completed, the first project can be published. Specifically, the terminal device can send publishing information to the preset server, and the publishing information can carry a file of the development code of the first project and a file including component information of each component in the first project. Among them, the component information of each component in the first project includes the framework information applicable to each component, the component category of each component and the size information of the user interface of each component, and the component information can also include the component identification of the shared component. Optionally, the component information is used to instruct the preset server to generate a project link for the first project, marking the completion of the publication of the first project.

[0093] Among them, the component identification of the shared component included in the component information can be used to indicate whether the component is a shared component. It can be understood that the first project includes multiple components, some of which are referenced components and some of which are developed components. Among the developed components, there can be at least one component that allows other projects to reference the component, that is, the shared component, and the remaining developed components are non-shared components and cannot be referenced by other projects. It can be understood that the components under the component category included in each reference project in the reference project set obtained by the terminal device are all shared components of each reference project. The terminal device can determine the component that matches the first project from the shared components of each reference project and determine it as the first component.

[0094] Exemplarily, the first project includes five components: a login component, a carousel component, a keyboard component, a sharing component, and a lottery component, wherein the login component and the carousel component may be components that reference other projects, and the keyboard component, the sharing component, and the lottery component are components developed by the front-end development team of the first project. The keyboard component and the sharing component may be shared components, that is, they may be referenced by other projects, and the lottery component may be a non-shared component that cannot be referenced by other projects. Optionally, the terminal device may receive a shared component setting instruction to set a shared component identifier for the keyboard component and the sharing component, and the shared component setting instruction may be triggered by the front-end development team of the first project.

[0095] 302. Receive the shared component update information sent by the preset server.

[0096] Specifically, after receiving the release information, the preset server can generate shared component update information, and the shared component update information includes a shared component set and component information of each shared component in the shared component set, and the shared component set includes the shared components of the first project. Exemplarily, if the shared components of the first project are a keyboard component and a sharing component, the terminal device can receive the component information of the keyboard component and the component information of the sharing component. The preset server can send the shared component update information to multiple terminal devices so that each front-end development team can receive the shared component update information, so that it can be referenced in the subsequent project development process.

[0097] In the embodiment of the present application, by determining the functional requirement information of the first component in the to-be-developed set of the first project being developed, and obtaining the component link of the first component according to the functional requirement information of the first component, and adding the component link to the development code of the first project, the component link is the link of the component in the published second project, and the component link is used to indicate the code block of the component in the second project. Then, in the case of receiving the display instruction for the first project, the user interface of the first project including the user interface of the first component is displayed, and the user interface of the first component is allowed to be generated by the code block in the component link. Therefore, in the process of developing the project, the front-end engineer can develop in the form of components. The components can come from different projects, without the need for manual repeated development, and can also be used by other projects, thereby improving the utilization rate of the components and the efficiency of development. Moreover, in the case of detecting that the code block of the first component is updated, the updated user interface of the first component is displayed, and the updated user interface is generated by running the updated code block in the component link. That is, after the component of the original project is updated, the component that references the original project is directly updated by referencing the component link, and the code of the component link is also updated by running the code of the component link, without the need for additional manual development, shortening the update process and improving the update efficiency of the project.

[0098] See also Figure 4 , Figure 4 4 is a schematic diagram of a structure of a display device of a user interface provided in an embodiment of the present application. The display device 400 of the user interface includes:

[0099] The determining unit 401 is used to determine the functional requirement information of the first component in the set of components to be developed, wherein the set of components to be developed is a set of components in a first project, the first project is an unfinished project, and the first component is any component in the set of components to be developed;

[0100] An acquisition unit 402 is used to acquire a component link of the first component according to the functional requirement information, and add the component link to the development code of the first project, wherein the component link is used to indicate a code block of the first component, the first component is a component developed in a second project, and the second project is a published project;

[0101] A display unit 403 is configured to display a user interface of the first project upon receiving a display instruction for the first project, wherein the user interface of the first project includes a user interface of the first component, and the user interface of the first component is generated by running a code block of the first component in the component link;

[0102] The display unit 403 is used to display an updated user interface of the first component when it is detected that the code block of the first component is updated. The updated user interface of the first component is generated by running the updated code block in the component link.

[0103] Furthermore, the acquisition unit 402 is used to acquire the component link of the first component according to the functional requirement information, specifically to:

[0104] Determine the component category according to the above functional requirement information;

[0105] Sending an acquisition request to a preset server, the acquisition request carrying the component category, the acquisition request being used to acquire a project link of a reference project, the reference project being any project in a reference project set, each project in the reference project set being a published project, and each project in the reference project set including a component under the component category;

[0106] Receiving the project link sent by the preset server in response to the acquisition request;

[0107] In the case where it is determined that the second component in the reference project matches the first project, the second component is determined as the first component, and the second component is a component under the component category;

[0108] The component link of the first component is determined according to the project link.

[0109] Furthermore, the functional requirement information further includes first size information of the user interface of the first component. The acquisition unit 402 is further configured to acquire component information of the second component, wherein the component information includes first frame information applicable to the second component and second size information of the user interface of the second component.

[0110] The determination unit 401 is further configured to determine the second framework information used to develop the first project.

[0111] The determining unit 401 is further configured to determine that the second component matches the first item when it is determined that the second size information satisfies the first size information and the first frame information is the same as the second frame information;

[0112] The component information also includes a component identifier of the second component. The acquisition unit 402 is used to determine the component link according to the project link, specifically to:

[0113] A link suffix of the second component is generated according to the component identifier, and the link suffix is ​​added to the project link to obtain the component link.

[0114] Furthermore, the display device 400 of the user interface further includes:

[0115] A sending unit 404 is used to send reference information to the preset server, where the reference information includes an identifier of the reference project, an identifier of the terminal device, an identifier of the first project, and a component identifier of the second component, and the reference information is used to indicate that the first project references the second component;

[0116] The reference information is used to instruct the preset server to add the identifier of the first item and the identifier of the terminal device to the reference item table of the second component;

[0117] The display device 400 of the user interface further includes:

[0118] The receiving unit 405 is used to receive notification information from the preset server, where the notification information is used to indicate that the code block of the second component has been updated.

[0119] Furthermore, the sending unit 404 is further configured to send publishing information to the preset server, wherein the publishing information includes the development code of the first project and component information of each component in the first project, wherein the component information of each component includes framework information applicable to each component, component category of each component and size information of the user interface of each component, and the component information also includes component identification of a shared component;

[0120] The release information is used to instruct the preset server to store the development code of the first project and generate a project link of the first project;

[0121] The receiving unit 405 is further used to receive shared component update information sent by the preset server, wherein the shared component update information includes a shared component set and component information of each shared component in the shared component set, wherein the shared component set includes the shared components of the first project.

[0122] Furthermore, the acquisition unit 402 is used to generate a link suffix of the second component according to the component identifier, and add the link suffix to the project link to obtain the component link, which is specifically used to:

[0123] Obtaining a first string, wherein the first string is a string obtained by concatenating the project link and the link suffix, and the first string is a preset string;

[0124] Obtaining the suffix information corresponding to the component identifier according to the correspondence between the component identifier and the suffix information, and converting the suffix information into a second character string;

[0125] The first character string and the second character string are concatenated to obtain the link suffix, and the project link and the link suffix are concatenated to obtain the component link.

[0126] Furthermore, the display device 400 of the user interface further includes:

[0127] A conversion unit 406, configured to convert the terminal device identifier into a third character string according to a preset information conversion method, and add a preset key to the third character string to obtain a fourth character string;

[0128] A calculation unit 407 is used to calculate the fourth character string according to a preset encryption algorithm to obtain reference signature data;

[0129] The sending unit 404 is further configured to send verification information to the preset server, where the verification information includes the identifier of the terminal device and the reference signature data, and the verification information is used to instruct the preset server to verify the verification information according to the identifier of the terminal device and the preset key, and to send a prompt message indicating that the verification is successful to the terminal device if the verification information is successfully verified;

[0130] The sending unit 404 is further configured to send the acquisition request to the preset server upon receiving a prompt message indicating that the verification is successful.

[0131] For detailed description of the determination unit 401, the acquisition unit 402, the display unit 403, the sending unit 404, the receiving unit 405, the conversion unit 406 and the calculation unit 407, please refer to the above Figures 2 to 3 The relevant description in the illustrated method embodiment is directly obtained and will not be repeated here.

[0132] In the embodiment of the present application, by determining the functional requirement information of the first component in the to-be-developed set of the first project being developed, and obtaining the component link of the first component according to the functional requirement information of the first component, and adding the component link to the development code of the first project, the component link is the link of the component in the published second project, and the component link is used to indicate the code block of the component in the second project. Then, in the case of receiving the display instruction for the first project, the user interface of the first project including the user interface of the first component is displayed, and the user interface of the first component is allowed to be generated by the code block in the component link. Therefore, in the process of developing the project, the front-end engineer can develop in the form of components. The components can come from different projects, without the need for manual repeated development, and can also be used by other projects, thereby improving the utilization rate of the components and the efficiency of development. Moreover, in the case of detecting that the code block of the first component is updated, the updated user interface of the first component is displayed, and the updated user interface is generated by running the updated code block in the component link. That is, after the component of the original project is updated, the component that references the original project is directly updated by referencing the component link, and the code of the component link is also updated by running the code of the component link, without the need for additional manual development, shortening the update process and improving the update efficiency of the project.

[0133] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application, such as Figure 5 As shown, the computer device 500 in the embodiment of the present application may include:

[0134] Processor 501, transceiver 502 and memory 505. In addition, the above-mentioned computer device 500 may also include: a user interface 504, and at least one communication bus 503. The communication bus 503 is used to realize the connection and communication between these components. The user interface 504 may include a display screen (Display) and a keyboard (Keyboard). The memory 505 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 505 may optionally be at least one storage device located away from the aforementioned processor 501 and the aforementioned transceiver 502. Figure 5 As shown, the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0135] exist Figure 5In the computer device 500 shown, the transceiver 502 can provide a network communication function so that the servers can communicate with each other; the user interface 504 is mainly used to provide an input interface for the user; and the processor 501 can be used to call the device control application stored in the memory 505 to perform the following operations:

[0136] Determine functional requirement information of a first component in a set of components to be developed, wherein the set of components to be developed is a set of components in a first project, the first project is an unfinished project, and the first component is any component in the set of components to be developed;

[0137] Obtain a component link of the first component according to the functional requirement information, and add the component link to the development code of the first project, wherein the component link is used to indicate a code block of the first component, the first component is a component developed in the second project, and the second project is a published project;

[0138] In case of receiving a display instruction for the first project, displaying a user interface of the first project, wherein the user interface of the first project includes a user interface of the first component, and the user interface of the first component is generated by running a code block of the first component in the component link;

[0139] In the case where it is detected that the code block of the first component is updated, an updated user interface of the first component is displayed, where the updated user interface of the first component is generated by running the updated code block in the component link.

[0140] In a possible implementation, the processor 501 obtains the component link of the first component according to the functional requirement information, and is specifically configured to execute:

[0141] Determine the component category according to the above functional requirement information;

[0142] Sending an acquisition request to a preset server, the acquisition request carrying the component category, the acquisition request being used to acquire a project link of a reference project, the reference project being any project in a reference project set, each project in the reference project set being a published project, and each project in the reference project set including a component under the component category;

[0143] Receiving the project link sent by the preset server in response to the acquisition request;

[0144] In the case where it is determined that the second component in the reference project matches the first project, the second component is determined as the first component, and the second component is a component under the component category;

[0145] The component link of the first component is determined according to the project link.

[0146] In a possible implementation, the functional requirement information further includes first size information of the user interface of the first component. Before the processor 501 determines the second component as the first component, the processor 501 is further configured to perform the following operations:

[0147] Acquire component information of the second component, the component information including first frame information applicable to the second component and second size information of the user interface of the second component;

[0148] Determine the second framework information used to develop the first project;

[0149] When it is determined that the second size information satisfies the first size information and the first frame information is the same as the second frame information, determining that the second component matches the first item;

[0150] The component information further includes a component identifier of the second component. The processor 501 determines the component link according to the project link, and is specifically configured to execute:

[0151] A link suffix of the second component is generated according to the component identifier, and the link suffix is ​​added to the project link to obtain the component link.

[0152] In a possible implementation, after the processor 501 adds the component link to the development code of the first project, the processor 501 is further configured to perform the following operations:

[0153] Sending reference information to the preset server, the reference information including the identifier of the reference project, the identifier of the terminal device, the identifier of the first project, and the component identifier of the second component, the reference information being used to indicate that the first project references the second component;

[0154] The reference information is used to instruct the preset server to add the identifier of the first item and the identifier of the terminal device to the reference item table of the second component;

[0155] Before the processor 501 displays the updated user interface of the first component, the processor 501 is further configured to perform the following operations:

[0156] Receive notification information from the preset server, where the notification information is used to indicate that the code block of the second component has been updated.

[0157] In a possible implementation, after the processor 501 adds the component link to the development code of the first project, the processor 501 is further configured to perform the following operations:

[0158] Sending publishing information to the preset server, the publishing information including the development code of the first project and component information of each component in the first project, the component information of each component including framework information applicable to each component, component category of each component and size information of the user interface of each component, and the component information also includes component identifiers of shared components;

[0159] The release information is used to instruct the preset server to store the development code of the first project and generate a project link of the first project;

[0160] Receive the shared component update information sent by the preset server, the shared component update information includes a shared component set and component information of each shared component in the shared component set, the shared component set includes the shared components of the first project.

[0161] In a possible implementation, the processor 501 generates a link suffix of the second component according to the component identifier, and adds the link suffix to the project link to obtain the component link, which is specifically used to execute:

[0162] Obtaining a first string, wherein the first string is a string obtained by concatenating the project link and the link suffix, and the first string is a preset string;

[0163] Obtaining the suffix information corresponding to the component identifier according to the correspondence between the component identifier and the suffix information, and converting the suffix information into a second character string;

[0164] The first character string and the second character string are concatenated to obtain the link suffix, and the project link and the link suffix are concatenated to obtain the component link.

[0165] In a possible implementation, before the processor 501 sends the acquisition request to the preset server, the processor 501 is further configured to perform the following operations:

[0166] Convert the terminal device identifier into a third character string according to a preset information conversion method, and add a preset key to the third character string to obtain a fourth character string;

[0167] The fourth character string is operated according to a preset encryption algorithm to obtain reference signature data;

[0168] Sending verification information to the preset server, the verification information including the identifier of the terminal device and the reference signature data, the verification information being used to instruct the preset server to verify the verification information according to the identifier of the terminal device and the preset key, and sending a prompt message indicating that the verification is successful to the terminal device if the verification information is successful;

[0169] When receiving the prompt information indicating that the verification is successful, the acquisition request is sent to the preset server.

[0170] It should be understood that in some feasible implementations, the processor 501 may be a central processing unit (CPU), and the processor 501 may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0171] The memory 505 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory 505 may also include a nonvolatile random access memory.

[0172] In a specific implementation, the computer device 500 can execute the above-mentioned functions through its built-in functional modules. Figure 2 and Figure 3 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0173] In the embodiment of the present application, by determining the functional requirement information of the first component in the to-be-developed set of the first project being developed, and obtaining the component link of the first component according to the functional requirement information of the first component, and adding the component link to the development code of the first project, the component link is the link of the component in the published second project, and the component link is used to indicate the code block of the component in the second project. Then, in the case of receiving the display instruction for the first project, the user interface of the first project including the user interface of the first component is displayed, and the user interface of the first component is allowed to be generated by the code block in the component link. Therefore, in the process of developing the project, the front-end engineer can develop in the form of components. The components can come from different projects, without the need for manual repeated development, and can also be used by other projects, thereby improving the utilization rate of the components and the efficiency of development. Moreover, in the case of detecting that the code block of the first component is updated, the updated user interface of the first component is displayed, and the updated user interface is generated by running the updated code block in the component link. That is, after the component of the original project is updated, the component that references the original project is directly updated by referencing the component link, and the code of the component link is also updated by running the code of the component link, without the need for additional manual development, shortening the update process and improving the update efficiency of the project.

[0174] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the computer device mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above-mentioned Figure 2 or Figure 3 Therefore, the description of any method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0175] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by hardware related to computer program instructions, and the above-mentioned program can be stored in a computer-readable storage medium, which, when executed, can include the processes of the embodiments of the above-mentioned methods. The above-mentioned storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0176] It should be emphasized that in order to further ensure the privacy and security of the above data, the above data can also be stored in a node of a blockchain. Among them, the blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. The blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.

[0177] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for displaying a user interface, characterized in that: The method is applied to a terminal device, and the method comprises: Determine functional requirement information of a first component in a set of components to be developed, wherein the set of components to be developed is a set of components in a first project, the first project is an unfinished project, and the first component is any component in the set of components to be developed; Acquire a component link of the first component according to the functional requirement information, and add the component link to the development code of the first project, wherein the component link is used to indicate a code block of the first component, the first component is a component developed in a second project, and the second project is a published project; In case of receiving a display instruction for the first item, displaying a user interface of the first item, wherein the user interface of the first item includes a user interface of the first component, and the user interface of the first component is generated by running a code block of the first component in the component link; In case that it is detected that the code block of the first component is updated, displaying an updated user interface of the first component, where the updated user interface of the first component is generated by running the updated code block in the component link; Wherein, acquiring the component link of the first component according to the functional requirement information includes: Determine a component category according to the functional requirement information; Sending an acquisition request to a preset server, the acquisition request carrying the component category, the acquisition request being used to acquire a project link of a reference project, the reference project being any project in a reference project set, each project in the reference project set being a published project, and each project in the reference project set including a component under the component category; Receiving a project link sent by the preset server in response to the acquisition request; In the case where it is determined that a second component in the reference project matches the first project, determining the second component as the first component, the second component being a component under the component category; determining a component link of the first component according to the project link; The functional requirement information further includes first size information of the user interface of the first component. Before determining the second component as the first component, the method further includes: Acquire component information of the second component, where the component information includes first frame information applicable to the second component and second size information of the user interface of the second component; determining second framework information used to develop the first project; When it is determined that the second size information satisfies the first size information and the first frame information is the same as the second frame information, determining that the second component matches the first item; The component information also includes a component identifier of the second component, and determining the component link of the first component according to the project link includes: A link suffix of the second component is generated according to the component identifier, and the link suffix is ​​added to the project link to obtain the component link.

2. The method according to claim 1, characterized in that After adding the component link to the development code of the first project, the method further includes: Sending reference information to the preset server, the reference information including the identifier of the reference project, the identifier of the terminal device, the identifier of the first project, and the component identifier of the second component, the reference information being used to indicate that the first project references the second component; The reference information is used to instruct the preset server to add the identifier of the first item and the identifier of the terminal device to the reference item table of the second component; Before displaying the updated user interface of the first component, the method further includes: Notification information is received from the preset server, where the notification information is used to indicate that a code block of the second component has been updated.

3. The method according to claim 2, characterized in that After adding the component link to the development code of the first project, the method further includes: Sending publishing information to the preset server, the publishing information including the development code of the first project and component information of each component in the first project, the component information of each component including framework information applicable to each component, component category of each component and size information of the user interface of each component, and the component information also including component identification of shared components; The publishing information is used to instruct the preset server to store the development code of the first project and generate a project link of the first project; Receive shared component update information sent by the preset server, wherein the shared component update information includes a shared component set and component information of each shared component in the shared component set, and the shared component set includes the shared components of the first project.

4. The method according to claim 1, characterized in that: Generating a link suffix of the second component according to the component identifier, and adding the link suffix to the project link to obtain the component link includes: Obtaining a first string, wherein the first string is a string obtained by concatenating the project link and the link suffix, and the first string is a preset string; Acquire the suffix information corresponding to the component identifier according to the correspondence between the component identifier and the suffix information, and convert the suffix information into a second character string; The first character string and the second character string are concatenated to obtain the link suffix, and the project link and the link suffix are concatenated to obtain the component link.

5. The method according to claim 4, characterized in that Before sending the acquisition request to the preset server, the method further includes: Convert the identifier of the terminal device into a third character string according to a preset information conversion method, and add a preset key to the third character string to obtain a fourth character string; Performing operation on the fourth character string according to a preset encryption algorithm to obtain reference signature data; Sending verification information to the preset server, the verification information including the identifier of the terminal device and the reference signature data, the verification information being used to instruct the preset server to verify the verification information according to the identifier of the terminal device and the preset key, and sending a prompt message of verification success to the terminal device if the verification information is verified successfully; When receiving the prompt information indicating that the verification is successful, the acquisition request is sent to the preset server.

6. A display device for a user interface, characterized in that: include: A determining unit, configured to determine functional requirement information of a first component in a set of components to be developed, wherein the set of components to be developed is a set of components in a first project, the first project is an unfinished project, and the first component is any component in the set of components to be developed; an acquiring unit, configured to acquire a component link of the first component according to the functional requirement information, and add the component link to the development code of the first project, wherein the component link is used to indicate a code block of the first component, the first component is a component developed in a second project, and the second project is a published project; A display unit is configured to display a user interface of the first project when receiving a display instruction for the first project, wherein the user interface of the first project includes a user interface of the first component, and the user interface of the first component is generated by running a code block of the first component in the component link; The display unit is configured to display an updated user interface of the first component when it is detected that the code block of the first component is updated, wherein the updated user interface of the first component is generated by running the updated code block in the component link; The acquiring unit acquires the component link of the first component according to the functional requirement information, specifically for: Determine a component category according to the functional requirement information; Sending an acquisition request to a preset server, the acquisition request carrying the component category, the acquisition request being used to acquire a project link of a reference project, the reference project being any project in a reference project set, each project in the reference project set being a published project, and each project in the reference project set including a component under the component category; Receiving a project link sent by the preset server in response to the acquisition request; In the case where it is determined that a second component in the reference project matches the first project, determining the second component as the first component, the second component being a component under the component category; Determine a component link of the first component according to the project link; the functional requirement information also includes first size information of the user interface of the first component; The acquisition unit is further used to acquire component information of the second component, where the component information includes first frame information applicable to the second component and second size information of the user interface of the second component; The determining unit is further configured to determine second framework information used to develop the first project; and when it is determined that the second size information satisfies the first size information and the first framework information is the same as the second framework information, determine that the second component matches the first project; The component information also includes a component identifier of the second component, and the obtaining unit determines the component link of the first component according to the project link, specifically for: A link suffix of the second component is generated according to the component identifier, and the link suffix is ​​added to the project link to obtain the component link.

7. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 5.