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
4a544690
Commit
4a544690
authored
May 13, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
水印针对系统区分
parent
f627fdfa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
list.vue
take-order/pages/photo/list.vue
+1
-2
preview.vue
take-order/pages/photo/preview.vue
+0
-1
setting.vue
take-order/pages/photo/setting.vue
+4
-3
take.vue
take-order/pages/photo/take.vue
+4
-4
No files found.
take-order/pages/photo/list.vue
View file @
4a544690
...
@@ -188,7 +188,6 @@
...
@@ -188,7 +188,6 @@
a
.
list
.
forEach
(
b
=>
{
a
.
list
.
forEach
(
b
=>
{
const
row
=
photoLists
.
find
(
v
=>
v
.
_id
===
b
.
_id
)
const
row
=
photoLists
.
find
(
v
=>
v
.
_id
===
b
.
_id
)
if
(
row
&&
row
.
imageList
.
length
>
0
)
{
if
(
row
&&
row
.
imageList
.
length
>
0
)
{
b
.
imageList
=
row
.
imageList
b
.
imageList
=
row
.
imageList
}
}
})
})
...
@@ -224,7 +223,7 @@
...
@@ -224,7 +223,7 @@
this
.
rightList
=
item
.
list
this
.
rightList
=
item
.
list
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
photo
.
topIndex
=
ikey
photo
.
topIndex
=
ikey
photo
.
waterSetting
=
item
.
userWatermark
//
photo.waterSetting = item.userWatermark
uni
.
pageScrollTo
({
uni
.
pageScrollTo
({
scrollTop
:
0
,
scrollTop
:
0
,
duration
:
0
duration
:
0
...
...
take-order/pages/photo/preview.vue
View file @
4a544690
...
@@ -175,7 +175,6 @@
...
@@ -175,7 +175,6 @@
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
if
(
photo
.
currentItemLength
<
10
)
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
if
(
photo
.
currentItemLength
<
10
)
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
log
(
photo
)
// 当前项的图片显示
// 当前项的图片显示
// 拍照项张数目增加 等于10张
// 拍照项张数目增加 等于10张
if
(
photo
.
currentItemLength
<
10
){
if
(
photo
.
currentItemLength
<
10
){
...
...
take-order/pages/photo/setting.vue
View file @
4a544690
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
this
.
loading
=
false
this
.
loading
=
false
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
const
data
=
cache
.
getCache
(
this
.
systemId
)
const
data
=
cache
.
getCache
(
this
.
systemId
)
this
.
result
=
data
.
result
[
photo
.
topIndex
].
userWatermark
this
.
result
=
data
.
result
[
0
].
userWatermark
},
},
saveUserWatermark
:
function
()
{
saveUserWatermark
:
function
()
{
// this.loading = true
// this.loading = true
...
@@ -181,9 +181,10 @@
...
@@ -181,9 +181,10 @@
// 离线处理方案
// 离线处理方案
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
const
data
=
cache
.
getCache
(
this
.
systemId
)
const
data
=
cache
.
getCache
(
this
.
systemId
)
data
.
result
[
photo
.
topIndex
].
userWatermark
=
this
.
result
data
.
result
[
0
].
userWatermark
=
this
.
result
data
.
result
[
1
].
userWatermark
=
this
.
result
photo
.
waterSetting
=
this
.
result
cache
.
setCache
(
this
.
systemId
,
data
)
cache
.
setCache
(
this
.
systemId
,
data
)
photo
.
waterSetting
=
this
.
result
},
},
//保存原图 开关
//保存原图 开关
...
...
take-order/pages/photo/take.vue
View file @
4a544690
...
@@ -92,7 +92,6 @@
...
@@ -92,7 +92,6 @@
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
console
.
log
(
photo
,
'global-photo'
)
getApp
().
trackPage
(
'拍照页'
)
getApp
().
trackPage
(
'拍照页'
)
// this.ctx = uni.createCameraContext();
// this.ctx = uni.createCameraContext();
this
.
updateTime
()
this
.
updateTime
()
...
@@ -153,7 +152,7 @@
...
@@ -153,7 +152,7 @@
watch
:
{},
watch
:
{},
onShow
()
{
onShow
()
{
// 默认开启弹窗
// 默认开启弹窗
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
this
.
waterSetting
=
photo
.
waterSetting
this
.
waterSetting
=
photo
.
waterSetting
this
.
standardShow
=
this
.
shadowInitShow
this
.
standardShow
=
this
.
shadowInitShow
this
.
cameraChange
=
true
this
.
cameraChange
=
true
...
@@ -223,7 +222,7 @@
...
@@ -223,7 +222,7 @@
// console.log(this.cameraHeight,'this.cameraHeight')
// console.log(this.cameraHeight,'this.cameraHeight')
// console.log(globalData.navHeight,'globalData.navHeight')
// console.log(globalData.navHeight,'globalData.navHeight')
this
.
ratio
=
globalData
.
screenHeight
/
globalData
.
rpxScreenHeight
this
.
ratio
=
globalData
.
screenHeight
/
globalData
.
rpxScreenHeight
// console.log(globalData.screenHeight,globalData.rpxScreenHeight,this.ratio)
// console.log(globalData.screenHeight,globalData.rpxScreenHeight,this.ratio)
this
.
waterSetting
=
globalData
.
photo
.
waterSetting
this
.
waterSetting
=
globalData
.
photo
.
waterSetting
// this.cameraHeight = globalData.rpxScreenHeight
// this.cameraHeight = globalData.rpxScreenHeight
},
},
...
@@ -436,7 +435,8 @@
...
@@ -436,7 +435,8 @@
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
this
.
tempImgs
.
mixWater
=
res
.
tempFilePath
this
.
tempImgs
.
mixWater
=
res
.
tempFilePath
globalTempPath
.
origin
=
this
.
tempImgs
.
origin
globalTempPath
.
origin
=
this
.
tempImgs
.
origin
globalTempPath
.
mixWater
=
res
.
tempFilePath
globalTempPath
.
mixWater
=
res
.
tempFilePath
this
.
goPage
(
'/pages/photo/preview'
)
let
timer
=
setTimeout
(()
=>
{
let
timer
=
setTimeout
(()
=>
{
this
.
goPage
(
'/pages/photo/preview'
)
this
.
goPage
(
'/pages/photo/preview'
)
},
0
)
},
0
)
...
...
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