新增营销系统、分销系统、会员功能、门店、提现功能

This commit is contained in:
Shaw
2024-02-08 21:01:37 +08:00
parent 68b3f2dcc3
commit 17c043348a
1398 changed files with 81279 additions and 56269 deletions

View File

@ -0,0 +1,25 @@
import { ref } from 'vue';
import request from './server'
export default function () {
const loading = ref(false)
/*
* 发送请求
*/
function sendReq (params, callback) {
request(params.url, params.data || {},params.method || 'POST',{
'Content-type': params.contentType || 'application/json;charset=utf-8'
}).then((res) => {
if (res && res.data) {
callback && callback(res.data)
}
}, (error) => {
console.log(error)
})
}
return {
loading,
sendReq
}
}