Disclosed are amide compounds, preparation method and uses thereof, specifically, the compounds represented by formula I or pharmaceutically acceptable salts, wherein R 1 , R 2 , R 3 , R 4 , R 5 , Q, X and n are defined as in the description. Also disclosed are a method for preparing the compounds of formula I, a composition containing the compounds, and the uses of the same in the preparation of medicaments for regulating blood lipid and/or preventing gallstone. The compounds of formula I disclosed in the present invention have stability in vitro, good solubility in the pharmaceutical organic solvents and favorable bioavailability in animals.