diff --git a/.env.development b/.env.development index 59af289d..721516bd 100644 --- a/.env.development +++ b/.env.development @@ -6,4 +6,6 @@ NODE_ENV='dev' VITE_APP_TITLE = 'shopxo' VITE_APP_PORT = 3000 VITE_APP_BASE_API = '/dev-api' -VITE_APP_BASE_API_URL = 'http://shopxo.com/admin.php/' \ No newline at end of file +VITE_APP_BASE_API_URL = 'http://shopxo.com/admin.php/' +VITE_APP_BASE_API_PHP = '/dev-php' +VITE_APP_BASE_API_PHP_URL = 'http://shopxo.com/api.php' \ No newline at end of file diff --git a/src/api/binding.ts b/src/api/binding.ts new file mode 100644 index 00000000..244db3c7 --- /dev/null +++ b/src/api/binding.ts @@ -0,0 +1,20 @@ +import api_request from '@/utils/api-request'; + +class BlogAPI { + /** 博客自动数据 */ + static getAutoList(data: any) { + return api_request({ + url: `?s=plugins/index/pluginsname/binding/pluginscontrol/diybinding/pluginsaction/index.html`, + method: 'post', + data, + }); + } +} + +export default BlogAPI; + +// 分类树结构 +export interface Tree { + /** 主键 */ + id: string; +} diff --git a/src/api/blog.ts b/src/api/blog.ts index fb96d459..499f002e 100644 --- a/src/api/blog.ts +++ b/src/api/blog.ts @@ -1,32 +1,17 @@ -import request from '@/utils/request'; +import api_request from '@/utils/api-request'; -class ArticleAPI { - /** 链接初始化接口 */ - static getInit() { - return request({ - url: `diyapi/linkinit`, - method: 'post', - }); - } - /** 文章指定数据 */ - static getAppointList(data: any) { - return request({ - url: `diyapi/articleappointdata`, - method: 'post', - data, - }); - } - /** 文章自动数据 */ +class BlogAPI { + /** 博客自动数据 */ static getAutoList(data: any) { - return request({ - url: `diyapi/articleautodata`, + return api_request({ + url: `?s=plugins/index/pluginsname/blog/pluginscontrol/diyblog/pluginsaction/autobloglist`, method: 'post', data, }); } } -export default ArticleAPI; +export default BlogAPI; // 分类树结构 export interface Tree { diff --git a/src/api/shop.ts b/src/api/shop.ts index 8a08a952..3699cf5c 100644 --- a/src/api/shop.ts +++ b/src/api/shop.ts @@ -16,7 +16,14 @@ class ShopAPI { data, }); } - + // 获取多商户的数据 + static getShopList(data: any) { + return request({ + url: `plugins/index/pluginsname/shop/pluginscontrol/diyshop/pluginsaction/index`, + method: 'post', + data, + }); + } } export default ShopAPI; diff --git a/src/api/url-value.ts b/src/api/url-value.ts index 6a38c303..b35346ca 100644 --- a/src/api/url-value.ts +++ b/src/api/url-value.ts @@ -1,4 +1,5 @@ import request from '@/utils/request'; +import api_request from '@/utils/api-request'; class UrlValueAPI { /** 获取商品列表 */ @@ -58,6 +59,23 @@ class UrlValueAPI { data, }); } + + /** 博客指定数据 */ + static getblogList(data: any) { + return api_request({ + url: `?s=plugins/index/pluginsname/blog/pluginscontrol/diyblog/pluginsaction/index.html`, + method: 'post', + data, + }); + } + /** 组合搭配指定数据 */ + static getBindingList(data: any) { + return api_request({ + url: `?s=plugins/index/pluginsname/binding/pluginscontrol/diybinding/pluginsaction/autobindinglist.html`, + method: 'post', + data, + }); + } } export default UrlValueAPI; diff --git a/src/components/common/data-filter/index.vue b/src/components/common/data-filter/index.vue index a5188040..60fffea8 100644 --- a/src/components/common/data-filter/index.vue +++ b/src/components/common/data-filter/index.vue @@ -1,14 +1,15 @@