Fix(搜索/商品列表):[#1352]无商品时需要显示推荐内容
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user