123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573 |
- import request from "@/utils/request.js";
- export function getProductDetail(id,data) {
- return request.get('product/detail/' + id, data, {
- noAuth: true
- });
- }
- export function getProductStoreDetail(id,data) {
- return request.get('product/store/detail/' + id, data, {
- noAuth: true
- });
- }
- export function getProductCtivity(id,data) {
- return request.get('product/detail/activity/' + id, data, {
- noAuth: true
- });
- }
- export function getProductRecommend(id) {
- return request.get('product/detail/recommend/' + id, {},{
- noAuth: true
- });
- }
- export function getProductCode(id) {
- return request.get('product/code/' + id, {});
- }
- export function getProductCode(id) {
- return request.get('product/code/' + id, {
- user_type: 'routine'
- });
- }
- export function collectAdd(id, category) {
- return request.post('collect/add', {
- 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 postCartAdd(data) {
- return request.post('cart/add', data);
- }
- export function getCategoryList() {
- return request.get('category', {}, {
- noAuth: true
- });
- }
- export function diyProduct() {
- return request.get('v2/diy/product_detail', {}, {
- 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 storeListApi(data) {
- return request.get("store_list", data, {
- noAuth: true
- });
- }
- export function storeDiscountsList(id) {
- return request.get('store_discounts/list/' + id, {}, {
- noAuth: true
- });
- }
- export function postCartNum(data) {
- return request.post('v2/set_cart_num', data);
- }
- export function getAttr(id,type) {
- return request.get("v2/get_attr/"+id+"/"+type);
- }
- export function storeCardApi() {
- return request.get("store/staff/card/code");
- }
- export function brand(data) {
- return request.get("brand",data,{
- noAuth: true
- });
- }
- export function newcomerDetail(id) {
- return request.get("marketing/newcomer/product_detail/"+id,{},{
- noAuth: true
- });
- }
- export function initCollage(data) {
- return request.get("v2/user/initiate/collage",data);
- }
- export function hasCollage() {
- return request.get("v2/is/user/initiate/collage");
- }
- export function getCollage(data) {
- return request.get("v2/is/initiate/collage", data);
- }
- export function getCollageCart(data) {
- return request.get("v2/user/initiate/collage/cart_list", data);
- }
- export function getCollageCount(data) {
- return request.get("v2/user/initiate/collage/count", data);
- }
- export function addCollageCart(data) {
- return request.post('v2/add/collage/partake', data);
- }
- export function getCollagePartake(data) {
- return request.get("v2/user/collage/partake", data);
- }
- export function duplicateCollagePartake(data) {
- return request.get("v2/duplicate/collage/partake", data);
- }
- export function emptyCollagePartake(data) {
- return request.get("v2/empty/collage/partake", data);
- }
- export function cancelCollage(data) {
- return request.get("v2/user/cancel", data);
- }
- export function settleCollage(data) {
- return request.get("v2/user/settle/collage", data);
- }
- export function isWithin(data) {
- return request.get("v2/is/within", data);
- }
- export function getTableData(data) {
- return request.get("v2/table/data", data);
- }
- export function addTableCode(data) {
- return request.get("v2/add/table/code", data);
- }
- export function isTableCode(data) {
- return request.get("v2/is/table/code", data);
- }
- export function changeTable(data) {
- return request.get("v2/changing/table", data);
- }
- export function getCartCount(data) {
- return request.get("v2/cart/count", data);
- }
- export function getStoreData(data) {
- return request.get("v2/get/store/data", data);
- }
- export function getCateList(data) {
- return request.get("v2/get/cate/list", data);
- }
- export function addTableCate(data) {
- return request.get("v2/add/table/cate", data);
- }
- export function placeOrder(data) {
- return request.get("v2/user/place/order", data);
- }
- export function getTablePartake(data) {
- return request.get("v2/get/table/partake", data);
- }
- export function getCodeData(data) {
- return request.get("v2/get/code/data", data);
- }
- export function getTableCode(data) {
- return request.get("v2/get/table/code", data);
- }
- export function settleTable(data) {
- return request.get("v2/user/settle/table", data);
- }
- export function emptyTableData(data) {
- return request.get("v2/user/empty/data", data);
- }
- export function getSeverCardList(data) {
- return request.get("v2/service_card", data);
- }
- export function getSeverCardDetail(id) {
- return request.get(`v2/service_card/${id}`);
- }
- export function getServeItem(data) {
- return request.get("v2/Project", data);
- }
- export function getServeItemDetail(id) {
- return request.get("v2/Project/" + id);
- }
- export function getMen(data) {
-
- return request.get("member", data);
- }
|