Today finally no overtime!!! Let me first sprinkle flowers shouting long live!!
In fact, such overtime work sometimes really very inefficient, there are a few nights I really really feel very tired
But when I think about the progress of the project, I'm still in a hurry.
There is no code to talk about problems because of confidentiality.
Mainly two changes in demand, adding a new feature to the travel insurance module for a line of apps
CR1 is when users buy insurance to add friend or parent purchase
First, the number of controls is displayed by the type of customer, whether it is for friend purchase or parent purchase.
In the subsequent form shows the need to fill in the required detail page finally generated verifypage to reflect the details of the previous fill detail
Issue one: When the user completes the completion, back to the top form to re-select cover travel type, you need to rewrite the generated detail page and empty the data
When the user back does not return the most superior form data cannot be purged save user's original data
Due to the problem of the own framework, each small function will have a corresponding module
Save data write a module data empty a module on different btn bindings corresponding to the event is a simple small problem but the need to change several times tired not love
Issue two: When the subsequent detail page is regenerated, then the validation event of this screen will be deleted how to load multiple times
The framework does not directly write the text in the HTML, but a bit like angular with the corresponding code to replace. Replace these encodings by loading language files
But the depressing point is that these codes can only be replaced at the beginning of the program. If you want to generate a form based on what the user enters, the resulting form text will be garbled
So you can only start by splitting the required forms and then initializing them in HTML. Tankun a global variable and then make the first fill of these split modular form tables and then set a switch here. The global variable is saved and the switch is closed.
The event-bound fill of the previous btn that the user is about to enter the page is, of course, the first time it needs to be populated because if the first time it is not populated, then the first click event can not be filled with a global fill of course the first time before the second population to empty the content to prevent conflicts!
CR2 generates subsequent detail page based on the type of selection that the user purchased the insurance for
Question three: To select the following form according to the needs of family members and then based on the user-filled detail to generate detailed detail page How to validate multiple forms
In fact, the two needs are very much like, but again code a lot of judgment of the project a lot of empty under the form form will be a lot of every form would be when the btn to light up and then the logic of the form would hate complex this can be done for each form is an object corresponding to the field to be validated and then passed All over the array if true then jumps out of the loop so it seems like a lot easier.
Summary In fact, there are a lot of small problems in the process of writing code what serial number of the filling AH UI small problem AH also has the request question data length and so on.
This project really rushed to the date, there is no time for the annual meeting when etiquette can wear a red cheongsam to wear a ten-centimeter high heel and then look for their own high-rich handsome your sister, brother Shoes have bought 30 of the ocean and then said not to let me go 55555555
Really can rely on Yan value but let me technology!!!
Finally, I just want to say to my future husband that you are responsible for presentability the rest to me!!!!!
12 consecutive days of overtime work summary-generate subsequent form pages based on customer selection