2 Commits

  1. 7
      pages/marketSituation/marketDetail.vue

7
pages/marketSituation/marketDetail.vue

@ -76,6 +76,7 @@ const marketTitle = ref();
const sortType = ref(""); // 'price' 'change' const sortType = ref(""); // 'price' 'change'
const sortOrder = ref("desc"); // 'asc' 'desc' const sortOrder = ref("desc"); // 'asc' 'desc'
const regionalGroupArray = ref([]);
// //
const stockList = ref([ const stockList = ref([
{ {
@ -206,17 +207,19 @@ const sortedStockList = computed(() => {
const getRegionalGroupList = async () => { const getRegionalGroupList = async () => {
try { try {
const result = await getRegionalGroupListAPI({ const result = await getRegionalGroupListAPI({
market: marketTitle.value,
name: marketTitle.value,
}); });
regionalGroupArray.value = result.data;
} catch (e) { } catch (e) {
console.error("获取区域分组列表失败:", e); console.error("获取区域分组列表失败:", e);
} }
}; };
// //
onLoad((options) => {
onLoad(async (options) => {
if (options && options.market) { if (options && options.market) {
marketTitle.value = options.market; marketTitle.value = options.market;
await getRegionalGroupList();
} }
}); });

Loading…
Cancel
Save