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
c4040746
Commit
c4040746
authored
Oct 26, 2020
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口对接
parent
7ecd2625
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
15 deletions
+13
-15
choiceContraceptives.vue
src/views/choiceContraceptives.vue
+10
-8
collectRecords.vue
src/views/collectRecords.vue
+1
-2
myMap.vue
src/views/myMap.vue
+1
-2
returnVisit.vue
src/views/returnVisit.vue
+1
-3
No files found.
src/views/choiceContraceptives.vue
View file @
c4040746
...
...
@@ -55,7 +55,7 @@
<
script
>
import
{
addMedicalRecord
,
getStockInfo
}
from
"../utils/api"
;
import
{
callMobile
}
from
"../utils/common"
;
import
{
MessageBox
}
from
'mint-ui'
;
import
{
Toast
}
from
'mint-ui'
;
export
default
{
name
:
"choiceContraceptives"
,
data
(){
...
...
@@ -109,6 +109,12 @@
window
.
history
.
go
(
-
1
)
},
receiveContraceptives
(){
if
(
this
.
checkedMedical
==
''
)
{
return
Toast
({
message
:
'请先选择药具!'
,
duration
:
2000
});
}
let
pars
=
JSON
.
parse
(
this
.
checkedMedical
)
let
info
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'mobileTokenIno'
))
const
{
phone
=
''
,
userId
=
''
}
=
info
...
...
@@ -117,20 +123,16 @@
residentId
:
userId
,
telephone
:
phone
,
networkId
:
this
.
routerDetail
,
number
:
1
,
...
other
}
console
.
log
(
JSON
.
stringify
(
par
))
addMedicalRecord
(
par
).
then
(({
data
})
=>
{
if
(
data
.
code
==
'SUCCESS'
)
{
Toast
({
message
:
'领取成功!'
,
position
:
'bottom'
,
duration
:
2000
});
this
.
$router
.
push
(
"/receiveSuccess"
);
}
else
{
Toast
({
message
:
'系统异常,请联系管理员!'
,
position
:
'bottom'
,
message
:
'系统异常,请联系客服!'
,
duration
:
2000
});
}
...
...
src/views/collectRecords.vue
View file @
c4040746
...
...
@@ -89,8 +89,7 @@
callBack
&&
callBack
()
}).
catch
(
res
=>
{
Toast
({
message
:
res
,
position
:
'top'
,
message
:
'系统异常,请联系客服!'
,
duration
:
2000
});
}).
finally
(()
=>
{
...
...
src/views/myMap.vue
View file @
c4040746
...
...
@@ -94,7 +94,6 @@
this
.
$router
.
push
({
path
:
`/choiceContraceptives`
,
query
:{
info
:
result
}});
},
toCollectRecords
()
{
// this.$router.push({path: `/choiceContraceptives`,query:{info:1986}});
this
.
$router
.
push
(
'/collectRecords'
);
},
toRealHome
()
{
...
...
@@ -180,7 +179,7 @@
});
let
markers
=
[];
this
.
machines
.
forEach
(
x
=>
{
if
(
x
.
netType
==
=
0
){
if
(
x
.
netType
==
2
){
let
marker
=
new
AMap
.
Marker
({
map
:
map
,
icon
:
personIcon
,
...
...
src/views/returnVisit.vue
View file @
c4040746
...
...
@@ -137,14 +137,12 @@
if
(
data
.
code
==
'SUCCESS'
)
{
Toast
({
message
:
'填写成功!'
,
position
:
'bottom'
,
duration
:
2000
});
window
.
history
.
go
(
-
1
)
}
else
{
Toast
({
message
:
'失败,请联系管理员!'
,
position
:
'bottom'
,
message
:
'系统异常,请联系客服!'
,
duration
:
2000
});
}
...
...
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