diff --git a/components/WaterfallsFlow/WaterfallsFlows.vue b/components/WaterfallsFlow/WaterfallsFlows.vue index a5312c8..faf88dc 100644 --- a/components/WaterfallsFlow/WaterfallsFlows.vue +++ b/components/WaterfallsFlow/WaterfallsFlows.vue @@ -7,7 +7,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/components/WaterfallsFlowItem/WaterfallsFlowItems.vue b/components/WaterfallsFlowItem/WaterfallsFlowItems.vue index c6ceca1..f6d8ee6 100644 --- a/components/WaterfallsFlowItem/WaterfallsFlowItems.vue +++ b/components/WaterfallsFlowItem/WaterfallsFlowItems.vue @@ -27,7 +27,7 @@ type: Object, require: true }, - index: { + heightx: { type: string, require: true } diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index cb89aa5..b194bc8 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -658,6 +658,11 @@ that.getConfig(); uni.hideLoading(); }, + + onHide(){ + + this.CartCount=0 + }, /** * 用户点击右上角分享 */ diff --git a/pages/index/index.vue b/pages/index/index.vue index 3fbc553..841f400 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -2,15 +2,15 @@ - + + style=" margin-left: 20rpx"> - {{ street }} + {{ street }} - + + + + - + + + --> + + + + + + + @@ -55,6 +69,24 @@ --> + + + + + + 全部分类 + + + + 点击进入分类 + + + + {{item.cate_name}} + + + + @@ -108,7 +140,7 @@ }, data() { return { - isNewRenderDone: false, //锁的作用 + isAuto: false, //没有授权的不会自动授权 isShowAuth: false, //是否隐藏授权 activeStyle: { @@ -149,11 +181,12 @@ streeta_id: '', street: '', bgColor: '', - backColor: 'rgba(252, 252, 252, 0)', + backColor: 0, isFshow: false, scrollTop: 0, show: true, - userid: '' + userid: '', + current:0 } }, onShow() { @@ -211,6 +244,22 @@ }) + }, + onHide() { + this.getGoods(true) + + uni.pageScrollTo({ + selector: ".Circle_friends", + scrollTop: 0 + }) + uni.setTabBarItem({ + index: 0, + text: "泸州", + iconPath: '/static/tabbar_icon/a.png', + selectedIconPath: '/static/tabbar_icon/a-a.png' + }); + this.isFshow = false + }, onReachBottom() { @@ -218,8 +267,7 @@ if (this.productList.length > 0) { setTimeout(() => { this.getGoods(false); - }, 500) - + }, 1000) } else { this.get_host_product(); } @@ -240,6 +288,7 @@ }); }, + // #ifdef APP-PLUS onPageScroll(e) { @@ -248,7 +297,7 @@ // 导航条颜色透明渐变 if (scrollTop <= 20) { - this.backColor = 'rgba(252, 252, 252, 0.0)' + this.backColor = 0 this.isFshow = false this.show = true uni.setTabBarItem({ @@ -258,11 +307,11 @@ selectedIconPath: '/static/tabbar_icon/a-a.png' }); } else if (20 < scrollTop && scrollTop <= 100) { - this.backColor = 'rgba(255, 255, 255, 0.5)' + this.backColor = 0.5 this.isFshow = true this.show = false } else if (scrollTop > 100) { - this.backColor = 'rgba(252, 252, 252, 1.0)' + this.backColor = 1 this.isFshow = true this.show = false this.$nextTick(() => { @@ -283,12 +332,18 @@ this.$bus.$off('value-updated') }, methods: { + //弹出 + open() { + this.$refs.popup.open() + }, + //隐藏 + cuo() { + this.$refs.popup.close() + }, // 授权回调 onLoadFun(data) { this.getUserInfo(); - this.isShowAuth = false; - }, /** * 获取个人用户信息 @@ -350,7 +405,7 @@ // console.log("header 你已经到底部了"); } if (scrollTop <= 20) { - this.backColor = 'rgba(252, 252, 252, 0.0)' + this.backColor = 0 this.isFshow = false uni.setTabBarItem({ index: 0, @@ -359,10 +414,10 @@ selectedIconPath: '/static/tabbar_icon/a-a.png' }); } else if (20 < scrollTop && scrollTop <= 100) { - this.backColor = 'rgba(255, 255, 255, 0.5)' + this.backColor = 0.5 this.isFshow = true } else if (scrollTop > 100) { - this.backColor = 'rgba(252, 252, 252, 1.0)' + this.backColor = 1 this.isFshow = true uni.setTabBarItem({ @@ -379,6 +434,7 @@ tabsChange1(item) { + this.getArticleList(item.article_category_id) this.streeta_id = item.id this.tabsData1.tabsActive = item.index @@ -542,11 +598,12 @@ data } = await getTopicList() this.tabsData.list = [{ - cate_name: "推荐", + cate_name: "热门推荐", category_id: 0 }, ...data] }, tabsChange(item) { + console.log(item) this.productList = [] this.where.category_id = item.category_id this.emptyShow = false @@ -555,7 +612,22 @@ this.getGoods(true) this.street_id = item.id this.tabsData.tabsActive = item.index + this.current = item.index + }, + tabsChange2(item,index) { + // console.log(item,index) + + this.productList = [] + this.where.category_id = item.category_id + this.$refs.popup.close() + this.emptyShow = false + this.loadend = false; + this.$set(this.where, 'page', 1) + this.getGoods(true) + this.tabsData.tabsActive = index + this.current = index + }, selfLocation() { @@ -732,6 +804,57 @@ background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%); } + .classpage { + width: 100%; + height: calc(100vh - 50px); + background-color: #fff; + position: relative; + padding-top: 40rpx; + padding-left: 40rpx; + padding-right: 10rpx; + + .classpage-one { + + text-align: center; + + image { + position: absolute; + right: 25rpx; + width: 42rpx; + height: 42rpx; + } + } + + .classpage-two { + font-size: 26rpx; + font-family: PingFang SC-Regular, PingFang SC; + font-weight: 400; + color: #333333; + margin-top: 77rpx; + } + + .classpage-three { + display: flex; + flex-direction: row; + flex-wrap: wrap; + margin-top: 35rpx; + + view { + margin-right: 20rpx; + margin-bottom: 14rpx; + width: 210rpx; + height: 81rpx; + line-height: 81rpx; + text-align: center; + background: #FFFFFF; + border-radius: 11rpx 11rpx 11rpx 11rpx; + opacity: 1; + border: 2rpx solid #707070; + } + + } + } + // .bg-img { // position: absolute; // width: 100%; @@ -792,6 +915,8 @@ padding-top: 25rpx; /* #endif */ // background-color: #e5e5e5; + background: url('@/static/images/bg2.png') no-repeat; + background-size: 100% 100%; padding-right: 20rpx; @@ -810,6 +935,7 @@ .iconfont { opacity: 0; + color: #fff; font-size: 30rpx; font-size: 35.09rpx; } @@ -827,8 +953,9 @@ } /deep/.u-tabs__wrapper__nav__item { - padding: 0 0px; - padding-right: 10rpx; + // padding: 0 0px; + padding-left: 0rpx; + padding-right: 20rpx; } .search_wrapper { @@ -841,6 +968,23 @@ margin: 0 auto; margin-bottom: 21.05rpx; // margin-left: -20rpx; + position: relative; + } + + .tabs_wrapper-img { + width: 70rpx; + height: 70rpx; + position: absolute; + z-index: 888; + background-color: #fff; + right: 0; + top: 0; + + image { + width: 40rpx; + height: 40rpx; + margin-top: 10rpx; + } } .empty_wrapper { diff --git a/pages/plantGrass/plant_detail/index.vue b/pages/plantGrass/plant_detail/index.vue index d7a6d6f..8059095 100644 --- a/pages/plantGrass/plant_detail/index.vue +++ b/pages/plantGrass/plant_detail/index.vue @@ -75,7 +75,7 @@ - 查看TA提到的宝贝({{followDetail.relevance.length}}) @@ -86,7 +86,36 @@ - + + + + + {{followDetail.content}} diff --git a/pages/product/list/index.vue b/pages/product/list/index.vue index 6dbbe7f..765c3cb 100644 --- a/pages/product/list/index.vue +++ b/pages/product/list/index.vue @@ -103,12 +103,12 @@ @change="menuAction($event, item.attrValue,item)"> . . . --> - ... - + diff --git a/pages/short_video/appSwiper/index.nvue b/pages/short_video/appSwiper/index.nvue index 212a0f7..1daca8b 100644 --- a/pages/short_video/appSwiper/index.nvue +++ b/pages/short_video/appSwiper/index.nvue @@ -149,7 +149,7 @@ - + {{goods.spu.store_name.slice(0,12)}}... {{item.relevance.length}} - + - 编辑 + 编辑 - 删除 + 删除 @@ -358,6 +358,7 @@ import { getUserInfo } from '@/api/user.js'; +import { navigateBack } from '../../../libs/uniApi'; export default { computed: configMap({ statusBarHeight: 0, @@ -501,7 +502,7 @@ this.wHeight = uni.getSystemInfoSync().screenHeight; //获取屏幕高度 this.boxStyle.height = this.wHeight; //改变视频高度 this.get() //这一步,加载视频数据 - // if (this.isLogin) this.getUserInfo() + if (this.isLogin) this.getUserInfo() }, onReady() {}, methods: { @@ -637,17 +638,23 @@ content: '确定要删除该话题么?', success: function(res) { if (res.confirm) { + console.log(item.community_id) deletePlantApi(item.community_id).then(res => { - if (res.status === 200) { + console.log(res) + if (res.status == 200) { that.$util.Tips({ title: res.message }); - setTimeout(function() { - uni.redirectTo({ - url: '/pages/plantGrass/plant_user/index?id=' + - item.uid + // setTimeout(function() { + // uni.redirectTo({ + // url: '/pages/plantGrass/plant_user/index?id=' + + // item.uid + // }) + // }, 1000); + uni.navigateBack({ + delta:1, }) - }, 1000); + } }) } else if (res.cancel) { @@ -855,6 +862,7 @@ }, scrolls(event) { + this.showManage = false; this.isDragging = event.isDragging; if (!event.isDragging) { //isDragging:判断用户是不是在滑动,滑动:true,停止滑动:false。我们要用户停止滑动时才给 k 赋值,这样就可以避免很多麻烦 @@ -1116,7 +1124,7 @@ /* #ifdef MP */ padding-top: 200rpx; /* #endif */ - background-color: #000000; + // background-color: #000000; background-color: #F5F5F5; .goods_item { @@ -1240,6 +1248,7 @@ height: 86rpx; + .icon-xiangzuo { margin-left: 10px; width: 20px; @@ -1405,7 +1414,7 @@ box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1); padding: 0 8px; position: absolute; - bottom: 10px; + bottom: 185px; right: 60px; border-radius: 8px; @@ -1541,7 +1550,8 @@ .product-item { width: 444rpx; height: 136rpx; - background: rgba(0, 0, 0, .55); + // background: rgba(0, 0, 0, .55); + background-color: #F4F4F4; border-radius: 12rpx; padding: 16rpx 15rpx; margin-right: 30rpx; @@ -1587,7 +1597,8 @@ .name { font-size: 24rpx; width: 286rpx; - color: #fff; + // color: #fff; + color: #000; } .product-price { @@ -1602,7 +1613,8 @@ .sm, .money { - color: #ffffff; + // color: #ffffff; + color: #000; font-size: 24rpx; } } diff --git a/pages/store/merchantDetails/index.vue b/pages/store/merchantDetails/index.vue index 5d4cff4..b45d881 100644 --- a/pages/store/merchantDetails/index.vue +++ b/pages/store/merchantDetails/index.vue @@ -1,65 +1,6 @@ @@ -109,11 +54,6 @@ } }, methods: { - navgo(url) { - uni.navigateTo({ - url - }) - }, getGoodsDetails(id) { getGoodsDetails(id).then(res => { this.resData = res.data @@ -198,100 +138,69 @@ \ No newline at end of file + diff --git a/pages/supply_chains/supply_chains.vue b/pages/supply_chains/supply_chains.vue index 877bf14..62c12e2 100644 --- a/pages/supply_chains/supply_chains.vue +++ b/pages/supply_chains/supply_chains.vue @@ -2,16 +2,15 @@ - + - + - {{street}} + {{street}} - + @@ -117,7 +116,7 @@ - + {{loadTitle}} @@ -199,7 +198,7 @@ }, isshow: false, locationArr: ({}), - + bgColor: '', showPicker: false, columnData: [], @@ -230,7 +229,7 @@ street: '', bgColor: '', isFshow: false, - backColor: 'rgba(252, 252, 252, 0)', + backColor: 0, loadend: false, loading: false, loadTitle: '加载更多', @@ -238,14 +237,12 @@ }, onPullDownRefresh() { - this.list(true); this.Area() uni.stopPullDownRefresh() }, - onLoad() { - + this.list() this.Area() @@ -264,7 +261,6 @@ }) }, - onReachBottom() { if (this.productList.length > 0) { setTimeout(() => { @@ -274,7 +270,7 @@ this.list() } - + }, beforeDestroy() { // 销毁监听事件 @@ -301,26 +297,24 @@ } }, - // #ifdef APP-PLUS onPageScroll(e) { const scrollTop = e.scrollTop; if (scrollTop <= 20) { - this.backColor = 'rgba(252, 252, 252, 0)' + this.backColor = 0 this.isFshow = false } else if (20 < scrollTop && scrollTop <= 100) { - this.backColor = 'rgba(252, 252, 252, .5)' + this.backColor = 0.5 this.isFshow = true } else if (scrollTop > 100) { - this.backColor = 'rgba(252, 252, 252, 1)' + this.backColor = 0.5 this.isFshow = true } }, // #endif - methods: { navaction(val) { uni.navigateTo({ @@ -329,60 +323,33 @@ }, //获取商品列表 - list(isPage,id) { - if (id) { - - let that = this; - if (that.loadend) return; - if (that.loading) return; - - if (isPage === true) that.$set(that, 'productList', []); - - that.loading = true; - that.loadTitle = ''; - spuInfo(id,that.where).then(res => { - let list = res.data.list; - let productList = that.$util.SplitArray(list, that.productList); - let loadend = list.length < that.where.limit; - that.loadend = loadend; - that.loading = false; - that.loadTitle = loadend ? '已全部加载' : '加载更多'; - that.$set(that, 'productList', productList); - // console.log(that.productList) - that.$set(that.where, 'page', that.where.page + 1); - if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true - }).catch(err => { - that.loading = false; - that.loadTitle = '加载更多'; - }); - - - } else { - let that = this; - if (that.loadend) return; - if (that.loading) return; - - if (isPage === true) that.$set(that, 'productList', []); - - that.loading = true; - that.loadTitle = ''; - getProductHot(that.where.page,that.where.limit).then(res => { - let list = res.data.list; - let productList = that.$util.SplitArray(list, that.productList); - let loadend = list.length < that.where.limit; - that.loadend = loadend; - that.loading = false; - that.loadTitle = loadend ? '已全部加载' : '加载更多'; - that.$set(that, 'productList', productList); - // console.log(that.productList) - that.$set(that.where, 'page', that.where.page + 1); - if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true - }).catch(err => { - that.loading = false; - that.loadTitle = '加载更多'; - }); - - } + list(isPage, id) { + + let that = this; + if (that.loadend) return; + if (that.loading) return; + + if (isPage === true) that.$set(that, 'productList', []); + + that.loading = true; + that.loadTitle = ''; + getProductHot(that.where.page, that.where.limit).then(res => { + let list = res.data.list; + let productList = that.$util.SplitArray(list, that.productList); + let loadend = list.length < that.where.limit; + that.loadend = loadend; + that.loading = false; + that.loadTitle = loadend ? '已全部加载' : '加载更多'; + that.$set(that, 'productList', productList); + // console.log(that.productList) + that.$set(that.where, 'page', that.where.page + 1); + if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true + }).catch(err => { + that.loading = false; + that.loadTitle = '加载更多'; + }); + + }, @@ -413,13 +380,13 @@ if (scrollTop <= 20) { - this.backColor = 'rgba(252, 252, 252, 0)' + this.backColor = 0 this.isFshow = false } else if (20 < scrollTop && scrollTop <= 100) { - this.backColor = 'rgba(252, 252, 252, .5)' + this.backColor = 0.5 this.isFshow = true } else if (scrollTop > 100) { - this.backColor = 'rgba(252, 252, 252, 1)' + this.backColor = 1 this.isFshow = true @@ -447,8 +414,8 @@ this.street = e.value[1].name this.street_id = e.value[1].code this.town = e.value[1].name - this.productList=[] - this.list(true,this.street_id) + this.productList = [] + this.list(true, this.street_id) this.$nextTick(() => { this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code); @@ -538,8 +505,8 @@ this.street = e.value[1].name this.street_id = e.value[1].code this.town = e.value[1].name - this.productList=[] - this.list(true,this.street_id) + this.productList = [] + this.list(true, this.street_id) }, selfLocation() { if (uni.getStorageSync('loction') == true) { @@ -674,7 +641,8 @@ /* #ifdef H5 */ padding-top: 25rpx; /* #endif */ - // background-color: #e5e5e5; + background: url('@/static/images/bg2.png') no-repeat; + background-size: 100% 100%; padding-right: 20rpx; diff --git a/static/images/bg2.png b/static/images/bg2.png index feb62ae..ec106b3 100644 Binary files a/static/images/bg2.png and b/static/images/bg2.png differ