79 lines
2.3 KiB
JavaScript
79 lines
2.3 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const request_index = require("../../request/index.js");
|
|
function Apply(data) {
|
|
return request_index.request({
|
|
url: `/api/employessapply/apply`,
|
|
method: "post",
|
|
data
|
|
});
|
|
}
|
|
function invitedConfirm(data) {
|
|
return request_index.request({
|
|
url: `/api/employessapply/invitedConfirm`,
|
|
method: "post",
|
|
data
|
|
});
|
|
}
|
|
function getOrgInfo(title) {
|
|
return request_index.request({
|
|
url: `/api/employessapply/getOrgInfo?title=${title}&pageSize=-1&openId=${common_vendor.index.getStorageSync("openid")}`,
|
|
method: "get"
|
|
});
|
|
}
|
|
function getEmployeesOrgRela(openId) {
|
|
return request_index.request({
|
|
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0,1,2`,
|
|
method: "get"
|
|
});
|
|
}
|
|
function getIndex(openId) {
|
|
return request_index.request({
|
|
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&izHistory=1`,
|
|
method: "get"
|
|
});
|
|
}
|
|
function getInvited(openId) {
|
|
return request_index.request({
|
|
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=1`,
|
|
method: "get"
|
|
});
|
|
}
|
|
function getId(id) {
|
|
return request_index.request({
|
|
url: `/api/employessapply/getEmployeesOrgRela?openId=${common_vendor.index.getStorageSync("openid")}&invited=0&id=${id}&izHistory=1`,
|
|
method: "get"
|
|
});
|
|
}
|
|
function getNotice(openId) {
|
|
return request_index.request({
|
|
url: `/api/wx/notice/query?openId=${common_vendor.index.getStorageSync("openid")}&clientType=2`,
|
|
method: "get"
|
|
// data: JSON.stringify({ openId: uni.getStorageSync('openid') }) // 把 body 串行化,强行放 data
|
|
});
|
|
}
|
|
function isRead(openId) {
|
|
return request_index.request({
|
|
url: `/api/wx/notice/unreadCount?openId=${common_vendor.index.getStorageSync("openid")}&clientType=2`,
|
|
method: "get"
|
|
});
|
|
}
|
|
function upRead(data) {
|
|
return request_index.request({
|
|
url: `/api/wx/notice/upRead`,
|
|
method: "post",
|
|
data
|
|
});
|
|
}
|
|
exports.Apply = Apply;
|
|
exports.getEmployeesOrgRela = getEmployeesOrgRela;
|
|
exports.getId = getId;
|
|
exports.getIndex = getIndex;
|
|
exports.getInvited = getInvited;
|
|
exports.getNotice = getNotice;
|
|
exports.getOrgInfo = getOrgInfo;
|
|
exports.invitedConfirm = invitedConfirm;
|
|
exports.isRead = isRead;
|
|
exports.upRead = upRead;
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/yuangongindex/api.js.map
|