|
@@ -1,8 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view class="activity" :class="isRequest ? 'active' :''">
|
|
<view class="activity" :class="isRequest ? 'active' :''">
|
|
- <view class="topBanner">
|
|
|
|
- <image src="https://admin-b.caimei365.com/userfiles/1/images/photo/2020/08/icon-topbanner%402x.png" mode=""></image>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="topBanner"><image src="https://admin.caimei365.com/userfiles/1/images/photo/2020/08/top-bg%402x.png" mode=""></image></view>
|
|
<view class="activity-main clearfix" :class="inputActive">
|
|
<view class="activity-main clearfix" :class="inputActive">
|
|
<view class="home-hotmaintab-fixed">
|
|
<view class="home-hotmaintab-fixed">
|
|
<view class="home-flex-tab show">
|
|
<view class="home-flex-tab show">
|
|
@@ -260,7 +258,7 @@
|
|
return {
|
|
return {
|
|
title: '采美年中大促,折扣满满,全场低至9元~',
|
|
title: '采美年中大促,折扣满满,全场低至9元~',
|
|
path: '/h5/pages/activity/activity_mid',
|
|
path: '/h5/pages/activity/activity_mid',
|
|
- imageUrl:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/08/icon-share%402x.png'
|
|
|
|
|
|
+ imageUrl:'https://admin.caimei365.com/userfiles/1/images/photo/2020/08/share%402x.png'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onPageScrollTop(){
|
|
onPageScrollTop(){
|
|
@@ -272,8 +270,6 @@
|
|
onCreateSelectorQuery(event,index,classIndex){
|
|
onCreateSelectorQuery(event,index,classIndex){
|
|
let self = this
|
|
let self = this
|
|
uni.createSelectorQuery().select(classIndex).boundingClientRect((res)=>{//最外层盒子节点4
|
|
uni.createSelectorQuery().select(classIndex).boundingClientRect((res)=>{//最外层盒子节点4
|
|
- console.log('滚动条的高度==========>',event.scrollTop)
|
|
|
|
- console.log('元素节点距离顶部的高度==========>', res.top)
|
|
|
|
if(res.dataset.index == index){
|
|
if(res.dataset.index == index){
|
|
if( event.scrollTop == res.top ){
|
|
if( event.scrollTop == res.top ){
|
|
self.headTab.TabCur = index;
|
|
self.headTab.TabCur = index;
|
|
@@ -290,7 +286,7 @@
|
|
return {
|
|
return {
|
|
title: '采美年中大促,折扣满满,全场低至9元~',
|
|
title: '采美年中大促,折扣满满,全场低至9元~',
|
|
path: '/h5/pages/activity/activity_mid',
|
|
path: '/h5/pages/activity/activity_mid',
|
|
- imageUrl:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/08/icon-share%402x.png'
|
|
|
|
|
|
+ imageUrl:'https://admin.caimei365.com/userfiles/1/images/photo/2020/08/share%402x.png'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onPageScroll(e){//实时获取到滚动的值
|
|
onPageScroll(e){//实时获取到滚动的值
|
|
@@ -569,7 +565,7 @@
|
|
width: 100%;
|
|
width: 100%;
|
|
height:auto;
|
|
height:auto;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- background: url(https://admin-b.caimei365.com/userfiles/1/images/photo/2020/08/icon-tbabg%402x.png)no-repeat;
|
|
|
|
|
|
+ background: url(https://admin-b.caimei365.com/userfiles/1/images/photo/2020/08/tab%402x.png)no-repeat;
|
|
background-size: contain;
|
|
background-size: contain;
|
|
padding-bottom: 20rpx;
|
|
padding-bottom: 20rpx;
|
|
.home-flex-tab {
|
|
.home-flex-tab {
|