From f327c6a7d6dc742a6dd8959a349fb68a7f654828 Mon Sep 17 00:00:00 2001 From: zhengshuiqi Date: Fri, 16 Dec 2022 17:46:26 +0800 Subject: [PATCH] 1 --- pages/index/index2.vue | 82 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 80 insertions(+), 2 deletions(-) diff --git a/pages/index/index2.vue b/pages/index/index2.vue index 5badd04..0b2926a 100644 --- a/pages/index/index2.vue +++ b/pages/index/index2.vue @@ -116,7 +116,8 @@ - + @@ -436,6 +437,17 @@ methods: { + handlechange(e) { + this.mycurrent = e.detail.current + }, + scrollhot(e) { + // console.log(e) + // let i = e.scrollLeft/200 + // this.hot_index = i + // console.log('滚动了',this.hot_index) + // this.start(this.hot_index) + // this.end(this.hot_index) + }, // 获取页数据配置 getIndex() { let data = { @@ -621,6 +633,11 @@ this.info.push(item) console.log(item, 'info') } + if (item.zone_code == 'HONLIST1') { + item.blocks.map(item1 => { + // console.log('HONLIST2',item1) + }) + } if (item.zone_code == 'HONLIST2') { item.blocks.map(item1 => { // console.log('HONLIST2',item1) @@ -658,6 +675,7 @@ uni.navigateTo({ url: '../productDetails/index' + goodid + '&img=1' }) + console.log(44444444) } else { uni.navigateTo({ url: '../productDetails/index'+goodid+'&img=1' @@ -837,6 +855,19 @@ .page_padding_left { padding-left: 24.67rpx; } + .page_margin { + margin-left: 26.37rpx; + margin-right: 26.67rpx; + margin-bottom: 10rpx; + box-sizing: border-box; + margin-top: 10rpx; + background-color: #000000; + } + .page_padding_left1 { + padding-left: 5.67rpx; + padding-right: 5.67rpx; + // padding-top: 90rpx; + } // .navigation1{ @@ -1468,4 +1499,51 @@ } } + + .uni-margin-wrap { + width: 100%; + height: 100%; + // margin-top: 45.33rpx; + // margin-top: 10rpx; + margin-bottom: 45.33rpx; + + .swiper { + + // height: 650.33rpx; + // width: 720rpx; + // height: 100%; + /deep/ .uni-swiper { + height: auto; + } + + .swiper-item { + display: block; + // width: 720rpx; + height: 100%; + + + // line-height: 373.33rpx; + text-align: center; + color: white; + + image { + width: 100%; + height: 100%; + } + } + + .uni-bg-red { + background-color: red; + } + + .uni-bg-green { + background-color: green; + } + + .uni-bg-blue { + background-color: blue; + } + } + } +