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
964a8dbc
Commit
964a8dbc
authored
Mar 30, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新首页图片
parent
f0601de2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
App.vue
take-order/App.vue
+2
-0
list.vue
take-order/pages/photo/list.vue
+3
-1
preview.vue
take-order/pages/photo/preview.vue
+10
-0
No files found.
take-order/App.vue
View file @
964a8dbc
...
@@ -109,6 +109,8 @@ export default {
...
@@ -109,6 +109,8 @@ export default {
classifyId
:
''
,
// 分类id
classifyId
:
''
,
// 分类id
systemId
:
''
,
// 系统id
systemId
:
''
,
// 系统id
},
},
topIndex
:
0
,
itemIndex
:
0
,
currentItemLength
:
0
,
//已拍摄照片张数
currentItemLength
:
0
,
//已拍摄照片张数
productList
:
[],
productList
:
[],
currentItem
:
null
,
// 选择的某一项
currentItem
:
null
,
// 选择的某一项
...
...
take-order/pages/photo/list.vue
View file @
964a8dbc
...
@@ -102,7 +102,8 @@
...
@@ -102,7 +102,8 @@
handleTopItemChange
:
function
(
ikey
,
item
)
{
handleTopItemChange
:
function
(
ikey
,
item
)
{
this
.
activeTop
=
ikey
this
.
activeTop
=
ikey
this
.
rightList
=
item
.
list
this
.
rightList
=
item
.
list
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
photo
.
topIndex
=
ikey
photo
.
waterSetting
=
item
.
userWatermark
photo
.
waterSetting
=
item
.
userWatermark
uni
.
pageScrollTo
({
uni
.
pageScrollTo
({
scrollTop
:
0
,
scrollTop
:
0
,
...
@@ -122,6 +123,7 @@
...
@@ -122,6 +123,7 @@
rightItemClick
:
function
(
item
,
ikey
)
{
rightItemClick
:
function
(
item
,
ikey
)
{
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItem
=
item
photo
.
currentItem
=
item
photo
.
itemIndex
=
ikey
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/photo/take'
url
:
'/pages/photo/take'
})
})
...
...
take-order/pages/photo/preview.vue
View file @
964a8dbc
...
@@ -70,6 +70,16 @@
...
@@ -70,6 +70,16 @@
})
})
}
}
}
}
if
(
photo
.
currentItem
){
photo
.
currentItem
.
imageList
.
push
(
photo
.
tempPath
.
mixWater
)
}
// if(photo.productList && photo.productList[photo.topIndex]){
// const topArr = photo.productList[photo.topIndex]
// if(topArr[photo.itemIndex]){
// topArr[photo.itemIndex].imageList.push(photo.tempPath.mixWater)
// }
// }
// photo.
if
(
photo
.
tempPath
.
mixWater
){
if
(
photo
.
tempPath
.
mixWater
){
// 保存水印处理图片到本地
// 保存水印处理图片到本地
path
=
photo
.
tempPath
.
mixWater
path
=
photo
.
tempPath
.
mixWater
...
...
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