123456789101112131415161718192021222324252627282930 |
- import { gql } from "../helpers";
- import { actionPromise } from "../reducers";
- export const actionGoodsPopular = () => async (dispatch, getState) => {
- dispatch(
- actionPromise(
- "goodsPopular",
- gql(
- `query GoodsPopular($query:String){
- GoodFind(query: $query){
- _id name price amount
- images{
- _id url
- }
- }
- }`,
- {
- query: JSON.stringify([
- {},
- {
- limit: 15,
- orderBy: "popular",
- },
- ]),
- }
- )
- )
- );
- };
|