Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
contraceptives_app
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
contraceptives_app
Commits
d5f8861c
Commit
d5f8861c
authored
Oct 26, 2020
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一期
parent
c4040746
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
dictionaries.js
src/utils/dictionaries.js
+5
-0
choiceContraceptives.vue
src/views/choiceContraceptives.vue
+2
-1
myMap.vue
src/views/myMap.vue
+6
-4
siteDetails.vue
src/views/siteDetails.vue
+1
-1
No files found.
src/utils/dictionaries.js
0 → 100644
View file @
d5f8861c
export
const
receiveWay
=
[
//领取方式 1-在线领取 2-人工发放
{
id
:
1
,
value
:
'在线领取'
},
{
id
:
2
,
value
:
'人工发放'
}
]
src/views/choiceContraceptives.vue
View file @
d5f8861c
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
import
{
addMedicalRecord
,
getStockInfo
}
from
"../utils/api"
;
import
{
addMedicalRecord
,
getStockInfo
}
from
"../utils/api"
;
import
{
callMobile
}
from
"../utils/common"
;
import
{
callMobile
}
from
"../utils/common"
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Toast
}
from
'mint-ui'
;
import
{
receiveWay
}
from
"../utils/dictionaries"
;
export
default
{
export
default
{
name
:
"choiceContraceptives"
,
name
:
"choiceContraceptives"
,
data
(){
data
(){
...
@@ -124,9 +125,9 @@
...
@@ -124,9 +125,9 @@
telephone
:
phone
,
telephone
:
phone
,
networkId
:
this
.
routerDetail
,
networkId
:
this
.
routerDetail
,
number
:
1
,
number
:
1
,
receiveWay
:
receiveWay
[
0
].
id
,
...
other
...
other
}
}
console
.
log
(
JSON
.
stringify
(
par
))
addMedicalRecord
(
par
).
then
(({
data
})
=>
{
addMedicalRecord
(
par
).
then
(({
data
})
=>
{
if
(
data
.
code
==
'SUCCESS'
)
{
if
(
data
.
code
==
'SUCCESS'
)
{
this
.
$router
.
push
(
"/receiveSuccess"
);
this
.
$router
.
push
(
"/receiveSuccess"
);
...
...
src/views/myMap.vue
View file @
d5f8861c
...
@@ -82,10 +82,10 @@
...
@@ -82,10 +82,10 @@
const
{
phone
=
''
,
userId
=
''
}
=
info
const
{
phone
=
''
,
userId
=
''
}
=
info
let
par
=
{
telephone
:
phone
,
residentId
:
userId
}
//居民id
let
par
=
{
telephone
:
phone
,
residentId
:
userId
}
//居民id
getUserReceiveNum
(
par
).
then
(({
data
})
=>
{
getUserReceiveNum
(
par
).
then
(({
data
})
=>
{
if
(
data
.
data
==
true
)
{
if
(
data
.
data
==
true
)
{
//true 该用户非首次领取需要填写随访
callMobile
(
"qrcode"
,
{});
}
else
{
this
.
$router
.
push
(
`/returnVisit`
);
this
.
$router
.
push
(
`/returnVisit`
);
}
else
{
callMobile
(
"qrcode"
,
{});
}
}
})
})
...
@@ -94,7 +94,9 @@
...
@@ -94,7 +94,9 @@
this
.
$router
.
push
({
path
:
`/choiceContraceptives`
,
query
:{
info
:
result
}});
this
.
$router
.
push
({
path
:
`/choiceContraceptives`
,
query
:{
info
:
result
}});
},
},
toCollectRecords
()
{
toCollectRecords
()
{
this
.
$router
.
push
(
'/collectRecords'
);
// this.$router.push( `/returnVisit`);
this
.
$router
.
push
({
path
:
`/choiceContraceptives`
,
query
:{
info
:
1986
}});
// this.$router.push('/collectRecords');
},
},
toRealHome
()
{
toRealHome
()
{
callMobile
(
"goIndex"
,
{});
callMobile
(
"goIndex"
,
{});
...
...
src/views/siteDetails.vue
View file @
d5f8861c
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<div
class=
"cell"
><img
src=
"../assets/img/phone.png"
/></div>
<div
class=
"cell"
><img
src=
"../assets/img/phone.png"
/></div>
</div>
</div>
<div
class=
"ui-flex justify-center center"
>
联系电话:
<div
class=
"ui-flex justify-center center"
>
联系电话:
<label
class=
"btn"
@
click=
"clickPhone"
>
{{
siteDetail
.
netPhone
}}
</label>
<label
class=
"btn"
@
click=
"clickPhone"
>
<a
:href=
"`tel:$
{siteDetail.netPhone}`">
{{
siteDetail
.
netPhone
}}
</a>
</label>
<div
class=
"cell"
><img
src=
"../assets/img/phone.png"
/></div>
<div
class=
"cell"
><img
src=
"../assets/img/phone.png"
/></div>
</div>
</div>
</div>
</div>
...
...
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