1. In the settlement page to add an input box, used to fill in the preferential code you specified
2. Verify whether the discount code you posted
3. After passing the verification, change the total amount of the shopping cart and display the amount after the discount
4. Use this framework to adjust your discount rate at any time (20%, 30%, 40% ....)