|
|
@ -1,18 +1,18 @@ |
|
|
import { computed } from 'vue'; |
|
|
|
|
|
import Config from '@/common/js/config.js'; |
|
|
import Config from '@/common/js/config.js'; |
|
|
|
|
|
import { computed } from 'vue'; |
|
|
import store from '@/store/index.js'; |
|
|
import store from '@/store/index.js'; |
|
|
|
|
|
|
|
|
const { apiUrl } = Config.apiUrl; |
|
|
const { apiUrl } = Config.apiUrl; |
|
|
// const defaultwbs = `${apiUrl}/defaultwbs`;
|
|
|
// const defaultwbs = `${apiUrl}/defaultwbs`;
|
|
|
const domain = computed(() => store.state.domain); |
|
|
const domain = computed(() => store.state.domain); |
|
|
|
|
|
console.log('domain: ', domain.value); |
|
|
|
|
|
|
|
|
export function setupPlugin(app) { |
|
|
export function setupPlugin(app) { |
|
|
uni.$u.api = { ...uni.$u.api } || {}; |
|
|
uni.$u.api = { ...uni.$u.api } || {}; |
|
|
// 获取插件信息
|
|
|
// 获取插件信息
|
|
|
// uni.$u.api.getOtherPlugin = param =>
|
|
|
// uni.$u.api.getOtherPlugin = param =>
|
|
|
// uni.$u.post(`${apiUrl}/pluginshop/plugin/query?pluginId=${param.pluginId}&styleType=${param.styleType}`);
|
|
|
// uni.$u.post(`${apiUrl}/pluginshop/plugin/query?pluginId=${param.pluginId}&styleType=${param.styleType}`);
|
|
|
uni.$u.api.getOtherPlugin = param => |
|
|
uni.$u.api.getOtherPlugin = param => uni.$u.post(`${apiUrl}/opt/business/businessPluginById?businessPluginId=${param.businessPluginId}`); |
|
|
uni.$u.post(`${apiUrl}/opt/business/businessPluginById?businessPluginId=${param.businessPluginId}`); |
|
|
|
|
|
|
|
|
|
|
|
// 查询子任务
|
|
|
// 查询子任务
|
|
|
uni.$u.api.findSonTask = param => uni.$u.post(`${domain.value}/task/findSonTask`, param); |
|
|
uni.$u.api.findSonTask = param => uni.$u.post(`${domain.value}/task/findSonTask`, param); |
|
|
|