123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589 |
- import request from "@/utils/request.js";
- export function getProductDetail(id) {
- return request.get('store/product/detail/' + id, {}, {
- noAuth: true
- });
- }
- export function getProductParmas(id) {
- return request.get('store/product/show/' + id, {}, {
- noAuth: true
- });
- }
- export function getStoreRecommend(id) {
- return request.get('store/product/good_list/' + id, {}, {
- noAuth: true
- });
- }
- export function getPreviewProDetail(data) {
- return request.get('store/product/preview', data, {
- noAuth: true
- });
- }
- export function getProductCode(id, data) {
- return request.get('store/product/qrcode/' + id, data, {
- noAuth: true
- });
- }
- export function collectAdd(data) {
- return request.post('user/relation/create', data);
- }
- export function collectDel(data) {
- return request.post('user/relation/delete', data);
- }
- export function postCartAdd(data) {
- return request.post('user/cart/create', data);
- }
- export function getCategoryList() {
- return request.get('store/product/category/lst', {}, {
- noAuth: true
- });
- }
- 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
- });
- }
- export function getCouponProductlist(data) {
- if (data.brand_id && Array.isArray(data.brand_id)) {
- data = {
- ...data
- }
- data.brand_id = data.brand_id.toString()
- }
- return request.get('product/spu/coupon_product', data, {
- noAuth: true
- });
- }
- export function getBrandlist(data) {
- return request.get('store/product/brand/lst', data, {
- noAuth: true
- });
- }
- export function getProductHot(page, limit) {
- return request.get("product/spu/recommend", {
- page: page === undefined ? 1 : page,
- limit: limit === undefined ? 10 : limit
- }, {
- noAuth: true
- });
- }
- export function getMerProductHot(id,data) {
- return request.get(`product/spu/recommend`, {
- page: data.page === undefined ? 1 : data.page,
- limit: data.limit === undefined ? 10 : data.limit,
- mer_id: id || ''
- }, {
- noAuth: true
- });
- }
- export function collectAll(data) {
- return request.post('user/relation/batch/create', data);
- }
- export function getGroomList(type, data) {
- return request.get('product/spu/hot/' + type, data, {
- noAuth: true
- });
- }
- export function getCollectUserList(data) {
- return request.get('user/relation/product/lst', data)
- }
- export function userCollectDel(data) {
- return request.post('user/relation/batch/delete', data)
- }
- export function getReplyList(id, data) {
- return request.get('store/product/reply/lst/' + id, data, {
- noAuth: true
- })
- }
- export function getReplyConfig(id) {
- return request.get('reply/config/' + id);
- }
- export function getSearchKeyword() {
- return request.get('common/hot_keyword', {}, {
- noAuth: true
- });
- }
- export function getTodayHotSearch() {
- return request.get('product/spu/hot_lst', {}, {
- noAuth: true
- });
- }
- export function getHotRanking() {
- return request.get('product/spu/hot_top', {}, {
- noAuth: true
- });
- }
- export function storeMerchantList(data) {
- return request.get("store/merchant/lst", data, {
- noAuth: true
- });
- }
- export function getStoreDetail(id, data) {
- return request.get("store/merchant/detail/" + id, data, {
- noAuth: true
- });
- }
- export function getStoreGoods(id, data) {
- return request.get("product/spu/merchant/" + id, data, {
- noAuth: true
- });
- }
- export function getStoreCategory(id, data) {
- return request.get("store/merchant/category/lst/" + id, data, {
- noAuth: true
- });
- }
- export function followStore(type_id) {
- return request.post("user/relation/create", {
- type: 10,
- type_id: type_id
- });
- }
- export function unfollowStore(type_id) {
- return request.post("user/relation/delete", {
- type: 10,
- type_id: type_id
- });
- }
- export function getStoreCoupon(id) {
- return request.get("coupon/store/" + id, {
- noAuth: true
- });
- }
- export function getMerchantLst(data) {
- return request.get("user/relation/merchant/lst", data, {
- noAuth: true
- });
- }
- export function express(id) {
- return request.post("ordero/express/" + id, {
- noAuth: true
- });
- }
- export function storeCategory(pid) {
- return request.get("store/product/category", pid, {
- noAuth: true
- });
- }
- export function bagExplain() {
- return request.get("store/product/bag/explain");
- }
- export function bagRecommend() {
- return request.get("product/spu/bag/recommend");
- }
- export function productBag(data) {
- return request.get("product/spu/bag", data, {
- noAuth: true
- });
- }
- export function merchantQrcode(id, data) {
- return request.get("store/merchant/qrcode/" + id, data, {
- noAuth: true
- });
- }
- export function merchantProduct(id, data) {
- if (data.brand_id && Array.isArray(data.brand_id)) {
- data = {
- ...data
- }
- data.brand_id = data.brand_id.toString()
- }
- return request.get("product/spu/merchant/" + id, data, {
- noAuth: true
- });
- }
- export function getHotBanner(type) {
- return request.get("common/hot_banner/" + type, {}, {
- noAuth: true
- });
- }
- export function create(data) {
- return request.post("intention/create", data);
- }
- export function verify(data) {
- return request.post("auth/verify", data);
- }
- export function getSeckillProductDetail(id,data) {
- return request.get('store/product/seckill/detail/' + id, data, {
- noAuth: true
- });
- }
- export function getLiveList(data) {
- return request.get(`broadcast/hot`, data, {
- noAuth: true
- });
- }
- export function getBroadcastListApi(data) {
- return request.get("broadcast/lst", data, {
- noAuth: true
- });
- }
- export function merClassifly() {
- return request.get("intention/cate", {}, {
- noAuth: true
- });
- }
- export function getPresellProductDetail(id) {
- return request.get('store/product/presell/detail/' + id, {}, {
- noAuth: true
- });
- }
- export function getApplicationRecordList(data) {
- return request.get('intention/lst', data);
- }
- export function getGoodsDetails(id) {
- return request.get('intention/detail/' + id, {});
- }
- export function updateGoodsRecord(id, data) {
- return request.post('intention/update/' + id, data);
- }
- export function getGeocoder(data) {
- return request.get(`lbs/geocoder?location=${data.lat},${data.long}`, {}, {
- noAuth: true
- });
- }
- export function getStoreTypeApi(data) {
- return request.get('intention/type', data, {
- noAuth: true
- });
- }
- export function getParmasList(data) {
- return request.get('product/spu/params', data, {
- noAuth: true
- });
- }
- export function getParmasValue(id) {
- return request.get(`product/spu/params_value/${id}`, {}, {
- noAuth: true
- });
- }
- export function arrivalNoticeApi(data) {
- return request.post('store/product/increase_take',data);
- }
-
- export function getCaptcha() {
- return request.get('captcha');
- }
- export function storeCertificate(data) {
- return request.post(`store/certificate/${data.merId}`, data)
- }
- export function storeServiceList(id, data) {
- return request.get(`product/spu/local/${id}`, data, {
- noAuth: true
- });
- }
- export function copyPasswordApi(data) {
- return request.get(`product/spu/copy`, data, {
- noAuth: true
- });
- }
- export function copyPasswordSearch(data) {
- return request.get(`command/copy`, data, {
- noAuth: true
- });
- }
- export function getDiscountsLst(data) {
- return request.get(`discounts/lst`, data, {
- noAuth: true
- });
- }
- export function discountsCartAdd(data) {
- return request.post('user/cart/batchCreate', data);
- }
- export function priceRuleApi(id) {
- return request.get(`store/product/price_rule/${id}`, {}, {
- noAuth: true
- });
- }
|