63 lines
2.0 KiB
JavaScript
63 lines
2.0 KiB
JavaScript
|
|
"use strict";
|
||
|
|
const common_vendor = require("../../common/vendor.js");
|
||
|
|
const request_index = require("../../request/index.js");
|
||
|
|
function applySupOrg(data) {
|
||
|
|
return request_index.request({
|
||
|
|
url: `/api/suppliers/applySupOrg`,
|
||
|
|
method: "post",
|
||
|
|
data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function getApplySuppliersOrgInfo(res) {
|
||
|
|
return request_index.request({
|
||
|
|
url: `/api/suppliers/getApplySuppliersOrgInfo?title=${res.title}&pageNo=${res.pageNo}&pageSize=5&openId=${common_vendor.index.getStorageSync("openid")}`,
|
||
|
|
method: "get"
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function getSuppliersAuditLog() {
|
||
|
|
return request_index.request({
|
||
|
|
url: `/api/suppliers/getSuppliersAuditLog?openId=${common_vendor.index.getStorageSync("openid")}`,
|
||
|
|
method: "get"
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function getSuppliersOrgInfo() {
|
||
|
|
return request_index.request({
|
||
|
|
url: `/api/suppliers/getSuppliersOrgInfo?openId=${common_vendor.index.getStorageSync("openid")}`,
|
||
|
|
method: "get"
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function getSupInfoByOpenId() {
|
||
|
|
return request_index.request({
|
||
|
|
url: `/api/suppliers/getSupInfoByOpenId?openId=${common_vendor.index.getStorageSync("openid")}`,
|
||
|
|
method: "get"
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function getNotice() {
|
||
|
|
return request_index.request({
|
||
|
|
url: `/api/wx/notice/query?openId=${common_vendor.index.getStorageSync("openid")}&clientType=${common_vendor.index.getStorageSync("jumpIndex")}`,
|
||
|
|
method: "get"
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function isRead(openId) {
|
||
|
|
return request_index.request({
|
||
|
|
url: `/api/wx/notice/unreadCount?openId=${common_vendor.index.getStorageSync("openid")}&clientType=4`,
|
||
|
|
method: "get"
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function upRead(data) {
|
||
|
|
return request_index.request({
|
||
|
|
url: `/api/wx/notice/upRead`,
|
||
|
|
method: "post",
|
||
|
|
data
|
||
|
|
});
|
||
|
|
}
|
||
|
|
exports.applySupOrg = applySupOrg;
|
||
|
|
exports.getApplySuppliersOrgInfo = getApplySuppliersOrgInfo;
|
||
|
|
exports.getNotice = getNotice;
|
||
|
|
exports.getSupInfoByOpenId = getSupInfoByOpenId;
|
||
|
|
exports.getSuppliersAuditLog = getSuppliersAuditLog;
|
||
|
|
exports.getSuppliersOrgInfo = getSuppliersOrgInfo;
|
||
|
|
exports.isRead = isRead;
|
||
|
|
exports.upRead = upRead;
|
||
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/supplierindex/api.js.map
|