refactor DetailFramework and service/ticketsInfo; create currentTicket service

This commit is contained in:
Dawn_Ocean
2024-03-14 11:40:59 +08:00
parent c070b356fe
commit 802d008767
6 changed files with 131 additions and 92 deletions
+19
View File
@@ -0,0 +1,19 @@
import RepairPage from '@/pages/repair/repair';
import Taro from '@tarojs/taro';
import { getUrl } from '.';
export function getCurrentTicket(that: RepairPage) {
Taro.request({
url: getUrl('/user/mytickets'),
method: 'GET',
data: {
token: 'token_test',
},
})
.then((res) => {
const data = res.data.data;
})
.catch((err) => {
console.log(err);
});
}