|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="searchResult">
|
|
|
<!-- <zs-choose-tab :tabList="tabList" @choose="chooseTab"></zs-choose-tab> -->
|
|
|
- <zs-choose-tab-union :level="2" :tabList="tabList" @choose="chooseTab">
|
|
|
+ <zs-choose-tab-union :level="1" :tabList="tabList" @choose="chooseTab">
|
|
|
</zs-choose-tab-union>
|
|
|
<view class="goods-list">
|
|
|
<zs-list class="store-box" mt="0" @load="loadMore" :status="status">
|
|
@@ -25,7 +25,7 @@
|
|
|
<view class="goods-price">
|
|
|
<view> ¥{{ item.realPrice }} </view>
|
|
|
<view class="distance">
|
|
|
- 销售{{ item.saleNum.toFixed(2) }}
|
|
|
+ 销售{{ item.saleNum }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -56,7 +56,7 @@
|
|
|
></image> -->
|
|
|
<view> ¥{{ item.realPrice }}</view>
|
|
|
<view class="distance">
|
|
|
- 销售{{ item.saleNum.toFixed(2) }}
|
|
|
+ 销售{{ item.saleNum }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -80,7 +80,7 @@ export default {
|
|
|
"location.lat": 0,
|
|
|
"location.lon": 0,
|
|
|
range: "",
|
|
|
- columnName: "",
|
|
|
+ goodsCateId: "",
|
|
|
goodsName: "",
|
|
|
shopId: "",
|
|
|
status: 3,
|
|
@@ -106,7 +106,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
chooseTab(val) {
|
|
|
- this.query.goodsName = val[0].cateName;
|
|
|
+ this.query.goodsCateId = val[0].id;
|
|
|
this.query.pageCurrent = 1;
|
|
|
this.status = "more";
|
|
|
this.list = [];
|
|
@@ -165,7 +165,7 @@ export default {
|
|
|
this.query.goodsName = options?.search || "";
|
|
|
|
|
|
if (!this.query.goodsName) {
|
|
|
- this.query.columnName = options.column;
|
|
|
+ this.query.goodsCateId = options.columnId;
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: options.column,
|
|
|
});
|
|
@@ -180,6 +180,7 @@ export default {
|
|
|
.searchResult {
|
|
|
padding: 100rpx 24rpx 20rpx;
|
|
|
background: #f9f9f9;
|
|
|
+ height: 100%;
|
|
|
.goods-list {
|
|
|
border-radius: 16rpx 16rpx 0 0;
|
|
|
margin-bottom: 60rpx;
|