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
5dfaa271
Commit
5dfaa271
authored
Apr 01, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改拍照时页面
parent
cdaf3ce7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
standard.vue
take-order/components/photo/standard.vue
+5
-1
preview.vue
take-order/pages/photo/preview.vue
+4
-4
take.vue
take-order/pages/photo/take.vue
+3
-1
No files found.
take-order/components/photo/standard.vue
View file @
5dfaa271
...
...
@@ -16,7 +16,7 @@
</view>
</swiper-item>
<swiper-item
class=
"swiper-item"
v-for=
"(src, index) in swiperList"
:key=
"index"
>
<
cover-image
@
click=
"previewImage(index)"
class=
"icon"
mode=
"aspectFit"
:src=
"src"
></cover-
image>
<
image
@
click=
"previewImage(index)"
class=
"icon"
mode=
"aspectFit"
:src=
"src"
></
image>
</swiper-item>
</swiper>
...
...
@@ -171,6 +171,10 @@
color
:
#333
;
font-size
:
36rpx
;
}
&
>
image
{
width
:
630rpx
;
min-height
:
630rpx
;
}
.txt-box
{
max-height
:
560rpx
;
overflow
:
auto
;
...
...
take-order/pages/photo/preview.vue
View file @
5dfaa271
...
...
@@ -152,18 +152,18 @@
// TODO 参数是否要来回传递
self
.
saveTempToLocal
()
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItemLength
++
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
// photo.currentItem.
// 当前项的图片显示
// 拍照项张数目增加 等于10张
let
timer
=
setTimeout
(()
=>
{
if
(
photo
.
currentItemLength
<
10
){
uni
.
navigateBack
({
delta
:
2
delta
:
1
})
}
else
{
uni
.
redirectTo
({
url
:
"pages/photo/list"
uni
.
navigateBack
({
delta
:
2
})
}
},
2000
)
...
...
take-order/pages/photo/take.vue
View file @
5dfaa271
...
...
@@ -10,7 +10,7 @@
src=
"/static/photo/icon-setting.png"
></cover-image>
</cover-view>
</cover-view>
<camera
class=
"camera-box"
v-if=
"cameraChange&&!standardShow"
:device-position=
"cameraInfo.devicePosition"
<camera
class=
"camera-box"
v-if=
"cameraChange&&!standardShow"
v-show=
""
:device-position=
"cameraInfo.devicePosition"
:flash=
"cameraInfo.flash"
:style=
"
{'height':cameraHeight/2 + 'px','top':parseInt(navHeight/2) + 'px'}"
@error="cameraError">
<cover-view
class=
"mark-box"
>
...
...
@@ -142,6 +142,8 @@
watch
:
{},
onShow
()
{
// 默认开启弹窗
const
photo
=
getApp
().
globalData
.
photo
this
.
waterSetting
=
photo
.
waterSetting
this
.
standardShow
=
this
.
shadowInitShow
// this.initData()
},
...
...
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