1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import {
- ApiCallback
- } from "./request.js"
- export const goodsList = {
- path: '/goods/smart',
- method: 'get'
- }
- /**
- * Banner图
- *
- */
- export const getShopBanner = (params) => {
- const r = {
- path: '/ad/ad/getShopAdByAdL/0/publicshop-banner',
- method: 'get'
- }
- return ApiCallback(r, params)
- }
- /**
- * 商品列表
- *
- */
- export const getGoodsListApi = (params) => {
- const r = {
- path: '/goods/smart',
- method: 'get'
- }
- return ApiCallback(r, params)
- }
- // ApiCallback(this.dataVal.Api, {
- // page: this.page,
- // limit: this.limit
- // }).then(res => {
- // this.goodsList = this.goodsList.concat(res.list)
- // if (this.page >= res.totalPage) {
- // this.loadStatus = 'nomore'
- // } else {
- // this.loadStatus = 'loadmore'
- // }
- // }).catch(err => {
- // if (this.page > 1) {
- // this.page--;
- // this.loadStatus = 'loadmore'
- // } else {
- // this.page = 0;
- // this.loadStatus = 'nomore'
- // }
- // })
|