Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
Project
Project
Details
Activity
Releases
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
和慭琛
take_order
Commits
aa8f5daa
Commit
aa8f5daa
authored
Mar 18, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit-pages.json
parent
675a53c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
5 deletions
+40
-5
pages.json
take-order/pages.json
+2
-2
try.vue
take-order/pages/photo/try.vue
+38
-3
No files found.
take-order/pages.json
View file @
aa8f5daa
...
@@ -288,8 +288,8 @@
...
@@ -288,8 +288,8 @@
"path"
:
"pages/settle/index"
,
//启动页面,必选
"path"
:
"pages/settle/index"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},{
"name"
:
"
考试
"
,
//模式名称
"name"
:
"
拍照小工具
"
,
//模式名称
"path"
:
"pages/
exam/index
"
,
//启动页面,必选
"path"
:
"pages/
photo/try
"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},{
"name"
:
"基本信息"
,
//模式名称
"name"
:
"基本信息"
,
//模式名称
...
...
take-order/pages/photo/try.vue
View file @
aa8f5daa
<
template
>
<
template
>
<view
class=
"blackBackColor"
>
<view
class=
"blackBackColor"
>
<camera
device-position=
"
back"
flash=
"off
"
style=
'width:100%; height:100vh; overflow: hidden;'
@
error=
"cameraRefuse"
>
<camera
device-position=
"
front"
flash=
"on
"
style=
'width:100%; height:100vh; overflow: hidden;'
@
error=
"cameraRefuse"
>
<cover-view
class=
"locationView"
>
<cover-view
class=
"locationView"
>
<cover-view
class=
"locationText u-m-l-20 u-m-t-30"
>
经度:
{{
longitude
}}
</cover-view>
<cover-view
class=
"locationText u-m-l-20 u-m-t-30"
>
经度:
{{
longitude
}}
</cover-view>
<cover-view
class=
"locationText u-m-l-20 u-m-t-10"
>
维度:
{{
latitude
}}
</cover-view>
<cover-view
class=
"locationText u-m-l-20 u-m-t-10"
>
维度:
{{
latitude
}}
</cover-view>
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<cover-image
class=
"backIcon"
:src=
"icon_arrow_down"
mode=
""
@
click=
"simpleBack"
></cover-image>
<cover-image
class=
"backIcon"
:src=
"icon_arrow_down"
mode=
""
@
click=
"simpleBack"
></cover-image>
<!--cover-image class='switchIcon' :src='icon_switch_white' @click="switchClick()">
</cover-image-->
<!--cover-image class='switchIcon' :src='icon_switch_white' @click="switchClick()">
</cover-image-->
<cover-image
class=
'takeIcon'
:src=
'icon_take'
@
click=
"takePhoto()"
>
</cover-image>
<cover-image
class=
'takeIcon'
:src=
'icon_take'
@
click=
"takePhoto()"
>
</cover-image>
<!--cover-image class='flashIcon' :src='icon_light_on_white' @click="flashClick()">
</cover-image-->
<!--cover-image class='flashIcon' :src='icon_light_on_white' @click="flashClick()">
</cover-image-->
</cover-view>
</cover-view>
<!--button @click="openSetting">打开设置页
</button-->
<!--button @click="openSetting">打开设置页
</button-->
...
@@ -120,6 +120,35 @@
...
@@ -120,6 +120,35 @@
},
},
simpleBack
(){
simpleBack
(){
const
FileSystemManager
=
wx
.
getFileSystemManager
()
FileSystemManager
.
getSavedFileList
({
success
(
res
)
{
console
.
log
(
res
,
'res-getSavedFileList'
)
if
(
res
.
fileList
.
length
>
0
){
wx
.
removeSavedFile
({
filePath
:
res
.
fileList
[
0
].
filePath
,
complete
(
res
)
{
console
.
log
(
res
)
}
})
}
}
})
return
wx
.
getSavedFileList
({
success
(
res
)
{
console
.
log
(
res
,
'res'
)
if
(
res
.
fileList
.
length
>
0
){
wx
.
removeSavedFile
({
filePath
:
res
.
fileList
[
0
].
filePath
,
complete
(
res
)
{
console
.
log
(
res
)
}
})
}
}
})
return
uni
.
navigateBack
({
uni
.
navigateBack
({
//delta: 2
//delta: 2
});
});
...
@@ -397,7 +426,13 @@
...
@@ -397,7 +426,13 @@
canvasId
:
'canvas'
,
canvasId
:
'canvas'
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
self
.
saveToLocal
(
res
.
tempFilePath
)
self
.
saveToLocal
(
res
.
tempFilePath
)
const
FileSystemManager
=
wx
.
getFileSystemManager
()
FileSystemManager
.
saveFile
({
tempFilePath
:
res
.
tempFilePath
,
success
(
res
)
{
console
.
log
(
res
,
'res-saveFile'
)
}
})
// this.$emit('canvasImage', res.tempFilePath);
// this.$emit('canvasImage', res.tempFilePath);
// if (this.showPreview) {
// if (this.showPreview) {
// this.restultImage = res.tempFilePath
// this.restultImage = res.tempFilePath
...
...
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