开始做登录
This commit is contained in:
27
service/invoice.js
Normal file
27
service/invoice.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import apis from '../utils/request';
|
||||
const { GET, POST, PUT, DELETE } = apis
|
||||
|
||||
// 获取创建的发开票信息列表
|
||||
export const getInvoiceInfoList = async function() {
|
||||
return await GET(`/wx/getInvoiceInfoList`);
|
||||
}
|
||||
|
||||
// 创建开票信息
|
||||
export const createInvoiceInfo = async function(data) {
|
||||
return await POST(`/wx/createInvoiceInfo`, data);
|
||||
}
|
||||
|
||||
// 修改开票信息
|
||||
export const updateInvoiceInfo = async function(data) {
|
||||
return await PUT(`/wx/updateInvoiceInfo/${id}`, data);
|
||||
}
|
||||
|
||||
// 删除发票信息
|
||||
export const deleteInvoiceInfo = async function(data) {
|
||||
return await DELETE(`/wx/deleteInvoiceInfo/${id}`, data);
|
||||
}
|
||||
|
||||
// 获取可开发票列表
|
||||
export const getInvoiceList = async function() {
|
||||
return await GET(`/wx/getInvoiceList`);
|
||||
}
|
12
service/meter.js
Normal file
12
service/meter.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import apis from '../utils/request';
|
||||
const { GET, POST, PUT, DELETE } = apis
|
||||
|
||||
// 获取电表列表
|
||||
export const getMeterList = async function() {
|
||||
return await GET('/wx/getMeterList');
|
||||
}
|
||||
|
||||
// 获取表计详情
|
||||
export const getMeterDetail = async function() {
|
||||
return await GET(`/wx/getMeterDetail/${tenement}/${code}`);
|
||||
}
|
7
service/park.js
Normal file
7
service/park.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import apis from '../utils/request';
|
||||
const { GET, POST, PUT, DELETE } = apis
|
||||
|
||||
// 获取园区列表
|
||||
export const getParkList = async function() {
|
||||
return await GET(`/wx/getParkList`);
|
||||
}
|
22
service/recharge.js
Normal file
22
service/recharge.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import apis from '../utils/request';
|
||||
const { GET, POST, PUT, DELETE } = apis
|
||||
|
||||
// 获取充值记录
|
||||
export const getRechargeList = async function(year) {
|
||||
return await GET(`/wx/getRechargeList?year=${year}`);
|
||||
}
|
||||
|
||||
// 预备充值请求
|
||||
export const requestRecharge = async function(data) {
|
||||
return await POST(`/wx/requestRecharge`, data);
|
||||
}
|
||||
|
||||
// 获取充值记录详情
|
||||
export const getRechargeDetail = async function(rid) {
|
||||
return await GET(`/wx/getRechargeDetail/${rid}`);
|
||||
}
|
||||
|
||||
// 退费
|
||||
export const returnFee = async function(data) {
|
||||
return await POST(`/wx/return`, data);
|
||||
}
|
32
service/system.js
Normal file
32
service/system.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import apis from '../utils/request';
|
||||
const { GET, POST, PUT, DELETE } = apis
|
||||
|
||||
// 常见问题
|
||||
export const getQuestions = async function() {
|
||||
return await GET(`/wx/getQuestions`);
|
||||
}
|
||||
|
||||
// 提交意见反馈
|
||||
export const createOption = async function(data) {
|
||||
return await POST(`/wx/option`, data);
|
||||
}
|
||||
|
||||
// 获取自己提交的意见列表
|
||||
export const getOptionList = async function() {
|
||||
return await GET(`/wx/getOptionList`);
|
||||
}
|
||||
|
||||
// 查询意见详情
|
||||
export const getOptionDetail = async function(id) {
|
||||
return await GET(`/wx/getOptionDetail/${id}`);
|
||||
}
|
||||
|
||||
// 提交意见反馈
|
||||
export const deleteOption = async function() {
|
||||
return await DELETE(`/wx/deleteOption/${id}`);
|
||||
}
|
||||
|
||||
// 提交意见反馈
|
||||
export const aboutUs = async function() {
|
||||
return await GET(`/wx/aboutUs`);
|
||||
}
|
7
service/tenement.js
Normal file
7
service/tenement.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import apis from '../utils/request';
|
||||
const { GET, POST, PUT, DELETE } = apis
|
||||
|
||||
// 获取园区id模糊搜索商户列表
|
||||
export const getParkList = async function({ park, keyword }) {
|
||||
return await GET(`/wx/getTenementList?park=${park}&keyword=${keyword}`);
|
||||
}
|
32
service/user.js
Normal file
32
service/user.js
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
import apis from '../utils/request';
|
||||
const { GET, POST, PUT, DELETE } = apis
|
||||
// 保存用户信息
|
||||
export const login = async function(data) {
|
||||
return await POST('/wx/login', data);
|
||||
}
|
||||
|
||||
// 非管理员验证
|
||||
export const userValidate = async function(data) {
|
||||
return await POST('/wx/user/validate', data);
|
||||
}
|
||||
|
||||
// 获取用户邀请二维码
|
||||
export const getWxCode = async function(data) {
|
||||
return await GET('/wx/getWxCode', data);
|
||||
}
|
||||
|
||||
// 获取扫描二维码的列表
|
||||
export const getApproveList = async function(data) {
|
||||
return await GET('/wx/getApproveList', data);
|
||||
}
|
||||
|
||||
// 审批用户加入
|
||||
export const approveUser = async function(data) {
|
||||
return await POST('/wx/approve', data);
|
||||
}
|
||||
|
||||
// 移除用户
|
||||
export const removeUser = async function(data) {
|
||||
return await DELETE(`/wx/removeUser/${uid}`);
|
||||
}
|
Reference in New Issue
Block a user