# Configuration method
Log in to the "apifm" backend, marketing assistance --> flash sale settings to enable the flash sale function
Set the sales start time, suspension time, and inventory quantity to start the flash sale:


After turning on the flash sale function, you will be able to obtain flash sale related fields through the product list interface and product details interface:
1.miaoshaThis field is true/false. You can pass in this field to get the product list interface, that is, only get the flash sale products;
2.dateStart Flash sale start time, such as:2020-05-04 21:32:44
3. dateStartCountDownThe flash sale starts counting down, such as: 5 minutes
4.dateEnd Flash sale deadline, such as:2020-12-07 00:00:00
5. dateEndCountDownFlash sale end countdown, such as: 1 hour
Using the above information, you can effectively display the flash sale effect in the front-end interface.
For reference code, you can view the open source "wechat-app-mall" project, the effect is as follows:

# FAQ
## How to set the flash sale amount?
The amount of the flash sale is the amount set in the product management. The flash sale essentially only sets 4 elements:
1. Whether flash sales are enabled for this product;
2. When does the flash sale start;
3. When will the flash sale end?
4. How much is the inventory?
The time has not started, the time has ended, and the inventory is 0 (sold out), the product cannot be ordered. So there is no need to set the flash sale price separately