123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- import request from "@/utils/request.js";
- export function getnearbyStore(data) {
- return request.get('nearby_store',data, {
- noAuth: true
- });
- }
- export function getProducts(data) {
- return request.get('store/products' ,data, {
- noAuth: true
- });
- }
- export function getCustomerList(store_id) {
- return request.get('store/customer/list/' + store_id, {},{
- noAuth: true
- });
- }
- export function getCustomerInfo(store_id) {
- return request.get('store/customer/info/' + store_id, {},{
- noAuth: true
- });
- }
- export function getStoreCategory(data) {
- return request.get('store/category', data,{
- noAuth: true
- });
- }
- export function getStoreBrand(data) {
- return request.get('store/brand', data,{
- noAuth: true
- });
- }
- export function getList( data) {
- return request.get('store/list',data, {
- noAuth: true
-
- });
- }
- export function collectDel(id, category) {
- return request.post('collect/del', {
- id: id,
- category: category === undefined ? 'product' : category
- });
- }
- export function postCartAdd(data) {
- return request.post('cart/add', data);
- }
- export function getCategoryList() {
- return request.get('category', {}, {
- noAuth: true
- });
- }
- export function getProductslist(data) {
- return request.get('products', data, {
- noAuth: true
- });
- }
- export function getProductHot(page, limit) {
- return request.get("product/hot", {
- page: page === undefined ? 1 : page,
- limit: limit === undefined ? 4 : limit
- }, {
- noAuth: true
- });
- }
- export function collectAll(id, category) {
- return request.post('collect/all', {
- id: id,
- category: category === undefined ? 'product' : category
- });
- }
- export function getGroomList(type, data) {
- return request.get('groom/list/' + type, data, {
- noAuth: true
- });
- }
- export function getCollectUserList(data) {
- return request.get('collect/user', data)
- }
- export function getVisitList(data) {
- return request.get('user/visit_list', data)
- }
- export function deleteVisitList(data) {
- return request.delete('user/visit', data)
- }
- export function getReplyList(id, data) {
- return request.get('v2/reply/list/' + id, data,{noAuth: true})
- }
- export function getReplyConfig(id) {
- return request.get('reply/config/' + id,{},{noAuth: true});
- }
- export function getReplyPraise(id) {
- return request.post('reply/reply_praise/' + id);
- }
- export function getUnReplyPraise(id) {
- return request.post('reply/un_reply_praise/' + id);
- }
- export function getReplyInfo(id) {
- return request.get('reply/info/' + id);
- }
- export function getReplyComment(id,data) {
- return request.get('reply/comment/' + id,data);
- }
- export function postReplyPraise(id) {
- return request.post('reply/praise/' + id);
- }
- export function postUnReplyPraise(id) {
- return request.post('reply/un_praise/' + id);
- }
- export function replyComment(id,data) {
- return request.post('reply/comment/' + id,data);
- }
- export function getSearchKeyword() {
- return request.get('search/keyword', {}, {
- noAuth: true
- });
- }
- export function newcomerInfo() {
- return request.get('marketing/newcomer/info', {}, {
- noAuth: true
- });
- }
- export function newcomerList(data) {
- return request.get('marketing/newcomer/product_list', data, {
- noAuth: true
- });
- }
- export function newcomerGift(data) {
- return request.get('marketing/newcomer/gift');
- }
|