From 4abaa346a1593d0721bc1aa0989f1007e16d3301 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 21 八月 2024 17:20:38 +0800 Subject: [PATCH] - --- src/pages/order/order.vue | 20 ++++---------------- 1 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/pages/order/order.vue b/src/pages/order/order.vue index 337bc5a..d87e150 100644 --- a/src/pages/order/order.vue +++ b/src/pages/order/order.vue @@ -1,11 +1,9 @@ <template> <view> <up-sticky bgColor="#fff"> - <up-tabs :list="list1" @change='change' :current='state.currentIdex'></up-tabs> - <up-subsection :list="list" v-if="state.currentIdex==0" :current="current4" activeColor="#f9ae3d" + <up-subsection :list="list" :current="current4" activeColor="#f9ae3d" @change="sectionChange"></up-subsection> - <up-subsection :list="list2" v-else :current="current4" activeColor="#f9ae3d" - @change="sectionChange"></up-subsection> + </up-sticky> <up-empty mode="order" icon="http://cdn.uviewui.com/uview/empty/order.png"> </up-empty> @@ -22,18 +20,8 @@ }) const current4 = ref(0); const list = ref(['鍏ㄩ儴', '杩涜涓�', '宸插畬鎴�', '宸插彇娑�']); - const list2 = ref(['鍏ㄩ儴', '姝e湪鎷�', '瀹℃牳涓�', '鏈�氳繃','宸叉嫑婊�']); - // 鍒涘缓鍝嶅簲寮忔暟鎹� - const list1 = reactive([{ - name: '鏃ョ粨宸ヨ鍗�' - }, - { - name: '闀挎湡宸ヨ鍗�' - }, - ]); - const change = (e) => { - state.currentIdex = e.index - } + + const sectionChange=(index)=> { current4.value = index; } -- Gitblit v1.9.1