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
bd35f55a
Commit
bd35f55a
authored
May 23, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
楚雄小程序 隐藏地图
parent
2b2f83f2
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
48 additions
and
19 deletions
+48
-19
index.html
public/index.html
+1
-1
choiceContraceptives.vue
src/views/choiceContraceptives.vue
+3
-1
analyzeQRCode.vue
src/views/component/analyzeQRCode.vue
+21
-11
manualDistribution.vue
src/views/manualDistribution/manualDistribution.vue
+3
-1
manualCollection.vue
src/views/medicalCollection/manualCollection.vue
+3
-1
manualSuccess.vue
src/views/medicalCollection/manualSuccess.vue
+3
-0
myMap.vue
src/views/myMap.vue
+6
-3
receiveSuccess.vue
src/views/receiveSuccess.vue
+3
-1
returnVisit.vue
src/views/returnVisit.vue
+3
-0
siteDetails.vue
src/views/siteDetails.vue
+2
-0
No files found.
public/index.html
View file @
bd35f55a
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<script
type=
"text/javascript"
>
document
.
write
(
unescape
(
"%3Cspan id='cnzz_stat_icon_1280549113'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D1280549113%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"
));
</script>
<script
type=
"text/javascript"
>
document
.
write
(
unescape
(
"%3Cspan id='cnzz_stat_icon_1280549113'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D1280549113%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"
));
</script>
</body>
</body>
<script>
<script>
/*
var vConsole =new VConsole();
/*
var vConsole =new VConsole();
console.log('Hello world');*/
console.log('Hello world');*/
</script>
</script>
</html>
</html>
src/views/choiceContraceptives.vue
View file @
bd35f55a
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<
script
>
<
script
>
import
{
addMedicalRecord
,
getStockInfo
}
from
"../utils/api"
;
import
{
addMedicalRecord
,
getStockInfo
}
from
"../utils/api"
;
import
{
callMobile
}
from
"../utils/common"
;
import
{
callMobile
,
showNav
}
from
"../utils/common"
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Toast
}
from
'mint-ui'
;
import
{
receiveWay
}
from
"../utils/dictionaries"
;
import
{
receiveWay
}
from
"../utils/dictionaries"
;
import
{
Indicator
}
from
'mint-ui'
;
import
{
Indicator
}
from
'mint-ui'
;
...
@@ -92,7 +92,9 @@
...
@@ -92,7 +92,9 @@
}
}
},
},
created
()
{
created
()
{
if
(
!
this
.
showNav
())
{
document
.
title
=
'选择药具'
document
.
title
=
'选择药具'
}
},
},
methods
:{
methods
:{
getStockListInfo
(
callBack
)
{
getStockListInfo
(
callBack
)
{
...
...
src/views/component/analyzeQRCode.vue
View file @
bd35f55a
<
template
>
<
template
>
<div>
<div>
<van-popup
v-model=
"show"
position=
"right"
:style=
"
{ height: '100%',width: '100%' }" >
<van-popup
v-model=
"show"
position=
"right"
:style=
"
{ height: '100%',width: '100%' }">
<div
class=
"all"
>
<video
style=
"display: none"
ref=
"video"
></video>
<video
style=
"display: none"
ref=
"video"
></video>
<canvas
style=
"width:
100vw; margin-top: 13vw
"
id=
"canvas"
></canvas>
<canvas
style=
"width:
90vw; margin-top: 20vh;height: 40vh
"
id=
"canvas"
></canvas>
<canvas
style=
"display: none"
id=
"2d"
></canvas>
<canvas
style=
"display: none"
id=
"2d"
></canvas>
</div>
</van-popup>
</van-popup>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
"@/utils/jsQR.js"
;
import
jsQR
from
"../../utils/jsQR"
;
import
{
jsQR
}
from
"../../utils/jsQR"
;
// 添加关闭摄像头的函数
export
default
{
export
default
{
name
:
'analyzeQRCode'
,
name
:
'analyzeQRCode'
,
...
@@ -37,20 +38,18 @@ export default {
...
@@ -37,20 +38,18 @@ export default {
// this.streams.getTracks().forEach((track) => track.stop());
// this.streams.getTracks().forEach((track) => track.stop());
// }
// }
// video.srcObject = null;
// video.srcObject = null;
let
that
=
this
var
video
=
document
.
createElement
(
"video"
);
var
video
=
document
.
createElement
(
"video"
);
var
canvasElement
=
document
.
getElementById
(
"canvas"
);
var
canvasElement
=
document
.
getElementById
(
"canvas"
);
var
canvas
=
canvasElement
.
getContext
(
"2d"
);
var
canvas
=
canvasElement
.
getContext
(
"2d"
);
console
.
log
(
navigator
.
mediaDevices
);
console
.
log
(
navigator
.
mediaDevices
);
// 尝试打开手机上安装后置摄像头
// 尝试打开手机上安装后置摄像头
navigator
.
mediaDevices
navigator
.
mediaDevices
.
getUserMedia
({
.
getUserMedia
({
video
:
{
facingMode
:
"environment"
},
video
:
{
facingMode
:
"environment"
},
})
})
.
then
(
function
(
stream
)
{
.
then
((
stream
)
=>
{
debugger
this
.
streams
=
stream
;
this
.
streams
.
value
=
stream
;
video
.
srcObject
=
stream
;
video
.
srcObject
=
stream
;
// 阻止IOS视频全屏
// 阻止IOS视频全屏
video
.
setAttribute
(
"playsinline"
,
true
);
video
.
setAttribute
(
"playsinline"
,
true
);
...
@@ -85,6 +84,8 @@ export default {
...
@@ -85,6 +84,8 @@ export default {
if
(
code
)
{
if
(
code
)
{
console
.
log
(
code
.
data
);
console
.
log
(
code
.
data
);
alert
(
code
.
data
);
alert
(
code
.
data
);
//输出解析后的二维码
this
.
$emit
(
"getQRCode"
,
code
.
data
)
}
}
}
}
requestAnimationFrame
(
tick
);
requestAnimationFrame
(
tick
);
...
@@ -94,4 +95,13 @@ export default {
...
@@ -94,4 +95,13 @@ export default {
}
}
</
script
>
</
script
>
\ No newline at end of file
<
style
lang=
"less"
scoped
>
.all {
background: black;
height: 100vh;
display: flex;
justify-content: space-around;
}
</
style
>
\ No newline at end of file
src/views/manualDistribution/manualDistribution.vue
View file @
bd35f55a
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<
script
>
<
script
>
import
{
Toast
}
from
'mint-ui'
import
{
Toast
}
from
'mint-ui'
import
{
getQueryVariable
,
idCardV
,
validateIdCard
}
from
"../../utils/common"
;
import
{
getQueryVariable
,
idCardV
,
showNav
,
validateIdCard
}
from
"../../utils/common"
;
import
{
getCheckShortMessage
,
getShortMessage
,
getUserInfoByIdCard
}
from
"../../utils/api"
;
import
{
getCheckShortMessage
,
getShortMessage
,
getUserInfoByIdCard
}
from
"../../utils/api"
;
import
NoData
from
"../component/noData"
;
import
NoData
from
"../component/noData"
;
export
default
{
export
default
{
...
@@ -70,7 +70,9 @@
...
@@ -70,7 +70,9 @@
}
}
},
},
created
()
{
created
()
{
if
(
!
this
.
showNav
())
{
document
.
title
=
'人工发放'
document
.
title
=
'人工发放'
}
this
.
urltext
()
this
.
urltext
()
let
initPeople
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'initPeople'
))
let
initPeople
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'initPeople'
))
if
(
initPeople
)
{
if
(
initPeople
)
{
...
...
src/views/medicalCollection/manualCollection.vue
View file @
bd35f55a
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
import
NoData
from
'../component/noData'
;
import
NoData
from
'../component/noData'
;
import
{
Toast
,
Indicator
}
from
'mint-ui'
;
import
{
Toast
,
Indicator
}
from
'mint-ui'
;
import
{
receiveWay
}
from
"../../utils/dictionaries"
;
import
{
receiveWay
}
from
"../../utils/dictionaries"
;
import
{
idCardValidator
}
from
'../../utils/common'
import
{
idCardValidator
,
showNav
}
from
'../../utils/common'
export
default
{
export
default
{
components
:
{
NoData
},
components
:
{
NoData
},
...
@@ -186,7 +186,9 @@
...
@@ -186,7 +186,9 @@
})
})
},
},
created
()
{
created
()
{
if
(
!
this
.
showNav
())
{
document
.
title
=
'人工网点申领'
document
.
title
=
'人工网点申领'
}
this
.
routerDetail
=
this
.
$route
.
query
this
.
routerDetail
=
this
.
$route
.
query
if
(
this
.
routerDetail
.
resource
==
1
)
{
if
(
this
.
routerDetail
.
resource
==
1
)
{
this
.
showForm
=
true
this
.
showForm
=
true
...
...
src/views/medicalCollection/manualSuccess.vue
View file @
bd35f55a
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
import
{
getUserCollectRecordByNo
}
from
"../../utils/api"
;
import
{
getUserCollectRecordByNo
}
from
"../../utils/api"
;
import
NoData
from
'../component/noData'
;
import
NoData
from
'../component/noData'
;
import
{
Toast
,
Indicator
}
from
'mint-ui'
;
import
{
Toast
,
Indicator
}
from
'mint-ui'
;
import
{
showNav
}
from
"../../utils/common"
;
export
default
{
export
default
{
components
:
{
NoData
},
components
:
{
NoData
},
...
@@ -72,7 +73,9 @@
...
@@ -72,7 +73,9 @@
}
}
},
},
created
()
{
created
()
{
if
(
!
this
.
showNav
())
{
document
.
title
=
'申领结果'
document
.
title
=
'申领结果'
}
this
.
routerDetail
=
this
.
$route
.
query
this
.
routerDetail
=
this
.
$route
.
query
this
.
getRecordInfo
()
this
.
getRecordInfo
()
},
},
...
...
src/views/myMap.vue
View file @
bd35f55a
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<label>
返回首页
</label>
<label>
返回首页
</label>
</div>
</div>
</div>
</div>
<!--
<analyze-q-r-code
:show=
"showPop"
v-if=
"showPop"
></analyze-q-r-code>
--
>
<analyze-q-r-code
:show=
"showPop"
v-if=
"showPop"
></analyze-q-r-code
>
</div>
</div>
</
template
>
</
template
>
...
@@ -41,14 +41,14 @@
...
@@ -41,14 +41,14 @@
import
presonImg
from
'../assets/img/preson.png'
;
import
presonImg
from
'../assets/img/preson.png'
;
import
sharpImg
from
'../assets/img/sharp.png'
;
import
sharpImg
from
'../assets/img/sharp.png'
;
import
{
getNetworkInfo
}
from
'../utils/api'
;
import
{
getNetworkInfo
}
from
'../utils/api'
;
import
{
callMobile
,
getQueryVariable
}
from
"../utils/common"
;
import
{
callMobile
,
getQueryVariable
,
showNav
}
from
"../utils/common"
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Toast
}
from
'mint-ui'
;
import
{
GPS
}
from
"../utils/mapCalculation"
;
import
{
GPS
}
from
"../utils/mapCalculation"
;
import
AnalyzeQRCode
from
"./component/analyzeQRCode"
;
import
AnalyzeQRCode
from
"./component/analyzeQRCode"
;
export
default
{
export
default
{
name
:
"myMap"
,
name
:
"myMap"
,
//
components: {AnalyzeQRCode},
components
:
{
AnalyzeQRCode
},
inject
:
[
'showNav'
],
inject
:
[
'showNav'
],
data
()
{
data
()
{
return
{
return
{
...
@@ -62,7 +62,9 @@
...
@@ -62,7 +62,9 @@
}
}
},
},
created
()
{
created
()
{
if
(
!
this
.
showNav
())
{
document
.
title
=
'药具领取'
document
.
title
=
'药具领取'
}
this
.
urltext
()
this
.
urltext
()
},
},
mounted
()
{
mounted
()
{
...
@@ -105,6 +107,7 @@
...
@@ -105,6 +107,7 @@
// })
// })
// this.subscanQRCallBack(111)
// this.subscanQRCallBack(111)
//微信环境下 打开js扫码 (暂时关闭)
// if (isWeiXin()){
// if (isWeiXin()){
// this.showPop = true
// this.showPop = true
// } else {
// } else {
...
...
src/views/receiveSuccess.vue
View file @
bd35f55a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
callMobile
}
from
"../utils/common"
;
import
{
callMobile
,
showNav
}
from
"../utils/common"
;
export
default
{
export
default
{
name
:
"receiveSuccess"
,
name
:
"receiveSuccess"
,
...
@@ -27,7 +27,9 @@
...
@@ -27,7 +27,9 @@
return
{}
return
{}
},
},
created
()
{
created
()
{
if
(
!
this
.
showNav
())
{
document
.
title
=
'领取成功'
document
.
title
=
'领取成功'
}
},
},
methods
:{
methods
:{
goBack
()
{
goBack
()
{
...
...
src/views/returnVisit.vue
View file @
bd35f55a
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
import
{
addVisitRecord
}
from
"../utils/api"
;
import
{
addVisitRecord
}
from
"../utils/api"
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Toast
}
from
'mint-ui'
;
import
{
Indicator
}
from
'mint-ui'
;
import
{
Indicator
}
from
'mint-ui'
;
import
{
showNav
}
from
"../utils/common"
;
export
default
{
export
default
{
name
:
"returnVisit"
,
name
:
"returnVisit"
,
...
@@ -81,7 +82,9 @@
...
@@ -81,7 +82,9 @@
}
}
},
},
created
()
{
created
()
{
if
(
!
this
.
showNav
())
{
document
.
title
=
'填写随访'
document
.
title
=
'填写随访'
}
},
},
methods
:{
methods
:{
changeAgree
()
{
changeAgree
()
{
...
...
src/views/siteDetails.vue
View file @
bd35f55a
...
@@ -117,7 +117,9 @@
...
@@ -117,7 +117,9 @@
})
})
},
},
created
()
{
created
()
{
if
(
!
this
.
showNav
())
{
document
.
title
=
'网点详情'
document
.
title
=
'网点详情'
}
/*发请求通过this.$route.query.id*/
/*发请求通过this.$route.query.id*/
this
.
siteDetail
=
JSON
.
parse
(
this
.
$route
.
query
.
info
)
this
.
siteDetail
=
JSON
.
parse
(
this
.
$route
.
query
.
info
)
this
.
relationId
=
this
.
siteDetail
.
id
this
.
relationId
=
this
.
siteDetail
.
id
...
...
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