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
a2083da8
Commit
a2083da8
authored
Mar 30, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-photo-v2' of
https://git.banshouhui.com/heyinchen/take_order
into dev-photo-v2
parents
964a8dbc
4ef5bba2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
list.vue
take-order/pages/photo/list.vue
+4
-4
index.js
...r/uniCloud-tcb/cloudfunctions/getGroupStandardV2/index.js
+1
-1
index.js
take-order/uniCloud-tcb/cloudfunctions/saveImage/index.js
+1
-1
No files found.
take-order/pages/photo/list.vue
View file @
a2083da8
...
...
@@ -12,14 +12,14 @@
<view
class=
"right-view-title"
>
拍照项有:
</view>
<template
v-for=
"(item,ikey) in rightList"
>
<view
class=
"rightItemView"
@
click=
"rightItemClick(item,ikey)"
:key=
"ikey"
>
<view
:class=
"['rightContentView',
{'active':item.images.length > 0}]">
<view
:class=
"['rightContentView',
{'active':item.image
List.length > 0 || item.image
s.length > 0}]">
<text
class=
"ph-lst-item-index"
>
{{
ikey
+
1
}}
</text>
<text
class=
""
>
{{
item
.
name
}}
</text>
<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>
-->
</view>
<view
class=
"rightImageView"
v-if=
"item.image
s
"
>
<image
class=
"rightImage"
v-for=
"(image, index) in
item.images
"
:src=
"image"
:key=
"image"
<view
class=
"rightImageView"
v-if=
"item.image
List.length > 0 || item.images.length > 0
"
>
<image
class=
"rightImage"
v-for=
"(image, index) in
(item.imageList.length > 0 ? item.imageList : item.images)
"
:src=
"image"
:key=
"image"
@
click
.
stop=
"handleClickImage(item, index)"
mode=
""
></image>
</view>
</view>
...
...
@@ -114,7 +114,7 @@
// 点击图片
handleClickImage
(
item
,
index
)
{
uni
.
previewImage
({
urls
:
item
.
images
,
urls
:
item
.
image
List
.
length
>
0
?
item
.
imageList
:
item
.
image
s
,
current
:
index
})
},
...
...
take-order/uniCloud-tcb/cloudfunctions/getGroupStandardV2/index.js
View file @
a2083da8
...
...
@@ -18,7 +18,7 @@ exports.main = async (event, context) => {
$
.
eq
([
'$user_id'
,
user_id
])
]))).
sort
({
create_date
:
-
1
}).
limit
(
5
)
}).
limit
(
10
)
.
project
({
"_id"
:
0
,
"url"
:
1
,
...
...
take-order/uniCloud-tcb/cloudfunctions/saveImage/index.js
View file @
a2083da8
...
...
@@ -9,7 +9,7 @@ exports.main = async (event, context) => {
await
uniCloud
.
database
().
collection
(
"user_upload_file"
).
add
({
"user_id"
:
workerId
,
"standard_id"
:
event
.
standardId
,
url
:
event
.
url
,
url
:
"https://img2.banshouhui.com/"
+
event
.
url
,
create_date
:
new
Date
()
})
return
true
...
...
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