CN114860312A - Mobile terminal adaptation method, device, equipment and medium based on credit business - Google Patents
Mobile terminal adaptation method, device, equipment and medium based on credit business Download PDFInfo
- Publication number
- CN114860312A CN114860312A CN202210344065.2A CN202210344065A CN114860312A CN 114860312 A CN114860312 A CN 114860312A CN 202210344065 A CN202210344065 A CN 202210344065A CN 114860312 A CN114860312 A CN 114860312A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- service
- component
- web
- page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 230000006978 adaptation Effects 0.000 title claims abstract description 48
- 230000001419 dependent effect Effects 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 26
- 238000012552 review Methods 0.000 claims description 9
- 230000000712 assembly Effects 0.000 claims description 3
- 238000000429 assembly Methods 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000011161 development Methods 0.000 abstract description 20
- 230000001360 synchronised effect Effects 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 20
- 238000004891 communication Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 238000004806 packaging method and process Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/76—Adapting program code to run in a different environment; Porting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/03—Credit; Loans; Processing thereof
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- Technology Law (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a credit service-based mobile terminal adaptation method, device, equipment and medium. The invention relates to the technical field of computers. The method comprises the following steps: if the display request of the loan service is detected, acquiring a global equipment variable; if the identification result of the global equipment variable is the mobile terminal equipment, obtaining a mobile terminal configuration file of the loan service to obtain a mobile terminal running script; based on the mobile terminal running script, converting the service components of the loan service so as to display through the mobile terminal; and the service component is constructed based on the Web end attribute and the dependent package. The technical scheme of the invention can ensure that the adaptation of the mobile terminal can be realized efficiently and quickly, and the subsequent function development and demand adjustment can be responded and synchronized to the Web terminal and the mobile terminal in time.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a credit service-based mobile terminal adaptation method, device, equipment and medium.
Background
At present, with the rapid development of business in China, a large number of individual operators and entrepreneurs emerge, and the good business environment promotes the vigorous development of credit business (such as loan, repayment and the like).
The existing technical scheme is that in the credit productization project development process, the development and development on a mobile terminal are carried out aiming at the developed Web terminal function, and the development mode of the mobile terminal page of the existing parent line credit business process is usually that mobile terminal developers and client terminal developers do not cross and repeat; the mobile terminal code is completely isolated from the client terminal code; the function iteration of the mobile terminal needs the same requirement combing, code development and joint debugging test as the client terminal; mobile-side function iterations are typically one to two versions later than the client.
However, most systems include the defects of redundancy of mobile terminal page development service logic codes of a parent line credit service flow system, failure in timely synchronization of function adjustment, low development efficiency, high cost of developers and the like.
Disclosure of Invention
The invention provides a credit service-based mobile terminal adaptation method, a credit service-based mobile terminal adaptation device, credit service-based mobile terminal adaptation equipment and credit service-based mobile terminal adaptation media, which can ensure that adaptation of a mobile terminal can be realized efficiently and quickly, and subsequent function development and demand adjustment can be responded and synchronized to a Web terminal and the mobile terminal in time.
According to an aspect of the present invention, there is provided a credit service-based mobile terminal adaptation method, including:
if the display request of the loan service is detected, acquiring a global equipment variable;
if the identification result of the global equipment variable is the mobile terminal equipment, obtaining a mobile terminal configuration file of the loan service to obtain a mobile terminal running script;
based on the mobile terminal running script, converting the service components of the loan service so as to display through the mobile terminal; and the service component is constructed based on the Web end attribute and the dependent package.
Optionally, after obtaining the global device variable, the method further includes:
if the identification result of the global equipment variable is Web end equipment, obtaining a Web end configuration file of loan service to obtain a Web end running script;
and running the Web end running script, and displaying based on the Web end attribute.
Optionally, the dependency package is used to convert PX of CSS of the service component into Rem.
Optionally, the service component is obtained by referring to a public component based on a Web end and assembling the public component with a special component.
Optionally, the method further includes:
the layout and logic of a universal page area of a Web end are extracted to form a common component; the page area comprises at least one of a list page, a form page, a starting point page and a review page.
Optionally, after the layout and logic of the page area commonly used by the Web end are abstracted into common components, the method further includes:
adding template files corresponding to the public assemblies of the mobile terminal, and adapting the public assembly template display layer;
and the extracted original method logic is quoted to the common component method logic layer of the mobile terminal so as to adapt to the mobile terminal.
According to another aspect of the present invention, there is provided a credit service-based mobile-end adapting apparatus, including:
the global equipment variable acquisition module is used for acquiring a global equipment variable if the display request of the loan service is detected;
the configuration file acquisition module is used for acquiring a mobile terminal configuration file of the loan service to obtain a mobile terminal running script if the identification result of the global equipment variable is the mobile terminal equipment;
the service component conversion module is used for converting the service components of the loan service based on the mobile terminal running script so as to display the loan service through the mobile terminal; and the service component is constructed based on the Web end attribute and the dependent package.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform a credit service based mobile-end adaptation method according to any embodiment of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement a credit service-based mobile-end adaptation method according to any one of the embodiments of the present invention when executed.
According to another aspect of the present invention, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a credit service based mobile-end adaptation method according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, if the display request of the loan service is detected, the global equipment variable is obtained; if the identification result of the global equipment variable is the mobile terminal equipment, obtaining a mobile terminal configuration file of the loan service to obtain a mobile terminal running script; based on the mobile terminal running script, converting the service components of the loan service so as to display through the mobile terminal; and the service component is constructed based on the Web end attribute and the dependent package. The technical scheme of the invention can ensure that the adaptation of the mobile terminal can be realized efficiently and quickly, and the subsequent function development and demand adjustment can be responded and synchronized to the Web terminal and the mobile terminal in time.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present invention, nor are they intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a credit service-based mobile terminal adaptation method according to an embodiment of the present invention;
fig. 2 is a flowchart of a credit service-based mobile terminal adaptation method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a credit service-based mobile terminal adaptation apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance. According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
Example one
Fig. 1 is a flowchart of a credit service-based mobile terminal adaptation method according to an embodiment of the present invention, where the present embodiment is applicable to a case where a mobile terminal is adapted based on a credit service process, and the method may be performed by a credit service-based mobile terminal adaptation apparatus, which may be implemented in a form of hardware and/or software, and the credit service-based mobile terminal adaptation apparatus may be configured in an electronic device with data processing capability. As shown in fig. 1, the method includes:
and S110, if the display request of the loan service is detected, acquiring the global equipment variable.
The technical scheme of the embodiment can be executed by the background server. The technical scheme of the embodiment may be a scheme for performing mobile terminal adaptation rapid development for a Web end system in which a credit business process is implemented. In this embodiment, the background server identifies and determines whether the loan service is a Web side or a mobile side according to the global device variable by detecting the display request of the loan service. If the global equipment variable is identified as the mobile terminal, the service component of the loan service based on the Web terminal attribute and the dependency package is displayed according to the running script of the mobile terminal, so that the mobile terminal function can be efficiently and quickly realized, and the subsequent function development and demand adjustment can be timely synchronized to the Web terminal and the mobile terminal.
The loan transaction may be a transaction in which a bank withdraws principal and interest to a user by making a deposit. The loan transaction may include implemented Web-end systems and mobile-end systems. The loan transaction system may include a plurality of pages of the transaction process, which may include, for example, a list page, a form page, a start page, and a review page. The display request can be the request operation that the background server receives the user to display a certain page of the loan service. The global device variable may be understood to identify whether the current presentation environment is a Web-side device or a mobile-side device. The global device variable can be added in the code engineering, so that each device can conveniently acquire the global device variable, and can perform personalized processing.
In this embodiment, if the background server detects that the user performs the display operation on a certain page of the loan service, the background server may obtain the global device variable in the code engineering.
And S120, if the identification result of the global equipment variable is the mobile terminal equipment, obtaining a mobile terminal configuration file of the loan service to obtain a mobile terminal running script.
The mobile terminal device may include, but is not limited to, a mobile phone, a notebook, a tablet computer, and the like. The mobile terminal configuration file may be a configuration file of a code engineering package in the mobile terminal loan service, and may include contents such as a code engineering package and an operation script. The configuration file in this embodiment may specifically be a package json file. The mobile terminal running script may be a code running script contained in a mobile terminal configuration file. In addition, the background server in this embodiment also adjusts the environment variable file in the code. The environment variable can be used for distinguishing whether the packaging environment of the current code is Web-end equipment or mobile-end equipment, so that a correct configuration file can be selected for displaying the page components. And further, the packaging and separation of the codes of the Web end and the mobile end can be realized.
In this embodiment, the background server obtains a global device variable in the code engineering, and if the global device variable identification result is the mobile terminal device, obtains a mobile terminal configuration file of the loan service to obtain a mobile terminal running script.
S130, based on the mobile terminal running script, converting service components of the loan service so as to display through the mobile terminal; and the service component is constructed based on the Web end attribute and the dependent package.
Wherein, the service component can be constructed based on the Web end attribute and the dependent package. The attributes of the Web end may include logic codes existing in the Web end, ElementUI components used by the Web end, and the like. The dependent package in this embodiment may be specifically a node _ modules dependent package of a third party. In this embodiment, a method of adding a dependency package to a service component of a loan service of a mobile terminal on an implemented Web terminal may be used to adapt a code project of the mobile terminal. In addition, the service component can be based on an ElementUI component used by a Web end, a mobile UI component VantUI is added, and the mobile component can be helped to be developed quickly.
In this embodiment, the background server converts the service component of the loan service, which is constructed based on the attributes of the Web end and the dependency package, based on the mobile end running script, so as to adapt the code engineering of the mobile end, and display the service system of the mobile end through the mobile end.
According to the technical scheme of the embodiment of the invention, if the display request of the loan service is detected, the global equipment variable is obtained; if the identification result of the global equipment variable is the mobile terminal equipment, obtaining a mobile terminal configuration file of the loan service to obtain a mobile terminal running script; based on the mobile terminal running script, converting the service components of the loan service so as to display through the mobile terminal; and the service component is constructed based on the Web end attribute and the dependent package. The technical scheme of the invention can ensure that the adaptation of the mobile terminal can be realized efficiently and quickly, and the subsequent function development and demand adjustment can be responded and synchronized to the Web terminal and the mobile terminal in time.
Example two
Fig. 2 is a flowchart of a credit service-based mobile terminal adaptation method according to a second embodiment of the present invention, which is optimized based on the above-described embodiments. The concrete optimization is as follows: after obtaining the global device variable, the method further comprises: if the identification result of the global equipment variable is Web end equipment, obtaining a Web end configuration file of loan service to obtain a Web end running script; and running the Web end running script, and displaying based on the Web end attribute.
As shown in fig. 2, the method includes:
and S210, if the display request of the loan service is detected, acquiring global equipment variables.
And S220, if the identification result of the global equipment variable is the Web end equipment, obtaining a Web end configuration file of the loan service to obtain a Web end running script.
The Web-end device can be a Web-end system of a loan-service computer. The Web end configuration file can be a configuration file of a code engineering package in the loan service of the Web end equipment, and can comprise contents such as the code engineering package, an operation script and the like. The Web end running script can be a code running script contained in a Web end configuration file. The Web-side device of this embodiment may be a device system in which a service flow has been implemented, and the adaptation to the mobile terminal does not affect the normal operation and development mode of the existing Web-side device.
In this embodiment, the background server obtains the global device variable in the code engineering, and if the global device variable identification result is the Web-side device, obtains the Web-side configuration file of the loan service to obtain the Web-side device running script.
And S230, running the Web end running script and displaying based on the Web end attribute.
The attributes of the Web end may include logic codes existing in the Web end, ElementUI components used by the Web end, and the like.
In this embodiment, the backend server obtains the Web-side device running script, runs the Web-side device running script, and displays the Web-side system based on the existing logic code of the Web-side.
According to the technical scheme of the embodiment of the invention, if the display request of the loan service is detected, the global equipment variable is obtained; if the identification result of the global equipment variable is Web end equipment, obtaining a Web end configuration file of loan service to obtain a Web end running script; and running the Web end running script, and displaying based on the Web end attribute. The technical scheme of the invention can aim at the developed front-end code of the credit service Web end, is convenient for the mobile end to display and adapt, and can ensure that the Web end and the mobile end code are packed and separated.
In this embodiment, optionally, the dependency package is used to convert PX of CSS of the service component into Rem.
In this embodiment, the code engineering of the mobile terminal may introduce lib-flex and postcss-plugin-PX2Rem through the node _ modules dependency package, and convert PX of the CSS of the service component into Rem in order to be compatible with the resolution of the mobile terminal. Where Rem may be embodied in, for example, height, font size, etc., Rem may vary on a pixel basis, such as in a percentage.
The dependency package in this embodiment may be used to convert PX of CSS of a service component into Rem. According to the scheme, by means of the arrangement, the code engineering can adapt to the mobile terminal by increasing the dependence package of the existing Web terminal, and adaptation to the mobile terminal is facilitated.
In this embodiment, optionally, the service component is obtained by referring to a common component on the basis of a Web end and assembling the common component with a special component.
The common component of the Web end can be extracted into the common component by the layout and the logic of the universal page area of the Web end, and the additional respective development is not needed. The special component may be other business components that are not part of the common component. Illustratively, business component 1 and business component 2 both refer to a common component A, and the different parts between business component 1 and business component 2 are added separately and belong to a special component. Wherein, the assembly of the components can be realized by extracting a certain part of the two components and packaging the parts into a common component; for example, the list page is divided into an upper part and a lower part, the upper part is a query condition, the lower part is a list area, the two parts are extracted and packaged into a common component, and therefore the assembly of the two common components is completed.
The service component in this embodiment may be obtained by referencing based on an implemented public component based on a Web end and assembling the service component with a special component.
According to the scheme, the public component based on the Web end can be introduced and assembled with the special component to obtain the service component, so that adaptation development is carried out on the mobile end, and the method and the device are more convenient and fast.
In this embodiment, optionally, the method further includes: the layout and logic of a universal page area of a Web end are extracted into a common component; the page area comprises at least one of a list page, a form page, a starting point page and a review page.
The page area may be each part of the content in the general layout of the page. The page area may contain page layout and page logic. The page area may include at least one of a list page, a form page, a start page, and a review page. The list page can be a page of each service list in the loan service; the form page can be a form page in the loan service, and can send data input by a user to a page processed by a background server; the origin page may be the origin page of some of the loan transactions. The review page may be a page in the loan transaction that reviews the loan transaction.
In this embodiment, the background server can perform display specifications on a list page, a form page, a starting point page, a review page, and the like, according to the page universality of the credit business process of the implemented Web end system, and encapsulate the general page area of the Web end into a common component. The page generality can be understood as that the functions of the current business system can be divided into 5-6 types of pages, that is, the display layout of each type of page is similar, so that the pages can be divided into 5-6 types of pages according to the general layout of the pages.
In this embodiment, the background server extracts the layout and logic of the general page area of the implemented Web end system into a common component. According to the scheme, the service component can be conveniently quoted to the public component, and the adaptation of the mobile terminal can be rapidly developed.
In this embodiment, optionally, after the layout and logic of the page area commonly used at the Web end are abstracted into common components, the method further includes: adding template files corresponding to the public assemblies of the mobile terminal, and adapting the public assembly template display layer; and the extracted original method logic is quoted to the common component method logic layer of the mobile terminal so as to adapt to the mobile terminal.
Wherein the template file may be a file of a template of a view. The public component template display layer can display the template file corresponding to the public component through the newly added mobile terminal according to the mobile UI after the specification, and therefore adaptation of the mobile terminal public component template display layer is completed. The original method logic may be original method logic in the multiplex system.
In the embodiment, the Web end and the mobile end both refer to the original method logic which is extracted, so that the mobile end template can be adapted to the attribute and the method logic of the original public component under the condition of not influencing the existing Web end, and the adjustment of the service function code is avoided.
In the embodiment, after the layout and logic of a universal page area of a Web end are extracted into a public component, the mobile end display is realized according to a mobile UI after the file of the template of the view corresponding to the public component of the mobile end is added, so that the adaptation of the template display layer of the public component of the mobile end is completed; and quoting the extracted original method logic to the common component method logic layer of the mobile terminal so as to adapt to the mobile terminal.
According to the scheme, the mobile terminal page is designed in a standard mode, the public component is developed in a mobile terminal adaptation mode, the existing service logic codes are reused, the mobile terminal personalized function development is also supported, and the mobile terminal function can be realized efficiently and quickly.
In addition, since most business function pages refer to and assemble the common components in the scheme of the embodiment, after the common components of a common mobile terminal are subjected to mobile adaptation, the business function pages are almost not required to be adjusted and adapted, developers can check whether the business function pages need to be additionally subjected to mobile adaptation, and template presentation layer adaptation development is performed as with the common components if necessary. When the service function needs to perform additional mobile adaptation, the method logic layer of the service function also needs to extract and reuse the original method logic as the common component.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a credit service-based mobile terminal adaptation apparatus according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes:
a global device variable obtaining module 310, configured to obtain a global device variable if a display request of the loan service is detected;
a configuration file obtaining module 320, configured to obtain a mobile-end configuration file of the loan service to obtain a mobile-end running script if the identification result of the global device variable is the mobile-end device;
a service component conversion module 330, configured to convert a service component of the loan service based on the mobile terminal running script, so as to display the service component through the mobile terminal; and the service component is constructed based on the Web end attribute and the dependent package.
Optionally, after obtaining the global device variable, the apparatus further includes:
the Web end configuration file acquisition module is used for acquiring the Web end configuration file of the loan service to obtain a Web end running script if the identification result of the global equipment variable is the Web end equipment;
and the Web end display module is used for operating the Web end operation script and displaying based on the Web end attribute.
Optionally, the dependency package is used to convert PX of CSS of the service component into Rem.
Optionally, the service component is obtained by referring to a public component based on a Web end and assembling the public component with a special component.
Optionally, the apparatus further comprises:
the public component forming module is used for extracting the layout and logic of the universal page area of the Web end into a public component; the page area comprises at least one of a list page, a form page, a starting point page and a review page.
Optionally, the apparatus further comprises:
the template display layer adaptation module is used for adding a template file corresponding to the common component of the mobile terminal after the layout and the logic of the universal page area of the Web terminal are extracted into the common component, and adapting the template display layer of the common component;
and the method logic layer adaptation module is used for quoting the extracted original method logic to the common component method logic layer of the mobile terminal so as to adapt to the mobile terminal.
The credit service-based mobile terminal adaptation device provided by the embodiment of the invention can execute the credit service-based mobile terminal adaptation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as a credit service based mobile-side adaptation method.
In some embodiments, the credit service based mobile-end adaptation method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the credit service based mobile-end adaptation method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform credit service based mobile-end adaptation methods by any other suitable means (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
EXAMPLE five
Embodiments of the present invention further provide a computer program product, including a computer program, which when executed by a processor implements a credit service-based mobile-end adapter method as provided in any of the embodiments of the present application.
Computer program product in implementing the computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A credit service based mobile terminal adaptation method, comprising:
if the display request of the loan service is detected, acquiring a global equipment variable;
if the identification result of the global equipment variable is the mobile terminal equipment, obtaining a mobile terminal configuration file of the loan service to obtain a mobile terminal running script;
based on the mobile terminal running script, converting the service components of the loan service so as to display through the mobile terminal; and the service component is constructed based on the Web end attribute and the dependent package.
2. The method of claim 1, wherein after obtaining the global device variable, the method further comprises:
if the identification result of the global equipment variable is Web end equipment, obtaining a Web end configuration file of loan service to obtain a Web end running script;
and running the Web end running script, and displaying based on the Web end attribute.
3. The method of claim 1, wherein the dependency package is used to convert PX of CSS of a service component to Rem.
4. The method of claim 1, wherein the business component is based on a common component of the Web side for reference and assembly with a special component.
5. The method of claim 4, further comprising:
the layout and logic of a universal page area of a Web end are extracted into a common component; the page area comprises at least one of a list page, a form page, a starting point page and a review page.
6. The method of claim 5, wherein after abstracting layout and logic of a page area common to the Web-side into common components, the method further comprises:
adding template files corresponding to the public assemblies of the mobile terminal, and adapting the public assembly template display layer;
and the extracted original method logic is quoted to the common component method logic layer of the mobile terminal so as to adapt to the mobile terminal.
7. A credit service based mobile-side adapter, comprising:
the global equipment variable acquisition module is used for acquiring a global equipment variable if the display request of the loan service is detected;
the configuration file acquisition module is used for acquiring a mobile terminal configuration file of the loan service to obtain a mobile terminal running script if the identification result of the global equipment variable is the mobile terminal equipment;
the service component conversion module is used for converting the service components of the loan service based on the mobile terminal running script so as to display the loan service through the mobile terminal; and the service component is constructed based on the Web end attribute and the dependent package.
8. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the credit service based mobile-end adaptation method of any one of claims 1-6.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions for causing a processor to implement the credit service based mobile-end adaptation method of any one of claims 1-6 when executed.
10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the credit service based mobile-end adaptation method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210344065.2A CN114860312A (en) | 2022-03-31 | 2022-03-31 | Mobile terminal adaptation method, device, equipment and medium based on credit business |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210344065.2A CN114860312A (en) | 2022-03-31 | 2022-03-31 | Mobile terminal adaptation method, device, equipment and medium based on credit business |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114860312A true CN114860312A (en) | 2022-08-05 |
Family
ID=82630369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210344065.2A Pending CN114860312A (en) | 2022-03-31 | 2022-03-31 | Mobile terminal adaptation method, device, equipment and medium based on credit business |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114860312A (en) |
-
2022
- 2022-03-31 CN CN202210344065.2A patent/CN114860312A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110858172A (en) | Automatic test code generation method and device | |
CN111125057B (en) | Method and device for processing service request and computer system | |
CN117454817B (en) | Engineering processing method and device based on FPGA, electronic equipment and storage medium | |
CN113609100A (en) | Data storage method, data query method, data storage device, data query device and electronic equipment | |
CN113220710A (en) | Data query method and device, electronic equipment and storage medium | |
CN116382640A (en) | Method, device, equipment and storage medium for managing micro-service | |
CN116185389A (en) | Code generation method and device, electronic equipment and medium | |
CN115309706A (en) | Method, device, equipment, medium and product for updating multi-language configuration file | |
CN114860312A (en) | Mobile terminal adaptation method, device, equipment and medium based on credit business | |
CN115167855A (en) | Front-end page generation method, device and equipment applied to matching transaction system | |
CN114443802A (en) | Interface document processing method and device, electronic equipment and storage medium | |
CN113835893B (en) | Data processing method, device, equipment, storage medium and program product | |
CN118133794B (en) | Table configuration method, apparatus, device and storage medium | |
CN117667866A (en) | Accounts receivable and credited information retrieval method and device and electronic equipment | |
CN117873990A (en) | DDL analysis method, device, equipment and storage medium based on WAL log | |
CN118760599A (en) | Automatic generation method, device, equipment and medium of interface test case | |
CN116775171A (en) | Architecture switching method and device, electronic equipment and storage medium | |
CN116339728A (en) | Data processing method, device, equipment, system, storage medium and product | |
CN117768310A (en) | Service topology generation method and device, electronic equipment and storage medium | |
CN115981657A (en) | Code generation method and device, electronic equipment and readable medium | |
CN116680495A (en) | Page conversion method and device, electronic equipment and storage medium | |
CN115220722A (en) | Method, device, equipment and medium for back-end internationalization | |
CN115904584A (en) | Multi-language switching method, device, equipment and storage medium for application | |
CN116841982A (en) | Database migration method, device, equipment, storage medium and program product | |
CN113361235A (en) | HTML file generation method and device, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |