Fix(搜索/商品列表):[#1352]无商品时需要显示推荐内容

This commit is contained in:
lifizer
2024-04-28 18:06:35 +08:00
parent 46314b4260
commit ae93b92dae
+7 -1
View File
@@ -156,6 +156,9 @@
class="no-data-wrap"
>
<no-good-data :type="searchType"/>
<recommend
v-if="searchType === 'good' && loadend && list.length === 0"
/>
</view>
</view>
</template>
@@ -165,15 +168,18 @@ import { getProducts, getHotels } from '@/api/store'
import { mapGetters } from 'vuex'
import NP from 'number-precision'
import NoGoodData from '@/components/good/NoData'
import Recommend from '@/components/Recommend'
export default {
name: 'GoodsList',
components: {
NoGoodData
NoGoodData,
Recommend
},
data: function () {
return {
webUrl: this.$VUE_APP_RESOURCES_URL,
list: [],
query: {
page: 1,