zhengshuiqi 3 years ago
parent
commit
f327c6a7d6
  1. 82
      pages/index/index2.vue

82
pages/index/index2.vue

@ -116,7 +116,8 @@
</view> </view>
</scroll-view> </scroll-view>
<!-- HONLIST3 --> <!-- HONLIST3 -->
<scroll-view class="spike1 page_padding" scroll-x="true" :show-scrollbar="false" <!-- 写好了勿动 -->
<!-- <scroll-view class="spike1 page_padding" scroll-x="true" :show-scrollbar="false"
v-if="item.zone_code=='HONLIST3' && item.zone_status=='NORMAL'" @scroll="scrollhot"> v-if="item.zone_code=='HONLIST3' && item.zone_status=='NORMAL'" @scroll="scrollhot">
<view class="spike1_item" v-for="(item1,index1) in item.blocks" :key="item1.block_id"> <view class="spike1_item" v-for="(item1,index1) in item.blocks" :key="item1.block_id">
<view class="item_img " <view class="item_img "
@ -129,7 +130,7 @@
<view class="spike1_item_text1">{{item1.block_title2}}</view> <view class="spike1_item_text1">{{item1.block_title2}}</view>
</view> </view>
</view> </view>
</scroll-view> </scroll-view> -->
<!-- 标题 --> <!-- 标题 -->
@ -436,6 +437,17 @@
methods: { 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() { getIndex() {
let data = { let data = {
@ -621,6 +633,11 @@
this.info.push(item) this.info.push(item)
console.log(item, 'info') console.log(item, 'info')
} }
if (item.zone_code == 'HONLIST1') {
item.blocks.map(item1 => {
// console.log('HONLIST2',item1)
})
}
if (item.zone_code == 'HONLIST2') { if (item.zone_code == 'HONLIST2') {
item.blocks.map(item1 => { item.blocks.map(item1 => {
// console.log('HONLIST2',item1) // console.log('HONLIST2',item1)
@ -658,6 +675,7 @@
uni.navigateTo({ uni.navigateTo({
url: '../productDetails/index' + goodid + '&img=1' url: '../productDetails/index' + goodid + '&img=1'
}) })
console.log(44444444)
} else { } else {
uni.navigateTo({ uni.navigateTo({
url: '../productDetails/index'+goodid+'&img=1' url: '../productDetails/index'+goodid+'&img=1'
@ -837,6 +855,19 @@
.page_padding_left { .page_padding_left {
padding-left: 24.67rpx; 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{ // .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;
}
}
}
</style> </style>

Loading…
Cancel
Save