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
318d43f5
Commit
318d43f5
authored
Apr 02, 2021
by
李超鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev-photo-v2' into dev-photo-v2
# Conflicts: # take-order/pages/photo/list.vue
parents
6bba43b6
f203ebc8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
10 deletions
+19
-10
standard.vue
take-order/components/photo/standard.vue
+5
-1
list.vue
take-order/pages/photo/list.vue
+2
-2
preview.vue
take-order/pages/photo/preview.vue
+9
-6
take.vue
take-order/pages/photo/take.vue
+3
-1
No files found.
take-order/components/photo/standard.vue
View file @
318d43f5
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
class=
"swiper-item"
v-for=
"(src, index) in swiperList"
:key=
"index"
>
<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-item>
</swiper>
</swiper>
...
@@ -171,6 +171,10 @@
...
@@ -171,6 +171,10 @@
color
:
#333
;
color
:
#333
;
font-size
:
36rpx
;
font-size
:
36rpx
;
}
}
&
>
image
{
width
:
630rpx
;
min-height
:
630rpx
;
}
.txt-box
{
.txt-box
{
max-height
:
560rpx
;
max-height
:
560rpx
;
overflow
:
auto
;
overflow
:
auto
;
...
...
take-order/pages/photo/list.vue
View file @
318d43f5
...
@@ -12,14 +12,14 @@
...
@@ -12,14 +12,14 @@
<view
class=
"right-view-title"
>
拍照项有:
</view>
<view
class=
"right-view-title"
>
拍照项有:
</view>
<template
v-for=
"(item,ikey) in rightList"
>
<template
v-for=
"(item,ikey) in rightList"
>
<view
class=
"rightItemView"
@
click=
"rightItemClick(item,ikey)"
:key=
"ikey"
>
<view
class=
"rightItemView"
@
click=
"rightItemClick(item,ikey)"
:key=
"ikey"
>
<view
:class=
"['rightContentView',
{'active':item.imageList
.length > 0
}]">
<view
:class=
"['rightContentView',
{'active':item.imageList
[0]
}]">
<text
class=
"ph-lst-item-index"
>
{{
ikey
+
1
}}
</text>
<text
class=
"ph-lst-item-index"
>
{{
ikey
+
1
}}
</text>
<text
class=
""
>
{{
item
.
name
}}
</text>
<text
class=
""
>
{{
item
.
name
}}
</text>
<image
class=
"ph-list-item-arrow"
src=
"/static/photo/arrow.png"
></image>
<image
class=
"ph-list-item-arrow"
src=
"/static/photo/arrow.png"
></image>
<!--
<text
class=
"rightContent u-m-t-14 u-m-l-30 u-p-b-30"
>
{{
item
.
describe
}}
</text>
-->
<!--
<text
class=
"rightContent u-m-t-14 u-m-l-30 u-p-b-30"
>
{{
item
.
describe
}}
</text>
-->
</view>
</view>
<view
class=
"rightImageView"
v-if=
"item.imageList.length > 0"
>
<view
class=
"rightImageView"
v-if=
"item.imageList.length > 0"
>
<image
class=
"rightImage"
v-for=
"(image, index) in item.imageList
"
:src=
"image"
:key=
"image
"
<image
class=
"rightImage"
v-for=
"(image, index) in item.imageList
.slice(0 , 10)"
:src=
"image"
:key=
"index
"
@
click
.
stop=
"handleClickImage(item, index)"
mode=
"aspectFill"
></image>
@
click
.
stop=
"handleClickImage(item, index)"
mode=
"aspectFill"
></image>
</view>
</view>
</view>
</view>
...
...
take-order/pages/photo/preview.vue
View file @
318d43f5
...
@@ -121,10 +121,13 @@
...
@@ -121,10 +121,13 @@
})
})
},
},
finishPhoto
(){
finishPhoto
(){
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItemLength
=
10
this
.
continuePhoto
()
// 完成本项
// 完成本项
uni
.
navigateBack
({
//
uni.navigateBack({
delta
:
2
//
delta:2
})
//
})
},
},
// 确认图片
// 确认图片
continuePhoto
()
{
continuePhoto
()
{
...
@@ -149,7 +152,7 @@
...
@@ -149,7 +152,7 @@
if
(
res
.
result
.
code
)
{
if
(
res
.
result
.
code
)
{
// TODO 参数是否要来回传递
// TODO 参数是否要来回传递
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItemLength
++
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
// photo.currentItem.
// photo.currentItem.
// 当前项的图片显示
// 当前项的图片显示
// 拍照项张数目增加 等于10张
// 拍照项张数目增加 等于10张
...
@@ -159,8 +162,8 @@
...
@@ -159,8 +162,8 @@
delta
:
1
delta
:
1
})
})
}
else
{
}
else
{
uni
.
redirectTo
({
uni
.
navigateBack
({
url
:
"pages/photo/list"
delta
:
2
})
})
}
}
},
2000
)
},
2000
)
...
...
take-order/pages/photo/take.vue
View file @
318d43f5
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
src=
"/static/photo/icon-setting.png"
></cover-image>
src=
"/static/photo/icon-setting.png"
></cover-image>
</cover-view>
</cover-view>
</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'}"
:flash=
"cameraInfo.flash"
:style=
"
{'height':cameraHeight/2 + 'px','top':parseInt(navHeight/2) + 'px'}"
@error="cameraError">
@error="cameraError">
<cover-view
class=
"mark-box"
>
<cover-view
class=
"mark-box"
>
...
@@ -142,6 +142,8 @@
...
@@ -142,6 +142,8 @@
watch
:
{},
watch
:
{},
onShow
()
{
onShow
()
{
// 默认开启弹窗
// 默认开启弹窗
const
photo
=
getApp
().
globalData
.
photo
this
.
waterSetting
=
photo
.
waterSetting
this
.
standardShow
=
this
.
shadowInitShow
this
.
standardShow
=
this
.
shadowInitShow
// this.initData()
// 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