Commit f0b80869 authored by 王炽's avatar 王炽

666666

parent cb184cf4
...@@ -80,10 +80,20 @@ ...@@ -80,10 +80,20 @@
margin-left: 22rpx; margin-left: 22rpx;
width: 707rpx; width: 707rpx;
height:auto; height:auto;
.item_cangguan_img{ .item_cangguan_img1{
width: 100%; width: 100%;
height: auto; height: auto;
.item_cangguan_img{
width: 100%;
height: auto;
}
// .item_cangguan_img_up{
// width: 90%;
// height: 90%;
// }
} }
.item_cangguan_bottom{ .item_cangguan_bottom{
position: absolute; position: absolute;
margin-top: -104rpx; margin-top: -104rpx;
......
...@@ -23,7 +23,16 @@ ...@@ -23,7 +23,16 @@
<view v-for="(item, index) in cangguanList" :key="index" class="item_cangguan" <view v-for="(item, index) in cangguanList" :key="index" class="item_cangguan"
@click="handleItemClick_cangguan(item, index)"> @click="handleItemClick_cangguan(item, index)">
<image class="item_cangguan_img" :src="`${item.imgUrl}`" mode="widthFix" /> <!-- <image class="item_cangguan_img" :src="`${item.imgUrl}`" mode="widthFix">
<image class="item_cangguan_img_up" :src="`${item.imgUrl}`" mode="widthFix"></image>
</image> -->
<view class="item_cangguan_img1"
:style="`background-image: url(${item.imgUrl}); background-size: 707rpx auto; background-repeat: no-repeat;`"
mode="widthFix">
<image class="item_cangguan_img" :src="`${item.imgUrl}`" mode="widthFix"></image>
<!-- <image class="item_cangguan_img_up" :src="`${item.imgUrl}`" mode="widthFix"></image> -->
</view>
<view class="item_cangguan_bottom"> <view class="item_cangguan_bottom">
<view class="item_cangguan_bottom_bg"> <view class="item_cangguan_bottom_bg">
</view> </view>
......
...@@ -1726,6 +1726,21 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -1726,6 +1726,21 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
mdMap.value.push('积分服务页-首屏'); mdMap.value.push('积分服务页-首屏');
} }
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "查看升级攻略"
});
if(memberInfo.grade == 0 && !memberInfo.orderUpgrade && points >= 1){
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "累计积分"
});
}
const {data} = await fetchIntegralJSON(); const {data} = await fetchIntegralJSON();
...@@ -1848,6 +1863,8 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -1848,6 +1863,8 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
} }
if(islogin.value){ if(islogin.value){
vipCardMd(vipLevel.value);
nickName.value = memberInfo.value.memberName; nickName.value = memberInfo.value.memberName;
// 清空之前的数据 // 清空之前的数据
// vipLvDatas.value = [];//?????????? // vipLvDatas.value = [];//??????????
...@@ -1878,6 +1895,45 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -1878,6 +1895,45 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
} }
const vipCardMd = (vipLevel, isExposure = true) => {
if(isExposure){
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "等级卡牌点击" + lvNameMd(vipLevel)
});
}else{
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "等级卡牌点击" + lvNameMd(vipLevel)
});
}
}
const lvNameMd = (lv) => {
switch(lv){
case 0:
return 'V1黄金会员';
break;
case 1:
return 'V2铂金会员';
break;
case 2:
return 'V3钻石会员';
break;
case 3:
return 'V4星光会员';
break;
case 4:
return 'V5星耀会员';
break;
}
}
//banner点击事件 //banner点击事件
const bannerHandler = (item, index) => { const bannerHandler = (item, index) => {
let buttonName = ''; let buttonName = '';
...@@ -1922,6 +1978,13 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -1922,6 +1978,13 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
buttonName: "攻略", buttonName: "攻略",
}); });
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "查看升级攻略"
});
gotoGonglue(); gotoGonglue();
// const url = vipIntegral.value.gonglue.url; // const url = vipIntegral.value.gonglue.url;
// const type = vipIntegral.value.gonglue.type; // const type = vipIntegral.value.gonglue.type;
...@@ -1974,6 +2037,13 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -1974,6 +2037,13 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
buttonName: "积分明细", buttonName: "积分明细",
}); });
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "累计积分"
});
const url = vipIntegral.value.jifenmingxi.url.replace("{crmid}", memberInfo.value.memberId); const url = vipIntegral.value.jifenmingxi.url.replace("{crmid}", memberInfo.value.memberId);
const type = vipIntegral.value.jifenmingxi.type; const type = vipIntegral.value.jifenmingxi.type;
console.log('积分明细链接:==',url) console.log('积分明细链接:==',url)
...@@ -2062,6 +2132,14 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -2062,6 +2132,14 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
const currentIndex = e.detail.current; const currentIndex = e.detail.current;
// console.log('当前swiper-item索引:', currentIndex); // console.log('当前swiper-item索引:', currentIndex);
itemIndex.value = currentIndex; itemIndex.value = currentIndex;
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "等级卡牌切换"
});
vipCardMd(currentIndex);
// 获取当前滚动位置 // 获取当前滚动位置
// const scrollLeft = e.detail.scrollLeft; // const scrollLeft = e.detail.scrollLeft;
// const directionVal = ref(0.3); // const directionVal = ref(0.3);
...@@ -2380,6 +2458,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -2380,6 +2458,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
return; return;
} }
vipCardMd(vipLevel.value, false);
const item = vipIntegral.value.vipCardInfo; const item = vipIntegral.value.vipCardInfo;
if(item.url== ""){ if(item.url== ""){
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment