1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- import request from '@/sheep/request';
- import request2 from '@/sheep/request2';
- export default {
- // 商品详情
- detail: (id, params = {}) =>
- request2({
- url: 'product/spu/get-detail?id=' + id,
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- showError: false,
- },
- }),
- // 商品列表
- list: (params) =>
- request({
- url: 'goods/goods',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- showError: false,
- },
- }),
- // 商品查询
- ids: (params = {}) =>
- request({
- url: 'goods/goods/ids',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- showError: false,
- },
- }),
- // 商品评价列表
- comment: (id, params = {}) =>
- request({
- url: 'goods/comment/' + id,
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- showError: false,
- },
- }),
- // 商品评价类型
- getType: (id) =>
- request({
- url: 'goods/comment/getType/' + id,
- method: 'GET',
- custom: {
- showLoading: false,
- showError: false,
- },
- }),
- // 活动商品查询
- // 商品查询
- activity: (params = {}) =>
- request({
- url: 'goods/goods/activity',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- showError: false,
- },
- }),
- activityList: (params = {}) =>
- request({
- url: 'goods/goods/activityList',
- method: 'GET',
- params,
- }),
- };
|