|
|
@@ -164,9 +164,9 @@ export function getCombinationPoster(data) {
|
|
|
*/
|
|
|
export function getSeckillIndexTime(data) {
|
|
|
return request({
|
|
|
- url: '/api/store/product/seckill/select',
|
|
|
- methods: 'get',
|
|
|
- data
|
|
|
+ url: '/api/store/product/seckill/select',
|
|
|
+ methods: 'get',
|
|
|
+ data
|
|
|
});
|
|
|
}
|
|
|
// 获取秒杀分类
|
|
|
@@ -211,17 +211,47 @@ export function getStoreDetail(id, data) {
|
|
|
url: '/api/store/merchant/detail/' + id,
|
|
|
method: 'get',
|
|
|
data
|
|
|
- })
|
|
|
+ })
|
|
|
}
|
|
|
-/**
|
|
|
- * 获取秒杀商品详情
|
|
|
- * @param int id
|
|
|
- *
|
|
|
- */
|
|
|
-export function getSeckillProductDetail(data,id) {
|
|
|
+/**
|
|
|
+ * 获取秒杀商品详情
|
|
|
+ * @param int id
|
|
|
+ *
|
|
|
+ */
|
|
|
+export function getSeckillProductDetail(data, id) {
|
|
|
return request({
|
|
|
- url:'/api/store/product/seckill/detail/'+id,
|
|
|
- method:'get',
|
|
|
+ url: '/api/store/product/seckill/detail/' + id,
|
|
|
+ method: 'get',
|
|
|
data
|
|
|
- })
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+//获取普通商品
|
|
|
+export function getProductslist(data) {
|
|
|
+ if (data.brand_id && Array.isArray(data.brand_id)) {
|
|
|
+ data = {
|
|
|
+ ...data
|
|
|
+ }
|
|
|
+ data.brand_id = data.brand_id.toString()
|
|
|
+ }
|
|
|
+ // return request.get('product/spu/lst', data, {
|
|
|
+ // noAuth: true
|
|
|
+ // });
|
|
|
+ return request({
|
|
|
+ url: '/product/spu/lst',
|
|
|
+ method: 'get',
|
|
|
+ data
|
|
|
+ })
|
|
|
+}
|
|
|
+//
|
|
|
+export function getProductHot(data) {
|
|
|
+ let dataa = {
|
|
|
+ page: data.page === undefined ? 1 : page,
|
|
|
+ limit: data.limit === undefined ? 10 : limit
|
|
|
+ }
|
|
|
+ return request({
|
|
|
+ url: '/api/product/spu/recommend',
|
|
|
+ method: 'get',
|
|
|
+ data
|
|
|
+ })
|
|
|
}
|