| | |
| | | if (this.query.category) {
|
| | | await this.getDetail()
|
| | | }
|
| | | this.refreshShopNum()
|
| | |
|
| | | // await this.getList('post')
|
| | | // this.
|
| | |
| | | await this.getList('post')
|
| | | uni.stopPullDownRefresh()
|
| | | },
|
| | | methods: {
|
| | | methods: { |
| | | async refreshShopNum() { |
| | | this.shoptotal = await this.$store.dispatch('submitShopping', dto); |
| | | },
|
| | | async getDetail() {
|
| | | this.$message.showLoading()
|
| | | //获取到分类的详情信息
|
| | |
| | | })
|
| | | this.$message.hideLoading()
|
| | | if (code === 0) {
|
| | | item.shopnum += addnum
|
| | | item.shopnum += addnum |
| | | this.$forceUpdate() |
| | | |
| | | this.refreshShopNum() |
| | | |
| | | }
|
| | | this.$forceUpdate()
|
| | | },
|
| | | }
|
| | | }
|