From 9b00dc34e7f855de4876f6cb4dca682b1776dfc3 Mon Sep 17 00:00:00 2001 From: yanzai Date: Tue, 26 Nov 2024 14:21:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=A5=97=E9=A4=90=20?= =?UTF-8?q?=E5=9B=9E=E5=88=B0=E9=A1=B6=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- h5/pages/main/combo/combo.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/h5/pages/main/combo/combo.vue b/h5/pages/main/combo/combo.vue index 15ebe01..4471eb6 100644 --- a/h5/pages/main/combo/combo.vue +++ b/h5/pages/main/combo/combo.vue @@ -5,7 +5,7 @@ import DraggableButton from "@/pages/components/goHome.vue"; * user:sa0ChunLuyu * date:2024年8月7日 20:05:05 */ -import { ref, computed } from "vue"; +import { ref, computed, nextTick } from "vue"; import { $image, $api, $response } from "@/api"; import { onShow,onLoad } from "@dcloudio/uni-app"; import { useStore } from "@/store"; @@ -41,6 +41,7 @@ const selectItemClick = async (index, key) => { // 选择套餐条件 let data = combo_select.value; if (selectKey.value == "sort_list") { + combo_list.value.list=[] if (sortIndex.value == index) { sortIndex.value = 0; } else { @@ -160,6 +161,7 @@ const combo_list_computed = computed(() => { } return list; }); +let combo_list_k=ref(null) const getComboList = async (e) => { uni.showLoading(); let obj = { @@ -182,7 +184,10 @@ const getComboList = async (e) => { const response = await $api("ComboList", obj); uni.hideLoading(); $response(response, () => { - combo_list.value = response.data; + + combo_list.value = response.data; + + }); }; @@ -253,6 +258,8 @@ const open = (key) => { } }; + + const config_ref = ref(null); const configRef = (e) => { if (!config_ref.value) { @@ -447,7 +454,7 @@ const toRouter = () => { - +