Fix(搜索/商品列表):[#1352]无商品时需要显示推荐内容
This commit is contained in:
@@ -156,6 +156,9 @@
|
|||||||
class="no-data-wrap"
|
class="no-data-wrap"
|
||||||
>
|
>
|
||||||
<no-good-data :type="searchType"/>
|
<no-good-data :type="searchType"/>
|
||||||
|
<recommend
|
||||||
|
v-if="searchType === 'good' && loadend && list.length === 0"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -165,15 +168,18 @@ import { getProducts, getHotels } from '@/api/store'
|
|||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import NP from 'number-precision'
|
import NP from 'number-precision'
|
||||||
import NoGoodData from '@/components/good/NoData'
|
import NoGoodData from '@/components/good/NoData'
|
||||||
|
import Recommend from '@/components/Recommend'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GoodsList',
|
name: 'GoodsList',
|
||||||
components: {
|
components: {
|
||||||
NoGoodData
|
NoGoodData,
|
||||||
|
Recommend
|
||||||
},
|
},
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
|
|
||||||
list: [],
|
list: [],
|
||||||
query: {
|
query: {
|
||||||
page: 1,
|
page: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user