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
e1ba2528
Commit
e1ba2528
authored
3 months ago
by
罗成兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件
parent
fa478378
dev
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
60 deletions
+63
-60
index.html
folacin-app/public/index.html
+6
-6
index.vue
folacin-app/src/views/index/index.vue
+31
-28
provideUnit.vue
folacin-app/src/views/provideUnit/provideUnit.vue
+26
-26
No files found.
folacin-app/public/index.html
View file @
e1ba2528
...
...
@@ -5,14 +5,14 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.3.4/vconsole.min.js"></script>
-->
<title>
叶酸发放-居民
app
</title>
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.3.4/vconsole.min.js"></script>
-->
<title>
叶酸发放-居民
端
</title>
</head>
<body>
<div
id=
"app"
></div>
</body>
<!-- <script
>
var vConsole = new VConsole();
console.log('Hello world');
</script>
-->
<!-- <script>--
>
<!-- var vConsole = new VConsole();-->
<!-- console.log('Hello world');-->
<!-- </script>
-->
</html>
This diff is collapsed.
Click to expand it.
folacin-app/src/views/index/index.vue
View file @
e1ba2528
...
...
@@ -4,7 +4,7 @@
<br><br><br><br><br>
<van-empty
image=
"error"
:description=
"msg"
/>
<van-button
style=
"margin-left: 10%;width: 80%"
round
type=
"danger"
color=
"#EC808D"
@
click=
"handleBack()"
>
返回
关闭
</van-button>
</div>
</div>
...
...
@@ -37,38 +37,41 @@ export default {
};
},
mounted
()
{
if
(
process
.
env
.
NODE_ENV
==
"dev"
)
{
let
userInfo
=
{
account
:
'18487125843'
,
token
:
'7de354fd8be1484cacbc41e96fe88d7e'
,
userId
:
'11133351501171512'
,
};
window
.
sessionStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
userInfo
));
this
.
showMsg
();
}
else
{
let
query
=
this
.
$route
.
query
;
let
userInfo
=
{
account
:
query
.
account
,
token
:
query
.
token
,
userId
:
query
.
userId
,
};
if
(
!
userInfo
.
userId
&&
!
userInfo
.
account
)
{
this
.
msg
=
"用户信息获取失败!"
callMobile
(
'init'
,
{});
}
else
{
if
(
!
userInfo
.
userId
||
!
userInfo
.
account
)
{
this
.
msg
=
"用户信息获取失败!"
return
;
}
window
.
sessionStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
userInfo
));
this
.
showMsg
();
}
}
this
.
init
();
},
activated
()
{
window
.
scrollTo
(
0
,
this
.
scrollPosition
);
},
methods
:
{
init
(){
if
(
process
.
env
.
NODE_ENV
==
"dev"
)
{
let
userInfo
=
{
account
:
'18487125843'
,
token
:
'7de354fd8be1484cacbc41e96fe88d7e'
,
userId
:
'11133351501171512'
,
};
window
.
sessionStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
userInfo
));
this
.
showMsg
();
}
else
{
let
query
=
this
.
$route
.
query
;
let
userInfo
=
{
account
:
query
.
account
,
token
:
query
.
token
,
userId
:
query
.
userId
,
};
if
(
!
userInfo
.
userId
&&
!
userInfo
.
account
)
{
this
.
msg
=
"用户信息获取失败!"
callMobile
(
'init'
,
{});
}
else
{
if
(
!
userInfo
.
userId
||
!
userInfo
.
account
)
{
this
.
msg
=
"用户信息获取失败!"
return
;
}
window
.
sessionStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
userInfo
));
this
.
showMsg
();
}
}
},
handleBack
()
{
callMobile
(
'goIndex'
,
{});
},
...
...
This diff is collapsed.
Click to expand it.
folacin-app/src/views/provideUnit/provideUnit.vue
View file @
e1ba2528
<
template
>
<div
class=
"provideUnit"
>
<!-- 头部 -->
<van-nav-bar
fixed
title=
"选择叶酸发放单位"
>
<template
#
left
>
<img
src=
"../../assets/images/back.png"
alt=
""
@
click=
"handleBack"
/>
</
template
>
<
template
#
right
>
<div
@
click=
"handleRecord"
>
申请记录
</div>
</
template
>
</van-nav-bar>
<!-- 搜索框 -->
<van-search
@
blur=
"handleInput"
style=
"width: 88%;display: inline-block"
@
clear=
"handleCancel"
v-model=
"seachInfo.unitName"
placeholder=
"请输入搜索关键词"
/>
<van-icon
size=
"33"
style=
"float: right;margin-right: 8px;"
name=
"scan"
@
click=
"openQrCode"
/>
<!-- 申请部分 -->
<
template
v-if=
"unitList.length != 0"
>
<div
class=
"flex_block"
v-for=
"item in unitList"
:key=
"item.id"
@
click=
"handleClick(item)"
>
<div
class=
"flex_block_title"
>
<span
class=
"top"
>
{{
item
.
unitName
}}
</span>
<span
class=
"bottom"
>
地址:
{{
(
item
.
areaFullName
?
item
.
areaFullName
:
""
)
+
(
item
.
unitAddress
?
item
.
unitAddress
:
""
)
}}
</span>
<!-- 头部 -->
<van-nav-bar
fixed
title=
"选择叶酸发放单位"
>
<template
#
left
>
<img
src=
"../../assets/images/back.png"
alt=
""
@
click=
"handleBack"
/>
</
template
>
<
template
#
right
>
<div
@
click=
"handleRecord"
>
申请记录
</div>
</
template
>
</van-nav-bar>
<!-- 搜索框 -->
<van-search
@
blur=
"handleInput"
style=
"width: 88%;display: inline-block"
@
clear=
"handleCancel"
v-model=
"seachInfo.unitName"
placeholder=
"请输入搜索关键词"
/>
<van-icon
size=
"33"
style=
"float: right;margin-right: 8px;"
name=
"scan"
@
click=
"openQrCode"
/>
<!-- 申请部分 -->
<
template
v-if=
"unitList.length != 0"
>
<div
class=
"flex_block"
v-for=
"item in unitList"
:key=
"item.id"
@
click=
"handleClick(item)"
>
<div
class=
"flex_block_title"
>
<span
class=
"top"
>
{{
item
.
unitName
}}
</span>
<span
class=
"bottom"
>
地址:
{{
(
item
.
areaFullName
?
item
.
areaFullName
:
""
)
+
(
item
.
unitAddress
?
item
.
unitAddress
:
""
)
}}
</span>
</div>
<div
class=
"flex_block_btn"
>
申请
</div>
</div>
<div
class=
"flex_block_btn"
>
申请
</div>
</div>
</
template
>
<van-empty
v-else
description=
"暂无发放单位"
/>
</
template
>
<van-empty
v-else
description=
"暂无发放单位"
/>
</div>
</template>
<
script
>
import
{
getProvideUnit
,
getProvideUnitById
}
from
'@/axios/api'
;
import
{
callMobile
,
isEmpty
}
from
'@/utils/common'
;
import
{
callMobile
,
isEmpty
}
from
'@/utils/common'
;
export
default
{
components
:
{},
...
...
This diff is collapsed.
Click to expand it.
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