修改首页功能
This commit is contained in:
@ -40,7 +40,7 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import { mapGetters } from 'vuex'
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
import { getGoodsList } from '@/api/store'
|
||||
import MescrollMixin from '@/components/mescroll-uni/mescroll-mixins.js'
|
||||
|
||||
@ -107,7 +107,8 @@ export default {
|
||||
is_recommend: this.is_recommend == 1 ? 1 : '',
|
||||
sort_by_price: priceSort,
|
||||
sort_by_sales: saleSort,
|
||||
keyword
|
||||
keyword,
|
||||
city_id: (this.cityInfo && this.cityInfo.id) || 0,
|
||||
}).then(({ data }) => {
|
||||
let curPageData = data.lists
|
||||
let curPageLen = curPageData.length
|
||||
@ -119,7 +120,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['sysInfo']),
|
||||
...mapGetters(['sysInfo', 'cityInfo']),
|
||||
navHeight() {
|
||||
return this.sysInfo.navHeight + 'px'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user