diff --git a/pageA/bindinges/bindinges.vue b/pageA/bindinges/bindinges.vue index 7a95643..ef3f584 100644 --- a/pageA/bindinges/bindinges.vue +++ b/pageA/bindinges/bindinges.vue @@ -133,8 +133,8 @@ title: res.message, type: 'success', }) - uni.switchTab({ - url: '/pages/index/index' + uni.navigateTo({ + url: '/pageA/topick/topick' }); } else { this.$refs.uToast.show({ diff --git a/pageB/components/userinfo/index.vue b/pageB/components/userinfo/index.vue index a28d2ae..b9ed88b 100644 --- a/pageB/components/userinfo/index.vue +++ b/pageB/components/userinfo/index.vue @@ -24,7 +24,7 @@ {{ comment_num }} - + @@ -100,18 +100,20 @@ is_collect: this.list.is_collect || false, is_content: false, is_cart: false, + cart_num: 0, comment_num: this.list.comment_num || 0, - item: this.list || {} + item: this.list || {}, } }, watch: { list(newValue, old) { - // console.log(newValue); + // console.log(newValue.goods.length); this.item = newValue || {}; this.is_follow = this.list.is_attention || false; this.is_like = this.list.is_like || false; this.is_collect = this.list.is_collect || false; this.comment_num = this.list.comment_num || 0; + this.cart_num = newValue.goods.length; }, cart(newValue, old) { // console.log(newValue); diff --git a/pageE/mine/ArticleDetails.vue b/pageE/mine/ArticleDetails.vue index fb69165..b93c53b 100644 --- a/pageE/mine/ArticleDetails.vue +++ b/pageE/mine/ArticleDetails.vue @@ -1,6 +1,24 @@ \ No newline at end of file