|
@@ -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">
|
|
@@ -34,7 +32,13 @@
|
|
</view>
|
|
</view>
|
|
<view class="list-name">{{pros.name}}</view>
|
|
<view class="list-name">{{pros.name}}</view>
|
|
<template v-if="hasLogin">
|
|
<template v-if="hasLogin">
|
|
- <template v-if="userIdentity != 2">
|
|
|
|
|
|
+ <template v-if="userIdentity == 2 || userIdentity == 1">
|
|
|
|
+ <view class="list-price">
|
|
|
|
+ <view class="price-new">¥<text class="big">{{pros.retailPrice}}</text><text>{{pros.smallPrice}}</text></view>
|
|
|
|
+ <view class="price-old">¥<text class="big">{{toFixedFn(pros.price1)}}</text><text></text></view>
|
|
|
|
+ </view>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="userIdentity == 4">
|
|
<view class="list-price none">
|
|
<view class="list-price none">
|
|
<view class="price-left">
|
|
<view class="price-left">
|
|
<text class="icon"></text>
|
|
<text class="icon"></text>
|
|
@@ -45,12 +49,6 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
- <template v-else>
|
|
|
|
- <view class="list-price">
|
|
|
|
- <view class="price-new">¥<text class="big">{{pros.retailPrice}}</text><text>{{pros.smallPrice}}</text></view>
|
|
|
|
- <view class="price-old">¥<text class="big">{{toFixedFn(pros.price1)}}</text><text></text></view>
|
|
|
|
- </view>
|
|
|
|
- </template>
|
|
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<view class="list-price none">
|
|
<view class="list-price none">
|
|
@@ -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){//实时获取到滚动的值
|
|
@@ -417,7 +413,7 @@
|
|
height:4rpx;
|
|
height:4rpx;
|
|
background:linear-gradient(302deg,rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
|
|
background:linear-gradient(302deg,rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
|
|
position: absolute;
|
|
position: absolute;
|
|
- left: 0;
|
|
|
|
|
|
+ left: 20rpx;
|
|
top: 50%;
|
|
top: 50%;
|
|
}
|
|
}
|
|
&::after{
|
|
&::after{
|
|
@@ -426,7 +422,7 @@
|
|
height:4rpx;
|
|
height:4rpx;
|
|
background:linear-gradient(302deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
|
|
background:linear-gradient(302deg,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
|
|
position: absolute;
|
|
position: absolute;
|
|
- right: 0;
|
|
|
|
|
|
+ right: 20rpx;
|
|
top: 50%;
|
|
top: 50%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -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 {
|