You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

199 lines
2.6 KiB
JavaScript

import {
request,
uploadFile
} from "@/utils/request";
export default {
/**
* 获取图片库
*/
getImages(data) {
return request({
url: "/common/getImages",
method: "GET",
data,
needLogin: true,
});
},
/**
* 获取商城信息
*/
getStoreDetail(data) {
return request({
url: "/store_setting/store_detail",
method: "GET",
data,
needLogin: true,
});
},
/**
* 上传图片视频
*/
upload(data) {
return uploadFile(data);
},
orderCount(data) {
return request({
url: "/common/order-count",
method: "GET",
data,
needLogin: true,
});
},
/**
* 获取商品标签信息
*/
getLable(data) {
return request({
url: "/common/lable",
method: "GET",
data,
needLogin: true,
});
},
/**
* isPhone
*/
isPhone(data) {
return request({
url: "/user/is-phone",
method: "GET",
data,
needLogin: true,
});
},
/**
* 优惠券列表
*/
list(data) {
return request({
url: "/common/List",
method: "GET",
data,
needLogin: true,
});
},
/**
* 获取门店列表
* @param {String} longitude 经度
* @param {String} latitude 纬度
*/
getShopList(data) {
return request({
url: "/common/getShopList",
method: "POST",
data,
needLogin: true,
});
},
/**
* 折扣信息
*/
discountsItem(data) {
return request({
url: "/common/discountsItem",
method: "GET",
data,
needLogin: true,
});
},
/**
* 折扣信息
*/
packageItem(data) {
return request({
url: "/common/packageItem",
method: "GET",
data,
needLogin: true,
});
},
/**
* 折扣信息
*/
redutionItem(data) {
return request({
url: "/common/redutionItem",
method: "GET",
data,
needLogin: true,
});
},
/**
* wechatH5
*/
wechatH5(data) {
return request({
url: "/common/wechatH5",
method: "GET",
data,
needLogin: true,
});
},
wechatPageH5(data) {
return request({
url: "/common/wechatPageH5",
method: "GET",
data,
needLogin: true,
});
},
aliH5(data) {
return request({
url: "/common/aliH5",
method: "GET",
data,
needLogin: true,
});
},
sendSms(data) {
return request({
url: "/common/sendSms",
method: "GET",
data,
needLogin: true,
});
},
getFlashMch(data) {
return request({
url: "/common/FlashListMch",
method: "GET",
data,
needLogin: true,
});
},
getFlashGoods(data) {
return request({
url: "/common/FlashListGoods",
method: "GET",
data,
needLogin: true,
});
},
getAliCard(data = {}) {
return request({
url: "/common/getAliCard",
method: "POST",
data,
needLogin: true,
});
},
};