Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
f25412f1
Commit
f25412f1
authored
Oct 30, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
66666
parent
8d51be73
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
896 additions
and
864 deletions
+896
-864
sharepage.less
pages/invate/sharepage.less
+1
-1
sharepage.vue
pages/invate/sharepage.vue
+1
-1
Integral.less
views/Integral.less
+28
-1
Integral.vue
views/Integral.vue
+866
-861
No files found.
pages/invate/sharepage.less
View file @
f25412f1
...
...
@@ -52,7 +52,7 @@
left: 0;
width: 100%;
height: 100%;
opacity: 0
.2
;
opacity: 0;
background-color: #000;
}
}
...
...
pages/invate/sharepage.vue
View file @
f25412f1
...
...
@@ -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
;
}
...
...
views/Integral.less
View file @
f25412f1
...
...
@@ -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: 2
45
rpx;
width: 2
30
rpx;
height: 112rpx;
display: flex;
flex-direction: column;
align-items: center;
flex-shrink: 0; // 防止收缩
// 当在 tabs-many 中时,确保不换行
.tabs-many & {
white-space: nowrap;
}
&.active {
.tab-line1 {
...
...
views/Integral.vue
View file @
f25412f1
...
...
@@ -353,7 +353,11 @@
<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,
...
...
@@ -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
)
=>
{
// 进度条图片加载错误处理
const
onProgressBarError
=
(
e
)
=>
{
console
.
error
(
'进度条图片加载失败:'
,
e
)
// 可以设置默认样式或显示错误提示
}
}
function
testGoto195
()
{
return
...
...
@@ -615,9 +619,9 @@ 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"
,
...
...
@@ -1431,65 +1435,65 @@ const integralData = ref({
}
]
}
}
);
}
);
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
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
activeIndex
=
ref
(
0
);
//tabbar选中项
const
showRegisterLayer
=
ref
(
false
);
const
tupianBanben
=
ref
(
integralData
.
value
?.
tupianBanben
);
//图片版本号
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
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
lastScrollLeft
=
ref
(
0
);
const
vipQuanyiData
=
ref
(
integralData
.
value
?.
qunyiInfo
?.
vipLvsQuanyi
);
const
quanyiBgs
=
ref
(
integralData
.
value
?.
qunyiInfo
?.
quanyiBgs
);
const
vipQuanyiData
=
ref
(
integralData
.
value
?.
qunyiInfo
?.
vipLvsQuanyi
);
const
quanyiBgs
=
ref
(
integralData
.
value
?.
qunyiInfo
?.
quanyiBgs
);
const
recentAnnualPointsTotal
=
ref
(
0
);
const
nextGradeScoreRuleMin
=
ref
(
0
);
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
vipBgArr
=
ref
([]);
const
privilegeSizes
=
ref
([
const
privilegeSizes
=
ref
([
{
width
:
'68rpx'
,
height
:
'87rpx'
,
name
:
'月月礼'
}
,
{
width
:
'70rpx'
,
height
:
'91rpx'
,
name
:
'生日礼'
}
,
{
width
:
'94rpx'
,
height
:
'87rpx'
,
name
:
'育儿课程'
}
,
...
...
@@ -1500,15 +1504,15 @@ const privilegeSizes = ref([
{
width
:
'94rpx'
,
height
:
'87rpx'
,
name
:
'尝鲜有礼'
}
,
{
width
:
'70rpx'
,
height
:
'89rpx'
,
name
:
'晋级礼'
}
,
{
width
:
'71rpx'
,
height
:
'90rpx'
,
name
:
'溯源游'
}
]);
]);
const
userStore
=
useUserStore
();
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
({
}
);
// 签到状态数组,控制每天是否已签到
...
...
@@ -1576,16 +1580,16 @@ const isToday = ref(false);
//今天是第几天
const
todaynum
=
ref
(
0
);
// Props 定义
const
props
=
defineProps
({
// Props 定义
const
props
=
defineProps
({
scrollTop
:
{
type
:
Number
,
default
:
0
}
}
)
}
)
//babyStage 宝宝阶段 0备用 1孕中 2出生 ,null无数据
const
gotoAddBaby
=
()
=>
{
//babyStage 宝宝阶段 0备用 1孕中 2出生 ,null无数据
const
gotoAddBaby
=
()
=>
{
if
(
userStore
.
babyInfo
?.
allBabyBaseInfo
?.
some
(
baby
=>
baby
.
babyStage
==
2
))
{
}
else
{
...
...
@@ -1617,11 +1621,11 @@ const gotoAddBaby = () => {
}
}
}
}
//isshowShouqi 为true 时,展示收起按详情,为false 时,展示查看详情
const
handleZhankaiClick
=
()
=>
{
//isshowShouqi 为true 时,展示收起按详情,为false 时,展示查看详情
const
handleZhankaiClick
=
()
=>
{
isshowShouqi
.
value
=
!
isshowShouqi
.
value
;
isshowQuanyiDetail
.
value
=
!
isshowQuanyiDetail
.
value
;
...
...
@@ -1629,9 +1633,9 @@ const handleZhankaiClick = () => {
// if(!isshowShouqi.value)
{
// selectIdx.value = -1;
//
}
}
}
//原始数值:(points.value/maxVal.value[memberInfo.value.grade])*100;
const
getProgress
=
(
index
)
=>
{
const
getProgress
=
(
index
)
=>
{
let
progress
=
0
;
const
val
=
getHuangjinMaxVal
()[
index
];
progress
=
(
points
.
value
/
val
)
*
100
;
...
...
@@ -1642,14 +1646,14 @@ const getProgress = (index) => {
progress
=
0
;
}
return
progress
;
}
}
// 将天数转换为星期标签
const
getWeekdayLabel
=
(
day
)
=>
{
const
weekdays
=
[
''
,
'周一'
,
'周二'
,
'周三'
,
'周四'
,
'周五'
,
'周六'
,
'周日'
];
return
weekdays
[
day
]
||
`第${day
}
天`
;
}
const
getColor
=
(
type
)
=>
{
const
getColor
=
(
type
)
=>
{
let
colors
=
''
;
switch
(
type
)
{
case
'chakangonglue'
:
...
...
@@ -1736,10 +1740,10 @@ const getColor = (type) => {
}
return
colors
;
}
}
// 监听 scrollTop 变化
watch
(()
=>
props
.
scrollTop
,
(
newVal
)
=>
{
// 监听 scrollTop 变化
watch
(()
=>
props
.
scrollTop
,
(
newVal
)
=>
{
// console.log('scrollTop 变化:', newVal)
// 执行相关逻辑,如曝光检测
...
...
@@ -1779,9 +1783,9 @@ watch(() => props.scrollTop, (newVal) => {
}
}
}
)
}
)
const
getHuangjinMaxVal
=
()
=>
{
const
getHuangjinMaxVal
=
()
=>
{
let
maxVal
=
[];
if
(
!
islogin
.
value
)
{
...
...
@@ -1807,12 +1811,12 @@ const getHuangjinMaxVal = () => {
}
return
maxVal
;
}
}
onBeforeMount
(
async
()
=>
{
console
.
log
(
'onBeforeMount'
);
}
)
}
)
onShow
(
async
()
=>
{
console
.
log
(
'onShow'
);
...
...
@@ -1868,6 +1872,7 @@ onMounted(async () => {
goodsDataArr
.
value
=
integralData
?.
value
?.
goodsList
;
swiperData
.
value
=
integralData
.
value
?.
swiper
;
vipLvIcons
.
value
=
integralData
.
value
?.
viplv
?.
imgs
;
vipLvIconBgs
.
value
=
integralData
.
value
?.
viplv
?.
imgBgs
;
...
...
@@ -1951,9 +1956,9 @@ onMounted(async () => {
componentContent
:
"累计积分"
}
);
}
}
);
}
);
const
initExposure
=
()
=>
{
const
initExposure
=
()
=>
{
imgInfos
.
value
.
forEach
((
item
,
index
)
=>
{
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
...
...
@@ -1962,7 +1967,7 @@ const initExposure = () => {
componentContent
:
"会员权益-"
+
item
.
name
}
);
}
);
}
}
const
initSignin
=
()
=>
{
if
(
!
integralStore
?.
signinAndTaskInfo
?.
success
)
{
...
...
@@ -2029,7 +2034,7 @@ const initPointsBenefitCoupon = () => {
console
.
log
(
'积分权益券数据初始化完成:'
,
benefitList
.
value
);
}
const
initNetData
=
()
=>
{
const
initNetData
=
()
=>
{
console
.
log
(
'initNetData'
);
memberInfo
.
value
=
userStore
.
memberInfo
;
...
...
@@ -2079,10 +2084,10 @@ const initNetData = () => {
"dangqianColor"
:
"#b27c1e"
}
];
}
}
}
const
vipCardMd
=
(
vipLevel
,
isExposure
=
true
)
=>
{
const
vipCardMd
=
(
vipLevel
,
isExposure
=
true
)
=>
{
if
(
isExposure
)
{
md
.
sensorComponentLogTake
({
xcxComponentExposure
:
"true"
,
...
...
@@ -2100,9 +2105,9 @@ const vipCardMd = (vipLevel, isExposure = true) => {
}
);
}
}
}
const
lvNameMd
=
(
lv
)
=>
{
const
lvNameMd
=
(
lv
)
=>
{
switch
(
Number
(
lv
))
{
case
0
:
return
'V1黄金会员'
;
...
...
@@ -2120,9 +2125,9 @@ const lvNameMd = (lv) => {
return
'V5星耀会员'
;
break
;
}
}
//banner点击事件
const
bannerHandler
=
(
item
,
index
)
=>
{
}
//banner点击事件
const
bannerHandler
=
(
item
,
index
)
=>
{
let
buttonName
=
''
;
switch
(
index
)
{
case
0
:
...
...
@@ -2152,12 +2157,12 @@ const bannerHandler = (item, index) => {
extra
:
item
.
extra
}
)
}
}
}
//攻略点击事件
const
gonglueHandler
=
()
=>
{
//攻略点击事件
const
gonglueHandler
=
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"积分服务页-首屏页面点击"
,
...
...
@@ -2180,9 +2185,9 @@ const gonglueHandler = () => {
// url: url
//
}
)
console
.
log
(
'gonglueHandler'
)
}
}
const
gotoGonglue
=
async
()
=>
{
const
gotoGonglue
=
async
()
=>
{
console
.
log
(
'gotoGonglue1111111111'
);
const
url
=
vipIntegral
.
value
.
gonglue
.
url
;
const
type
=
vipIntegral
.
value
.
gonglue
.
type
;
...
...
@@ -2190,16 +2195,16 @@ const gotoGonglue = async () => {
type
:
type
,
url
:
url
}
)
}
}
//积分详情点击事件---积分进度条容器
const
integralHandler
=
()
=>
{
//积分详情点击事件---积分进度条容器
const
integralHandler
=
()
=>
{
integralDetailHandler
();
}
}
//会员规则
const
vipRuleHandler
=
()
=>
{
//会员规则
const
vipRuleHandler
=
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"积分服务页-首屏页面点击"
,
pageName
:
"积分服务页-首屏"
,
...
...
@@ -2213,10 +2218,10 @@ const vipRuleHandler = () => {
url
:
url
}
)
console
.
log
(
'vipRuleHandler'
)
}
}
//积分明细点击事件
const
integralDetailHandler
=
()
=>
{
//积分明细点击事件
const
integralDetailHandler
=
()
=>
{
md
.
sensorLogTake
({
xcxClick
:
"积分服务页-首屏页面点击"
,
...
...
@@ -2239,10 +2244,10 @@ const integralDetailHandler = () => {
type
:
type
,
url
:
url
}
)
}
}
//会员活动点击事件
const
handleVipActiveClick
=
(
index
,
item
)
=>
{
//会员活动点击事件
const
handleVipActiveClick
=
(
index
,
item
)
=>
{
console
.
log
(
'handleVipActiveClick==:'
,
item
);
let
buttonName
=
''
;
switch
(
index
)
{
...
...
@@ -2304,10 +2309,10 @@ const convertType = (type, url, extra = {}) => {
url
:
url
}
;
}
}
}
//商品点击
//商品点击
const
handleGoodsItemClick
=
(
goodsItem
,
googidx
)
=>
{
console
.
log
(
'handleGoodsItemClick:'
,
goodsItem
,
googidx
);
...
...
@@ -2357,9 +2362,9 @@ const handleGoodsItemClick = (goodsItem, googidx) => {
url: url,
extra: extra
}
)
}
}
const handleScroll = (e) => {
const handleScroll = (e) => {
const currentIndex = e.detail.current;
// console.log('
当前
swiper
-
item
索引
:
', currentIndex);
itemIndex.value = currentIndex;
...
...
@@ -2384,15 +2389,15 @@ const handleScroll = (e) => {
// itemIndex.value = Math.round(scrollLeft / itemWidth + directionVal.value);
}
}
//滚动结束时更新数据
const scrollToIndex = (index) => {
//滚动结束时更新数据
const scrollToIndex = (index) => {
}
;
}
;
const tabItemClick = (index) => {
const tabItemClick = (index) => {
activeIndex.value = index;
...
...
@@ -2416,10 +2421,10 @@ const tabItemClick = (index) => {
pageName: "积分服务页-二屏",
buttonName: buttonName,
}
);
}
}
// 处理查看更多点击
const handleMoreClick = () => {
// 处理查看更多点击
const handleMoreClick = () => {
const url = clickMore.value.url;
const type = clickMore.value.type;
const extra = clickMore.value.extra;
...
...
@@ -2429,10 +2434,10 @@ const handleMoreClick = () => {
url: url,
extra: extra
}
)
}
}
//积分兑换按钮点击事件
const handleExchargeClick = () => {
//积分兑换按钮点击事件
const handleExchargeClick = () => {
md.sensorLogTake({
xcxClick: "积分服务页-首屏页面点击",
...
...
@@ -2449,10 +2454,10 @@ const handleExchargeClick = () => {
url: url,
extra: extra
}
)
}
}
//会员权益点击跳转
const handlePrivilegeClick = (item, index) => {
//会员权益点击跳转
const handlePrivilegeClick = (item, index) => {
if (!islogin.value) {
needReinit.value = true
jump({
...
...
@@ -2500,7 +2505,7 @@ const handlePrivilegeClick = (item, index) => {
// url: url,
// extra:extra
//
}
)
}
}
const navigateToRegister = async (e) => {
...
...
@@ -2510,37 +2515,37 @@ const navigateToRegister = async (e) => {
type: JumpType.INNER,
url: "/pages/activity/register",
}
)
}
;
}
;
// 处理注册确认
const handleRegisterConfirm = async (babyInfo) => {
// 处理注册确认
const handleRegisterConfirm = async (babyInfo) => {
console.log("注册确认,宝宝信息:", babyInfo);
await userStore.loadMemberInfo();
showRegisterLayer.value = false;
initNetData();
}
;
}
;
// 处理注册取消
const handleRegisterCancel = () => {
// 处理注册取消
const handleRegisterCancel = () => {
showRegisterLayer.value = false;
console.log("注册取消");
}
;
}
;
// 优惠券点击事件处理
const handleCouponClick = (data) => {
// 优惠券点击事件处理
const handleCouponClick = (data) => {
console.log('
优惠券点击
:
', data.index, data.couponIndex);
// 这里可以添加优惠券点击的具体逻辑
// 比如跳转到对应的商品页面或显示优惠券详情
}
;
}
;
// 去星妈优选按钮点击事件处理
const handleGoToShop = (data) => {
// 去星妈优选按钮点击事件处理
const handleGoToShop = (data) => {
console.log('
去星妈优选
:
', data.index);
// 这里可以添加跳转到星妈优选的逻辑
// 比如跳转到商城页面或相关活动页面
}
;
}
;
const handleGoToShop_mainfeiwenzhen = async (data) => {
const handleGoToShop_mainfeiwenzhen = async (data) => {
console.log('
免费问诊
:
', data.index);
const res = await getHealthField();
...
...
@@ -2570,31 +2575,31 @@ const handleGoToShop_mainfeiwenzhen = async (data) => {
}
,
}
,
}
);
}
;
}
;
const handleGoToShop_aibenxinrenli = (data) => {
const handleGoToShop_aibenxinrenli = (data) => {
if (Number(data.index) === 0) {
gotoGonglue();
}
}
;
}
;
const handleGoToShop_zhuanduanli = (data) => {
const handleGoToShop_zhuanduanli = (data) => {
console.log('
转段礼
', data.index);
if (Number(data.index) === 0) {
gotoGonglue();
}
}
;
}
;
const handleGoToShop_jinjili = (data) => {
const handleGoToShop_jinjili = (data) => {
console.log('
晋级礼
', data.index);
if (Number(data.index) === 0 || Number(data.index) === 1) {
gotoGonglue();
}
}
;
}
;
// 页面跳转-添加宝宝
const navigateTo = (url) => {
// 页面跳转-添加宝宝
const navigateTo = (url) => {
uni.navigateTo({
url,
animationDuration: 0,
...
...
@@ -2606,9 +2611,9 @@ const navigateTo = (url) => {
}
);
}
,
}
);
}
;
}
;
const handleGoToShop_shengrili = async (data) => {
const handleGoToShop_shengrili = async (data) => {
console.log('
生日礼
', data.index);
// debugger;
const userStore = data.userStore;
...
...
@@ -2662,17 +2667,17 @@ const handleGoToShop_shengrili = async (data) => {
//去领取
break;
}
}
;
}
;
const handleGoToShop_suyuanyou = (data) => {
const handleGoToShop_suyuanyou = (data) => {
if (data.index < 3) {
gotoGonglue();
}
else {
jump(quanyitiaozhuanInfo?.value?.suyuanyou?.qubaoming);
}
}
;
}
;
const handleVipClick = () => {
const handleVipClick = () => {
if (!islogin.value) {
needReinit.value = true
jump({
...
...
@@ -2699,7 +2704,7 @@ const handleVipClick = () => {
// // console.log('
点击了
vip
等级:
',index);
//
}
else{
//
}
}
}
// 帮助图标点击事件
const handleHelpClick = () => {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment