You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
548 B
17 lines
548 B
import Config from '@/common/js/config.js'
|
|
|
|
const apiUrl = Config.apiUrl;
|
|
const defaultwbs = `${apiUrl}/defaultwbs`;
|
|
|
|
export function setupProject(app) {
|
|
uni.$u.api = { ...uni.$u.api } || {};
|
|
//根据id获取项目信息
|
|
uni.$u.api.findProjectById = param => uni.$u.post(`${defaultwbs}/project/findProjectById`, param);
|
|
|
|
//创建分享连接
|
|
uni.$u.api.createShare = param => uni.$u.post(`${defaultwbs}/share/create`, param);
|
|
|
|
//点击分享连接
|
|
uni.$u.api.clickShare = param => uni.$u.post(`${defaultwbs}/share/click`, param);
|
|
};
|
|
|
|
|