修改api调用接口

master
于肖磊 2026-01-05 09:44:26 +08:00
parent b9178c95e2
commit 3189e466bf
16 changed files with 41 additions and 41 deletions

View File

@ -4,7 +4,7 @@ class BlogAPI {
/** 博客自动数据 */
static getAutoList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/activity/pluginscontrol/diyactivity/pluginsaction/autoactivitylist.html`,
url: `plugins/index/pluginsname/activity/pluginscontrol/diyactivity/pluginsaction/autoactivitylist.html`,
method: 'post',
data,
});

View File

@ -4,14 +4,14 @@ class ArticleAPI {
/** 链接初始化接口 */
static getInit() {
return api_request({
url: `?s=diyapi/linkinit`,
url: `diyapi/linkinit`,
method: 'post',
});
}
/** 文章指定数据 */
static getAppointList(data: any) {
return api_request({
url: `?s=diyapi/articleappointdata`,
url: `diyapi/articleappointdata`,
method: 'post',
data,
});
@ -19,7 +19,7 @@ class ArticleAPI {
/** 文章自动数据 */
static getAutoList(data: any) {
return api_request({
url: `?s=diyapi/articleautodata`,
url: `diyapi/articleautodata`,
method: 'post',
data,
});

View File

@ -4,7 +4,7 @@ class BlogAPI {
/** 博客自动数据 */
static getAutoList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/ask/pluginscontrol/diyask/pluginsaction/autoasklist.html`,
url: `plugins/index/pluginsname/ask/pluginscontrol/diyask/pluginsaction/autoasklist.html`,
method: 'post',
data,
});

View File

@ -4,7 +4,7 @@ class BlogAPI {
/** 博客自动数据 */
static getAutoList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/binding/pluginscontrol/diybinding/pluginsaction/autobindinglist.html`,
url: `plugins/index/pluginsname/binding/pluginscontrol/diybinding/pluginsaction/autobindinglist.html`,
method: 'post',
data,
});

View File

@ -4,7 +4,7 @@ class BlogAPI {
/** 博客自动数据 */
static getAutoList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/blog/pluginscontrol/diyblog/pluginsaction/autobloglist`,
url: `plugins/index/pluginsname/blog/pluginscontrol/diyblog/pluginsaction/autobloglist`,
method: 'post',
data,
});

View File

@ -4,7 +4,7 @@ class ShopAPI {
/** 自动查询商品接口*/
static getBrandLists(data: any) {
return api_request({
url: `?s=diyapi/brandautodata`,
url: `diyapi/brandautodata`,
method: 'post',
data,
});

View File

@ -4,7 +4,7 @@ class CouponAPI {
/** 领取优惠券列表 */
static getCoupon(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/coupon/pluginscontrol/diycoupon/pluginsaction/autocouponlist.html`,
url: `plugins/index/pluginsname/coupon/pluginscontrol/diycoupon/pluginsaction/autocouponlist.html`,
method: 'post',
data,
});

View File

@ -4,7 +4,7 @@ class CustomAPI {
/** 分类品牌查询接口*/
static getCustominit() {
return api_request({
url: `?s=diyapi/custominit`,
url: `diyapi/custominit`,
method: 'post',
});
}

View File

@ -4,7 +4,7 @@ class CustomAPI {
/** 分类品牌查询接口*/
static getGoodsmagicinit() {
return api_request({
url: `?s=diyapi/goodsmagicinit`,
url: `diyapi/goodsmagicinit`,
method: 'post',
});
}

View File

@ -4,7 +4,7 @@ class BlogAPI {
/** 博客自动数据 */
static getAutoList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/realstore/pluginscontrol/diyrealstore/pluginsaction/autorealstorelist.html`,
url: `plugins/index/pluginsname/realstore/pluginscontrol/diyrealstore/pluginsaction/autorealstorelist.html`,
method: 'post',
data,
});

View File

@ -4,7 +4,7 @@ class BlogAPI {
/** 博客自动数据 */
static getAutoList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/salerecords/pluginscontrol/diyapi/pluginsaction/salerecordsdata`,
url: `plugins/index/pluginsname/salerecords/pluginscontrol/diyapi/pluginsaction/salerecordsdata`,
method: 'post',
data,
});

View File

@ -4,7 +4,7 @@ class ShopAPI {
/** 分类品牌查询接口*/
static getSeckillList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/seckill/pluginscontrol/diyapi/pluginsaction/seckilldata`,
url: `plugins/index/pluginsname/seckill/pluginscontrol/diyapi/pluginsaction/seckilldata`,
method: 'post',
data,
});

View File

@ -3,14 +3,14 @@ class ShopAPI {
/** 分类品牌查询接口*/
static getShop() {
return api_request({
url: `?s=diyapi/goodsinit`,
url: `diyapi/goodsinit`,
method: 'post',
});
}
/** 自动查询商品接口*/
static getShopLists(data: any) {
return api_request({
url: `?s=diyapi/goodsautodata`,
url: `diyapi/goodsautodata`,
method: 'post',
data,
});
@ -18,7 +18,7 @@ class ShopAPI {
// 获取多商户的数据
static getShopList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/shop/pluginscontrol/diyshop/pluginsaction/autoshoplist.html`,
url: `plugins/index/pluginsname/shop/pluginscontrol/diyshop/pluginsaction/autoshoplist.html`,
method: 'post',
data,
});

View File

@ -4,14 +4,14 @@ class UploadAPI {
/** 分类查询接口*/
static getTree() {
return api_request({
url: `?s=attachmentapi/category`,
url: `attachmentapi/category`,
method: 'post',
});
}
/** 分类新增,修改接口 */
static saveTree(data: any) {
return api_request({
url: `?s=attachmentapi/categorysave`,
url: `attachmentapi/categorysave`,
method: 'post',
data,
});
@ -19,7 +19,7 @@ class UploadAPI {
/** 分类删除接口 */
static delTree(data: any) {
return api_request({
url: `?s=attachmentapi/categorydelete`,
url: `attachmentapi/categorydelete`,
method: 'post',
data,
});
@ -27,7 +27,7 @@ class UploadAPI {
/** 附件移动分类 */
static moveTree(data: any) {
return api_request({
url: `?s=attachmentapi/movecategory`,
url: `attachmentapi/movecategory`,
method: 'post',
data,
});
@ -36,7 +36,7 @@ class UploadAPI {
// 附件列表
static getAttachmentList(data: any) {
return api_request({
url: `?s=attachmentapi/list`,
url: `attachmentapi/list`,
method: 'post',
data,
});
@ -44,7 +44,7 @@ class UploadAPI {
// 附件名称修改
static saveAttachmentName(data: any) {
return api_request({
url: `?s=attachmentapi/save`,
url: `attachmentapi/save`,
method: 'post',
data,
});
@ -52,7 +52,7 @@ class UploadAPI {
// 附件删除
static delAttachment(data: any) {
return api_request({
url: `?s=attachmentapi/delete`,
url: `attachmentapi/delete`,
method: 'post',
data,
});
@ -60,7 +60,7 @@ class UploadAPI {
// 附件上传
static uploadAttachment(data: any, progress: any) {
return api_request({
url: `?s=attachmentapi/upload`,
url: `attachmentapi/upload`,
method: 'post',
data,
headers: {
@ -72,7 +72,7 @@ class UploadAPI {
// 扫码上传
static uploadQrcode(data: any) {
return api_request({
url: `?s=attachmentapi/scanuploaddata`,
url: `attachmentapi/scanuploaddata`,
method: 'post',
data,
});
@ -80,7 +80,7 @@ class UploadAPI {
// 提取链接 --------附件远程下载
static getAttachmentCatch(data: any) {
return api_request({
url: `?s=attachmentapi/catch`,
url: `attachmentapi/catch`,
method: 'post',
data,
});

View File

@ -4,7 +4,7 @@ class UrlValueAPI {
/** 获取商品列表 */
static getGoodsList(data: any) {
return api_request({
url: `?s=diyapi/goodslist`,
url: `diyapi/goodslist`,
method: 'post',
data,
});
@ -12,7 +12,7 @@ class UrlValueAPI {
/** 获取文章列表 */
static getArticleList(data: any) {
return api_request({
url: `?s=diyapi/articlelist`,
url: `diyapi/articlelist`,
method: 'post',
data,
});
@ -20,7 +20,7 @@ class UrlValueAPI {
/** 获取diy列表 */
static getDiyList(data: any) {
return api_request({
url: `?s=diyapi/diylist`,
url: `diyapi/diylist`,
method: 'post',
data,
});
@ -28,7 +28,7 @@ class UrlValueAPI {
/** 获取页面设计列表 */
static getDesignList(data: any) {
return api_request({
url: `?s=diyapi/designlist`,
url: `diyapi/designlist`,
method: 'post',
data,
});
@ -37,7 +37,7 @@ class UrlValueAPI {
/** 获取自定义列表 */
static getCustomList(data: any) {
return api_request({
url: `?s=diyapi/customviewlist`,
url: `diyapi/customviewlist`,
method: 'post',
data,
});
@ -45,7 +45,7 @@ class UrlValueAPI {
/** 获取品牌列表 */
static getBrandList(data: any) {
return api_request({
url: `?s=diyapi/brandlist`,
url: `diyapi/brandlist`,
method: 'post',
data,
});
@ -53,7 +53,7 @@ class UrlValueAPI {
/** 获取优惠券列表 */
static getCouponList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/coupon/pluginscontrol/diycoupon/pluginsaction/index.html`,
url: `plugins/index/pluginsname/coupon/pluginscontrol/diycoupon/pluginsaction/index.html`,
method: 'post',
data,
});
@ -62,7 +62,7 @@ class UrlValueAPI {
/** 博客指定数据 */
static getblogList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/blog/pluginscontrol/diyblog/pluginsaction/index.html`,
url: `plugins/index/pluginsname/blog/pluginscontrol/diyblog/pluginsaction/index.html`,
method: 'post',
data,
});
@ -70,7 +70,7 @@ class UrlValueAPI {
/** 组合搭配指定数据 */
static getBindingList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/binding/pluginscontrol/diybinding/pluginsaction/index.html`,
url: `plugins/index/pluginsname/binding/pluginscontrol/diybinding/pluginsaction/index.html`,
method: 'post',
data,
});
@ -78,7 +78,7 @@ class UrlValueAPI {
/** 多商户指定数据 */
static getShopList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/shop/pluginscontrol/diyshop/pluginsaction/index.html`,
url: `plugins/index/pluginsname/shop/pluginscontrol/diyshop/pluginsaction/index.html`,
method: 'post',
data,
});
@ -86,7 +86,7 @@ class UrlValueAPI {
/** 多门店指定数据 */
static getRealstoreList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/realstore/pluginscontrol/diyrealstore/pluginsaction/index.html`,
url: `plugins/index/pluginsname/realstore/pluginscontrol/diyrealstore/pluginsaction/index.html`,
method: 'post',
data,
});
@ -95,7 +95,7 @@ class UrlValueAPI {
/** 多门店指定数据 */
static getAskList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/ask/pluginscontrol/diyask/pluginsaction/index.html`,
url: `plugins/index/pluginsname/ask/pluginscontrol/diyask/pluginsaction/index.html`,
method: 'post',
data,
});
@ -103,7 +103,7 @@ class UrlValueAPI {
/** 活动指定数据 */
static getActivityList(data: any) {
return api_request({
url: `?s=plugins/index/pluginsname/activity/pluginscontrol/diyactivity/pluginsaction/index.html`,
url: `plugins/index/pluginsname/activity/pluginscontrol/diyactivity/pluginsaction/index.html`,
method: 'post',
data,
});

View File

@ -31,7 +31,7 @@ const new_data = window.location.href.substring(0, index);
const new_index = new_data.lastIndexOf('/');
const pro_url = window.location.href.substring(0, new_index);
const service = axios.create({
baseURL: import.meta.env.VITE_APP_BASE_API_PHP == '/dev-api' ? import.meta.env.VITE_APP_BASE_API_PHP : pro_url + '/api.php',
baseURL: import.meta.env.VITE_APP_BASE_API_PHP == '/dev-api' ? import.meta.env.VITE_APP_BASE_API_PHP : pro_url + '/api.php?s=',
timeout: 60000,
headers: { 'Content-Type': 'application/json;charset=utf-8', 'X-Requested-With': 'XMLHttpRequest' },
});