← 返回 doordash 的题目列表Building a Checkout Page
类型:online_judge
Implement an application with two pages. The first page is a checkout page, where you need to retrieve product names and prices from a local JSON mock interface and display them in a tableView, without showing images. At the bottom of the tableView, there is a Submit button. When this button is clicked, it should request an order interface (local JSON mock), change the button text from Submit to Submitting, and after the response is received, navigate to the second page, which is an order status page, displaying the order status with a Label. Ensure to handle JSON processing details, such as converting a key like display_price to displayPrice, considering the possibility of display_price being null.
Example
Input
mock.json with product list