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
6648ae8f
Commit
6648ae8f
authored
Jun 11, 2025
by
张九刚
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:sparkprojects/20250528_FHQ1 into dev
parents
441eb5d8
55fccd95
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
13 deletions
+22
-13
RegisterLayer.vue
components/RegisterLayer.vue
+3
-3
person.vue
pages/person/person.vue
+3
-4
user.js
stores/user.js
+3
-2
index.js
utils/index.js
+9
-3
My.vue
views/My.vue
+4
-1
No files found.
components/RegisterLayer.vue
View file @
6648ae8f
...
...
@@ -276,13 +276,13 @@ const handleBabyInfoConfirm = throttleTap(async () => {
req
.
babyGender
=
gender
.
value
;
req
.
babyType
=
fetus
.
value
;
}
const
re
s
=
await
userStore
.
createBabyInfo
(
req
);
const
succes
s
=
await
userStore
.
createBabyInfo
(
req
);
console
.
log
(
'success:'
,
success
);
hideLoading
();
visible
.
value
=
false
;
if
(
res
.
success
)
{
if
(
success
)
{
emit
(
"confirm"
,
{
date
:
date
.
value
,
gender
:
gender
.
value
,
...
...
pages/person/person.vue
View file @
6648ae8f
...
...
@@ -427,7 +427,7 @@ const formItems = ref([
const
clearFormFields
=
()
=>
{
formData
.
value
.
babyBirthday
=
""
;
formData
.
value
.
dueDate
=
""
;
if
(
userStore
.
babyInfo
.
content
?.
babyType
==
""
)
{
if
(
!
userStore
.
babyInfo
.
content
?.
babyType
)
{
formData
.
value
.
babyType
=
""
;
}
formData
.
value
.
babyGender
=
""
;
...
...
@@ -456,7 +456,6 @@ const getPickerIndex = (item) => {
if
(
item
.
mode
===
"date"
)
{
if
(
typeof
val
===
"string"
&&
val
.
match
(
/^
\d{4}
-
\d{2}
-
\d{2}
$/
))
{
const
[
year
,
month
,
day
]
=
val
.
split
(
"-"
).
map
(
Number
);
const
currentYear
=
new
Date
().
getFullYear
();
const
yearIdx
=
year
-
1970
;
const
monthIdx
=
month
-
1
;
const
dayIdx
=
day
-
1
;
...
...
@@ -646,7 +645,7 @@ const handleUploadBackground = async (e) => {
function
onDateStatusChange
(
status
)
{
if
(
pageType
.
value
===
"edit"
&&
status
<
userStore
.
babyInfo
.
babyStage
)
{
uni
.
showToast
({
title
:
"不能
选择更早的阶段
"
,
title
:
"不能
超过当前时间哦~
"
,
icon
:
"none"
,
});
return
false
;
...
...
@@ -717,7 +716,7 @@ const initData = () => {
item
.
range
=
channelOptions
.
value
;
}
else
if
(
item
.
name
===
"babyType"
&&
userStore
.
babyInfo
.
content
?.
babyType
!=
""
userStore
.
babyInfo
.
content
?.
babyType
)
{
item
.
type
=
"display-obj"
;
}
...
...
stores/user.js
View file @
6648ae8f
...
...
@@ -171,8 +171,9 @@ export const useUserStore = defineStore("userInfo", {
async
createBabyInfo
(
babyInfo
)
{
const
res
=
await
updateBabyInfo
(
babyInfo
);
if
(
res
.
success
)
{
this
.
loadBabyInfo
();
this
.
loadUserInfo
();
await
this
.
loadBabyInfo
();
await
this
.
loadUserInfo
();
await
this
.
loadHomeInfo
();
return
true
;
}
else
{
return
false
;
...
...
utils/index.js
View file @
6648ae8f
...
...
@@ -23,14 +23,20 @@ export function jump({ type, url, extra = {} }) {
break
;
case
JumpType
.
MINI
:
// 跳转到其他小程序页面
uni
.
navigateToMiniProgram
({
console
.
log
(
'extra:'
,
url
,
extra
);
const
jumpParams
=
{
appId
:
extra
.
appId
||
''
,
path
:
url
,
extraData
:
extra
.
extraData
||
{},
envVersion
:
extra
.
envVersion
||
'
release
'
,
envVersion
:
extra
.
envVersion
||
'
trial
'
,
success
:
extra
.
success
,
fail
:
extra
.
fail
})
}
console
.
log
(
'jumpParams:'
,
jumpParams
);
uni
.
navigateToMiniProgram
(
jumpParams
)
break
;
case
JumpType
.
H5
:
// 跳转到 https 网络链接
...
...
views/My.vue
View file @
6648ae8f
...
...
@@ -226,13 +226,16 @@ const handleToolClick = async (item) => {
return
;
}
const
{
sign
,
timestamp
,
appId
,
partnerUserId
}
=
res
.
data
;
const
{
sign
,
timestamp
,
appId
,
partnerUserId
,
env
}
=
res
.
data
;
console
.
log
(
'sign, timestamp, appId, partnerUserId:'
,
sign
,
timestamp
,
appId
,
partnerUserId
,
env
);
jump
({
type
:
JumpType
.
MINI
,
url
:
"/pages/partner/redirect"
,
extra
:
{
appId
:
"wx81ecfb5aa3fb512f"
,
envVersion
:
env
,
extraData
:
{
sign
,
// 参考 4.请求参数
timestamp
,
// 参考 4.请求参数
...
...
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