When users use a fuel dispenser to refuel, they usually choose the number of liters or the amount of refueling. When refueling offline, the gas station staff enters the relevant data, and the fuel dispenser starts refueling after receiving the data. When refueling at a gas station without staff, using an APP to operate can simplify the user’s operation of the fuel dispenser. When refueling using the APP corresponding to the fuel dispenser, the user enters the corresponding number of liters or the amount of refueling, and the APP sends it to the fuel dispenser through the network, thereby avoiding the danger that may arise from the user directly operating the fuel dispenser.
Analyzing user needs, it can be seen that users need to enter the number of liters or the amount, so at least these two input boxes are required in the APP. What needs to be considered is when the input box appears, what is the relationship between the two input boxes, and how to process the data after the input is completed. In response to the above problems, the input boxes for the number of liters and the amount are designed.
First, the user needs to find the fuel dispenser in front of him on the APP, so he needs to find the site corresponding to the fuel dispenser. After entering the site, find the number of the fuel dispenser. The user can see the gun number, energy type, and other information on the fuel dispenser, and compare it with the APP to avoid misoperation. After the user clicks on the home machine on the APP, it indicates that he wants to start refueling, and at the same time, an input box for the number of liters or the amount pops up. In the input box, the amount of the unit price is displayed by default, and the number of liters and the amount are set to 0.

Secondly, after the input box pops up, the user will enter the amount or number of liters, and the APP needs to process the data entered by the user in real-time. From the logic, it can be seen that the number of liters × unit price = total amount, and the total amount ÷ unit price = number of liters. The manager of the gas station sets the unit price which the user cannot modify. According to the above logical relationship, the points that need to be considered are: if the amount is empty, set the preset amount to 0 and update the number of liters to 0; when the user clicks on the amount input box, the automatic update of the number of liters is suspended, and the number of liters is updated when the user finishes entering. Is the content entered by the user the correct value of the number of liters or the amount? Are special characters entered? Therefore, it is necessary to add restrictions to the input box to allow users to enter only numbers and decimal points.


Third, after the user completes the input, and clicks Submit, the APP needs to submit the user’s input data to the background, and the background will send the data to the home machine. After the home machine determines that the objective conditions allow, it can start refueling.
In summary, the correct design of the input box can ensure that the amount and number of liters of refueling are correct. Using the APP to refuel reduces the user’s operation of the refueling machine, reduces the user’s learning cost, and increases safety.