diff --git a/pages/index/index.vue b/pages/index/index.vue index 0de3ecd..1ce2725 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -5,7 +5,8 @@ - + {{street}} @@ -22,8 +23,8 @@ - + @@ -168,9 +169,9 @@ this.Area() //this.setPermissions() - - + + // this.openTongZhi() uni.$on('connectstatusChange', (connectstatus) => { var connectstr = '' @@ -184,7 +185,9 @@ }) }, - + onTabItemTap(e) { + console.log(e) + }, onReachBottom() { if (this.status == 'nomore') return; this.status = 'loading'; @@ -201,7 +204,7 @@ this.$bus.$on('value-updated', (newValue) => { // 更新父组件的值 this.street = newValue.split(',')[0] - + }); }, // #ifdef APP-PLUS @@ -216,11 +219,11 @@ this.isFshow = false this.show = true } else if (20 < scrollTop && scrollTop <= 100) { - this.backColor = 'rgba(255, 255, 255, 0.5)' + this.backColor = 'rgba(255, 255, 255, 0.5)' this.isFshow = true this.show = false } else if (scrollTop > 100) { - this.backColor = 'rgba(252, 252, 252, 1.0)' + this.backColor = 'rgba(252, 252, 252, 1.0)' this.isFshow = true this.show = false } @@ -228,9 +231,9 @@ }, // #endif - beforeDestroy () { - // 销毁监听事件 - this.$bus.$off('value-updated') + beforeDestroy() { + // 销毁监听事件 + this.$bus.$off('value-updated') }, methods: { @@ -267,7 +270,13 @@ this.backColor = 'rgba(252, 252, 252, 1.0)' this.isFshow = true - + uni.setTabBarItem({ + index: 0, + text: '', + id:'1', + iconPath: '/static/tabbar_icon/top.png', + selectedIconPath: '/static/tabbar_icon/top.png' + }); } @@ -332,10 +341,10 @@ confirm(e) { this.street = e.value[1].name - - this.$nextTick(() => { - this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code); - + + this.$nextTick(() => { + this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code); + }) this.showPicker = false }, @@ -412,7 +421,7 @@ graphicLstApi(this.where).then(res => { this.cateGoods.push(...res.data.list) - + if (res.data.list.length < this.where.limit) this.status = 'nomore' if (this.where.page == 1 && res.data.list.length <= 0) this.emptyShow = true @@ -476,11 +485,12 @@ let town = res.data.address_reference.town.title let street_id = res.data.address_reference.town.id this.street = res.data.address_component.street - + this.$nextTick(() => { - this.$bus.$emit('value-updated',this.street + ',' +street_id); - - }) + this.$bus.$emit('value-updated', this.street + ',' + + street_id); + + }) }).catch(err => { uni.showToast({ title: err, diff --git a/pages/short_video/appSwiper/index.nvue b/pages/short_video/appSwiper/index.nvue index 802388f..2c9e80f 100644 --- a/pages/short_video/appSwiper/index.nvue +++ b/pages/short_video/appSwiper/index.nvue @@ -320,7 +320,7 @@ - + diff --git a/pages/short_video/nvueSwiper/index.nvue b/pages/short_video/nvueSwiper/index.nvue index 7103afe..4dac07e 100644 --- a/pages/short_video/nvueSwiper/index.nvue +++ b/pages/short_video/nvueSwiper/index.nvue @@ -15,9 +15,14 @@ - - + --> + + + @@ -249,7 +255,7 @@ - +