2 changed files with 14 additions and 2 deletions
@ -1,10 +1,21 @@ |
|||
import Config from '@/common/js/config.js' |
|||
|
|||
const apiUrl = Config.apiUrl; |
|||
const defaultwbs = `${apiUrl}`; |
|||
const defaultwbs = `${apiUrl}/defaultwbs`; |
|||
|
|||
export function setupPlugin(app) { |
|||
uni.$u.api = { ...uni.$u.api } || {}; |
|||
// 获取插件信息
|
|||
uni.$u.api.getOtherPlugin = param => uni.$u.post(`${defaultwbs}/pluginshop/plugin/query?pluginId=${param.pluginId}&styleType=${param.styleType}`); |
|||
uni.$u.api.getOtherPlugin = param => uni.$u.post(`${apiUrl}/pluginshop/plugin/query?pluginId=${param.pluginId}&styleType=${param.styleType}`); |
|||
|
|||
// 查询子任务
|
|||
uni.$u.api.findSonTask = param => uni.$u.post(`${defaultwbs}/task/findSonTask`, param); |
|||
// 查询子项目
|
|||
uni.$u.api.findSonProject = param => uni.$u.post(`${defaultwbs}/project/findSonProject`, param); |
|||
// 提交交付物
|
|||
uni.$u.api.saveDeliver = param => uni.$u.post(`${defaultwbs}/deliver/save`, param); |
|||
// 查询任务的交付物历史记录
|
|||
uni.$u.api.queryDeliverOfTask = param => uni.$u.post(`${defaultwbs}/deliver/queryDeliverOfTask`, param); |
|||
// 检查交付物
|
|||
uni.$u.api.checkDeliver = param => uni.$u.post(`${defaultwbs}/deliver/checkDeliver`, param); |
|||
}; |
|||
|
Loading…
Reference in new issue