From 754bac199402472e2c208a0d421f4e055958b1fa Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Tue, 25 Jun 2024 16:07:40 +0800 Subject: [PATCH] add --- pages/index/index.vue | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index d247609..d21d3b1 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -117,8 +117,17 @@ 综合 - 价格 + + 价格 + + + + + 销量 @@ -158,7 +167,8 @@ - 原价: {{ item.store_name }} + 原  价:44.00 + 规格: {{ item.price }}/{{ item.unit_name }} @@ -354,6 +364,19 @@ } const changeOrder = (order) => { + switch (order) { + case 'asc': + where.value.field = 'price' + break; + case 'desc': + where.value.field = 'price' + break; + case 'sales': + where.value.field = 'sales' + break; + default: + where.value.field = '' + } where.value.order = order; getGoodList(); } @@ -364,7 +387,8 @@ name: '', order: '', store_name: '', - store_id: '' + store_id: '', + field: "", }) const loading = ref(true);