Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
e08c2dd7
Commit
e08c2dd7
authored
May 10, 2021
by
Damon
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
62514355
de2c5d8a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
617 additions
and
619 deletions
+617
-619
order.js
src/common/api/order.js
+6
-0
setting.vue
src/components/photo/setting.vue
+51
-61
index.vue
src/components/take/index.vue
+68
-65
list.vue
src/pages/photo/list.vue
+492
-493
No files found.
src/common/api/order.js
View file @
e08c2dd7
...
...
@@ -74,6 +74,11 @@ let orderApiFun = function(vm){
* 获取师傅水印 or 默认水印
*/
let
getWatermark
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
prefix
+
vm
.
vuex_token
+
'/photo/watermark'
,
params
);
/**
* 保存师傅水印
*/
let
saveWatermark
=
async
(
params
=
{})
=>
await
vm
.
$u
.
post
(
prefix
+
vm
.
vuex_token
+
'/photo/watermark'
,
params
);
/**
* 获取师傅开放可选时间段
...
...
@@ -144,6 +149,7 @@ let orderApiFun = function(vm){
orderStandard
,
saveImage
,
getWatermark
,
saveWatermark
,
openTimerange
,
contactTime
,
checkRejectable
,
...
...
src/components/photo/setting.vue
View file @
e08c2dd7
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<u-navbar
title=
"设置"
:title-size=
"26"
title-color=
"#000"
:custom-back=
"backTake"
></u-navbar>
<view
class=
"shadowBackView"
style=
"background-color: transparent;z-index: 1"
v-if=
"loading"
>
<u-loading
style=
"position: fixed;top: 50%;"
:show=
"loading"
size=
"36"
mode=
"flower"
></u-loading>
...
...
@@ -9,20 +9,20 @@
<text
class=
"itemTitle"
>
保存原图
</text>
<text
class=
"itemNotice"
>
拍照后另保存一张无水印的图片
</text>
</view>
<switch
class=
"itemSwitch"
:checked=
"result['has
_o
rigin']"
@
change=
"handleOrigineChange"
color=
"#007AFF"
/>
<switch
class=
"itemSwitch"
:checked=
"result['has
O
rigin']"
@
change=
"handleOrigineChange"
color=
"#007AFF"
/>
</view>
<view
class=
"itemView"
v-if=
"showTitleSwitch"
>
<view
class=
"itemTitleView"
@
click=
"itemClick(
{},-1)">
<text
class=
"itemTitle"
>
水印标题
</text>
<text
class=
"itemNotice"
>
{{
result
[
'lower
_right'
][
'title_text
'
]
||
'点击可编辑更改'
}}
</text>
<text
class=
"itemNotice"
>
{{
result
[
'lower
Left'
][
'title
'
]
||
'点击可编辑更改'
}}
</text>
</view>
<switch
class=
"itemSwitch"
disabled
:checked=
"result['lower
_right']['title_text
'] != ''"
<switch
class=
"itemSwitch"
disabled
:checked=
"result['lower
Left']['title
'] != ''"
@
click=
"handleClickTitleSwitch"
color=
"#007AFF"
/>
</view>
<view
class=
"itemView"
v-for=
"(item,ikey) in itemList"
:key=
"ikey"
>
<view
class=
"itemTitleView"
@
click=
"itemClick(item,ikey)"
>
<text
class=
"itemTitle"
>
{{
item
[
'watemark
_t
ext'
]
||
'自定义'
+
(
ikey
+
1
)
}}
</text>
<text
class=
"itemNotice"
>
{{
item
[
'watemark
_v
alue'
]
||
'点击可编辑更改'
}}
</text>
<text
class=
"itemTitle"
>
{{
item
[
'watemark
T
ext'
]
||
'自定义'
+
(
ikey
+
1
)
}}
</text>
<text
class=
"itemNotice"
>
{{
item
[
'watemark
V
alue'
]
||
'点击可编辑更改'
}}
</text>
</view>
<switch
class=
"itemSwitch"
:checked=
"item['enable']"
@
change=
"itemChange(item, ikey)"
color=
"#007AFF"
/>
</view>
...
...
@@ -33,8 +33,8 @@
<view
class=
"inputBackView"
>
<view
class=
"ph-pop-left-view"
>
<view
class=
"leftInputView"
>
<input
class=
"leftInput"
type=
"text"
v-model=
"currenItem['watemark
_t
ext']"
@
input=
"leftInput()"
:disabled=
"currenItem.type === '
title_text
'"
placeholder=
"请输入"
<input
class=
"leftInput"
type=
"text"
v-model=
"currenItem['watemark
T
ext']"
@
input=
"leftInput()"
:disabled=
"currenItem.type === '
备注
'"
placeholder=
"请输入"
maxlength=
"10"
/>
</view>
<view
class=
"ph-pop-tip-view"
v-if=
"showTipLeft"
>
*必填项
</view>
...
...
@@ -42,7 +42,7 @@
<view
class=
"ph-pop-mid-view"
>
:
</view>
<view>
<view
class=
"rightInputView"
>
<input
class=
"rightInput"
type=
"text"
v-model=
"currenItem['watemark
_v
alue']"
<input
class=
"rightInput"
type=
"text"
v-model=
"currenItem['watemark
V
alue']"
@
input=
"rightInput()"
placeholder=
"请输入内容"
maxlength=
"30"
/>
</view>
<view
class=
"ph-pop-tip-view"
v-if=
"showTipRight"
>
*必填项
</view>
...
...
@@ -72,14 +72,14 @@
isPopShow
:
false
,
icon_close_new
:
''
,
result
:
{
has
_o
rigin
:
true
,
lower
_righ
t
:
{
has
O
rigin
:
true
,
lower
Lef
t
:
{
body
:
[]
}
},
currenItem
:
{
'watemark
_t
ext'
:
''
,
'watemark
_v
alue'
:
''
'watemark
T
ext'
:
''
,
'watemark
V
alue'
:
''
},
editingItem
:
{},
showTipLeft
:
false
,
...
...
@@ -89,10 +89,11 @@
},
computed
:
{
itemList
()
{
if
(
this
.
result
[
'lower_right'
])
{
var
arr
=
this
.
result
[
'lower_right'
][
'body'
]
console
.
log
(
this
.
result
)
if
(
this
.
result
[
'lowerLeft'
])
{
var
arr
=
this
.
result
[
'lowerLeft'
][
'body'
]
return
arr
.
filter
((
item
)
=>
{
return
item
.
watemark
_t
ype
===
'备注'
return
item
.
watemark
T
ype
===
'备注'
})
}
else
{
return
[]
...
...
@@ -100,7 +101,7 @@
},
showTitleSwitch
()
{
return
this
.
result
[
'lower
_right'
].
hasOwnProperty
(
'title_text
'
)
return
this
.
result
[
'lower
Left'
].
hasOwnProperty
(
'title
'
)
},
customStyleCancel
()
{
return
{
...
...
@@ -122,54 +123,43 @@
getApp
().
trackPage
(
'水印设置页'
)
const
globalData
=
getApp
().
globalData
this
.
icon_close_new
=
globalData
.
icon_close_new
this
.
systemId
=
globalData
.
photo
.
currentItem
.
system
Id
this
.
systemId
=
globalData
.
photo
.
currentItem
.
partnerCompany
Id
this
.
getItemList
()
},
methods
:
{
getItemList
:
function
()
{
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
this
.
loading
=
true
this
.
$u
.
api
.
getUserWatermark
({
'token'
:
this
.
vuex_token
,
'system_id'
:
this
.
systemId
}).
then
(
res
=>
{
if
(
res
&&
res
.
result
)
{
if
(
res
.
result
.
error_code
){
uni
.
showToast
({
title
:
res
.
result
.
error_msg
})
}
else
{
this
.
result
=
res
.
result
}
}
else
{
uni
.
showToast
({
title
:
'网络异常'
})
getItemList
:
function
()
{
this
.
loading
=
true
this
.
$u
.
api
.
getWatermark
({
partnerCompanyId
:
this
.
systemId
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
result
=
res
.
data
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
message
})
}
this
.
loading
=
false
})
},
saveUserWatermark
:
function
()
{
this
.
loading
=
true
this
.
$u
.
api
.
saveUserWatermark
({
'token'
:
this
.
vuex_token
,
'watermark'
:
this
.
result
}).
then
(
res
=>
{
if
(
res
.
result
.
code
==
true
)
{
const
photo
=
getApp
().
globalData
.
photo
photo
.
waterSetting
=
this
.
result
this
.
$u
.
api
.
saveWatermark
(
this
.
result
).
then
(
res
=>
{
if
(
res
.
code
===
200
){
uni
.
showToast
({
title
:
'保存成功'
})
getApp
().
globalData
.
photo
.
waterSetting
=
this
.
result
this
.
$emit
(
"changeWatermark"
,
this
.
result
);
}
else
{
uni
.
showToast
({
title
:
res
.
result
.
msg
})
uni
.
showToast
({
title
:
res
.
message
})
}
this
.
loading
=
false
})
},
//保存原图 开关
handleOrigineChange
:
function
(
e
)
{
this
.
result
[
'has
_origin'
]
=
!
this
.
result
[
'has_o
rigin'
]
this
.
result
[
'has
Origin'
]
=
!
this
.
result
[
'hasO
rigin'
]
this
.
saveUserWatermark
()
},
handleClickTitleSwitch
:
function
(
e
)
{
var
string
=
this
.
result
[
'lower
_right'
][
'title_text
'
]
?
'水印标题不可关闭'
:
'请先编辑该自定义项'
var
string
=
this
.
result
[
'lower
Left'
][
'title
'
]
?
'水印标题不可关闭'
:
'请先编辑该自定义项'
uni
.
showToast
({
icon
:
'none'
,
title
:
string
...
...
@@ -178,7 +168,7 @@
//自定义 开关
itemChange
:
function
(
item
,
ikey
)
{
if
(
item
[
'watemark
_v
alue'
])
{
if
(
item
[
'watemark
V
alue'
])
{
// 修改
item
[
'enable'
]
=
!
item
[
'enable'
]
this
.
saveUserWatermark
()
...
...
@@ -194,9 +184,9 @@
itemClick
:
function
(
item
,
ikey
)
{
if
(
ikey
===
-
1
)
{
this
.
currenItem
=
{
'watemark
_t
ext'
:
'水印标题'
,
'watemark
_value'
:
this
.
result
[
'lower_right'
][
'title_text
'
],
'type'
:
'
title_text
'
'watemark
T
ext'
:
'水印标题'
,
'watemark
Value'
:
this
.
result
[
'lowerLeft'
][
'title
'
],
'type'
:
'
备注
'
}
}
else
{
this
.
editingItem
=
item
...
...
@@ -210,7 +200,7 @@
//左侧输入框
leftInput
:
function
(
e
)
{
if
(
this
.
currenItem
[
'watemark
_t
ext'
])
{
if
(
this
.
currenItem
[
'watemark
T
ext'
])
{
this
.
showTipLeft
=
false
}
...
...
@@ -218,7 +208,7 @@
//右侧输入框
rightInput
:
function
(
e
)
{
if
(
this
.
currenItem
[
'watemark
_v
alue'
])
{
if
(
this
.
currenItem
[
'watemark
V
alue'
])
{
this
.
showTipRight
=
false
}
},
...
...
@@ -227,8 +217,8 @@
popCancelClick
:
function
()
{
this
.
isPopShow
=
false
this
.
currenItem
=
{
'watemark
_t
ext'
:
''
,
'watemark
_v
alue'
:
''
'watemark
T
ext'
:
''
,
'watemark
V
alue'
:
''
}
},
...
...
@@ -236,27 +226,27 @@
this
.
showTipLeft
=
false
,
this
.
showTipRight
=
false
},
backTake
()
{
this
.
$emit
(
'changeType'
,
1
)
backTake
()
{
this
.
$emit
(
'changeType'
,
1
)
},
//自定义弹窗 保存
popSaveClick
:
function
()
{
if
(
this
.
currenItem
[
'watemark
_text'
]
&&
this
.
currenItem
[
'watemark_v
alue'
])
{
if
(
this
.
currenItem
[
'watemark
Text'
]
&&
this
.
currenItem
[
'watemarkV
alue'
])
{
this
.
isPopShow
=
false
if
(
this
.
currenItem
.
type
===
'
title_text
'
)
{
this
.
result
[
'lower
_right'
][
'title_text'
]
=
this
.
currenItem
[
'watemark_v
alue'
]
if
(
this
.
currenItem
.
type
===
'
备注
'
)
{
this
.
result
[
'lower
Left'
][
'title'
]
=
this
.
currenItem
[
'watemarkV
alue'
]
}
else
{
this
.
editingItem
[
'watemark
_text'
]
=
this
.
currenItem
[
'watemark_t
ext'
]
this
.
editingItem
[
'watemark
_value'
]
=
this
.
currenItem
[
'watemark_v
alue'
]
this
.
editingItem
[
'watemark
Text'
]
=
this
.
currenItem
[
'watemarkT
ext'
]
this
.
editingItem
[
'watemark
Value'
]
=
this
.
currenItem
[
'watemarkV
alue'
]
this
.
editingItem
[
'enable'
]
=
true
}
this
.
saveUserWatermark
()
}
else
{
// 提示
if
(
!
this
.
currenItem
[
'watemark
_t
ext'
])
{
if
(
!
this
.
currenItem
[
'watemark
T
ext'
])
{
this
.
showTipLeft
=
true
}
if
(
!
this
.
currenItem
[
'watemark
_v
alue'
])
{
if
(
!
this
.
currenItem
[
'watemark
V
alue'
])
{
this
.
showTipRight
=
true
}
}
...
...
src/components/take/index.vue
View file @
e08c2dd7
<
template
>
<
template
>
<view
class=
"camera"
>
<view
class=
"camera-container"
v-if=
"showType === 1"
>
<cover-view
class=
"header-box"
:style=
"
{'height':navHeight/2 + 'px'}">
...
...
@@ -7,7 +7,7 @@
src=
"/static/photo/icon-switch.png"
></cover-image>
<cover-image
@
click=
"setCameraInfo('flash')"
class=
"icon"
mode=
"aspectFit"
:src=
"'/static/photo/icon-light-' + cameraInfo.flash +'.png'"
></cover-image>
<cover-image
v-if=
"currentItem.
system_i
d"
@
click=
"changeType(3)"
class=
"icon"
mode=
"aspectFit"
<cover-image
v-if=
"currentItem.
partnerCompanyI
d"
@
click=
"changeType(3)"
class=
"icon"
mode=
"aspectFit"
src=
"/static/photo/icon-setting.png"
></cover-image>
</cover-view>
</cover-view>
...
...
@@ -26,7 +26,7 @@
<cover-view
class=
"bottom-box"
v-if=
"!standardShow"
>
<cover-image
class=
"icon"
src=
'/static/photo/icon-back.png'
mode=
""
@
click=
"goBack"
></cover-image>
<cover-image
class=
'icon-take icon'
src=
'/static/photo/icon-take.png'
@
click=
"$u.debounce(takePhoto, 500)"
>
</cover-image>
<cover-image
class=
'icon'
src=
'/static/photo/icon-standard.png'
@
click=
"standardShow = true"
v-if=
"standardStatus"
>
</cover-image>
<cover-image
class=
'icon'
src=
'/static/photo/icon-standard.png'
@
click=
"standardShow = true"
v-if=
"standardStatus"
>
</cover-image>
<view
class=
'icon'
v-else
></view>
</cover-view>
<canvas
canvas-id=
"canvas"
id=
"photoCanvas"
class=
"canvas"
...
...
@@ -37,11 +37,11 @@
<image
@
click=
"closeShadow"
class=
"icon icon-close"
mode=
"aspectFit"
src=
"/static/photo/icon-close.png"
></image>
</view>
</view>
</view>
<photo-preview
v-if=
"showType === 2"
@
changeType=
"changeType"
@
finish=
"finish"
/>
<photo-setting
v-if=
"showType === 3"
@
changeType=
"changeType"
/>
</view>
<photo-preview
v-if=
"showType === 2"
@
changeType=
"changeType"
@
finish=
"finish"
/>
<photo-setting
v-if=
"showType === 3"
@
changeType=
"changeType"
@
changeWatermark=
"changeWatermark"
/>
</view>
</
template
>
</
template
>
<
script
>
let
r
=
require
(
"@/libs/bmap-wx.min.js"
);
...
...
@@ -49,31 +49,31 @@
// ak: "rpVq5d3yxaRCoKzVwmFMo0o4iC524CAG",
ak
:
"iXsGdyEcm1iQONoUPyEp0hrBTLCuOaW2"
});
import
standard
from
'@/components/photo/standard.vue'
import
preview
from
'@/components/photo/preview.vue'
import
standard
from
'@/components/photo/standard.vue'
import
preview
from
'@/components/photo/preview.vue'
import
setting
from
'@/components/photo/setting.vue'
export
default
{
props
:
{
currentItem
:
{
// 对应的规范item
default
()
{
return
{
_id
:
''
,
// 规格ID
system_id
:
''
,
// 系统ID
brand_id
:
''
,
// 品牌ID
classify_id
:
''
,
// 分类ID
images
:
[],
// 拍照要求示意图
main_point
:
[]
// 要点
}
}
}
export
default
{
props
:
{
currentItem
:
{
// 对应的规范item
default
()
{
return
{
_id
:
''
,
// 规格ID
system_id
:
''
,
// 系统ID
brand_id
:
''
,
// 品牌ID
classify_id
:
''
,
// 分类ID
images
:
[],
// 拍照要求示意图
main_point
:
[]
// 要点
}
}
}
},
components
:
{
'photo-standard'
:
standard
,
'photo-preview'
:
preview
,
'photo-standard'
:
standard
,
'photo-preview'
:
preview
,
'photo-setting'
:
setting
,
},
data
()
{
return
{
return
{
showType
:
1
,
standardShow
:
false
,
cameraInfo
:
{
...
...
@@ -102,14 +102,14 @@
ratio
:
0
,
cameraChange
:
false
,
waterSetting
:
null
,
shadowInitShow
:
false
,
// 第一次进入页面需显示弹窗
shadowInitShow
:
false
,
// 第一次进入页面需显示弹窗
standardStatus
:
false
// 是否显示拍照要求
}
},
created
(
e
)
{
created
(
e
)
{
const
photo
=
getApp
().
globalData
.
photo
getApp
().
trackPage
(
'拍照页'
)
photo
.
allImages
=
[]
getApp
().
trackPage
(
'拍照页'
)
photo
.
allImages
=
[]
photo
.
currentItemLength
=
0
// this.ctx = uni.createCameraContext();
this
.
updateTime
()
...
...
@@ -117,21 +117,21 @@
this
.
getMarkPath
()
this
.
initData
()
photo
.
currentItem
=
this
.
currentItem
if
(
this
.
currentItem
.
images
.
length
>
0
)
{
this
.
shadowInitShow
=
true
this
.
standardShow
=
true
this
.
standardStatus
=
true
}
photo
.
currentItem
=
this
.
currentItem
if
(
this
.
currentItem
.
images
.
length
>
0
)
{
this
.
shadowInitShow
=
true
this
.
standardShow
=
true
this
.
standardStatus
=
true
}
},
computed
:
{
titleTxt
()
{
const
waterSetting
=
this
.
waterSetting
let
txt
=
''
if
(
!
waterSetting
||
!
waterSetting
.
lower
_righ
t
)
{
if
(
!
waterSetting
||
!
waterSetting
.
lower
Lef
t
)
{
return
''
}
txt
=
waterSetting
.
lower
_right
&&
waterSetting
.
lower_right
.
title_text
||
''
txt
=
waterSetting
.
lower
Left
&&
waterSetting
.
lowerLeft
.
title
||
''
return
txt
},
settingTxtArr
()
{
...
...
@@ -144,17 +144,17 @@
let
settingTxtArr
=
[]
const
typeArr
=
[
'经度'
,
'纬度'
,
'地址'
,
'时间'
]
const
waterSetting
=
this
.
waterSetting
if
(
!
waterSetting
||
!
waterSetting
.
lower
_right
||
!
waterSetting
.
lower_righ
t
.
body
)
{
if
(
!
waterSetting
||
!
waterSetting
.
lower
Left
||
!
waterSetting
.
lowerLef
t
.
body
)
{
return
arr
}
const
settingArr
=
waterSetting
.
lower
_righ
t
.
body
const
settingArr
=
waterSetting
.
lower
Lef
t
.
body
settingArr
.
map
(
item
=>
{
const
idx
=
typeArr
.
indexOf
(
item
.
watemark
_t
ype
)
if
(
item
.
enable
&&
(
idx
>
-
1
||
(
item
.
watemark
_value
&&
item
.
watemark_t
ext
)))
{
const
idx
=
typeArr
.
indexOf
(
item
.
watemark
T
ype
)
if
(
item
.
enable
&&
(
idx
>
-
1
||
(
item
.
watemark
Value
&&
item
.
watemarkT
ext
)))
{
if
(
idx
>
-
1
)
{
settingTxtArr
.
push
(
arr
[
idx
])
}
else
{
settingTxtArr
.
push
(
item
.
watemark
_text
+
':'
+
item
.
watemark_v
alue
)
settingTxtArr
.
push
(
item
.
watemark
Text
+
':'
+
item
.
watemarkV
alue
)
}
}
})
...
...
@@ -179,18 +179,21 @@
this
.
shadowInitShow
=
false
this
.
standardShow
=
false
},
goBack
()
{
uni
.
showTabBar
()
goBack
()
{
uni
.
showTabBar
()
this
.
$emit
(
'close'
)
},
finish
()
{
uni
.
showTabBar
()
const
photo
=
getApp
().
globalData
.
photo
this
.
$emit
(
'close'
,
photo
.
allImages
)
},
finish
()
{
uni
.
showTabBar
()
const
photo
=
getApp
().
globalData
.
photo
this
.
$emit
(
'close'
,
photo
.
allImages
)
},
changeType
(
type
)
{
this
.
showType
=
type
},
changeWatermark
(
watermark
){
this
.
waterSetting
=
watermark
},
updateTime
()
{
this
.
waterInfo
.
date
=
this
.
getTime
()
// let timer = setTimeout(() => {
...
...
@@ -224,10 +227,10 @@
},
baiduLocation
()
{
// 百度sdk解析经纬度
let
waterInfo
=
this
.
waterInfo
let
waterInfo
=
this
.
waterInfo
const
t
=
function
()
{
let
t
=
{
success
:
function
(
res
)
{
success
:
function
(
res
)
{
let
e
=
res
.
wxMarkerData
[
0
];
let
i
=
e
.
address
;
waterInfo
.
address
=
i
...
...
@@ -257,7 +260,7 @@
//获取位置
getLocation
()
{
let
that
=
this
const
waterInfo
=
this
.
waterInfo
const
waterInfo
=
this
.
waterInfo
uni
.
getLocation
({
type
:
'gcj02'
,
success
:
function
(
res
)
{
...
...
@@ -423,7 +426,7 @@
globalTempPath
.
origin
=
this
.
tempImgs
.
origin
globalTempPath
.
mixWater
=
res
.
tempFilePath
let
timer
=
setTimeout
(()
=>
{
//this.goPage('/pages/photo/preview')
//this.goPage('/pages/photo/preview')
this
.
changeType
(
2
)
},
0
)
// this.saveToLocal(res.tempFilePath)
...
...
@@ -477,21 +480,21 @@
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.camera
{
position
:fixed
;
padding
:
0
;
margin
:
0
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
999999
;
<
style
scoped
lang=
"scss"
>
.camera
{
position
:fixed
;
padding
:
0
;
margin
:
0
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
999999
;
}
.camera-container
{
// padding-top:var(--status-bar-height);
min-height
:
100vh
;
background-color
:
black
;
background-color
:
black
;
}
.header-box
{
...
...
src/pages/photo/list.vue
View file @
e08c2dd7
<
template
>
<view
class=
"backView"
>
<u-navbar
:title-size=
"32"
title-color=
"#000"
:border-bottom=
"false"
:title=
"title"
></u-navbar>
<u-loading
style=
"position: fixed;top: 50%;"
:show=
"loading"
size=
"36"
mode=
"flower"
></u-loading>
<view
class=
"topView"
>
<view
:class=
"['topItemView',
{'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)"
v-for="(item,ikey) in dataList" :key="ikey">
<text
:class=
"['ph-lst-top-index',
{'active':activeTop===ikey}]">
{{
ikey
+
1
}}
</text>
<text
class=
"topItemTitle"
>
{{
item
.
type
}}
</text>
</view>
</view>
<view
class=
"rightView"
>
<view
class=
"right-view-title"
>
拍照项有:
</view>
<scroll-view
scroll-y=
"true"
class=
"scroll-y"
>
<template
v-for=
"(item,ikey) in rightList"
>
<view
class=
"rightItemView"
@
click=
"take(item,ikey)"
:key=
"ikey"
>
<view
:class=
"['rightContentView',
{'active':item.orderImages[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.orderImages && item.orderImages.length > 0"
>
<image
class=
"rightImage"
v-for=
"(image, index) in item.orderImages.slice(0 , 10)"
:src=
"image"
:key=
"index"
@
click
.
stop=
"handleClickImage(item, index)"
mode=
"aspectFill"
></image>
</view>
</view>
</
template
>
</scroll-view>
<take-photo
type=
"test"
v-if=
"takeStatus"
:currentItem=
"currentItemDate"
@
close=
"closeTake"
></take-photo>
<!-- <u-button v-if="activeTop + 1 === dataList.length" class="ph-list-button" type="error" shape="circle"
:disabled="buttonDisabled" :custom-style="buttonStyle" @click="isPopShow = true">一键清空展示图片</u-button> -->
</view>
<!-- <u-popup border-radius="10" v-model="isPopShow" safe-area-inset-bottom mode="center" width="690rpx"
height="600rpx">
<view class="ph-list-pop-title">
<text>是否一键清空系统展示的图片?</text>
</view>
<view class="ph-list-pop-text">
<text>点击"确定"则删除系统展示的所有图片</text>
</view>
<view class="ph-list-pop-btn-view">
<u-button :custom-style="customStyleCancel" hover-class="none" shape="circle" type="primary"
@click="isPopShow = false">
取消
</u-button>
<u-button :custom-style="customStyleSave" shape="circle" type="primary" @click="handleClickSure()">
确定
</u-button>
</view>
</u-popup> -->
</view>
</template>
<
script
>
import
takePhoto
from
'@/components/take/index.vue'
export
default
{
components
:
{
'take-photo'
:
takePhoto
},
data
()
{
return
{
takeStatus
:
false
,
currentItemDate
:{},
topList
:
[],
activeTop
:
0
,
leftList
:
[],
rightList
:
[],
classifyId
:
''
,
systemId
:
''
,
brand
:
''
,
brandId
:
''
,
orderId
:
''
,
dataList
:
[],
loading
:
true
,
isPopShow
:
false
,
userWatermark
:{},
title
:
'规范展示'
}
},
onLoad
(
e
)
{
getApp
().
trackPage
(
'照片规范列表页'
)
if
(
e
&&
e
.
brandId
)
{
this
.
brandId
=
e
.
brandId
}
if
(
e
&&
e
.
brand
)
{
this
.
brand
=
decodeURIComponent
(
e
.
brand
)
this
.
title
=
this
.
brand
}
if
(
e
&&
e
.
orderId
)
{
this
.
orderId
=
e
.
orderId
}
if
(
e
&&
e
.
systemId
)
{
this
.
systemId
=
e
.
systemId
}
if
(
e
&&
e
.
classifyId
)
{
this
.
classifyId
=
e
.
classifyId
}
// this.getListData()
this
.
getListDataNew
()
this
.
getWatermark
()
},
computed
:
{
buttonStyle
()
{
return
{
'color'
:
'#FFFFFF'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'36rpx'
}
},
buttonDisabled
()
{
for
(
var
item
of
this
.
dataList
)
{
for
(
var
i
of
item
.
list
)
{
if
((
i
.
imageList
||
[]).
length
>
0
)
{
return
false
}
}
}
return
true
},
customStyleCancel
()
{
return
{
'background-color'
:
'#D1D4D4'
,
'width'
:
'280rpx'
,
'height'
:
'96rpx'
}
},
customStyleSave
()
{
return
{
'background-color'
:
'##2272FF'
,
'width'
:
'280rpx'
,
'height'
:
'96rpx'
,
'margin-left'
:
'50rpx'
}
}
},
methods
:
{
getListData
:
function
()
{
this
.
loading
=
true
let
that
=
this
this
.
$u
.
cloudApi
.
getGroupStandardV2
({
'token'
:
this
.
vuex_token
,
'classify_id'
:
this
.
classifyId
,
'system_id'
:
this
.
systemId
,
'brand_id'
:
this
.
brandId
}).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
&&
res
.
result
)
{
if
(
res
.
result
.
error_code
)
{
uni
.
showToast
({
title
:
res
.
result
.
error_msg
})
}
else
{
that
.
handleData
(
res
.
result
)
}
}
})
},
getListDataNew
()
{
this
.
loading
=
true
let
self
=
this
var
data
=
{
partnerCompanyId
:
this
.
systemId
,
orderId
:
this
.
orderId
,
categoryId
:
this
.
classifyId
,
brandId
:
this
.
brandId
};
self
.
$u
.
api
.
orderStandard
(
data
).
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
==
200
)
{
console
.
log
(
"==="
,
res
.
data
)
if
(
res
.
data
&&
res
.
data
.
length
>
0
){
let
dataList
=
[]
var
flag
=
false
;
res
.
data
.
forEach
(
item
=>
{
if
(
dataList
.
length
===
0
){
var
dataItem
=
{
type
:
''
,
list
:[]}
dataItem
.
type
=
item
.
type
dataItem
.
list
.
push
(
item
)
dataList
.
push
(
dataItem
)
}
else
{
dataList
.
forEach
(
dataListItem
=>
{
if
(
dataListItem
.
type
===
item
.
type
){
dataListItem
.
list
.
push
(
item
)
flag
=
true
return
false
;
}
else
{
flag
=
false
}
})
if
(
!
flag
){
var
dataItem
=
{
type
:
''
,
list
:[]}
dataItem
.
type
=
item
.
type
dataItem
.
list
.
push
(
item
)
dataList
.
push
(
dataItem
)
}
}
})
this
.
handleData
(
dataList
)
}
}
else
{
console
.
log
(
res
.
code
.
message
)
}
});
},
handleData
:
function
(
result
)
{
this
.
activeTop
=
0
this
.
dataList
=
result
if
(
result
.
length
>
0
)
{
var
item
=
result
[
0
]
getApp
().
globalData
.
photo
.
waterSetting
=
this
.
userWatermark
this
.
rightList
=
item
.
list
}
},
//顶部点击
handleTopItemChange
:
function
(
ikey
,
item
)
{
this
.
activeTop
=
ikey
this
.
rightList
=
item
.
list
const
photo
=
getApp
().
globalData
.
photo
photo
.
topIndex
=
ikey
photo
.
waterSetting
=
item
.
userWatermark
uni
.
pageScrollTo
({
scrollTop
:
0
,
duration
:
0
});
},
// 点击图片
handleClickImage
(
item
,
index
)
{
uni
.
previewImage
({
urls
:
item
.
orderImages
,
current
:
index
})
},
//右侧点击
rightItemClick
:
function
(
item
,
ikey
)
{
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItem
=
item
photo
.
itemIndex
=
ikey
const
len
=
item
.
imageList
.
length
photo
.
currentItemLength
=
len
>
9
?
10
:
len
uni
.
navigateTo
({
url
:
'/pages/photo/take'
})
},
// 清除图片
<
template
>
<view
class=
"backView"
>
<u-navbar
:title-size=
"32"
title-color=
"#000"
:border-bottom=
"false"
:title=
"title"
></u-navbar>
<u-loading
style=
"position: fixed;top: 50%;"
:show=
"loading"
size=
"36"
mode=
"flower"
></u-loading>
<view
class=
"topView"
>
<view
:class=
"['topItemView',
{'active':activeTop===ikey}]" @click="handleTopItemChange(ikey,item)"
v-for="(item,ikey) in dataList" :key="ikey">
<text
:class=
"['ph-lst-top-index',
{'active':activeTop===ikey}]">
{{
ikey
+
1
}}
</text>
<text
class=
"topItemTitle"
>
{{
item
.
type
}}
</text>
</view>
</view>
<view
class=
"rightView"
>
<view
class=
"right-view-title"
>
拍照项有:
</view>
<scroll-view
scroll-y=
"true"
class=
"scroll-y"
>
<template
v-for=
"(item,ikey) in rightList"
>
<view
class=
"rightItemView"
@
click=
"take(item,ikey)"
:key=
"ikey"
>
<view
:class=
"['rightContentView',
{'active':item.orderImages[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.orderImages && item.orderImages.length > 0"
>
<image
class=
"rightImage"
v-for=
"(image, index) in item.orderImages.slice(0 , 10)"
:src=
"image"
:key=
"index"
@
click
.
stop=
"handleClickImage(item, index)"
mode=
"aspectFill"
></image>
</view>
</view>
</
template
>
</scroll-view>
<take-photo
type=
"test"
v-if=
"takeStatus"
:currentItem=
"currentItemDate"
@
close=
"closeTake"
></take-photo>
<!-- <u-button v-if="activeTop + 1 === dataList.length" class="ph-list-button" type="error" shape="circle"
:disabled="buttonDisabled" :custom-style="buttonStyle" @click="isPopShow = true">一键清空展示图片</u-button> -->
</view>
<!-- <u-popup border-radius="10" v-model="isPopShow" safe-area-inset-bottom mode="center" width="690rpx"
height="600rpx">
<view class="ph-list-pop-title">
<text>是否一键清空系统展示的图片?</text>
</view>
<view class="ph-list-pop-text">
<text>点击"确定"则删除系统展示的所有图片</text>
</view>
<view class="ph-list-pop-btn-view">
<u-button :custom-style="customStyleCancel" hover-class="none" shape="circle" type="primary"
@click="isPopShow = false">
取消
</u-button>
<u-button :custom-style="customStyleSave" shape="circle" type="primary" @click="handleClickSure()">
确定
</u-button>
</view>
</u-popup> -->
</view>
</template>
<
script
>
import
takePhoto
from
'@/components/take/index.vue'
export
default
{
components
:
{
'take-photo'
:
takePhoto
},
data
()
{
return
{
takeStatus
:
false
,
currentItemDate
:{},
topList
:
[],
activeTop
:
0
,
leftList
:
[],
rightList
:
[],
classifyId
:
''
,
systemId
:
''
,
brand
:
''
,
brandId
:
''
,
orderId
:
''
,
dataList
:
[],
loading
:
true
,
isPopShow
:
false
,
userWatermark
:{},
title
:
'规范展示'
}
},
onLoad
(
e
)
{
getApp
().
trackPage
(
'照片规范列表页'
)
if
(
e
&&
e
.
brandId
)
{
this
.
brandId
=
e
.
brandId
}
if
(
e
&&
e
.
brand
)
{
this
.
brand
=
decodeURIComponent
(
e
.
brand
)
this
.
title
=
this
.
brand
}
if
(
e
&&
e
.
orderId
)
{
this
.
orderId
=
e
.
orderId
}
if
(
e
&&
e
.
systemId
)
{
this
.
systemId
=
e
.
systemId
}
if
(
e
&&
e
.
classifyId
)
{
this
.
classifyId
=
e
.
classifyId
}
// this.getListData()
this
.
getListDataNew
()
this
.
getWatermark
()
},
computed
:
{
buttonStyle
()
{
return
{
'color'
:
'#FFFFFF'
,
'width'
:
'600rpx'
,
'height'
:
'104rpx'
,
'font-size'
:
'36rpx'
}
},
buttonDisabled
()
{
for
(
var
item
of
this
.
dataList
)
{
for
(
var
i
of
item
.
list
)
{
if
((
i
.
imageList
||
[]).
length
>
0
)
{
return
false
}
}
}
return
true
},
customStyleCancel
()
{
return
{
'background-color'
:
'#D1D4D4'
,
'width'
:
'280rpx'
,
'height'
:
'96rpx'
}
},
customStyleSave
()
{
return
{
'background-color'
:
'##2272FF'
,
'width'
:
'280rpx'
,
'height'
:
'96rpx'
,
'margin-left'
:
'50rpx'
}
}
},
methods
:
{
getListData
:
function
()
{
this
.
loading
=
true
let
that
=
this
this
.
$u
.
cloudApi
.
getGroupStandardV2
({
'token'
:
this
.
vuex_token
,
'classify_id'
:
this
.
classifyId
,
'system_id'
:
this
.
systemId
,
'brand_id'
:
this
.
brandId
}).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
&&
res
.
result
)
{
if
(
res
.
result
.
error_code
)
{
uni
.
showToast
({
title
:
res
.
result
.
error_msg
})
}
else
{
that
.
handleData
(
res
.
result
)
}
}
})
},
getListDataNew
()
{
this
.
loading
=
true
let
self
=
this
var
data
=
{
partnerCompanyId
:
this
.
systemId
,
orderId
:
this
.
orderId
,
categoryId
:
this
.
classifyId
,
brandId
:
this
.
brandId
};
self
.
$u
.
api
.
orderStandard
(
data
).
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
==
200
)
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
){
let
dataList
=
[]
var
flag
=
false
;
res
.
data
.
forEach
(
item
=>
{
if
(
dataList
.
length
===
0
){
var
dataItem
=
{
type
:
''
,
list
:[]}
dataItem
.
type
=
item
.
type
dataItem
.
list
.
push
(
item
)
dataList
.
push
(
dataItem
)
}
else
{
dataList
.
forEach
(
dataListItem
=>
{
if
(
dataListItem
.
type
===
item
.
type
){
dataListItem
.
list
.
push
(
item
)
flag
=
true
return
false
;
}
else
{
flag
=
false
}
})
if
(
!
flag
){
var
dataItem
=
{
type
:
''
,
list
:[]}
dataItem
.
type
=
item
.
type
dataItem
.
list
.
push
(
item
)
dataList
.
push
(
dataItem
)
}
}
})
console
.
log
(
"==="
,
dataList
)
this
.
handleData
(
dataList
)
}
}
else
{
console
.
log
(
res
.
code
.
message
)
}
});
},
handleData
:
function
(
result
)
{
this
.
activeTop
=
0
this
.
dataList
=
result
if
(
result
.
length
>
0
)
{
var
item
=
result
[
0
]
this
.
rightList
=
item
.
list
}
},
//顶部点击
handleTopItemChange
:
function
(
ikey
,
item
)
{
this
.
activeTop
=
ikey
this
.
rightList
=
item
.
list
const
photo
=
getApp
().
globalData
.
photo
photo
.
topIndex
=
ikey
photo
.
waterSetting
=
item
.
userWatermark
uni
.
pageScrollTo
({
scrollTop
:
0
,
duration
:
0
});
},
// 点击图片
handleClickImage
(
item
,
index
)
{
uni
.
previewImage
({
urls
:
item
.
orderImages
,
current
:
index
})
},
//右侧点击
rightItemClick
:
function
(
item
,
ikey
)
{
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItem
=
item
photo
.
itemIndex
=
ikey
const
len
=
item
.
imageList
.
length
photo
.
currentItemLength
=
len
>
9
?
10
:
len
uni
.
navigateTo
({
url
:
'/pages/photo/take'
})
},
// 清除图片
handleClickSure
:
function
()
{
this
.
$u
.
cloudApi
.
cleanImage
({
'token'
:
this
.
vuex_token
,
...
...
@@ -261,245 +260,245 @@
if
(
res
&&
res
.
result
)
{
this
.
getListData
()
}
})
},
take
(
item
,
ikey
)
{
this
.
currentItemDate
=
item
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItem
=
item
photo
.
itemIndex
=
ikey
const
len
=
item
.
orderImages
?
item
.
orderImages
.
length
:
0
photo
.
currentItemLength
=
len
>
9
?
10
:
len
})
},
take
(
item
,
ikey
)
{
this
.
currentItemDate
=
item
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItem
=
item
photo
.
itemIndex
=
ikey
const
len
=
item
.
orderImages
?
item
.
orderImages
.
length
:
0
photo
.
currentItemLength
=
len
>
9
?
10
:
len
uni
.
hideTabBar
()
this
.
takeStatus
=
true
},
closeTake
(
img
)
{
if
(
img
!==
undefined
){
if
(
!
this
.
currentItemDate
.
orderImages
)
this
.
currentItemDate
.
orderImages
=
[]
// step1 添加图片
img
.
forEach
(
v
=>
{
this
.
currentItemDate
.
orderImages
.
push
(
v
.
key
)
})
// step2 保存图片
var
data
=
{
type
:
this
.
currentItemDate
.
type
,
images
:
Array
.
from
(
this
.
currentItemDate
.
orderImages
),
fieldsName
:
this
.
currentItemDate
.
fieldName
}
this
.
$u
.
api
.
saveImage
(
data
,
this
.
orderId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
"==="
,
res
.
data
)
}
else
{
console
.
log
(
"保存图片异常"
,
res
.
data
.
message
)
}
});
}
this
.
takeStatus
=
false
},
getWatermark
(){
var
data
=
{
partnerCompanyId
:
this
.
systemId
}
this
.
$u
.
api
.
getWatermark
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
"==="
,
res
.
data
)
this
.
userWatermark
=
res
.
data
}
else
{
console
.
log
(
"获取水印备注异常"
,
res
.
data
.
message
)
}
});
}
}
}
</
script
>
<
style
>
.backView
{
background-color
:
#F4F5F7
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
height
:
100%
;
}
.centerBackView
{
display
:
flex
;
flex-direction
:
row
;
margin-top
:
80
rpx
;
width
:
100%
;
}
.ph-lst-top-index
{
font-size
:
26
rpx
;
font-weight
:
bold
;
color
:
#FFFFFF
;
border-radius
:
8
rpx
;
background-color
:
#999999
;
width
:
36
rpx
;
height
:
36
rpx
;
line-height
:
36
rpx
;
text-align
:
center
;
}
.ph-lst-top-index.active
{
background-color
:
#2272FF
;
}
.rightView
{
background-color
:
#F4F5F7
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
padding-bottom
:
50
rpx
;
}
.right-view-title
{
font-size
:
36
rpx
;
font-weight
:
bold
;
height
:
104
rpx
;
line-height
:
104
rpx
;
margin-left
:
30
rpx
;
}
.rightItemView
{
/* width: 100%; */
/* display: flex; */
/* flex-direction: row; */
/* justify-content: space-between; */
/* border-bottom: 20rpx solid #F3F3F3; */
margin
:
0
rpx
30
rpx
20
rpx
30
rpx
;
padding
:
36
rpx
30
rpx
30
rpx
30
rpx
;
border-radius
:
12
rpx
;
background-color
:
#FFFFFF
;
/* min-height: 108rpx; */
}
.ph-lst-item-index
{
font-size
:
24
rpx
;
font-weight
:
bold
;
border-radius
:
4
rpx
;
width
:
34
rpx
;
height
:
34
rpx
;
line-height
:
32
rpx
;
text-align
:
center
;
border-width
:
1px
;
border-style
:
solid
;
margin-right
:
10
rpx
;
margin-top
:
4
rpx
;
}
.rightContentView
{
display
:
flex
;
align-items
:
flex-start
;
width
:
100%
;
font-size
:
30
rpx
;
color
:
#2272FF
;
/* flex-direction: column; */
/* border-left: 2rpx solid #F3F3F3; */
}
.rightContentView.active
{
color
:
#666666
;
border-color
:
#666666
;
}
.ph-list-item-arrow
{
position
:
absolute
;
width
:
40
rpx
;
height
:
40
rpx
;
right
:
38
rpx
;
}
.rightContent
{
font-size
:
30
rpx
;
color
:
#333333
;
line-height
:
40
rpx
;
}
.rightImageView
{
/* width: 300rpx; */
/* height: 320rpx; */
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-start
;
flex-wrap
:
wrap
;
margin-top
:
26
rpx
;
}
.rightImage
{
background-color
:
#F3F3F3
;
width
:
116
rpx
;
height
:
116
rpx
;
margin
:
0
rpx
12
rpx
12
rpx
0
rpx
;
}
.rightImage
:nth-child
(
5n
)
{
margin-right
:
0
;
}
.topView
{
background-color
:
#FAFAFA
;
width
:
100%
;
height
:
100
rpx
;
display
:
flex
;
flex-direction
:
row
;
z-index
:
1
;
}
.topItemView
{
/* width: 210rpx; */
height
:
100
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
-webkit-flex
:
1
;
flex
:
1
;
background-color
:
#FFFFFF
;
color
:
#999999
;
}
.topItemView.active
{
color
:
#2272FF
;
}
.topItemTitle
{
font-size
:
36
rpx
;
font-weight
:
bold
;
padding-left
:
30
rpx
;
}
.greenBackColor
{
background-color
:
#4CD964
;
}
.ph-list-pop-text
{
color
:
#666666
;
text-align
:
center
;
margin-top
:
20
rpx
;
font-size
:
30
rpx
;
}
.ph-list-pop-title
{
font-size
:
40
rpx
;
padding-top
:
150
rpx
;
text-align
:
center
;
color
:
#333333
;
}
.ph-list-pop-btn-view
{
display
:
flex
;
justify-content
:
center
;
margin-top
:
150
rpx
;
}
.scroll-y
{
height
:
73vh
;
}
closeTake
(
img
)
{
if
(
img
!==
undefined
){
if
(
!
this
.
currentItemDate
.
orderImages
)
this
.
currentItemDate
.
orderImages
=
[]
// step1 添加图片
img
.
forEach
(
v
=>
{
this
.
currentItemDate
.
orderImages
.
push
(
v
.
key
)
})
// step2 保存图片
var
data
=
{
type
:
this
.
currentItemDate
.
type
,
images
:
Array
.
from
(
this
.
currentItemDate
.
orderImages
),
fieldsName
:
this
.
currentItemDate
.
fieldName
}
this
.
$u
.
api
.
saveImage
(
data
,
this
.
orderId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
"==="
,
res
.
data
)
}
else
{
console
.
log
(
"保存图片异常"
,
res
.
data
.
message
)
}
});
}
this
.
takeStatus
=
false
},
getWatermark
(){
var
data
=
{
partnerCompanyId
:
this
.
systemId
}
this
.
$u
.
api
.
getWatermark
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
"==="
,
res
.
data
)
this
.
userWatermark
=
res
.
data
}
else
{
console
.
log
(
"获取水印备注异常"
,
res
.
data
.
message
)
}
});
}
}
}
</
script
>
<
style
>
.backView
{
background-color
:
#F4F5F7
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
height
:
100%
;
}
.centerBackView
{
display
:
flex
;
flex-direction
:
row
;
margin-top
:
80
rpx
;
width
:
100%
;
}
.ph-lst-top-index
{
font-size
:
26
rpx
;
font-weight
:
bold
;
color
:
#FFFFFF
;
border-radius
:
8
rpx
;
background-color
:
#999999
;
width
:
36
rpx
;
height
:
36
rpx
;
line-height
:
36
rpx
;
text-align
:
center
;
}
.ph-lst-top-index.active
{
background-color
:
#2272FF
;
}
.rightView
{
background-color
:
#F4F5F7
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
padding-bottom
:
50
rpx
;
}
.right-view-title
{
font-size
:
36
rpx
;
font-weight
:
bold
;
height
:
104
rpx
;
line-height
:
104
rpx
;
margin-left
:
30
rpx
;
}
.rightItemView
{
/* width: 100%; */
/* display: flex; */
/* flex-direction: row; */
/* justify-content: space-between; */
/* border-bottom: 20rpx solid #F3F3F3; */
margin
:
0
rpx
30
rpx
20
rpx
30
rpx
;
padding
:
36
rpx
30
rpx
30
rpx
30
rpx
;
border-radius
:
12
rpx
;
background-color
:
#FFFFFF
;
/* min-height: 108rpx; */
}
.ph-lst-item-index
{
font-size
:
24
rpx
;
font-weight
:
bold
;
border-radius
:
4
rpx
;
width
:
34
rpx
;
height
:
34
rpx
;
line-height
:
32
rpx
;
text-align
:
center
;
border-width
:
1px
;
border-style
:
solid
;
margin-right
:
10
rpx
;
margin-top
:
4
rpx
;
}
.rightContentView
{
display
:
flex
;
align-items
:
flex-start
;
width
:
100%
;
font-size
:
30
rpx
;
color
:
#2272FF
;
/* flex-direction: column; */
/* border-left: 2rpx solid #F3F3F3; */
}
.rightContentView.active
{
color
:
#666666
;
border-color
:
#666666
;
}
.ph-list-item-arrow
{
position
:
absolute
;
width
:
40
rpx
;
height
:
40
rpx
;
right
:
38
rpx
;
}
.rightContent
{
font-size
:
30
rpx
;
color
:
#333333
;
line-height
:
40
rpx
;
}
.rightImageView
{
/* width: 300rpx; */
/* height: 320rpx; */
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-start
;
flex-wrap
:
wrap
;
margin-top
:
26
rpx
;
}
.rightImage
{
background-color
:
#F3F3F3
;
width
:
116
rpx
;
height
:
116
rpx
;
margin
:
0
rpx
12
rpx
12
rpx
0
rpx
;
}
.rightImage
:nth-child
(
5n
)
{
margin-right
:
0
;
}
.topView
{
background-color
:
#FAFAFA
;
width
:
100%
;
height
:
100
rpx
;
display
:
flex
;
flex-direction
:
row
;
z-index
:
1
;
}
.topItemView
{
/* width: 210rpx; */
height
:
100
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
-webkit-flex
:
1
;
flex
:
1
;
background-color
:
#FFFFFF
;
color
:
#999999
;
}
.topItemView.active
{
color
:
#2272FF
;
}
.topItemTitle
{
font-size
:
36
rpx
;
font-weight
:
bold
;
padding-left
:
30
rpx
;
}
.greenBackColor
{
background-color
:
#4CD964
;
}
.ph-list-pop-text
{
color
:
#666666
;
text-align
:
center
;
margin-top
:
20
rpx
;
font-size
:
30
rpx
;
}
.ph-list-pop-title
{
font-size
:
40
rpx
;
padding-top
:
150
rpx
;
text-align
:
center
;
color
:
#333333
;
}
.ph-list-pop-btn-view
{
display
:
flex
;
justify-content
:
center
;
margin-top
:
150
rpx
;
}
.scroll-y
{
height
:
73vh
;
}
</
style
>
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