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
681a5479
Commit
681a5479
authored
Nov 18, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
2402f40d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
57 deletions
+44
-57
.DS_Store
.DS_Store
+0
-0
XingmaLabPosterPage.vue
components/xingmaLab/XingmaLabPosterPage.vue
+1
-0
actList.vue
subPackages/momclub/actList.vue
+16
-25
FormTree.vue
subPackages/momclub/component/FormTree.vue
+1
-1
noticeDialog.vue
subPackages/momclub/component/noticeDialog.vue
+17
-28
index.vue
subPackages/momclub/index.vue
+9
-3
No files found.
.DS_Store
View file @
681a5479
No preview for this file type
components/xingmaLab/XingmaLabPosterPage.vue
View file @
681a5479
...
...
@@ -140,6 +140,7 @@ const generateQrcodeFunc = async () => {
const
result
=
await
generateQRCode
({
scene
:
`id=
${
props
.
recordId
}
`
,
page
:
`pages/XingmaLabDetailPage/XingmaLabDetailPage`
,
// TODO: 切换环境 需要切换envVersion
envVersion
:
'release'
//trial develop release
})
...
...
subPackages/momclub/actList.vue
View file @
681a5479
...
...
@@ -60,7 +60,7 @@
</view>
<view
class=
"content-right"
>
<view
:class=
"(item.prized === 0 || (item.
prized
!== 1 && Date.now() > new Date(item.signupEndTime).getTime())) ? 'btn gray' : 'btn'"
>
:class=
"(item.prized === 0 || (item.
signupState
!== 1 && Date.now() > new Date(item.signupEndTime).getTime())) ? 'btn gray' : 'btn'"
>
{{
formatStatus
(
item
)
}}
</view>
</view>
...
...
@@ -80,12 +80,11 @@
<
script
setup
>
import
{
ref
,
nextTick
,
computed
}
from
'vue'
import
{
onLoad
,
onShow
,
onReachBottom
}
from
'@dcloudio/uni-app'
import
{
onLoad
,
onReachBottom
}
from
'@dcloudio/uni-app'
import
{
activityListApi
,
signupListApi
}
from
'@/api/momclub/index.js'
;
import
md
from
"../../md.js"
;
import
{
useUserStore
}
from
"@/stores/user"
;
const
userStore
=
useUserStore
();
const
isShare
=
ref
(
''
)
const
currentPage
=
ref
(
1
)
const
pageSize
=
ref
(
10
)
const
loadMore
=
ref
(
false
)
...
...
@@ -219,7 +218,18 @@ onReachBottom(() => {
getInfo
(
searchType
.
value
)
})
})
// 登录获取 cuk
const
wxAutoLogin
=
async
()
=>
{
let
cuk
=
uni
.
getStorageSync
(
'cuk'
);
let
memberId
=
uni
.
getStorageSync
(
'memberId'
);
// 如果本地没有缓存登录信息,则需要登录
console
.
log
(
cuk
,
memberId
,
'cukkkkk'
)
if
(
!
cuk
||
!
memberId
)
{
await
new
Promise
(
resolve
=>
{
userStore
.
syWxAutoLogin
(
resolve
)
})
}
}
onLoad
(
async
(
options
)
=>
{
md
.
sensorSignTake
({
hdjhPage
:
"true"
,
...
...
@@ -229,32 +239,13 @@ onLoad(async(options) => {
});
loadMoreFlag
.
value
=
true
searchType
.
value
=
options
.
type
?
options
.
type
:
''
isShare
.
value
=
options
.
share
?
options
.
share
:
''
getInfo
(
searchType
.
value
)
})
// 登录获取 cuk
const
wxAutoLogin
=
async
()
=>
{
await
new
Promise
(
resolve
=>
{
userStore
.
syWxAutoLogin
(
resolve
)
})
}
onShow
(
async
()
=>
{
console
.
log
(
isShare
.
value
,
'onShow---'
)
if
(
isShare
.
value
==
'true'
){
if
(
options
.
share
&&
options
.
share
==
'true'
){
// 确保登录以获取 cuk
await
wxAutoLogin
()
await
userStore
.
loadUserInfo
()
console
.
log
(
userStore
.
userInfo
,
'userStore.userInfo?.memberId'
)
if
((
userStore
?.
userInfo
?.
memberId
&&
userStore
?.
userInfo
?.
memberId
==
"not_login"
)
||
!
userStore
.
userInfo
)
{
//非会员 未登录,跳转到登录注册页面
uni
.
navigateTo
({
url
:
`/pages/activity/register`
})
return
}
getInfo
(
searchType
.
value
)
}
})
</
script
>
...
...
subPackages/momclub/component/FormTree.vue
View file @
681a5479
...
...
@@ -321,7 +321,7 @@ const hasFilledOutList = (list) => {
}
.
custom
-
radio
{
margin
:
-
40
rpx
4
5
rpx
0
rpx
0
rpx
;
margin
:
-
40
rpx
3
5
rpx
0
rpx
0
rpx
;
display
:
flex
;
align
-
items
:
center
;
image
{
...
...
subPackages/momclub/component/noticeDialog.vue
View file @
681a5479
...
...
@@ -2,16 +2,14 @@
<uni-popup
ref=
"noticePopup"
:mask-click=
"false"
type=
"center"
>
<view
class=
"popup-container"
>
<view
class=
"title-box"
>
<view
class=
""
>
</view>
<view
class=
"title"
>
星妈会活动参与协议
<view
class=
"title-empty"
></view>
<view
class=
"title"
>
星妈会活动参与协议
</view>
<view
@
click=
"close"
class=
"title-img"
>
<image
:src=
"$baseUrl + 'sign-up/cross.png'"
mode=
"aspectFit"
/>
</view>
<image
@
click=
"close"
:src=
"$baseUrl + 'sign-up/cross.png'"
mode=
"aspectFit"
/>
</view>
<!-- 可滚动内容区域 -->
<scroll-view
class=
"content-box"
scroll-y
@
scroll
=
"onScroll"
@
scroll
tolower=
"onScrollLower"
>
<scroll-view
class=
"content-box"
scroll-y
@
scrolltolower=
"onScrollLower"
>
<view
class=
"sub-title"
>
发布/更新于:2025年12月1日
</view>
<view
class=
"sub-content"
>
<text
class=
"sub-tips"
>
重要提示:本协议是您与星妈会之间关于参与线下活动的法律文件。为使您更好地参与活动并保障您的合法权益,星妈会特别提示您仔细阅读、理解并同意本协议的全部内容,特别是其中加粗或以其他显著方式标识的,与您的权益(可能)有重大关系的条款(包括但不限于免除、限制星妈会责任的条款及争议解决条款)。如您对本协议的任何条款存在疑问,请在报名前通过官方公布的联系方式与我们联系。如您不同意本协议的任何内容,您应立即停止活动报名程序。
</text>
...
...
@@ -85,11 +83,6 @@
<view
class=
"read-text"
>
本人知晓并同意《星妈会活动协议》全部条款
</view>
<!--
<checkbox-group
@
change=
"onChange"
>
<checkbox
value=
"1"
:checked=
"isAgree[0] == 1"
>
本人已认真、完整地阅读了本协议全文,尤其是加粗部分的条款,充分理解其含义及可能产生的法律后果,并自愿同意接受本协议全部内容的约束
</checkbox>
</checkbox-group>
-->
</view>
</scroll-view>
<view
:class=
"!isBottom ? 'btn-box':'btn-box btn-opaque'"
>
...
...
@@ -120,17 +113,6 @@ const noticePopup = ref(null)
//是否到达中奖公布日期
const
isBottom
=
ref
(
false
)
// 滚动事件处理 - 核心方法
const
onScroll
=
(
e
)
=>
{
// const { scrollHeight, scrollTop, height } = e.detail;
// // 检测是否滚动到底部(留5px容错)
// const isAtBottom = scrollHeight - scrollTop
<=
height
+
5
;
// // console.log(e.detail, scrollHeight, scrollTop, height,isAtBottom,'滚动个----')
// if (isAtBottom && !isBottom.value) {
// isBottom.value = true
// } else if (!isAtBottom && isBottom.value) {
// isBottom.value = false
// }
}
const
onScrollLower
=
()
=>
{
console
.
log
(
isBottom
.
value
,
'到底部'
)
if
(
!
isBottom
.
value
){
...
...
@@ -177,16 +159,25 @@ defineExpose({
display: flex;
align-items: center;
justify-content: space-between;
.title-empty{
width: 50rpx;
}
.title{
font-weight: 600;
font-size: 36rpx;
color: #D3A458;
}
.title-img{
width: 50rpx;
height: 50rpx;
line-height: 50rpx;
text-align: center;
image {
width: 19rpx;
height: 19rpx;
}
}
}
.content-box{
height: 747rpx;
overflow: scroll;
...
...
@@ -201,12 +192,10 @@ defineExpose({
font-weight: 600;
}
.sub-content{
// color: #A8A8A8;
font-size: 20rpx;
text-align: justify;
margin: 30rpx 0rpx;
.sub-tips{
// color: #000000;
font-weight: 600;
}
}
...
...
subPackages/momclub/index.vue
View file @
681a5479
...
...
@@ -384,9 +384,15 @@ onLoad((options) => {
})
// 登录获取 cuk
const
wxAutoLogin
=
async
()
=>
{
let
cuk
=
uni
.
getStorageSync
(
'cuk'
);
let
memberId
=
uni
.
getStorageSync
(
'memberId'
);
// 如果本地没有缓存登录信息,则需要登录
console
.
log
(
cuk
,
memberId
,
'cukkkkk'
)
if
(
!
cuk
||
!
memberId
)
{
await
new
Promise
(
resolve
=>
{
userStore
.
syWxAutoLogin
(
resolve
)
})
}
}
onShow
(
async
()
=>
{
...
...
@@ -395,7 +401,7 @@ onShow(async()=> {
uni
.
removeStorageSync
(
'needRefresh'
);
isShowSignUp
.
value
=
true
}
if
(
query
.
value
.
share
==
'true'
)
{
if
(
query
.
value
.
share
&&
query
.
value
.
share
==
'true'
)
{
// 确保登录以获取 cuk
await
wxAutoLogin
()
await
userStore
.
loadUserInfo
()
...
...
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