123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- import request from "./../utils/request.js";
- export function getProductHot(page,limit) {
- return request.get("product/hot", {
- page: page === undefined ? 1 : page,
- limit:limit === undefined ? 4 :limit
- },{noAuth:true});
- }
- export function postCartAdd(data) {
- return request.post('cart/add', data);
- }
- export function getCollectUserList(data) {
- return request.get('collect/user', data)
- }
- export function collectAll(id, category) {
- return request.post('collect/all', { id: id, category: category === undefined ? 'product' : category });
- }
- export function collectDel(id, category) {
- return request.post('collect/del', { id: id, category: category === undefined ? 'product' : category });
- }
- export function collectAdd(id, category){
- return request.post('collect/add', { id: id, 'product': category === undefined ? 'product' : category });
- }
- export function getProductDetail(id){
- return request.get('product/detail/' + id, {}, { noAuth : true });
- }
- export function getProductCode(id){
- return request.get('product/code/' + id, { user_type:'routine'});
- }
- export function getReplyList(id,data){
- return request.get('reply/list/'+id,data)
- }
- export function getReplyConfig(id){
- return request.get('reply/config/'+id);
- }
- export function getCategoryList(){
- return request.get('category', {}, { noAuth:true})
- }
- export function getProductslist(data){
- return request.get('products',data,{noAuth:true});
- }
- export function getGroomList(type){
- return request.get('groom/list/'+type,{},{noAuth:true});
- }
- export function getSearchKeyword(){
- return request.get('search/keyword',{},{noAuth:true});
- }
- export function storeListApi(data) {
- return request.get("store_list", data);
- }
|