完成对公初始操作和专区

This commit is contained in:
2024-09-09 15:57:59 +08:00
parent 9a6c4d30f4
commit 927b7a6470
12 changed files with 97 additions and 45 deletions

View File

@@ -20,4 +20,24 @@ export const uploadFile = (filePath) => {
}
})
})
}
export const uploadPublicFile = (filePath) => {
const { api } = getConfigByEnv();
return new Promise((resolve, reject) => {
wx.uploadFile({
filePath: filePath,
name: 'file',
url: `${api}/wx/public/upload`,
header: {
authorization: wx.getStorageSync("token")
},
success: (res) => {
resolve(res);
},
fail: (err) => {
reject(err);
}
})
})
}

View File

@@ -20,4 +20,9 @@ export const getRechargeDetail = async function(rid) {
// 退费
export const returnFee = async function(data) {
return await POST(`/wx/return`, data);
}
// 创建对公
export const createPublicTopUp = async function(data) {
return await POST(`/wx/createPublicTopUp`, data);
}