Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
folacin-front
Project
Project
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ynby
folacin-front
Commits
fa478378
Commit
fa478378
authored
Feb 12, 2025
by
罗成兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件
parent
55837e6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
index.vue
folacin-app/src/views/index/index.vue
+4
-5
No files found.
folacin-app/src/views/index/index.vue
View file @
fa478378
...
...
@@ -24,6 +24,7 @@ export default {
created
()
{
let
vm
=
this
;
window
[
'init'
]
=
(
result
)
=>
{
vm
.
msg
=
null
let
path
=
vm
.
$route
.
path
;
if
(
path
!=
'/'
)
{
return
;
...
...
@@ -36,7 +37,7 @@ export default {
};
},
mounted
()
{
if
(
process
.
env
.
NODE_ENV
==
"dev
1
"
)
{
if
(
process
.
env
.
NODE_ENV
==
"dev"
)
{
let
userInfo
=
{
account
:
'18487125843'
,
token
:
'7de354fd8be1484cacbc41e96fe88d7e'
,
...
...
@@ -53,10 +54,7 @@ export default {
};
if
(
!
userInfo
.
userId
&&
!
userInfo
.
account
)
{
this
.
msg
=
"用户信息获取失败!"
let
vm
=
this
;
setTimeout
(
function
(){
callMobile
(
'init'
,
{});
},
3000
)
}
else
{
if
(
!
userInfo
.
userId
||
!
userInfo
.
account
)
{
this
.
msg
=
"用户信息获取失败!"
...
...
@@ -88,8 +86,9 @@ export default {
message
:
'备孕妇女从孕前3个月,坚持每天服用0.4mg叶酸或含叶酸的复合维生素至少到怀孕满3个月,可预防胎儿神经管缺陷的发生,还能减少唇腭裂、先心病、早产等风险。特殊情况妇女如肥胖、糖尿病等要加量。'
,
confirmButtonText
:
"好的,知道了"
}).
then
(()
=>
{
this
.
$router
.
push
(
'provideUnit'
);
});
this
.
$router
.
push
(
'provideUnit'
);
}
},
beforeRouteLeave
(
to
,
from
,
next
)
{
...
...
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