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
69f84a38
Commit
69f84a38
authored
Oct 13, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
315a0743
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
54 deletions
+68
-54
Home.vue
views/Home.vue
+13
-1
My.vue
views/My.vue
+55
-53
No files found.
views/Home.vue
View file @
69f84a38
<
template
>
<view
class=
"home-container"
@
scroll=
"onPageScroll"
>
<!-- 可拖拽悬浮图片 -->
<view
class=
"floating-image-container"
v-if=
"floatIcon.imageUrl"
<view
class=
"floating-image-container"
v-if=
"floatIcon.imageUrl
&& !isAnyPopupVisible
"
:style=
"
{ left: floatIconPosition.left + 'px', top: floatIconPosition.top + 'px' }"
@touchstart="onTouchStart" @touchmove="onTouchMove" @touchend="onTouchEnd" @tap="onfloatIconClick">
<image
class=
"floating-image"
...
...
@@ -500,6 +500,18 @@ export default {
computed
:
{
homeStore
()
{
return
useHomeStore
();
},
// 检查是否有任何弹窗可见
isAnyPopupVisible
()
{
// 视频弹窗是否显示
if
(
this
.
showVideo
)
return
true
;
// 注册弹窗是否显示
if
(
this
.
showRegisterLayer
)
return
true
;
// 普通弹窗是否显示
if
(
this
.
$refs
.
popup
&&
this
.
$refs
.
popup
.
show
)
return
true
;
// 图片弹窗是否显示
if
(
this
.
$refs
.
imagePopup
&&
this
.
$refs
.
imagePopup
.
show
)
return
true
;
return
false
;
}
},
props
:
{
...
...
views/My.vue
View file @
69f84a38
...
...
@@ -62,12 +62,9 @@
</view>
<view
class=
"integralContainer"
@
click=
"handleIntegralClick"
>
<image
class=
"integralIcon"
src=
"https://course.feihe.com/momclub-picture/my/integralBg.png"
mode=
"aspectFit"
/>
<text
class=
"integralText0"
>
{{
points
||
"0"
}}
</text>
<image
class=
"integralIcon"
src=
"https://course.feihe.com/momclub-picture/my/integralBg.png"
mode=
"aspectFit"
/>
<text
class=
"integralText0"
>
{{
points
||
"0"
}}
</text>
<text
class=
"integralText1"
>
积分
</text>
</view>
</view>
...
...
@@ -99,12 +96,11 @@
<text
class=
"tool-title"
>
工具
</text>
<view
class=
"tool-list"
>
<view
class=
"tool-item"
v-for=
"item in toolList"
:key=
"item.title"
@
click=
"handleToolClick(item)"
>
<image
class=
"tool-icon"
:src=
"$baseUrl + item.bgUrl"
mode=
"aspectFit"
/>
<image
class=
"tool-icon"
:src=
"item.bgUrl?.includes('http') ? item.bgUrl : $baseUrl + item.bgUrl"
mode=
"aspectFit"
/>
<!-- || item.title == '产检提醒' || item.title == '喂养记录' || item.title == '生长测评' -->
<button
v-if=
"(item.title == '医生问诊') && !cfgStatus.isRegister"
class=
"tool-btn-register"
type=
"primary"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getRealtimePhoneNumber"
/>
<button
v-if=
"(item.title == '医生问诊') && !cfgStatus.isRegister"
class=
"tool-btn-register"
type=
"primary"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getRealtimePhoneNumber"
/>
</view>
</view>
</view>
...
...
@@ -115,7 +111,9 @@
:autoplay=
"true"
:circular=
"true"
indicator-color=
"#dfddd9"
indicator-active-color=
"#b27c1e"
:indicator-top=
"32"
>
<swiper-item
v-for=
"(item, index) in pageCfgStore?.contentCfg?.activeInfo"
:key=
"index"
>
<image
class=
"vip-active-img"
:src=
"$baseUrl + `$
{item?.bgUrl}`" mode="aspectFit" @click="handleVipActiveClick(index, item)" />
<image
class=
"vip-active-img"
:src=
"item?.bgUrl?.includes('http') ? item?.bgUrl : $baseUrl + `$
{item?.bgUrl}`" mode="aspectFit"
@click="handleVipActiveClick(index, item)" />
</swiper-item>
</swiper>
</view>
...
...
@@ -431,7 +429,7 @@ const handleIntegralClick = () => {
});
const
urlStr
=
'https://mom.feihe.com/member/mine/newPointDetail?crmId={crmid}&appCode=XMH'
;
const
url
=
urlStr
.
replace
(
"{crmid}"
,
userStore
.
babyInfo
?.
memberId
);
console
.
log
(
'积分明细链接:=='
,
url
)
console
.
log
(
'积分明细链接:=='
,
url
)
jump
({
type
:
3
,
...
...
@@ -793,12 +791,14 @@ defineExpose({});
right: 0rpx;
width: 226rpx;
height: 166rpx;
.integralIcon {
position: absolute;
width: 226rpx;
height: 166rpx;
right: 0rpx;
}
.integralText0 {
position: absolute;
font-size: 24rpx;
...
...
@@ -808,6 +808,7 @@ defineExpose({});
width: 167rpx;
text-align: center;
}
.integralText1 {
position: absolute;
font-size: 24rpx;
...
...
@@ -960,9 +961,11 @@ defineExpose({});
.vip-active-area {
margin-left: 28rpx;
margin-top: 60rpx;
.vip-title {
margin-left: 20rpx;
}
.vip-active-swiper {
width: 692rpx;
height: 204rpx;
...
...
@@ -1010,4 +1013,3 @@ defineExpose({});
}
}
</
style
>
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