修改首页功能

This commit is contained in:
wangxiaowei
2026-04-23 10:41:27 +08:00
parent 7f8f15b809
commit a3edea96af
10 changed files with 45 additions and 37 deletions

View File

@ -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'
}