全局:清理多余的 request2.js

This commit is contained in:
YunaiV
2024-01-20 10:07:11 +08:00
parent ce389efdae
commit 492d84073d
35 changed files with 123 additions and 964 deletions
+1 -1
View File
@@ -80,7 +80,7 @@
}
state.id = options.id;
const { code, data } = await sheep.$api.order.detail(state.id);
const { code, data } = await OrderApi.getOrder(state.id);
if (code !== 0) {
sheep.$helper.toast('无待评价订单');
return
+3 -5
View File
@@ -87,13 +87,11 @@
<script setup>
import { reactive } from 'vue';
import {
onLoad,
onReachBottom
} from '@dcloudio/uni-app';
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
import sheep from '@/sheep';
import _ from 'lodash';
import { resetPagination } from '@/sheep/util';
import SpuApi from '@/sheep/api/product/spu';
const sys_navBar = sheep.$platform.navbar;
const emits = defineEmits(['close', 'change']);
@@ -232,7 +230,7 @@
async function getList() {
state.loadStatus = 'loading';
const { code, data } = await sheep.$api.goods.list({
const { code, data } = await SpuApi.getSpuPage({
pageNo: state.pagination.pageNo,
pageSize: state.pagination.pageSize,
sortField: state.currentSort,