Commit f25412f1 authored by 王炽's avatar 王炽

66666

parent 8d51be73
......@@ -52,7 +52,7 @@
left: 0;
width: 100%;
height: 100%;
opacity: 0.2;
opacity: 0;
background-color: #000;
}
}
......
......@@ -238,7 +238,7 @@ const callAssistInvite = async (ivtCode,unionId) => {
const res = await integralStore.assistInvite(ivtCode, unionId);
if(res.success && res.data.newUser) {
// globalStore.invateUseType = 'new';
globalStore.invateUseType = 'new';
}else{
showSharePopLogin.value = true;
}
......
......@@ -853,12 +853,39 @@
gap: 106rpx;
}
// 当正好三个标签时,固定布局且不可滚动
&.tabs-three {
overflow: hidden;
justify-content: space-between;
// 3个标签下适配容器宽度,避免溢出
.tab-item {
width: 220rpx;
}
}
// 当有四个或更多标签时,允许滑动
&.tabs-many {
overflow-x: auto;
white-space: nowrap;
justify-content: flex-start;
gap: 0rpx;
// padding: 0 32rpx;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch; // iOS 平滑滚动
}
.tab-item {
width: 245rpx;
width: 230rpx;
height: 112rpx;
display: flex;
flex-direction: column;
align-items: center;
flex-shrink: 0; // 防止收缩
// 当在 tabs-many 中时,确保不换行
.tabs-many & {
white-space: nowrap;
}
&.active {
.tab-line1 {
......
......@@ -34,56 +34,56 @@
<view class="saoma-tips" @click="integralHandler"
v-if="memberInfo.grade == 0 && !memberInfo.orderUpgrade && points >= 1">
<text class="saoma-tips-text"
<text class="saoma-tips-text"
:style="{ color: getColor('saomaTips')[index]?.textColor }">扫罐内码或下单有机会升级至<text
class="saoma-tips-text-lv" :style="{ color: getColor('saomaTips')[index]?.jifenColor }">{{
index == 0 ? gradeList[index + 1]?.gradeName : gradeList[index]?.gradeName }}</text>
</text>
</text>
<text class="saoma-tips-text-tips" :style="{ color: getColor('saomaTips')[index]?.jifenColor }">累计积分
<text class="saoma-tips-text-tips-num"
<text class="saoma-tips-text-tips-num"
:style="{ color: getColor('saomaTips')[index]?.jifenColor }">{{ points }}</text>
<text class="saoma-tips-text-tips-maxnum"
<text class="saoma-tips-text-tips-maxnum"
:style="{ color: getColor('saomaTips')[index]?.textColor }">/{{ getHuangjinMaxVal()[index]
}}</text>
</text>
</view>
</text>
</view>
<view class="jifen-progressbar"
v-if="getHuangjinMaxVal()[index] != -1 && !(memberInfo.grade == 0 && !memberInfo.orderUpgrade && points >= 1)"
v-if="getHuangjinMaxVal()[index] != -1 && !(memberInfo.grade == 0 && !memberInfo.orderUpgrade && points >= 1)"
@click="integralHandler">
<!-- 积分标题和数值 -->
<view class="jifen-header">
<text class="jifen-label"
:style="{ color: getColor('jifen')[index]?.currentPoints }">累计积分</text>
<text class="jifen-value">
<!-- 积分标题和数值 -->
<view class="jifen-header">
<text class="jifen-label"
:style="{ color: getColor('jifen')[index]?.currentPoints }">累计积分</text>
<text class="jifen-value">
<text class="current-points" :style="{ color: getColor('jifen')[index]?.currentPoints }">{{
islogin ? points : 0 }}</text>
<text class="separator" :style="{ color: getColor('jifen')[index]?.totalPoints }">/</text>
<text class="total-points" :style="{ color: getColor('jifen')[index]?.totalPoints }">{{
getHuangjinMaxVal()[index] }}</text>
</text>
</view>
<!-- 进度条 -->
<view class="progress-bar-container">
<!-- 进度条背景图片 -->
</text>
</view>
<!-- 进度条 -->
<view class="progress-bar-container">
<!-- 进度条背景图片 -->
<image :src="$baseUrl + `integral/${tupianBanben}/barBgVip${index}.png`" class="progress-bar-bg"
mode="aspectFit" @error="onProgressBarError" />
<!-- 进度条填充图片 -->
<view class="progress-bar-mask">
<!-- 进度条填充图片 -->
<view class="progress-bar-mask">
<image :src="$baseUrl + `integral/${tupianBanben}/barVip${index}.png`"
class="progress-bar-fill" mode="aspectFit"
:style="{ transform: `translateX(${getProgress(index) - 100}%)` }"
:style="{ transform: `translateX(${getProgress(index) - 100}%)` }"
@error="onProgressBarError" />
</view>
</view>
</view>
</view>
<text class="chakanshengjigonglueTxt" :style="{ color: getColor('chakangonglue')[index] }"
@click="gonglueHandler">
查看升级攻略
</text>
<!-- <view class="vip-info">
<text class="vip-name"
:style="{
......@@ -115,7 +115,7 @@
:src="$baseUrl + `integral/${tupianBanben}/vipCardArrowRight.png`" mode="aspectFit"></image>
<image class="vipCardArrowLeft" v-if="itemIndex != 0"
:src="$baseUrl + `integral/${tupianBanben}/vipCardArrowLeft.png`" mode="aspectFit"></image>
<!-- 积分权益 -->
<view class="privilege-container">
<!-- 第一行 -->
......@@ -178,11 +178,11 @@
<!-- MonthGift 组件 -->
<MonthGift v-if="Number(selectIdx) === 0" :current-level="itemIndex" :userLevel="memberInfo?.grade"
ref="monthGiftRef" />
<!-- YearGift 组件 -->
<YearGift v-if="Number(selectIdx) === 5" :current-level="itemIndex" :userLevel="memberInfo?.grade"
ref="yearGiftRef" />
<!-- BabyClass 组件 -->
<BabyClass v-if="Number(selectIdx) === 1" :current-level="itemIndex" :userLevel="memberInfo?.grade"
ref="babyClassRef" />
......@@ -353,11 +353,15 @@
<view class="goods-container" v-if="goodsDataArr?.length > 0">
<!-- <view class="goods-container"> -->
<!-- 页签栏 -->
<view class="custom-tabs" :class="{ 'tabs-two': goodsDataArr?.length === 2 }" v-if="goodsDataArr?.length > 1">
<view class="custom-tabs" :class="{
'tabs-two': goodsDataArr?.length === 2,
'tabs-three': goodsDataArr?.length === 3,
'tabs-many': goodsDataArr?.length >= 4
}" v-if="goodsDataArr?.length > 1">
<!-- <view v-for="(tab, index) in tabInfo.tabTexts" :key="index" class="tab-item" :class="{ -->
<view v-for="(tab, index) in goodsDataArr" :key="index" class="tab-item" :class="{
active: activeIndex === index && itemIndex !== 4,
active1: activeIndex === index && itemIndex === 4
active: activeIndex === index && itemIndex !== 4,
active1: activeIndex === index && itemIndex === 4
}" @click="tabItemClick(index)">
<text class="tab-line1">{{ tab?.resourcePositionName }}</text>
<!-- <text class="tab-line1">{{ tab?.line1 }}</text> -->
......@@ -365,7 +369,7 @@
<view class="select-line" v-if="activeIndex === index"></view>
</view>
</view>
<view class="goods-content" v-for="(goodItemList, index) in goodsDataArr" :key="index"
v-if="goodsDataArr?.length > 0">
......@@ -394,10 +398,10 @@
<text v-else-if="Number(goodItem?.credits)" class="price-text"><text class="num">{{
goodItem?.credits }}</text>积分</text> -->
</view>
</view>
</view>
</view>
</view>
<!-- 商品内容 -->
<!-- <view class="goods-content">
......@@ -475,8 +479,8 @@
<text class="debug-text">注册层状态: {{ showRegisterLayer ? '显示' : '隐藏' }}</text>
<text class="debug-text">用户昵称: {{ nickName }}</text>
</view> -->
<!-- 积分底部填充位置 -->
<!-- 积分底部填充位置 -->
<view class="content">
</view>
......@@ -510,30 +514,30 @@
<!-- showShengriliTipPanel -->
<script setup>
// 轮播图数据可在此定义(当前使用静态路径)
// "rgba(255,255,255,0.5)"
import { ref, onMounted, onBeforeMount, computed, watch } from 'vue';
// 轮播图数据可在此定义(当前使用静态路径)
// "rgba(255,255,255,0.5)"
import { ref, onMounted, onBeforeMount, computed, watch } from 'vue';
import { onShareAppMessage } from '@dcloudio/uni-app';
import { jump, JumpType } from '@/utils/index.js'
import { useUserStore } from "@/stores/user";
import { jump, JumpType } from '@/utils/index.js'
import { useUserStore } from "@/stores/user";
import { fetchIntegralJSON, fetchBatchReceiveJSON, taskCompleteJSON } from '../api/integral';
import RegisterLayer from "../components/RegisterLayer.vue";
import { showLoading, hideLoading } from '../utils'
import xinrenli from '../components/quanyi/xinrenli.vue'
import md from '../md';
import mianfeiwenzhen from '../components/quanyi/mianfeiwenzhen.vue';
import aibenxinrenli from '../components/quanyi/aibenxinrenli.vue';
import zhuanduanli from '../components/quanyi/zhuanduanli.vue';
import BabyClass from '../components/pointRightsCom/babyClass.vue';
import monthGift from '../components/pointRightsCom/monthGift.vue';
import yearGift from '../components/pointRightsCom/yearGift.vue';
import jinjili from '../components/quanyi/jinjili.vue';
import shengrili from '../components/quanyi/shengrili.vue';
import suyuanyou from '../components/quanyi/suyuanyou.vue';
import popupShengri from '../components/popup-shengri/popup-shengri.vue';
import { getHealthField } from "@/api/common";
import RegisterLayer from "../components/RegisterLayer.vue";
import { showLoading, hideLoading } from '../utils'
import xinrenli from '../components/quanyi/xinrenli.vue'
import md from '../md';
import mianfeiwenzhen from '../components/quanyi/mianfeiwenzhen.vue';
import aibenxinrenli from '../components/quanyi/aibenxinrenli.vue';
import zhuanduanli from '../components/quanyi/zhuanduanli.vue';
import BabyClass from '../components/pointRightsCom/babyClass.vue';
import monthGift from '../components/pointRightsCom/monthGift.vue';
import yearGift from '../components/pointRightsCom/yearGift.vue';
import jinjili from '../components/quanyi/jinjili.vue';
import shengrili from '../components/quanyi/shengrili.vue';
import suyuanyou from '../components/quanyi/suyuanyou.vue';
import popupShengri from '../components/popup-shengri/popup-shengri.vue';
import { getHealthField } from "@/api/common";
import MonthGift from '../components/pointRightsCom/monthGift.vue';
import YearGift from '../components/pointRightsCom/yearGift.vue';
import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
......@@ -598,11 +602,11 @@ const handleCreditsSaleClick = (params) => {
// 进度条图片加载错误处理
const onProgressBarError = (e) => {
console.error('进度条图片加载失败:', e)
// 可以设置默认样式或显示错误提示
}
// 进度条图片加载错误处理
const onProgressBarError = (e) => {
console.error('进度条图片加载失败:', e)
// 可以设置默认样式或显示错误提示
}
function testGoto195() {
return
......@@ -615,15 +619,15 @@ function testGoto195() {
})
}
const orderUpgrade = ref(false);
// const maxVal = ref([]);
const integralData = ref({
const orderUpgrade = ref(false);
// const maxVal = ref([]);
const integralData = ref({
"clickMore": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"tupianBanben": "1022",
......@@ -775,11 +779,11 @@ const integralData = ref({
"lingyuan": [
{
"productId": "643301938280182989",
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "643301938280182990"
},
......@@ -849,7 +853,7 @@ const integralData = ref({
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "477231839213998661"
},
......@@ -869,145 +873,145 @@ const integralData = ref({
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "637105594356118251"
}
],
"xingpin": [
{
"productId": "632366292935447153",
"extra": {
"xingpin": [
{
"productId": "632366292935447153",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "632366292935447154"
},
{
"productId": "434526218612696157",
"extra": {
"productId": "434526218612696157",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "434526218612696158"
},
{
"productId": "779457178234291713",
"extra": {
"productId": "779457178234291713",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "779457178234291714"
},
{
"productId": "632368902459430553",
"extra": {
"productId": "632368902459430553",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "632368902459430554"
},
{
"productId": "748373470406312440",
"extra": {
"productId": "748373470406312440",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "748373470406312441"
},
{
"productId": "700209063828145600",
"extra": {
"productId": "700209063828145600",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "700209063828145601"
},
{
"productId": "444612538255511698",
"extra": {
"productId": "444612538255511698",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "444612538255511699"
},
{
"productId": "748374838109458955",
"extra": {
"productId": "748374838109458955",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "748374838109458956"
},
{
"productId": "748376191670080756",
"extra": {
"productId": "748376191670080756",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "748376191670080757"
},
{
"productId": "444614841574228087",
"extra": {
"productId": "444614841574228087",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "444614841574228088"
},
{
"productId": "642944987112793104",
"extra": {
"productId": "642944987112793104",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "642944987112793105"
},
{
"productId": "660577242594873852",
"extra": {
"productId": "660577242594873852",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "660577242594873853"
},
{
"productId": "670068445908034706",
"extra": {
"productId": "670068445908034706",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"skuId": "670072178498381183"
},
{
"productId": "660575857729992191",
"extra": {
"productId": "660575857729992191",
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
......@@ -1019,41 +1023,41 @@ const integralData = ref({
"beiwei": [
{
"productId": "694019044167238066",
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_north",
"skuId": "694019044167238067"
},
{
"productId": "548984197069284758",
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_north",
"skuId": "548984197069284759"
},
{
"productId": "548991402553569325",
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_north",
"skuId": "548991402553569326"
},
{
"productId": "757045038059549612",
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_north",
"skuId": "757045038059549613"
},
......@@ -1063,13 +1067,13 @@ const integralData = ref({
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_north",
"skuId": "555507401709887583"
},
{
"productId": "555151404052796950",
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
......@@ -1083,13 +1087,13 @@ const integralData = ref({
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_north",
"skuId": "704050114989893290"
},
{
"productId": "710290587034550507",
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
......@@ -1103,11 +1107,11 @@ const integralData = ref({
"quanyitiaozhuanInfo": {
"shengrili": {
"qushiyong": {
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
},
"type": 2,
"url": "subPackages/shopMainProcess/coupons/couponList"
}
},
......@@ -1137,12 +1141,12 @@ const integralData = ref({
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"excharge": {
"img": "integralExchargeBtn.png",
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
......@@ -1206,13 +1210,13 @@ const integralData = ref({
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"type": 2,
"title": "兑换礼品",
"url": "/subPackages/shopMainList/topicNew/index?id=1001165"
},
{
"img": "vipAct2.png",
"extra": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
......@@ -1427,88 +1431,88 @@ const integralData = ref({
0,
2,
5
]
}
]
}
});
]
}
]
}
});
const goodsDataArr = ref([]);//商品数据,包括tab内容
// const integralData = ref({});
const showShengriliTipPanel = ref(false);
const quanyitiaozhuanInfo = ref({});
const selectIdx = ref(-1);//权益选中id
const isshowShouqi = ref(false);//是否收起权益
const isshowQuanyiDetail = ref(false);//是否显示权益详情
const swiperData = ref(integralData.value?.swiper);//banner图片地方
const vipLvIcons = ref(integralData.value?.viplv?.imgs);//会员等级图标
const vipLvNameImgs = ref(integralData.value?.viplv?.vipNameImgs);//会员等级名称图片
const vipLvIconBgs = ref(integralData.value?.viplv?.imgBgs);//会员等级图标背景
const nickNameColors = ref(integralData.value?.viplv?.nickNameColors);//会员等级昵称颜色
const dangqianColors = ref(integralData.value?.viplv?.dangqianColors);//当前等级颜色
const upLvTxts = ref(integralData.value?.viplv?.upLvTxts);//会员等级提升文字
const vipIntegral = ref(integralData.value?.vipIntegral);//积分明细\
const clickMore = ref(integralData.value?.clickMore);//点击更多
// const integralData = ref({});
const showShengriliTipPanel = ref(false);
const quanyitiaozhuanInfo = ref({});
const selectIdx = ref(-1);//权益选中id
const isshowShouqi = ref(false);//是否收起权益
const isshowQuanyiDetail = ref(false);//是否显示权益详情
const swiperData = ref(integralData.value?.swiper);//banner图片地方
const vipLvIcons = ref(integralData.value?.viplv?.imgs);//会员等级图标
const vipLvNameImgs = ref(integralData.value?.viplv?.vipNameImgs);//会员等级名称图片
const vipLvIconBgs = ref(integralData.value?.viplv?.imgBgs);//会员等级图标背景
const nickNameColors = ref(integralData.value?.viplv?.nickNameColors);//会员等级昵称颜色
const dangqianColors = ref(integralData.value?.viplv?.dangqianColors);//当前等级颜色
const upLvTxts = ref(integralData.value?.viplv?.upLvTxts);//会员等级提升文字
const vipIntegral = ref(integralData.value?.vipIntegral);//积分明细\
const clickMore = ref(integralData.value?.clickMore);//点击更多
const vipActive = ref({});//会员活动
const tabInfo = ref(integralData.value?.goodsListData?.tabInfo);//tabbar信息
const listCommon = ref(integralData.value?.goodsListData?.listCommon);//商品列表通用信息
const goodsData = ref(integralData.value?.goodsListData?.goodsData);//商品数据
const productIdUrl = ref(integralData.value?.goodsListData?.productIdUrl);//商品跳转链接
const imgInfos = ref(integralData.value?.qunyiInfo?.imgInfos);//权益信息
const vipRule = ref(integralData.value?.qunyiInfo?.vipRule);//会员规则跳转
const vipLvsQuanyi = ref([]);//会员不同等级权益
const points = ref(0);//积分
const gradeList = ref([]);
const vipQuanyiUrl = ref(integralData.value?.qunyiInfo?.vipQuanyiUrl);//会员权益图标点击跳转
const activeIndex = ref(0);//tabbar选中项
const showRegisterLayer = ref(false);
const tupianBanben = ref(integralData.value?.tupianBanben);//图片版本号
const vipLevel = ref(0);
// const vipNameArr = ref(['V1 黄金会员', 'V2 铂金会员', 'V3 钻石会员', 'V4 星光会员', 'V5 星耀会员']);
const systemInfo = uni.getWindowInfo();
const rpxRatio = 750 / systemInfo.windowWidth;// 如果需要rpx换算(1px = 2rpx)
const itemIndex = ref(0);
const itemWidth = (686 + 64) / rpxRatio;
const lastScrollLeft = ref(0);
const vipQuanyiData = ref(integralData.value?.qunyiInfo?.vipLvsQuanyi);
const quanyiBgs = ref(integralData.value?.qunyiInfo?.quanyiBgs);
const recentAnnualPointsTotal = ref(0);
const nextGradeScoreRuleMin = ref(0);
const tabInfo = ref(integralData.value?.goodsListData?.tabInfo);//tabbar信息
const listCommon = ref(integralData.value?.goodsListData?.listCommon);//商品列表通用信息
const goodsData = ref(integralData.value?.goodsListData?.goodsData);//商品数据
const productIdUrl = ref(integralData.value?.goodsListData?.productIdUrl);//商品跳转链接
const imgInfos = ref(integralData.value?.qunyiInfo?.imgInfos);//权益信息
const vipRule = ref(integralData.value?.qunyiInfo?.vipRule);//会员规则跳转
const vipLvsQuanyi = ref([]);//会员不同等级权益
const points = ref(0);//积分
const gradeList = ref([]);
const vipQuanyiUrl = ref(integralData.value?.qunyiInfo?.vipQuanyiUrl);//会员权益图标点击跳转
const activeIndex = ref(0);//tabbar选中项
const showRegisterLayer = ref(false);
const tupianBanben = ref(integralData.value?.tupianBanben);//图片版本号
const vipLevel = ref(0);
// const vipNameArr = ref(['V1 黄金会员', 'V2 铂金会员', 'V3 钻石会员', 'V4 星光会员', 'V5 星耀会员']);
const systemInfo = uni.getWindowInfo();
const rpxRatio = 750 / systemInfo.windowWidth;// 如果需要rpx换算(1px = 2rpx)
const itemIndex = ref(0);
const itemWidth = (686 + 64) / rpxRatio;
const lastScrollLeft = ref(0);
const vipQuanyiData = ref(integralData.value?.qunyiInfo?.vipLvsQuanyi);
const quanyiBgs = ref(integralData.value?.qunyiInfo?.quanyiBgs);
const recentAnnualPointsTotal = ref(0);
const nextGradeScoreRuleMin = ref(0);
const upLevelExp = ref([1000, 2000, 3000, 4000, 5000]);
const quanyiListIcon = ref([
const quanyiListIcon = ref([
'yueyueliBtn.png', 'shengriBtn.png', 'yuerBtn.png', 'heliBtn.png',
'xinrenliBtn.png', 'mianfeiBtn.png', 'zhuanduanli.png', 'changxianBtn.png',
'jinjiBtn.png', 'suyuanBtn.png'
]);
const vipBgArr = ref([]);
const privilegeSizes = ref([
{ width: '68rpx', height: '87rpx', name: '月月礼' },
{ width: '70rpx', height: '91rpx', name: '生日礼' },
{ width: '94rpx', height: '87rpx', name: '育儿课程' },
{ width: '48rpx', height: '87rpx', name: '鹤礼' },
{ width: '71rpx', height: '88rpx', name: '新人礼' },
{ width: '95rpx', height: '87rpx', name: '免费问诊' },
{ width: '70rpx', height: '86rpx', name: '转段礼' },
{ width: '94rpx', height: '87rpx', name: '尝鲜有礼' },
{ width: '70rpx', height: '89rpx', name: '晋级礼' },
{ width: '71rpx', height: '90rpx', name: '溯源游' }
]);
const userStore = useUserStore();
]);
const vipBgArr = ref([]);
const privilegeSizes = ref([
{ width: '68rpx', height: '87rpx', name: '月月礼' },
{ width: '70rpx', height: '91rpx', name: '生日礼' },
{ width: '94rpx', height: '87rpx', name: '育儿课程' },
{ width: '48rpx', height: '87rpx', name: '鹤礼' },
{ width: '71rpx', height: '88rpx', name: '新人礼' },
{ width: '95rpx', height: '87rpx', name: '免费问诊' },
{ width: '70rpx', height: '86rpx', name: '转段礼' },
{ width: '94rpx', height: '87rpx', name: '尝鲜有礼' },
{ width: '70rpx', height: '89rpx', name: '晋级礼' },
{ width: '71rpx', height: '90rpx', name: '溯源游' }
]);
const userStore = useUserStore();
const integralStore = useIntegralStore();
const globalStore = useGlobalStore();
const memberInfo = ref({
const memberInfo = ref({
recentAnnualPointsTotal: 0,
willExpiredPoints: 0,
nextGradeScoreRuleMin: 0,
......@@ -1518,16 +1522,16 @@ const memberInfo = ref({
const needReinit = ref(false)
const willExpiredPoints = ref(0);//即将过期积分
const willExpiredPoints = ref(0);//即将过期积分
const islogin = ref(true);//是否登录
const vipLvDatas = ref([
]);
const nickName = ref('');
const islogin = ref(true);//是否登录
const vipLvDatas = ref([
]);
const nickName = ref('');
const mdMap = ref([]);
const mdMap = ref([]);
const showPopupShengri = ref(false);
const showPopupShengri = ref(false);
const signinInfo = ref({});
// 签到状态数组,控制每天是否已签到
......@@ -1575,244 +1579,244 @@ const isToday = ref(false);
//今天是第几天
const todaynum = ref(0);
// Props 定义
const props = defineProps({
scrollTop: {
type: Number,
// Props 定义
const props = defineProps({
scrollTop: {
type: Number,
default: 0
}
})
}
})
//babyStage 宝宝阶段 0备用 1孕中 2出生 ,null无数据
const gotoAddBaby = () => {
if (userStore.babyInfo?.allBabyBaseInfo?.some(baby => baby.babyStage == 2)) {
//babyStage 宝宝阶段 0备用 1孕中 2出生 ,null无数据
const gotoAddBaby = () => {
if (userStore.babyInfo?.allBabyBaseInfo?.some(baby => baby.babyStage == 2)) {
} else {
if (userStore.babyInfo?.allBabyBaseInfo?.length == 3) {
if (userStore.babyInfo?.allBabyBaseInfo?.some(baby => baby.babyStage == 1)) {
// const baby = userStore.babyInfo?.allBabyBaseInfo?.find(baby => baby.babyStage == 1);
const baby = userStore.babyInfo?.allBabyBaseInfo.find(
(item) => item.selected
);
// debugger;
if (baby) {
navigateTo(`/pages/person/person?type=edit&id=${baby.id}`);
}
} else {
if (userStore.babyInfo?.allBabyBaseInfo?.some(baby => baby.babyStage == 0)) {
//跳转2状态的编辑页
// const baby = userStore.babyInfo?.allBabyBaseInfo?.find(baby => baby.babyStage == 0);
if (userStore.babyInfo?.allBabyBaseInfo?.some(baby => baby.babyStage == 1)) {
// const baby = userStore.babyInfo?.allBabyBaseInfo?.find(baby => baby.babyStage == 1);
const baby = userStore.babyInfo?.allBabyBaseInfo.find(
(item) => item.selected
);
// debugger;
(item) => item.selected
);
// debugger;
if (baby) {
navigateTo(`/pages/person/person?type=edit&id=${baby.id}`);
}
} else {
if (userStore.babyInfo?.allBabyBaseInfo?.some(baby => baby.babyStage == 0)) {
//跳转2状态的编辑页
// const baby = userStore.babyInfo?.allBabyBaseInfo?.find(baby => baby.babyStage == 0);
const baby = userStore.babyInfo?.allBabyBaseInfo.find(
(item) => item.selected
);
// debugger;
if (baby) {
navigateTo(`/pages/person/person?type=edit&id=${baby.id}`);
}
}
}
}
} else {
navigateTo("/pages/person/person?type=add");
}
navigateTo("/pages/person/person?type=add");
}
}
}
}
//isshowShouqi 为true 时,展示收起按详情,为false 时,展示查看详情
const handleZhankaiClick = () => {
//isshowShouqi 为true 时,展示收起按详情,为false 时,展示查看详情
const handleZhankaiClick = () => {
isshowShouqi.value = !isshowShouqi.value;
isshowQuanyiDetail.value = !isshowQuanyiDetail.value;
isshowShouqi.value = !isshowShouqi.value;
isshowQuanyiDetail.value = !isshowQuanyiDetail.value;
// if(!isshowShouqi.value){
// selectIdx.value = -1;
// }
}
// if(!isshowShouqi.value){
// selectIdx.value = -1;
// }
}
//原始数值:(points.value/maxVal.value[memberInfo.value.grade])*100;
const getProgress = (index) => {
let progress = 0;
const val = getHuangjinMaxVal()[index];
const getProgress = (index) => {
let progress = 0;
const val = getHuangjinMaxVal()[index];
progress = (points.value / val) * 100;
if (progress > 100) {
progress = 100;
}
progress = 100;
}
if (progress < 0) {
progress = 0;
progress = 0;
}
return progress;
}
return progress;
}
// 将天数转换为星期标签
const getWeekdayLabel = (day) => {
const weekdays = ['', '周一', '周二', '周三', '周四', '周五', '周六', '周日'];
return weekdays[day] || `第${day}天`;
}
const getColor = (type) => {
let colors = '';
const getColor = (type) => {
let colors = '';
switch (type) {
case 'chakangonglue':
colors = ['#794c1f', '#5588ba', '#443799', '#4d2f11', '#f6cc9d'];
case 'chakangonglue':
colors = ['#794c1f', '#5588ba', '#443799', '#4d2f11', '#f6cc9d'];
break;
case 'jifen':
colors = [{
case 'jifen':
colors = [{
"currentPoints": "#5f3c27",
"totalPoints": "#d7aa72"
},
{
},
{
"currentPoints": "#385e85",
"totalPoints": "#6c9bc9"
},
{
},
{
"currentPoints": "#403294",
"totalPoints": "#756ae0"
},
{
},
{
"currentPoints": "#5f3c27",
"totalPoints": "#d4a468"
},
{
},
{
"currentPoints": "#f6c79c",
"totalPoints": "#d4a468"
}];
}];
break;
case 'saomaTips':
colors = [
{
case 'saomaTips':
colors = [
{
"textColor": "#d4a468",
"jifenColor": "#5f3c27",
},
{
},
{
"textColor": "#5588ba",
"jifenColor": "#385e85",
},
{
},
{
"textColor": "#756ae0",
"jifenColor": "#403294",
},
{
},
{
"textColor": "#d4a468",
"jifenColor": "#5f3c27",
},
{
},
{
"textColor": "#f6c79c",
"jifenColor": "#ffedc1",
}
]
}
]
break;
case 'quanyiNameColor':
case 'quanyiNameColor':
colors = ['#503404', '#284a6c', '#322d6f', '#503404', '#fff0df'];
break;
case 'bgColor':
case 'bgColor':
colors = ['#e9e2cc', '#cee3f5', '#eae5f0', '#eee3b9', '#352f2a'];
break;
case 'quanyiTitle':
colors = [
{
case 'quanyiTitle':
colors = [
{
"titleColor": "#503404",
"quanyiNumColor": "#9a8c74"
},
{
},
{
"titleColor": "#284a6c",
"quanyiNumColor": "#7b8b9a"
},
{
},
{
"titleColor": "#322d6f",
"quanyiNumColor": "#9c8aba"
},
{
},
{
"titleColor": "#503404",
"quanyiNumColor": "#9d8d6c"
},
{
},
{
"titleColor": "#fff0df",
"quanyiNumColor": "#c2a98d"
}
];
}
];
break;
}
return colors;
}
return colors;
}
// 监听 scrollTop 变化
watch(() => props.scrollTop, (newVal) => {
// console.log('scrollTop 变化:', newVal)
// 执行相关逻辑,如曝光检测
// 监听 scrollTop 变化
watch(() => props.scrollTop, (newVal) => {
// console.log('scrollTop 变化:', newVal)
// 执行相关逻辑,如曝光检测
if (newVal > 650) {
if (mdMap.value.indexOf('积分服务页-二屏') == -1) {
md.sensorLogTake({
xcxPage: "积分服务页-二屏页面浏览",
pageName: "积分服务页-二屏",
});
md.sensorLogTake({
xcxPage: "积分服务页-二屏页面浏览",
pageName: "积分服务页-二屏",
});
mdMap.value.push('积分服务页-二屏');
mdMap.value.push('积分服务页-二屏');
}
}
}
if (newVal > 1328) {
if (mdMap.value.indexOf('积分服务页-三屏') == -1) {
md.sensorLogTake({
xcxPage: "积分服务页-三屏页面浏览",
pageName: "积分服务页-三屏",
});
md.sensorLogTake({
xcxPage: "积分服务页-三屏页面浏览",
pageName: "积分服务页-三屏",
});
mdMap.value.push('积分服务页-三屏');
mdMap.value.push('积分服务页-三屏');
}
}
}
if (newVal > 2058) {
if (mdMap.value.indexOf('积分服务页-四屏') == -1) {
md.sensorLogTake({
xcxPage: "积分服务页-四屏页面浏览",
pageName: "积分服务页-四屏",
});
md.sensorLogTake({
xcxPage: "积分服务页-四屏页面浏览",
pageName: "积分服务页-四屏",
});
mdMap.value.push('积分服务页-四屏');
mdMap.value.push('积分服务页-四屏');
}
}
}
})
const getHuangjinMaxVal = () => {
let maxVal = [];
})
const getHuangjinMaxVal = () => {
let maxVal = [];
if (!islogin.value) {
return [1, 1, 1000, 5000, 10000];
}
}
switch (Number(memberInfo.value.grade)) {
case 0:
case 0:
maxVal = [gradeList?.value[0]?.gradeScoreRuleMax, gradeList?.value[1]?.gradeScoreRuleMin, gradeList?.value[2]?.gradeScoreRuleMin, gradeList?.value[3]?.gradeScoreRuleMin, gradeList?.value[4]?.gradeScoreRuleMin];
break;
case 1:
break;
case 1:
maxVal = [-1, gradeList?.value[1]?.gradeScoreRuleMax, gradeList?.value[2]?.gradeScoreRuleMin, gradeList?.value[3]?.gradeScoreRuleMin, gradeList?.value[4]?.gradeScoreRuleMin];
break;
case 2:
break;
case 2:
maxVal = [-1, -1, gradeList?.value[2]?.gradeScoreRuleMax, gradeList?.value[3]?.gradeScoreRuleMin, gradeList?.value[4]?.gradeScoreRuleMin];
break;
case 3:
break;
case 3:
maxVal = [-1, -1, -1, gradeList?.value[3]?.gradeScoreRuleMax, gradeList?.value[4]?.gradeScoreRuleMin];
break;
case 4:
break;
case 4:
maxVal = [-1, -1, -1, -1, -1];
break;
}
break;
}
return maxVal;
}
return maxVal;
}
onBeforeMount(async () => {
console.log('onBeforeMount');
console.log('onBeforeMount');
})
})
onShow(async () => {
console.log('onShow');
......@@ -1826,29 +1830,29 @@ onShow(async () => {
onMounted(async () => {
// showSignedTips.value = true;
showLoading();
showLoading();
// maxVal.value = getHuangjinMaxVal();
// maxVal.value = getHuangjinMaxVal();
mdMap.value = [];
mdMap.value = [];
if (mdMap.value.indexOf('积分服务页-首屏') == -1) {
md.sensorLogTake({
xcxPage: "积分服务页-首屏页面浏览",
pageName: "积分服务页-首屏",
});
mdMap.value.push('积分服务页-首屏');
}
md.sensorLogTake({
xcxPage: "积分服务页-首屏页面浏览",
pageName: "积分服务页-首屏",
});
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "查看升级攻略"
});
mdMap.value.push('积分服务页-首屏');
}
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "查看升级攻略"
});
const { data } = await fetchIntegralJSON();
integralData.value = { ...data };
......@@ -1866,35 +1870,36 @@ onMounted(async () => {
});
goodsDataArr.value = integralData?.value?.goodsList;
swiperData.value = integralData.value?.swiper;
vipLvIcons.value = integralData.value?.viplv?.imgs;
vipLvIconBgs.value = integralData.value?.viplv?.imgBgs;
vipLvNameImgs.value = integralData.value?.viplv?.vipNameImgs;
vipIntegral.value = integralData.value?.vipIntegral;
clickMore.value = integralData.value?.clickMore;
swiperData.value = integralData.value?.swiper;
vipLvIcons.value = integralData.value?.viplv?.imgs;
vipLvIconBgs.value = integralData.value?.viplv?.imgBgs;
vipLvNameImgs.value = integralData.value?.viplv?.vipNameImgs;
vipIntegral.value = integralData.value?.vipIntegral;
clickMore.value = integralData.value?.clickMore;
// vipActive.value = integralData.value?.vipActive;
tabInfo.value = integralData.value?.goodsListData?.tabInfo;
listCommon.value = integralData.value?.goodsListData?.listCommon;
goodsData.value = integralData.value?.goodsListData?.goodsData;
productIdUrl.value = integralData.value?.goodsListData?.productIdUrl;
vipRule.value = integralData.value?.qunyiInfo?.vipRule;
imgInfos.value = integralData.value?.qunyiInfo?.imgInfos;
vipQuanyiUrl.value = integralData.value?.qunyiInfo?.vipQuanyiUrl;
// vipQuanyiData.value = [];////??????
vipQuanyiData.value = integralData.value?.qunyiInfo?.vipLvsQuanyi;
tupianBanben.value = integralData.value?.tupianBanben;
quanyiBgs.value = integralData.value?.qunyiInfo?.quanyiBgs;
quanyitiaozhuanInfo.value = integralData.value?.quanyitiaozhuanInfo;
quanyiListIcon.value = [];
tabInfo.value = integralData.value?.goodsListData?.tabInfo;
listCommon.value = integralData.value?.goodsListData?.listCommon;
goodsData.value = integralData.value?.goodsListData?.goodsData;
productIdUrl.value = integralData.value?.goodsListData?.productIdUrl;
vipRule.value = integralData.value?.qunyiInfo?.vipRule;
imgInfos.value = integralData.value?.qunyiInfo?.imgInfos;
vipQuanyiUrl.value = integralData.value?.qunyiInfo?.vipQuanyiUrl;
// vipQuanyiData.value = [];////??????
vipQuanyiData.value = integralData.value?.qunyiInfo?.vipLvsQuanyi;
tupianBanben.value = integralData.value?.tupianBanben;
quanyiBgs.value = integralData.value?.qunyiInfo?.quanyiBgs;
quanyitiaozhuanInfo.value = integralData.value?.quanyitiaozhuanInfo;
quanyiListIcon.value = [];
imgInfos.value.forEach((element, index) => {
quanyiListIcon.value.push(element.img);
privilegeSizes.value.push({ width: element.width, height: element.height, name: element.name });
});
await userStore.loadMemberInfo();
quanyiListIcon.value.push(element.img);
privilegeSizes.value.push({ width: element.width, height: element.height, name: element.name });
});
await userStore.loadMemberInfo();
await integralStore.getSigninAndTaskInfo();
await integralStore.getPointsBenefitCoupon();
......@@ -1908,14 +1913,14 @@ onMounted(async () => {
initPointsBenefitCoupon();
//初始化ui
initNetData();
initNetData();
if (islogin.value) {
itemIndex.value = vipLevel.value;
itemIndex.value = vipLevel.value;
} else {
itemIndex.value = 0;
}
itemIndex.value = 0;
}
// 根据邀请用户类型显示对应的分享弹窗
// if (globalStore.invateUseType === 'new') {
......@@ -1928,41 +1933,41 @@ onMounted(async () => {
showShareNPopNoLogin.value = true;
}
hideLoading();
initExposure();
hideLoading();
initExposure();
//曝光埋点累计积分
//曝光埋点累计积分
if (memberInfo.value.grade == 0 && !memberInfo.value.orderUpgrade && points.value >= 1) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "累计积分"
});
}
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "累计积分"
});
}
if (getHuangjinMaxVal()[memberInfo.value.grade] != -1 && !(memberInfo.value.grade == 0 && !memberInfo.value.orderUpgrade && points.value >= 1)) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "累计积分"
});
}
});
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "累计积分"
});
}
});
const initExposure = () => {
imgInfos.value.forEach((item, index) => {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "会员权益",
componentContent: "会员权益-" + item.name
const initExposure = () => {
imgInfos.value.forEach((item, index) => {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "会员权益",
componentContent: "会员权益-" + item.name
});
});
});
}
}
const initSignin = () => {
if (!integralStore?.signinAndTaskInfo?.success) {
......@@ -2029,232 +2034,232 @@ const initPointsBenefitCoupon = () => {
console.log('积分权益券数据初始化完成:', benefitList.value);
}
const initNetData = () => {
console.log('initNetData');
memberInfo.value = userStore.memberInfo;
recentAnnualPointsTotal.value = memberInfo.value.recentAnnualPointsTotal;
willExpiredPoints.value = memberInfo.value.willExpiredPoints;
nextGradeScoreRuleMin.value = memberInfo.value.nextGradeScoreRuleMin;
vipLevel.value = memberInfo.value.grade;
// points.value = memberInfo.value.points;
const initNetData = () => {
console.log('initNetData');
memberInfo.value = userStore.memberInfo;
points.value = memberInfo.value.recentAnnualPointsTotal;
gradeList.value = memberInfo.value.gradeList;
recentAnnualPointsTotal.value = memberInfo.value.recentAnnualPointsTotal;
willExpiredPoints.value = memberInfo.value.willExpiredPoints;
nextGradeScoreRuleMin.value = memberInfo.value.nextGradeScoreRuleMin;
vipLevel.value = memberInfo.value.grade;
// points.value = memberInfo.value.points;
points.value = memberInfo.value.recentAnnualPointsTotal;
gradeList.value = memberInfo.value.gradeList;
if (memberInfo.value.memberId == "not_login") {
islogin.value = false;
islogin.value = false;
} else {
islogin.value = true
}
islogin.value = true
}
if (islogin.value) {
vipCardMd(vipLevel.value);
nickName.value = memberInfo.value.memberName;
// 清空之前的数据
// vipLvDatas.value = [];//??????????
// vipLvDatas.value = integralData.value.vipLvInfo;
// memberInfo.value?.gradeList.forEach((element, index) => {
// vipLvDatas.value.push({
// "vipName" : element.gradeName,
// });
// vipLvDatas.value[index].vipIcon = vipLvIcons.value[index];
// vipLvDatas.value[index].vipIconBg = vipLvIconBgs.value[index];
// vipLvDatas.value[index].vipNameImg = vipLvNameImgs.value[index];
// vipLvDatas.value[index].nickNameColor = nickNameColors.value[index];
// vipLvDatas.value[index].dangqianColor = dangqianColors.value[index];
// });
vipCardMd(vipLevel.value);
nickName.value = memberInfo.value.memberName;
// 清空之前的数据
// vipLvDatas.value = [];//??????????
// vipLvDatas.value = integralData.value.vipLvInfo;
// memberInfo.value?.gradeList.forEach((element, index) => {
// vipLvDatas.value.push({
// "vipName" : element.gradeName,
// });
// vipLvDatas.value[index].vipIcon = vipLvIcons.value[index];
// vipLvDatas.value[index].vipIconBg = vipLvIconBgs.value[index];
// vipLvDatas.value[index].vipNameImg = vipLvNameImgs.value[index];
// vipLvDatas.value[index].nickNameColor = nickNameColors.value[index];
// vipLvDatas.value[index].dangqianColor = dangqianColors.value[index];
// });
} else {
nickName.value = '未登录';
vipLvDatas.value = [{
"vipName": "登录查看会员等级",
"vipIcon": "imgPlatinum-1.png",
"vipIconBg": "imgPlatinumBg-1.png",
"nickNameColor": "#1d1e25",
"dangqianColor": "#b27c1e"
}];
nickName.value = '未登录';
vipLvDatas.value = [{
"vipName": "登录查看会员等级",
"vipIcon": "imgPlatinum-1.png",
"vipIconBg": "imgPlatinumBg-1.png",
"nickNameColor": "#1d1e25",
"dangqianColor": "#b27c1e"
}];
}
}
}
const vipCardMd = (vipLevel, isExposure = true) => {
const vipCardMd = (vipLevel, isExposure = true) => {
if (isExposure) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "等级卡牌点击" + lvNameMd(vipLevel)
});
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "等级卡牌点击" + lvNameMd(vipLevel)
});
} else {
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "等级卡牌点击" + lvNameMd(vipLevel)
});
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "等级卡牌点击" + lvNameMd(vipLevel)
});
}
}
}
const lvNameMd = (lv) => {
const lvNameMd = (lv) => {
switch (Number(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;
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点击事件
const bannerHandler = (item, index) => {
let buttonName = '';
//banner点击事件
const bannerHandler = (item, index) => {
let buttonName = '';
switch (index) {
case 0:
buttonName = '第一张焦点图';
break;
case 1:
buttonName = '第二张焦点图';
break;
case 2:
buttonName = '第三张焦点图';
break;
case 3:
buttonName = '第四张焦点图';
break;
}
case 0:
buttonName = '第一张焦点图';
break;
case 1:
buttonName = '第二张焦点图';
break;
case 2:
buttonName = '第三张焦点图';
break;
case 3:
buttonName = '第四张焦点图';
break;
}
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: buttonName,
});
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: buttonName,
});
if (item?.url != "") {
jump({
type: item.type,
url: item.url,
extra: item.extra
})
jump({
type: item.type,
url: item.url,
extra: item.extra
})
}
}
}
//攻略点击事件
const gonglueHandler = () => {
//攻略点击事件
const gonglueHandler = () => {
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: "攻略",
});
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: "攻略",
});
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "查看升级攻略"
});
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "查看升级攻略"
});
gotoGonglue();
// const url = vipIntegral.value.gonglue.url;
// const type = vipIntegral.value.gonglue.type;
// jump({
// type: type,
// url: url
// })
console.log('gonglueHandler')
}
gotoGonglue();
// const url = vipIntegral.value.gonglue.url;
// const type = vipIntegral.value.gonglue.type;
// jump({
// type: type,
// url: url
// })
console.log('gonglueHandler')
}
const gotoGonglue = async () => {
console.log('gotoGonglue1111111111');
const url = vipIntegral.value.gonglue.url;
const type = vipIntegral.value.gonglue.type;
jump({
type: type,
url: url
})
}
const gotoGonglue = async () => {
console.log('gotoGonglue1111111111');
const url = vipIntegral.value.gonglue.url;
const type = vipIntegral.value.gonglue.type;
jump({
type: type,
url: url
})
}
//积分详情点击事件---积分进度条容器
const integralHandler = () => {
//积分详情点击事件---积分进度条容器
const integralHandler = () => {
integralDetailHandler();
}
integralDetailHandler();
}
//会员规则
const vipRuleHandler = () => {
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: "会员规则入口",
});
//会员规则
const vipRuleHandler = () => {
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: "会员规则入口",
});
const url = vipRule.value.url;
const type = vipRule.value.type;
jump({
type: type,
url: url
})
console.log('vipRuleHandler')
}
const url = vipRule.value.url;
const type = vipRule.value.type;
jump({
type: type,
url: url
})
console.log('vipRuleHandler')
}
//积分明细点击事件
const integralDetailHandler = () => {
//积分明细点击事件
const integralDetailHandler = () => {
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: "积分明细",
});
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: "积分明细",
});
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "累计积分"
});
const url = vipIntegral.value.jifenmingxi.url.replace("{crmid}", memberInfo.value.memberId);
const type = vipIntegral.value.jifenmingxi.type;
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "累计积分"
});
const url = vipIntegral.value.jifenmingxi.url.replace("{crmid}", memberInfo.value.memberId);
const type = vipIntegral.value.jifenmingxi.type;
console.log('积分明细链接:==', url)
jump({
type: type,
url: url
})
}
jump({
type: type,
url: url
})
}
//会员活动点击事件
const handleVipActiveClick = (index, item) => {
//会员活动点击事件
const handleVipActiveClick = (index, item) => {
console.log('handleVipActiveClick==:', item);
let buttonName = '';
let buttonName = '';
switch (index) {
case 0:
buttonName = '第一张焦点图';
break;
case 1:
buttonName = '第二张焦点图';
break;
case 2:
buttonName = '第三张焦点图';
break;
case 0:
buttonName = '第一张焦点图';
break;
case 1:
buttonName = '第二张焦点图';
break;
case 2:
buttonName = '第三张焦点图';
break;
case 3:
buttonName = '第四张焦点图';
break;
......@@ -2267,17 +2272,17 @@ const handleVipActiveClick = (index, item) => {
case 6:
buttonName = '第七张焦点图';
break;
}
}
md.sensorLogTake({
xcxClick: "积分服务页-二屏页面点击",
pageName: "积分服务页-二屏",
buttonName: buttonName,
});
md.sensorLogTake({
xcxClick: "积分服务页-二屏页面点击",
pageName: "积分服务页-二屏",
buttonName: buttonName,
});
const url = item?.url;
const type = item?.type;
const extra = item?.extra;
const url = item?.url;
const type = item?.type;
const extra = item?.extra;
jump({ type, url, extra });
......@@ -2290,7 +2295,7 @@ const convertType = (type, url, extra = {}) => {
case "MINI_APP_THIRD":
return {
type: JumpType.MINI,
url: url,
url: url,
extra: extra
};
case "MINI_APP":
......@@ -2304,33 +2309,33 @@ const convertType = (type, url, extra = {}) => {
url: url
};
}
}
}
//商品点击
//商品点击
const handleGoodsItemClick = (goodsItem, googidx) => {
console.log('handleGoodsItemClick:', goodsItem, googidx);
let buttonName0 = '';
let buttonName1 = '';
let buttonName0 = '';
let buttonName1 = '';
switch (activeIndex.value) {
case 0:
buttonName0 = '品牌活动版分类1';
break;
case 1:
buttonName0 = '品牌活动版分类2';
break;
case 2:
buttonName0 = '品牌活动版分类3';
break;
}
case 0:
buttonName0 = '品牌活动版分类1';
break;
case 1:
buttonName0 = '品牌活动版分类2';
break;
case 2:
buttonName0 = '品牌活动版分类3';
break;
}
buttonName1 = `-商品${googidx}`;
md.sensorLogTake({
xcxClick: "积分服务页-二屏页面点击",
pageName: "积分服务页-二三四屏",
buttonName: buttonName0 + buttonName1,
});
buttonName1 = `-商品${googidx}`;
md.sensorLogTake({
xcxClick: "积分服务页-二屏页面点击",
pageName: "积分服务页-二三四屏",
buttonName: buttonName0 + buttonName1,
});
//原逻辑
// let item = productIdUrl.value[goodsItem][googidx - 1];
......@@ -2352,107 +2357,107 @@ const handleGoodsItemClick = (goodsItem, googidx) => {
extra.embedded = true; //半屏拉起小程序
jump({
jump({
type: Number(type),
url: url,
url: url,
extra: extra
})
}
const handleScroll = (e) => {
const currentIndex = e.detail.current;
// console.log('当前swiper-item索引:', currentIndex);
itemIndex.value = currentIndex;
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "等级卡牌切换"
});
vipCardMd(currentIndex);
// 获取当前滚动位置
// const scrollLeft = e.detail.scrollLeft;
// const directionVal = ref(0.3);
// if ((scrollLeft - lastScrollLeft.value) > 0) {
// directionVal.value = 0.3;
// }else{
// directionVal.value = -0.3;
// }
// lastScrollLeft.value = scrollLeft;
// itemIndex.value = Math.round(scrollLeft / itemWidth + directionVal.value);
}
})
}
//滚动结束时更新数据
const scrollToIndex = (index) => {
const handleScroll = (e) => {
const currentIndex = e.detail.current;
// console.log('当前swiper-item索引:', currentIndex);
itemIndex.value = currentIndex;
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "等级卡牌",
componentContent: "等级卡牌切换"
});
vipCardMd(currentIndex);
// 获取当前滚动位置
// const scrollLeft = e.detail.scrollLeft;
// const directionVal = ref(0.3);
// if ((scrollLeft - lastScrollLeft.value) > 0) {
// directionVal.value = 0.3;
// }else{
// directionVal.value = -0.3;
// }
// lastScrollLeft.value = scrollLeft;
// itemIndex.value = Math.round(scrollLeft / itemWidth + directionVal.value);
};
}
const tabItemClick = (index) => {
//滚动结束时更新数据
const scrollToIndex = (index) => {
};
activeIndex.value = index;
const tabItemClick = (index) => {
activeIndex.value = index;
let buttonName = '';
let buttonName = '';
switch (index) {
case 0:
buttonName = '品牌活动版块部分-分类1';
break;
case 1:
buttonName = '品牌活动版块部分-分类2';
break;
case 2:
buttonName = '品牌活动版块部分-分类3';
break;
}
case 0:
buttonName = '品牌活动版块部分-分类1';
break;
case 1:
buttonName = '品牌活动版块部分-分类2';
break;
case 2:
buttonName = '品牌活动版块部分-分类3';
break;
}
console.log('buttonName=', buttonName);
md.sensorLogTake({
xcxClick: "积分服务页-二屏页面点击",
pageName: "积分服务页-二屏",
buttonName: buttonName,
});
}
md.sensorLogTake({
xcxClick: "积分服务页-二屏页面点击",
pageName: "积分服务页-二屏",
buttonName: buttonName,
});
}
// 处理查看更多点击
const handleMoreClick = () => {
const url = clickMore.value.url;
const type = clickMore.value.type;
const extra = clickMore.value.extra;
// 处理查看更多点击
const handleMoreClick = () => {
const url = clickMore.value.url;
const type = clickMore.value.type;
const extra = clickMore.value.extra;
jump({
type: type,
url: url,
jump({
type: type,
url: url,
extra: extra
})
}
})
}
//积分兑换按钮点击事件
const handleExchargeClick = () => {
//积分兑换按钮点击事件
const handleExchargeClick = () => {
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: "积分兑换",
});
const url = vipIntegral.value.excharge.url;
const type = vipIntegral.value.excharge.type;
const extra = vipIntegral.value.excharge.extra;
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: "积分兑换",
});
const url = vipIntegral.value.excharge.url;
const type = vipIntegral.value.excharge.type;
const extra = vipIntegral.value.excharge.extra;
jump({
type: type,
url: url,
jump({
type: type,
url: url,
extra: extra
})
}
})
}
//会员权益点击跳转
const handlePrivilegeClick = (item, index) => {
//会员权益点击跳转
const handlePrivilegeClick = (item, index) => {
if (!islogin.value) {
needReinit.value = true
jump({
......@@ -2463,98 +2468,98 @@ const handlePrivilegeClick = (item, index) => {
}
// jump({
// type: JumpType.H5,
// url: "https://fh0926-activity.dexfu.cn/customShare/share?id=Did1NjI1NTE"
// })
// return;
// jump({
// type: JumpType.H5,
// url: "https://fh0926-activity.dexfu.cn/customShare/share?id=Did1NjI1NTE"
// })
// return;
selectIdx.value = index;
selectIdx.value = index;
if (!isshowShouqi.value) {
isshowShouqi.value = true;
}
isshowShouqi.value = true;
}
if (!isshowQuanyiDetail.value) {
isshowQuanyiDetail.value = true;
isshowQuanyiDetail.value = true;
}
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: `${item.name}`,
});
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "会员权益",
componentContent: "会员权益-" + item.name
});
console.log('selectIdx.value=', selectIdx.value);
// const url = vipQuanyiUrl.value.url;
// const type = vipQuanyiUrl.value.type;
// const extra = vipQuanyiUrl.value.extra;
// jump({
// type: type,
// url: url,
// extra:extra
// })
}
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
pageName: "积分服务页-首屏",
buttonName: `${item.name}`,
});
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "积分服务页",
componentName: "会员权益",
componentContent: "会员权益-" + item.name
});
console.log('selectIdx.value=', selectIdx.value);
// const url = vipQuanyiUrl.value.url;
// const type = vipQuanyiUrl.value.type;
// const extra = vipQuanyiUrl.value.extra;
// jump({
// type: type,
// url: url,
// extra:extra
// })
}
const navigateToRegister = async (e) => {
console.log("获取手机号码", e);
console.log("获取手机号码", e);
jump({
type: JumpType.INNER,
url: "/pages/activity/register",
})
};
};
// 处理注册确认
const handleRegisterConfirm = async (babyInfo) => {
console.log("注册确认,宝宝信息:", babyInfo);
await userStore.loadMemberInfo();
showRegisterLayer.value = false;
initNetData();
};
// 处理注册确认
const handleRegisterConfirm = async (babyInfo) => {
console.log("注册确认,宝宝信息:", babyInfo);
await userStore.loadMemberInfo();
showRegisterLayer.value = false;
initNetData();
};
// 处理注册取消
const handleRegisterCancel = () => {
showRegisterLayer.value = false;
console.log("注册取消");
};
// 处理注册取消
const handleRegisterCancel = () => {
showRegisterLayer.value = false;
console.log("注册取消");
};
// 优惠券点击事件处理
const handleCouponClick = (data) => {
console.log('优惠券点击:', data.index, data.couponIndex);
// 这里可以添加优惠券点击的具体逻辑
// 比如跳转到对应的商品页面或显示优惠券详情
};
// 优惠券点击事件处理
const handleCouponClick = (data) => {
console.log('优惠券点击:', data.index, data.couponIndex);
// 这里可以添加优惠券点击的具体逻辑
// 比如跳转到对应的商品页面或显示优惠券详情
};
// 去星妈优选按钮点击事件处理
const handleGoToShop = (data) => {
console.log('去星妈优选:', data.index);
// 这里可以添加跳转到星妈优选的逻辑
// 比如跳转到商城页面或相关活动页面
};
// 去星妈优选按钮点击事件处理
const handleGoToShop = (data) => {
console.log('去星妈优选:', data.index);
// 这里可以添加跳转到星妈优选的逻辑
// 比如跳转到商城页面或相关活动页面
};
const handleGoToShop_mainfeiwenzhen = async (data) => {
console.log('免费问诊:', data.index);
const res = await getHealthField();
const handleGoToShop_mainfeiwenzhen = async (data) => {
console.log('免费问诊:', data.index);
const res = await getHealthField();
if (!res.success) {
if (!res.success) {
uni.showToast({
title: "获取健康字段失败",
icon: "none",
});
return;
}
}
const { sign, timestamp, appId, partnerUserId, env } = res.data;
const { sign, timestamp, appId, partnerUserId, env } = res.data;
jump({
jump({
type: JumpType.MINI,
url: "/pages/partner/redirect",
extra: {
......@@ -2569,138 +2574,138 @@ const handleGoToShop_mainfeiwenzhen = async (data) => {
"/h5/partner/shining-like-a-start/landing-free-consult?sysType=CRF",
},
},
});
};
const handleGoToShop_aibenxinrenli = (data) => {
});
};
const handleGoToShop_aibenxinrenli = (data) => {
if (Number(data.index) === 0) {
gotoGonglue();
}
};
gotoGonglue();
}
};
const handleGoToShop_zhuanduanli = (data) => {
console.log('转段礼', data.index);
const handleGoToShop_zhuanduanli = (data) => {
console.log('转段礼', data.index);
if (Number(data.index) === 0) {
gotoGonglue();
}
};
gotoGonglue();
}
};
const handleGoToShop_jinjili = (data) => {
console.log('晋级礼', data.index);
const handleGoToShop_jinjili = (data) => {
console.log('晋级礼', data.index);
if (Number(data.index) === 0 || Number(data.index) === 1) {
gotoGonglue();
}
};
gotoGonglue();
}
};
// 页面跳转-添加宝宝
const navigateTo = (url) => {
uni.navigateTo({
url,
animationDuration: 0,
fail: (err) => {
// 页面跳转-添加宝宝
const navigateTo = (url) => {
uni.navigateTo({
url,
animationDuration: 0,
fail: (err) => {
console.error("页面跳转失败:", err);
uni.showToast({
title: "页面跳转失败",
icon: "none",
});
},
});
};
},
});
};
const handleGoToShop_shengrili = async (data) => {
console.log('生日礼', data.index);
// debugger;
const userStore = data.userStore;
const handleGoToShop_shengrili = async (data) => {
console.log('生日礼', data.index);
// debugger;
const userStore = data.userStore;
if (!(userStore.babyInfo?.allBabyBaseInfo && userStore.babyInfo?.allBabyBaseInfo.length > 0) && islogin.value) {
//没有宝宝,跳转到添加宝宝页面
//没有宝宝,跳转到添加宝宝页面
if (itemIndex.value < 2) {
gotoGonglue();
gotoGonglue();
} else {
showShengriliTipPanel.value = true;
}
return;
showShengriliTipPanel.value = true;
}
return;
} else {
if (userStore.babyInfo?.allBabyBaseInfo?.some(baby => baby.babyStage == 2)) {
} else {
if (itemIndex.value < 2) {
gotoGonglue();
gotoGonglue();
} else {
showShengriliTipPanel.value = true;
showShengriliTipPanel.value = true;
}
return;
}
return;
}
}
switch (data.index) {
case 4000:
case 4000:
if (memberInfo.value?.grade < 2) {
gotoGonglue();
}
gotoGonglue();
}
break;
case 3000:
//去领取
const data = await fetchBatchReceiveJSON();
console.log('data22222==', data);
// const data = {"code":"000000","data":{"babyInfo":[{"babyBirthday":"2025-08-01","babyName":"男宝","babyNum":1}],"clientOpenId":"string","equityCode":"string","grade":"2","memberId":"CRM000000000948094264","status":3000,"statusName":"string","subStatus":0,"subStatusName":"string","traceId":"string"},"message":"success","ok":true,"success":true}
case 3000:
//去领取
const data = await fetchBatchReceiveJSON();
console.log('data22222==', data);
// const data = {"code":"000000","data":{"babyInfo":[{"babyBirthday":"2025-08-01","babyName":"男宝","babyNum":1}],"clientOpenId":"string","equityCode":"string","grade":"2","memberId":"CRM000000000948094264","status":3000,"statusName":"string","subStatus":0,"subStatusName":"string","traceId":"string"},"message":"success","ok":true,"success":true}
if (data.success) {
showPopupShengri.value = true;
}
showPopupShengri.value = true;
}
break;
case 2000:
case 2000:
//去升级
gotoGonglue();
gotoGonglue();
break;
case 1000:
jump(quanyitiaozhuanInfo?.value?.shengrili?.qushiyong);
//去使用
case 1000:
jump(quanyitiaozhuanInfo?.value?.shengrili?.qushiyong);
//去使用
break;
default:
default:
//去领取
break;
}
};
}
};
const handleGoToShop_suyuanyou = (data) => {
const handleGoToShop_suyuanyou = (data) => {
if (data.index < 3) {
gotoGonglue();
gotoGonglue();
} else {
jump(quanyitiaozhuanInfo?.value?.suyuanyou?.qubaoming);
}
};
jump(quanyitiaozhuanInfo?.value?.suyuanyou?.qubaoming);
}
};
const handleVipClick = () => {
const handleVipClick = () => {
if (!islogin.value) {
needReinit.value = true
jump({
type: JumpType.INNER,
url: "/pages/activity/register",
})
return;
}
return;
}
vipCardMd(vipLevel.value, false);
const item = vipIntegral.value.vipCardInfo;
vipCardMd(vipLevel.value, false);
const item = vipIntegral.value.vipCardInfo;
console.log('item66666777777:', item);
if (item.url == "") {
return;
return;
}
jump({
type: item.type,
url: item.url,
extra: item.extra
})
// if(islogin.value){
// // console.log('点击了vip等级:',index);
// }else{
// }
}
jump({
type: item.type,
url: item.url,
extra: item.extra
})
// if(islogin.value){
// // console.log('点击了vip等级:',index);
// }else{
// }
}
// 帮助图标点击事件
const handleHelpClick = () => {
console.log('帮助图标点击');
......
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