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);