feat: 增加发邮件功能

This commit is contained in:
kenny
2025-10-16 19:15:42 +08:00
parent 617f4f6acf
commit 728dc5e559
4 changed files with 625 additions and 219 deletions
+49 -1
View File
@@ -1,4 +1,5 @@
import request from '@/sheep/request';
import Request from 'luch-request';
const ReportApi = {
getHairApi: (data) => {
@@ -77,10 +78,57 @@ const ReportApi = {
getUserAvatar: () =>
request({
url: '/member/user/get ',
url: '/member/user/get',
method: 'get',
}),
// sendMail: () =>
// request({
// url: '/sendMail',
// method: 'post',
// }),
sendMail: (data) => {
// const init = () => {
// const http = new Request({
// baseURL: 'http://42.193.102.139:4000/api/pdf',
// timeout: 100 * 1000,
// method: 'POST',
// header: {
// Accept: 'text/json',
// 'Content-Type': 'application/json;charset=UTF-8',
// },
// // #ifdef H5
// // 跨域请求时是否携带凭证(cookies)仅H5支持(HBuilderX 2.6.15+
// withCredentials: false,
// // #endif
// });
// return http;
// };
const http = new Request({
baseURL: 'http://42.193.102.139:4000/api/pdf',
timeout: 100 * 1000,
method: 'GET',
header: {
Accept: 'text/json',
'Content-Type': 'application/json;charset=UTF-8',
Authorization: 'Bearer 14fc0280-fc65-462d-ac2d-50178c0212e3',
},
// #ifdef H5
// 跨域请求时是否携带凭证(cookies)仅H5支持(HBuilderX 2.6.15+
withCredentials: false,
// #endif
});
// const http = init();
return http.request({
method: 'POST',
data,
});
},
// https://puton.huimeimeta.com/app-api/cloth/getFaceList
};
export default ReportApi;