This commit is contained in:
GaoHao
2025-03-10 17:26:39 +08:00
parent 490c513f48
commit cc97b6acca
26 changed files with 258 additions and 305 deletions

View File

@@ -33,9 +33,9 @@
</template>
<script setup>
import { reactive,ref,onMounted } from 'vue';
import { $tbShopCategory, $tbProductV2 } from "@/http/yskApi/goods.js"
import { getProductList, getCategoryList } from '@/api/product.js'
import { reactive,ref,onMounted } from 'vue';
import { $tbShopCategory, $tbProductV2 } from "@/http/yskApi/goods.js"
import { getProductPage, getCategoryList } from '@/api/product.js'
const props=defineProps({
show:{
type:Boolean,
@@ -78,7 +78,7 @@ import { $tbShopCategory, $tbProductV2 } from "@/http/yskApi/goods.js"
})
}
function getGoodsList () {
getProductList(category.query).then(res => {
getProductPage(category.query).then(res => {
category.goodsList = res.records.map(v => {
return {
...v,