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
ad577f78
Commit
ad577f78
authored
Feb 11, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
楚雄小程序 文件上传
parent
97e93149
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
79 additions
and
20 deletions
+79
-20
App.vue
src/App.vue
+21
-0
common.js
src/utils/common.js
+13
-0
choiceContraceptives.vue
src/views/choiceContraceptives.vue
+6
-2
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
-1
myMap.vue
src/views/myMap.vue
+11
-9
reClaim.vue
src/views/reClaim.vue
+1
-1
receiveSuccess.vue
src/views/receiveSuccess.vue
+9
-2
returnVisit.vue
src/views/returnVisit.vue
+6
-2
siteDetails.vue
src/views/siteDetails.vue
+3
-1
No files found.
src/App.vue
View file @
ad577f78
...
@@ -4,3 +4,23 @@
...
@@ -4,3 +4,23 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
import
{
getQueryVariable
,
showNav
}
from
"./utils/common"
;
export
default
{
data
()
{
return
{}
},
provide
()
{
return
{
showNav
:
showNav
,
}
},
mounted
()
{
let
embed
=
getQueryVariable
(
'embed'
)
if
(
embed
)
{
window
.
sessionStorage
.
setItem
(
'embed'
,
embed
)
}
}
}
</
script
>
\ No newline at end of file
src/utils/common.js
View file @
ad577f78
...
@@ -137,3 +137,15 @@ export const ToString = str => {
...
@@ -137,3 +137,15 @@ export const ToString = str => {
str
=
str
||
""
;
str
=
str
||
""
;
return
str
.
toString
();
return
str
.
toString
();
};
};
//是否显示页面title
export
function
showNav
()
{
let
res
=
false
let
wx
=
window
.
sessionStorage
.
getItem
(
'embed'
)
if
(
wx
==
'wx'
)
{
res
=
false
}
else
{
res
=
true
}
return
res
}
\ No newline at end of file
src/views/choiceContraceptives.vue
View file @
ad577f78
<
template
>
<
template
>
<div
class=
"choiceContraceptives"
>
<div
class=
"choiceContraceptives"
>
<mt-header
title=
"选择药具"
>
<mt-header
title=
"选择药具"
v-if=
"showNav()"
>
<div
slot=
"left"
@
click=
"goBack"
>
<div
slot=
"left"
@
click=
"goBack"
>
<mt-button
icon=
"back"
></mt-button>
<mt-button
icon=
"back"
></mt-button>
</div>
</div>
...
@@ -75,6 +75,7 @@
...
@@ -75,6 +75,7 @@
export
default
{
export
default
{
name
:
"choiceContraceptives"
,
name
:
"choiceContraceptives"
,
inject
:
[
'showNav'
],
data
(){
data
(){
return
{
return
{
username
:
''
,
username
:
''
,
...
@@ -90,7 +91,10 @@
...
@@ -90,7 +91,10 @@
}
}
}
}
},
},
methods
:{
created
()
{
document
.
title
=
'选择药具'
},
methods
:{
getStockListInfo
(
callBack
)
{
getStockListInfo
(
callBack
)
{
this
.
routerDetail
=
this
.
$route
.
query
this
.
routerDetail
=
this
.
$route
.
query
let
par
=
{
let
par
=
{
...
...
src/views/manualDistribution/manualDistribution.vue
View file @
ad577f78
<
template
>
<
template
>
<div>
<div>
<div
v-if=
"!isNoData"
>
<div
v-if=
"!isNoData"
>
<mt-header
title=
"人工发放"
></mt-header>
<mt-header
title=
"人工发放"
v-if=
"showNav()"
></mt-header>
<div
class=
"flex_center top_info"
>
<div
class=
"flex_center top_info"
>
<div>
<div>
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
import
NoData
from
"../component/noData"
;
import
NoData
from
"../component/noData"
;
export
default
{
export
default
{
components
:
{
NoData
},
components
:
{
NoData
},
inject
:
[
'showNav'
],
data
()
{
data
()
{
return
{
return
{
formData
:
{
formData
:
{
...
@@ -69,6 +70,7 @@
...
@@ -69,6 +70,7 @@
}
}
},
},
created
()
{
created
()
{
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 @
ad577f78
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
@
refresh=
"onRefresh"
@
refresh=
"onRefresh"
:disabled=
"isRefreshDisable"
:disabled=
"isRefreshDisable"
>
>
<mt-header
title=
"人工网点申领"
>
<mt-header
title=
"人工网点申领"
v-if=
"showNav()"
>
<div
slot=
"left"
@
click=
"goBack"
>
<div
slot=
"left"
@
click=
"goBack"
>
<mt-button
icon=
"back"
></mt-button>
<mt-button
icon=
"back"
></mt-button>
</div>
</div>
...
@@ -143,6 +143,7 @@
...
@@ -143,6 +143,7 @@
export
default
{
export
default
{
components
:
{
NoData
},
components
:
{
NoData
},
inject
:[
'showNav'
],
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
...
@@ -185,6 +186,7 @@
...
@@ -185,6 +186,7 @@
})
})
},
},
created
()
{
created
()
{
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 @
ad577f78
<
template
>
<
template
>
<div>
<div>
<mt-header
title=
"申领结果"
>
<mt-header
title=
"申领结果"
v-if=
"showNav()"
>
<div
slot=
"left"
@
click=
"goBack"
>
<div
slot=
"left"
@
click=
"goBack"
>
<mt-button
icon=
"back"
></mt-button>
<mt-button
icon=
"back"
></mt-button>
</div>
</div>
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
export
default
{
export
default
{
components
:
{
NoData
},
components
:
{
NoData
},
inject
:
[
'showNav'
],
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
...
@@ -71,6 +72,7 @@
...
@@ -71,6 +72,7 @@
}
}
},
},
created
()
{
created
()
{
document
.
title
=
'申领结果'
this
.
routerDetail
=
this
.
$route
.
query
this
.
routerDetail
=
this
.
$route
.
query
this
.
getRecordInfo
()
this
.
getRecordInfo
()
},
},
...
...
src/views/myMap.vue
View file @
ad577f78
<
template
>
<
template
>
<div
class=
"myMap"
>
<div
class=
"myMap"
>
<mt-header
title=
"药具领取"
>
<mt-header
title=
"药具领取"
v-if=
"showNav()"
>
<div
slot=
"left"
@
click=
"toRealHome"
>
<div
slot=
"left"
@
click=
"toRealHome"
>
<mt-button
icon=
"back"
></mt-button>
<mt-button
icon=
"back"
></mt-button>
</div>
</div>
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
export
default
{
export
default
{
name
:
"myMap"
,
name
:
"myMap"
,
inject
:
[
'showNav'
],
data
()
{
data
()
{
return
{
return
{
recordNum
:
0
,
recordNum
:
0
,
...
@@ -57,6 +58,7 @@
...
@@ -57,6 +58,7 @@
}
}
},
},
created
()
{
created
()
{
document
.
title
=
'药具领取'
this
.
urltext
()
this
.
urltext
()
},
},
mounted
()
{
mounted
()
{
...
@@ -288,15 +290,15 @@
...
@@ -288,15 +290,15 @@
infoButton
.
onclick
=
function
()
{
infoButton
.
onclick
=
function
()
{
_that
.
jumpInfo
(
info
)
_that
.
jumpInfo
(
info
)
};
};
let
navigationButton
=
document
.
createElement
(
"input"
);
//
let navigationButton = document.createElement("input");
navigationButton
.
type
=
"button"
;
//
navigationButton.type = "button";
navigationButton
.
className
=
"text-button button-right"
;
//
navigationButton.className = "text-button button-right";
navigationButton
.
value
=
"导航"
//
navigationButton.value = "导航"
navigationButton
.
onclick
=
function
()
{
//
navigationButton.onclick = function () {
_that
.
navigation
(
info
)
//
_that.navigation(info)
};
//
};
middle
.
appendChild
(
infoButton
);
middle
.
appendChild
(
infoButton
);
middle
.
appendChild
(
navigationButton
);
//
middle.appendChild(navigationButton);
content
.
appendChild
(
middle
);
content
.
appendChild
(
middle
);
// 定义底部内容
// 定义底部内容
...
...
src/views/reClaim.vue
View file @
ad577f78
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
@
refresh=
"onRefresh"
@
refresh=
"onRefresh"
:disabled=
"isRefreshDisable"
:disabled=
"isRefreshDisable"
>
>
<mt-header
title=
"人工网点申领"
>
<mt-header
title=
"人工网点申领"
v-if=
"showNav()"
>
<div
slot=
"left"
@
click=
"goBack"
>
<div
slot=
"left"
@
click=
"goBack"
>
<mt-button
icon=
"back"
></mt-button>
<mt-button
icon=
"back"
></mt-button>
</div>
</div>
...
...
src/views/receiveSuccess.vue
View file @
ad577f78
<
template
>
<
template
>
<div>
<div>
<mt-header
title=
"领取成功"
>
<mt-header
title=
"领取成功"
v-if=
"showNav()"
>
<div
slot=
"left"
@
click=
"goBack"
>
<div
slot=
"left"
@
click=
"goBack"
>
<mt-button
icon=
"back"
></mt-button>
<mt-button
icon=
"back"
></mt-button>
</div>
</div>
...
@@ -22,7 +22,14 @@
...
@@ -22,7 +22,14 @@
export
default
{
export
default
{
name
:
"receiveSuccess"
,
name
:
"receiveSuccess"
,
methods
:{
inject
:
[
'showNav'
],
data
()
{
return
{}
},
created
()
{
document
.
title
=
'领取成功'
},
methods
:{
goBack
()
{
goBack
()
{
window
.
history
.
go
(
-
1
)
window
.
history
.
go
(
-
1
)
},
},
...
...
src/views/returnVisit.vue
View file @
ad577f78
<
template
>
<
template
>
<div>
<div>
<mt-header
title=
"填写随访"
>
<mt-header
title=
"填写随访"
v-if=
"showNav()"
>
<router-link
to=
"/"
slot=
"left"
>
<router-link
to=
"/"
slot=
"left"
>
<mt-button
icon=
"back"
></mt-button>
<mt-button
icon=
"back"
></mt-button>
</router-link>
</router-link>
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
export
default
{
export
default
{
name
:
"returnVisit"
,
name
:
"returnVisit"
,
inject
:
[
'showNav'
],
data
()
{
data
()
{
return
{
return
{
options1
:
[{
label
:
'满意'
,
value
:
'0'
},
{
label
:
'不满意'
,
value
:
'1'
}],
options1
:
[{
label
:
'满意'
,
value
:
'0'
},
{
label
:
'不满意'
,
value
:
'1'
}],
...
@@ -79,7 +80,10 @@
...
@@ -79,7 +80,10 @@
}
}
}
}
},
},
methods
:{
created
()
{
document
.
title
=
'填写随访'
},
methods
:{
changeAgree
()
{
changeAgree
()
{
if
(
this
.
formData
.
isAgree
==
0
)
{
if
(
this
.
formData
.
isAgree
==
0
)
{
this
.
formData
.
disagreeReason
=
''
this
.
formData
.
disagreeReason
=
''
...
...
src/views/siteDetails.vue
View file @
ad577f78
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
@
refresh=
"onRefresh"
@
refresh=
"onRefresh"
:disabled=
"isRefreshDisable"
:disabled=
"isRefreshDisable"
>
>
<mt-header
title=
"网点详情"
>
<mt-header
title=
"网点详情"
v-if=
"showNav()"
>
<div
@
click=
"goBack"
slot=
"left"
>
<div
@
click=
"goBack"
slot=
"left"
>
<mt-button
icon=
"back"
></mt-button>
<mt-button
icon=
"back"
></mt-button>
</div>
</div>
...
@@ -79,6 +79,7 @@
...
@@ -79,6 +79,7 @@
export
default
{
export
default
{
name
:
"siteDetails"
,
name
:
"siteDetails"
,
components
:
{
NoData
},
components
:
{
NoData
},
inject
:[
'showNav'
],
data
()
{
data
()
{
return
{
return
{
siteDetail
:
{},
siteDetail
:
{},
...
@@ -115,6 +116,7 @@
...
@@ -115,6 +116,7 @@
})
})
},
},
created
()
{
created
()
{
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