Commit 6f9c2e23 by 李伟康

增加埋点

2 parents 4e2b90b1 b2f40fe8
......@@ -132,15 +132,15 @@
background: #F7F8FC;
border-radius: 20rpx;
margin-top: 16rpx;
padding: 0 12rpx;
.rank-title {
position: relative;
height: 52rpx;
line-height: 52rpx;
height: 72rpx;
line-height: 72rpx;
text-align: center;
font-size: 20rpx;
color: #5A6066;
margin-bottom: 20rpx;
border-bottom: 1rpx solid rgba(204, 206, 209, 0.50);
// .activity-status {
......@@ -154,21 +154,79 @@
.rank-table {
color: #5A6066;
font-size: 20rpx;
padding-left: 20rpx;
.rank {
display: flex;
justify-content: space-between;
height: 64rpx;
padding-bottom: 16rpx;
padding: 20rpx 16rpx;
border-bottom: 1rpx dotted rgba(204, 206, 209, 0.50);
.rank-left {
display: flex;
}
&-num {
width: 40rpx;
line-height: 64rpx;
text-align: center;
}
.rank-head {
width: 64rpx;
height: 64rpx;
margin-right: 12rpx;
}
.rank-content {
font-size: 20rpx;
.rank-row {
display: flex;
height: 32rpx;
line-height: 32rpx;
margin-bottom: 8rpx;
&-name {
font-size: 24rpx;
color: #3666FE;
margin-right: 12rpx;
}
&-dept {
color: #8A8C90;
}
&-txt {
color: rgba(90, 96, 102, 1);
padding: 0 10rpx 0 0;
}
&-txt::after {
display: inline-block;
content: '';
background-color: #CCCED1;
width: 1.2rpx;
height: 54%;
margin-left: 10rpx;
}
&-txt:last-child::after {
background-color: transparent;
}
}
.rank-row:last-child {
margin-bottom: 0;
}
}
.rank-price {
text-align: right;
font-size: 26rpx;
color: #F35251;
height: 64rpx;
line-height: 64rpx;
}
// .th,
......@@ -184,6 +242,10 @@
// }
}
.rank:last-child {
border: none;
}
.tr-no-data {
text-align: center;
height: 32rpx;
......@@ -194,11 +256,16 @@
.btn-more {
height: 56rpx;
line-height: 56rpx;
color: #5A6066;
border: 2rpx solid #EEEEEE;
border-radius: 28rpx;
// color: #5A6066;
// border: 2rpx solid #EEEEEE;
// border-radius: 28rpx;
text-align: center;
margin: 0 20rpx 16rpx;
margin: 0 20rpx;
.icon-more {
width: 92rpx;
height: 36rpx;
}
}
}
}
......
......@@ -68,30 +68,32 @@
</view>
</view> -->
<view class="rank-table">
<block wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="rank">
<view class="rank-num">{{idx + 1}}</view>
<glsx-image class="rank-head" src="output/icon-head.webp"></glsx-image>
<view>
<view>
<text>{{subItem.shareName}}</text>
<text>运营部</text>
</view>
<view>
<text>访客</text>
<text>成交</text>
<view class="rank-left">
<view class="rank-num">{{idx + 1}}</view>
<glsx-image class="rank-head" src="output/icon-head.webp"></glsx-image>
<view class="rank-content">
<view class="rank-row">
<text class="rank-row-name">{{subItem.shareName}}</text>
<text class="rank-row-dept">运营部</text>
</view>
<view class="rank-row">
<text class="rank-row-txt">访客136人</text>
<text class="rank-row-txt">成交</text>
</view>
</view>
</view>
<view>¥{{subItem.totalAmount}}</view>
<view class="rank-price">¥ {{subItem.totalAmount}}</view>
<!-- <view class="td text-hide" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<view wx:if="{{j == 0}}">{{idx + 1}}</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem[i.name]}}
</view> -->
</view>
</block>
</view>
<view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">
查看更多
<glsx-image class="icon-more" src="output/icon-more.webp"></glsx-image>
</view>
</view>
</view>
......
......@@ -325,11 +325,12 @@ Component({
// sceneCodeList: ['SC001', 'SC002','SC003','SC004']
};
//申请活动
wx.$router.go("packageOutput.openBusiness", params);
// wx.$router.go("packageOutput.openBusiness", params);
wx.$router.go("/packagesList/packageOutput/pages/openBusiness", params);
} else {
//申请门店
// let { type, item } = e.currentTarget.dataset
wx.$router.go("apply", item?.clueId || "");
wx.$router.go("/packagesList/apply/pages/apply", item?.clueId || "");
}
// wx.$router.go('apply',1235)
},
......
......@@ -280,16 +280,15 @@ Component({
imgTopArr,
stickyTop
} = this.data;
console.log("idx: ", imgTopArr[idx], stickyTop);
// console.log("idx: ", imgTopArr[idx], stickyTop);
// this.setData({
// intoViewId: `to-${idx}`,
// });
// wx.$eventbus.emit('evt_page_index',idx)
//判断当前路径
let currentUrl = this.getCurrentPageUrl();
console.log('currentUrl: ', currentUrl);
// console.log('currentUrl: ', currentUrl);
if (currentUrl == "/pages/tab/index/index") {
console.log(123546)
wx.pageScrollTo({
// scrollTop: imgTopArr[idx] - stickyTop + 88 + 34
scrollTop: imgTopArr[idx] - stickyTop+44 +36
......
......@@ -490,6 +490,10 @@ Page({
getVideoUrl(params){
this.setData(params)
},
//申请活动
gotoApply(){
wx.$router.go("/packagesList/apply/pages/apply");
},
/**
* 生命周期函数--监听页面隐藏
*/
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!