From 94d3e040456535d8c363d0acfd3c61196db1d489 Mon Sep 17 00:00:00 2001 From: ld0104 <3037885725@qq.com> Date: Thu, 27 Oct 2022 18:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E8=B6=B3=E8=BF=B9=EF=BC=8C?= =?UTF-8?q?=E8=AF=84=E6=B5=8B=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 3 +- .../Evaluations/EvaluationDetail/index.vue | 149 +++++--- pages/shop/GoodsFoot/index.vue | 317 +++++++++++++----- pages/shop/brands/brandAll/index.vue | 45 ++- 4 files changed, 387 insertions(+), 127 deletions(-) diff --git a/pages.json b/pages.json index e191035..3492b6f 100644 --- a/pages.json +++ b/pages.json @@ -103,7 +103,8 @@ { "path": "pages/shop/GoodsFoot/index", "style": { - "navigationBarTitleText": "我的足迹" + "navigationBarTitleText": "我的足迹", + "navigationStyle": "custom" } }, { diff --git a/pages/shop/Evaluations/EvaluationDetail/index.vue b/pages/shop/Evaluations/EvaluationDetail/index.vue index d68dbb0..f200a74 100644 --- a/pages/shop/Evaluations/EvaluationDetail/index.vue +++ b/pages/shop/Evaluations/EvaluationDetail/index.vue @@ -51,7 +51,7 @@ - + + + + + + {{index+1}} + {{item.content}} + + + @@ -112,10 +123,7 @@ --> 立即购买 - - - - + @@ -130,7 +138,12 @@ id: 0, info: {}, feelCurrent: 0, - accessibilityCurrent: 0, + accessibilityCurrent: 0, + editableTabs:[], + tagStyle: { + p: 'text-indent:2em;font-family: PingFang SC;font-size:28rpx;text-indent: 42rpx;', + img: 'padding:0;margin:0;font-size:0;display:block;' + } }; }, onLoad() { @@ -144,8 +157,6 @@ } }, methods: { - - getCollection: function() { let param={} param.id=this.id @@ -167,6 +178,7 @@ getEvaluationDetail(id).then(res => { this.info = res.data; this.isCollect=this.info.isCollect; + this.$set(this,'editableTabs',res.data.editableTabs) uni.hideLoading(); }) }, @@ -325,7 +337,85 @@ } } - .wrapper { + // .wrapper { + // margin: 20rpx 32rpx; + // padding: 16rpx 24rpx; + // width: 686rpx; + // background: #F5F6F8; + // box-shadow: 0rpx 10rpx 16rpx 0rpx rgba(0,0,0,0.15); + // border-radius: 16rpx; + // .item { + // padding-bottom: 22rpx; + // .title-box { + // font-size: 30rpx; + // font-family: SourceHanSansSCVF; + // font-weight: 600; + // color: #3A3A3C; + // line-height: 23px; + // .num { + // width: 34rpx; + // height: 34rpx; + // border-radius: 50%; + // background: #2DB5AE; + // font-size: 20rpx; + // font-family: PingFang SC; + // font-weight: 600; + // color: #FFFFFF; + // line-height: 34rpx; + // text-align: center; + // margin-right: 8rpx; + // } + // } + // .info-text { + // margin-bottom: 24rpx; + // font-size: 24rpx; + // font-family: PingFang SC; + // font-weight: 500; + // color: #3A3A3C; + // line-height: 32rpx; + // text-indent: 42rpx; + // } + // .images-box { + // padding-bottom: 24rpx; + // position: relative; + // swiper { + // width: 638rpx; + // height: 360rpx; + // border-radius: 16rpx; + // overflow: hidden; + // swiper-item { + // border-radius: 16rpx; + // image { + // width: 638rpx; + // height: 360rpx; + // border-radius: 16rpx; + // } + // } + // } + // .dot-box { + // position: absolute; + // bottom: 40rpx; + // left: 50%; + // transform: translateX(-50%); + // .dot { + // width: 8rpx; + // height: 8rpx; + // background: #FFFFFF; + // border-radius: 6rpx; + // margin: 0rpx 8rpx; + // transition: width .5s cubic-bezier(.18,.89,.17,.88); + // } + // .on { + // width: 36rpx; + // background: #2DB5AE; + // transition: width .5s cubic-bezier(.18,.89,.17,.88); + // } + // } + // } + // } + // } + + .wrapper-box { margin: 20rpx 32rpx; padding: 16rpx 24rpx; width: 686rpx; @@ -335,6 +425,7 @@ .item { padding-bottom: 22rpx; .title-box { + // padding: 0 30rpx; font-size: 30rpx; font-family: SourceHanSansSCVF; font-weight: 600; @@ -363,46 +454,12 @@ line-height: 32rpx; text-indent: 42rpx; } - .images-box { - padding-bottom: 24rpx; - position: relative; - swiper { - width: 638rpx; - height: 360rpx; - border-radius: 16rpx; - overflow: hidden; - swiper-item { - border-radius: 16rpx; - image { - width: 638rpx; - height: 360rpx; - border-radius: 16rpx; - } - } - } - .dot-box { - position: absolute; - bottom: 40rpx; - left: 50%; - transform: translateX(-50%); - .dot { - width: 8rpx; - height: 8rpx; - background: #FFFFFF; - border-radius: 6rpx; - margin: 0rpx 8rpx; - transition: width .5s cubic-bezier(.18,.89,.17,.88); - } - .on { - width: 36rpx; - background: #2DB5AE; - transition: width .5s cubic-bezier(.18,.89,.17,.88); - } - } - } + } } + + .footer { position: fixed; bottom: 0; diff --git a/pages/shop/GoodsFoot/index.vue b/pages/shop/GoodsFoot/index.vue index a405eef..c4f4aba 100644 --- a/pages/shop/GoodsFoot/index.vue +++ b/pages/shop/GoodsFoot/index.vue @@ -1,5 +1,5 @@ + diff --git a/pages/shop/brands/brandAll/index.vue b/pages/shop/brands/brandAll/index.vue index 9b63d02..aec0f5e 100644 --- a/pages/shop/brands/brandAll/index.vue +++ b/pages/shop/brands/brandAll/index.vue @@ -13,14 +13,14 @@ - + 搜索 + show-scrollbar="false" @scroll="scrollLoad($event)"> @@ -40,7 +40,7 @@ - {{b}} @@ -60,13 +60,48 @@ brandList: {}, navRight: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ#', scollId: '', - isLight: -1 + isLight: -1, + rectInfoList:[] } }, onLoad() { this.getBrandList(); + this.getRectInfo() }, methods: { + getRectInfo(){ + var top=0 + var bottom=0 + var temp=0 + for(let key in this.brandList){ + let view=uni.createSelectorQuery().select('#item-'+key); + view.boundingClientRect(data=>{ + top=temp; + bottom=top+data.height; + temp=bottom; + this.rectInfoList.push({ + 'top':parseInt(top), + 'bottom':parseInt(bottom), + key + }) + }).exec(); + } + }, + scrollLoad(e){ + if(this.rectInfoList.length==0){ + this.getRectInfo() + } + let scrollTop=e.target.scrollTop; + for(let i=0;i=top && scrollTop