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
0f00f0af
Commit
0f00f0af
authored
May 10, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
5358c81b
e08c2dd7
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
628 additions
and
626 deletions
+628
-626
order.js
src/common/api/order.js
+6
-0
XhFiles.vue
src/components/createCom/XhFiles.vue
+7
-1
preview.vue
src/components/photo/preview.vue
+2
-2
setting.vue
src/components/photo/setting.vue
+51
-61
index.vue
src/components/take/index.vue
+68
-65
complete.vue
src/pages/order/complete.vue
+2
-3
list.vue
src/pages/photo/list.vue
+492
-494
No files found.
src/common/api/order.js
View file @
0f00f0af
...
@@ -74,6 +74,11 @@ let orderApiFun = function(vm){
...
@@ -74,6 +74,11 @@ let orderApiFun = function(vm){
* 获取师傅水印 or 默认水印
* 获取师傅水印 or 默认水印
*/
*/
let
getWatermark
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
prefix
+
vm
.
vuex_token
+
'/photo/watermark'
,
params
);
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){
...
@@ -144,6 +149,7 @@ let orderApiFun = function(vm){
orderStandard
,
orderStandard
,
saveImage
,
saveImage
,
getWatermark
,
getWatermark
,
saveWatermark
,
openTimerange
,
openTimerange
,
contactTime
,
contactTime
,
checkRejectable
,
checkRejectable
,
...
...
src/components/createCom/XhFiles.vue
View file @
0f00f0af
...
@@ -72,7 +72,13 @@
...
@@ -72,7 +72,13 @@
}
}
},
},
methods
:
{
methods
:
{
selectUpload
(){
selectUpload
(){
if
(
this
.
imgList
.
length
===
10
)
{
return
this
.
$refs
.
uToast
.
show
({
title
:
'图片已超出最大数量'
,
type
:
'error'
,
})
}
// 弹窗展示
// 弹窗展示
this
.
maskShow
=
true
this
.
maskShow
=
true
},
},
...
...
src/components/photo/preview.vue
View file @
0f00f0af
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
photo
.
currentItemLength
=
10
photo
.
currentItemLength
=
10
this
.
continuePhoto
()
this
.
continuePhoto
()
// 完成本项
// 完成本项
this
.
$emit
(
'finish'
)
//
this.$emit('finish')
},
},
// 确认图片
// 确认图片
continuePhoto
()
{
continuePhoto
()
{
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
},
},
submitFile
()
{
submitFile
()
{
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
if
(
photo
.
currentItemLength
<
10
)
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
uni
.
hideLoading
()
uni
.
hideLoading
()
// 当前项的图片显示
// 当前项的图片显示
// 拍照项张数目增加 等于10张
// 拍照项张数目增加 等于10张
...
...
src/components/photo/setting.vue
View file @
0f00f0af
<
template
>
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<u-navbar
title=
"设置"
:title-size=
"26"
title-color=
"#000"
:custom-back=
"backTake"
></u-navbar>
<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"
>
<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>
<u-loading
style=
"position: fixed;top: 50%;"
:show=
"loading"
size=
"36"
mode=
"flower"
></u-loading>
...
@@ -9,20 +9,20 @@
...
@@ -9,20 +9,20 @@
<text
class=
"itemTitle"
>
保存原图
</text>
<text
class=
"itemTitle"
>
保存原图
</text>
<text
class=
"itemNotice"
>
拍照后另保存一张无水印的图片
</text>
<text
class=
"itemNotice"
>
拍照后另保存一张无水印的图片
</text>
</view>
</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>
<view
class=
"itemView"
v-if=
"showTitleSwitch"
>
<view
class=
"itemView"
v-if=
"showTitleSwitch"
>
<view
class=
"itemTitleView"
@
click=
"itemClick(
{},-1)">
<view
class=
"itemTitleView"
@
click=
"itemClick(
{},-1)">
<text
class=
"itemTitle"
>
水印标题
</text>
<text
class=
"itemTitle"
>
水印标题
</text>
<text
class=
"itemNotice"
>
{{
result
[
'lower
_right'
][
'title_text
'
]
||
'点击可编辑更改'
}}
</text>
<text
class=
"itemNotice"
>
{{
result
[
'lower
Left'
][
'title
'
]
||
'点击可编辑更改'
}}
</text>
</view>
</view>
<switch
class=
"itemSwitch"
disabled
:checked=
"result['lower
_right']['title_text
'] != ''"
<switch
class=
"itemSwitch"
disabled
:checked=
"result['lower
Left']['title
'] != ''"
@
click=
"handleClickTitleSwitch"
color=
"#007AFF"
/>
@
click=
"handleClickTitleSwitch"
color=
"#007AFF"
/>
</view>
</view>
<view
class=
"itemView"
v-for=
"(item,ikey) in itemList"
:key=
"ikey"
>
<view
class=
"itemView"
v-for=
"(item,ikey) in itemList"
:key=
"ikey"
>
<view
class=
"itemTitleView"
@
click=
"itemClick(item,ikey)"
>
<view
class=
"itemTitleView"
@
click=
"itemClick(item,ikey)"
>
<text
class=
"itemTitle"
>
{{
item
[
'watemark
_t
ext'
]
||
'自定义'
+
(
ikey
+
1
)
}}
</text>
<text
class=
"itemTitle"
>
{{
item
[
'watemark
T
ext'
]
||
'自定义'
+
(
ikey
+
1
)
}}
</text>
<text
class=
"itemNotice"
>
{{
item
[
'watemark
_v
alue'
]
||
'点击可编辑更改'
}}
</text>
<text
class=
"itemNotice"
>
{{
item
[
'watemark
V
alue'
]
||
'点击可编辑更改'
}}
</text>
</view>
</view>
<switch
class=
"itemSwitch"
:checked=
"item['enable']"
@
change=
"itemChange(item, ikey)"
color=
"#007AFF"
/>
<switch
class=
"itemSwitch"
:checked=
"item['enable']"
@
change=
"itemChange(item, ikey)"
color=
"#007AFF"
/>
</view>
</view>
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
<view
class=
"inputBackView"
>
<view
class=
"inputBackView"
>
<view
class=
"ph-pop-left-view"
>
<view
class=
"ph-pop-left-view"
>
<view
class=
"leftInputView"
>
<view
class=
"leftInputView"
>
<input
class=
"leftInput"
type=
"text"
v-model=
"currenItem['watemark
_t
ext']"
<input
class=
"leftInput"
type=
"text"
v-model=
"currenItem['watemark
T
ext']"
@
input=
"leftInput()"
:disabled=
"currenItem.type === '
title_text
'"
placeholder=
"请输入"
@
input=
"leftInput()"
:disabled=
"currenItem.type === '
备注
'"
placeholder=
"请输入"
maxlength=
"10"
/>
maxlength=
"10"
/>
</view>
</view>
<view
class=
"ph-pop-tip-view"
v-if=
"showTipLeft"
>
*必填项
</view>
<view
class=
"ph-pop-tip-view"
v-if=
"showTipLeft"
>
*必填项
</view>
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<view
class=
"ph-pop-mid-view"
>
:
</view>
<view
class=
"ph-pop-mid-view"
>
:
</view>
<view>
<view>
<view
class=
"rightInputView"
>
<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"
/>
@
input=
"rightInput()"
placeholder=
"请输入内容"
maxlength=
"30"
/>
</view>
</view>
<view
class=
"ph-pop-tip-view"
v-if=
"showTipRight"
>
*必填项
</view>
<view
class=
"ph-pop-tip-view"
v-if=
"showTipRight"
>
*必填项
</view>
...
@@ -72,14 +72,14 @@
...
@@ -72,14 +72,14 @@
isPopShow
:
false
,
isPopShow
:
false
,
icon_close_new
:
''
,
icon_close_new
:
''
,
result
:
{
result
:
{
has
_o
rigin
:
true
,
has
O
rigin
:
true
,
lower
_righ
t
:
{
lower
Lef
t
:
{
body
:
[]
body
:
[]
}
}
},
},
currenItem
:
{
currenItem
:
{
'watemark
_t
ext'
:
''
,
'watemark
T
ext'
:
''
,
'watemark
_v
alue'
:
''
'watemark
V
alue'
:
''
},
},
editingItem
:
{},
editingItem
:
{},
showTipLeft
:
false
,
showTipLeft
:
false
,
...
@@ -89,10 +89,11 @@
...
@@ -89,10 +89,11 @@
},
},
computed
:
{
computed
:
{
itemList
()
{
itemList
()
{
if
(
this
.
result
[
'lower_right'
])
{
console
.
log
(
this
.
result
)
var
arr
=
this
.
result
[
'lower_right'
][
'body'
]
if
(
this
.
result
[
'lowerLeft'
])
{
var
arr
=
this
.
result
[
'lowerLeft'
][
'body'
]
return
arr
.
filter
((
item
)
=>
{
return
arr
.
filter
((
item
)
=>
{
return
item
.
watemark
_t
ype
===
'备注'
return
item
.
watemark
T
ype
===
'备注'
})
})
}
else
{
}
else
{
return
[]
return
[]
...
@@ -100,7 +101,7 @@
...
@@ -100,7 +101,7 @@
},
},
showTitleSwitch
()
{
showTitleSwitch
()
{
return
this
.
result
[
'lower
_right'
].
hasOwnProperty
(
'title_text
'
)
return
this
.
result
[
'lower
Left'
].
hasOwnProperty
(
'title
'
)
},
},
customStyleCancel
()
{
customStyleCancel
()
{
return
{
return
{
...
@@ -122,54 +123,43 @@
...
@@ -122,54 +123,43 @@
getApp
().
trackPage
(
'水印设置页'
)
getApp
().
trackPage
(
'水印设置页'
)
const
globalData
=
getApp
().
globalData
const
globalData
=
getApp
().
globalData
this
.
icon_close_new
=
globalData
.
icon_close_new
this
.
icon_close_new
=
globalData
.
icon_close_new
this
.
systemId
=
globalData
.
photo
.
currentItem
.
system
Id
this
.
systemId
=
globalData
.
photo
.
currentItem
.
partnerCompany
Id
this
.
getItemList
()
this
.
getItemList
()
},
},
methods
:
{
methods
:
{
getItemList
:
function
()
{
getItemList
:
function
()
{
// this.systemId = '79550af260555cc20afb34156c94b32c' // 测试数据
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
api
.
getWatermark
({
partnerCompanyId
:
this
.
systemId
}).
then
(
res
=>
{
this
.
$u
.
api
.
getUserWatermark
({
if
(
res
.
code
==
200
)
{
'token'
:
this
.
vuex_token
,
this
.
result
=
res
.
data
'system_id'
:
this
.
systemId
}
else
{
}).
then
(
res
=>
{
uni
.
showToast
({
title
:
res
.
data
.
message
})
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
:
'网络异常'
})
}
}
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
saveUserWatermark
:
function
()
{
saveUserWatermark
:
function
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
$u
.
api
.
saveUserWatermark
({
this
.
$u
.
api
.
saveWatermark
(
this
.
result
).
then
(
res
=>
{
'token'
:
this
.
vuex_token
,
if
(
res
.
code
===
200
){
'watermark'
:
this
.
result
uni
.
showToast
({
title
:
'保存成功'
})
}).
then
(
res
=>
{
getApp
().
globalData
.
photo
.
waterSetting
=
this
.
result
if
(
res
.
result
.
code
==
true
)
{
this
.
$emit
(
"changeWatermark"
,
this
.
result
);
const
photo
=
getApp
().
globalData
.
photo
photo
.
waterSetting
=
this
.
result
}
else
{
}
else
{
uni
.
showToast
({
title
:
res
.
result
.
msg
})
uni
.
showToast
({
title
:
res
.
message
})
}
}
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
//保存原图 开关
//保存原图 开关
handleOrigineChange
:
function
(
e
)
{
handleOrigineChange
:
function
(
e
)
{
this
.
result
[
'has
_origin'
]
=
!
this
.
result
[
'has_o
rigin'
]
this
.
result
[
'has
Origin'
]
=
!
this
.
result
[
'hasO
rigin'
]
this
.
saveUserWatermark
()
this
.
saveUserWatermark
()
},
},
handleClickTitleSwitch
:
function
(
e
)
{
handleClickTitleSwitch
:
function
(
e
)
{
var
string
=
this
.
result
[
'lower
_right'
][
'title_text
'
]
?
'水印标题不可关闭'
:
'请先编辑该自定义项'
var
string
=
this
.
result
[
'lower
Left'
][
'title
'
]
?
'水印标题不可关闭'
:
'请先编辑该自定义项'
uni
.
showToast
({
uni
.
showToast
({
icon
:
'none'
,
icon
:
'none'
,
title
:
string
title
:
string
...
@@ -178,7 +168,7 @@
...
@@ -178,7 +168,7 @@
//自定义 开关
//自定义 开关
itemChange
:
function
(
item
,
ikey
)
{
itemChange
:
function
(
item
,
ikey
)
{
if
(
item
[
'watemark
_v
alue'
])
{
if
(
item
[
'watemark
V
alue'
])
{
// 修改
// 修改
item
[
'enable'
]
=
!
item
[
'enable'
]
item
[
'enable'
]
=
!
item
[
'enable'
]
this
.
saveUserWatermark
()
this
.
saveUserWatermark
()
...
@@ -194,9 +184,9 @@
...
@@ -194,9 +184,9 @@
itemClick
:
function
(
item
,
ikey
)
{
itemClick
:
function
(
item
,
ikey
)
{
if
(
ikey
===
-
1
)
{
if
(
ikey
===
-
1
)
{
this
.
currenItem
=
{
this
.
currenItem
=
{
'watemark
_t
ext'
:
'水印标题'
,
'watemark
T
ext'
:
'水印标题'
,
'watemark
_value'
:
this
.
result
[
'lower_right'
][
'title_text
'
],
'watemark
Value'
:
this
.
result
[
'lowerLeft'
][
'title
'
],
'type'
:
'
title_text
'
'type'
:
'
备注
'
}
}
}
else
{
}
else
{
this
.
editingItem
=
item
this
.
editingItem
=
item
...
@@ -210,7 +200,7 @@
...
@@ -210,7 +200,7 @@
//左侧输入框
//左侧输入框
leftInput
:
function
(
e
)
{
leftInput
:
function
(
e
)
{
if
(
this
.
currenItem
[
'watemark
_t
ext'
])
{
if
(
this
.
currenItem
[
'watemark
T
ext'
])
{
this
.
showTipLeft
=
false
this
.
showTipLeft
=
false
}
}
...
@@ -218,7 +208,7 @@
...
@@ -218,7 +208,7 @@
//右侧输入框
//右侧输入框
rightInput
:
function
(
e
)
{
rightInput
:
function
(
e
)
{
if
(
this
.
currenItem
[
'watemark
_v
alue'
])
{
if
(
this
.
currenItem
[
'watemark
V
alue'
])
{
this
.
showTipRight
=
false
this
.
showTipRight
=
false
}
}
},
},
...
@@ -227,8 +217,8 @@
...
@@ -227,8 +217,8 @@
popCancelClick
:
function
()
{
popCancelClick
:
function
()
{
this
.
isPopShow
=
false
this
.
isPopShow
=
false
this
.
currenItem
=
{
this
.
currenItem
=
{
'watemark
_t
ext'
:
''
,
'watemark
T
ext'
:
''
,
'watemark
_v
alue'
:
''
'watemark
V
alue'
:
''
}
}
},
},
...
@@ -236,27 +226,27 @@
...
@@ -236,27 +226,27 @@
this
.
showTipLeft
=
false
,
this
.
showTipLeft
=
false
,
this
.
showTipRight
=
false
this
.
showTipRight
=
false
},
},
backTake
()
{
backTake
()
{
this
.
$emit
(
'changeType'
,
1
)
this
.
$emit
(
'changeType'
,
1
)
},
},
//自定义弹窗 保存
//自定义弹窗 保存
popSaveClick
:
function
()
{
popSaveClick
:
function
()
{
if
(
this
.
currenItem
[
'watemark
_text'
]
&&
this
.
currenItem
[
'watemark_v
alue'
])
{
if
(
this
.
currenItem
[
'watemark
Text'
]
&&
this
.
currenItem
[
'watemarkV
alue'
])
{
this
.
isPopShow
=
false
this
.
isPopShow
=
false
if
(
this
.
currenItem
.
type
===
'
title_text
'
)
{
if
(
this
.
currenItem
.
type
===
'
备注
'
)
{
this
.
result
[
'lower
_right'
][
'title_text'
]
=
this
.
currenItem
[
'watemark_v
alue'
]
this
.
result
[
'lower
Left'
][
'title'
]
=
this
.
currenItem
[
'watemarkV
alue'
]
}
else
{
}
else
{
this
.
editingItem
[
'watemark
_text'
]
=
this
.
currenItem
[
'watemark_t
ext'
]
this
.
editingItem
[
'watemark
Text'
]
=
this
.
currenItem
[
'watemarkT
ext'
]
this
.
editingItem
[
'watemark
_value'
]
=
this
.
currenItem
[
'watemark_v
alue'
]
this
.
editingItem
[
'watemark
Value'
]
=
this
.
currenItem
[
'watemarkV
alue'
]
this
.
editingItem
[
'enable'
]
=
true
this
.
editingItem
[
'enable'
]
=
true
}
}
this
.
saveUserWatermark
()
this
.
saveUserWatermark
()
}
else
{
}
else
{
// 提示
// 提示
if
(
!
this
.
currenItem
[
'watemark
_t
ext'
])
{
if
(
!
this
.
currenItem
[
'watemark
T
ext'
])
{
this
.
showTipLeft
=
true
this
.
showTipLeft
=
true
}
}
if
(
!
this
.
currenItem
[
'watemark
_v
alue'
])
{
if
(
!
this
.
currenItem
[
'watemark
V
alue'
])
{
this
.
showTipRight
=
true
this
.
showTipRight
=
true
}
}
}
}
...
...
src/components/take/index.vue
View file @
0f00f0af
<
template
>
<
template
>
<view
class=
"camera"
>
<view
class=
"camera"
>
<view
class=
"camera-container"
v-if=
"showType === 1"
>
<view
class=
"camera-container"
v-if=
"showType === 1"
>
<cover-view
class=
"header-box"
:style=
"
{'height':navHeight/2 + 'px'}">
<cover-view
class=
"header-box"
:style=
"
{'height':navHeight/2 + 'px'}">
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
src=
"/static/photo/icon-switch.png"
></cover-image>
src=
"/static/photo/icon-switch.png"
></cover-image>
<cover-image
@
click=
"setCameraInfo('flash')"
class=
"icon"
mode=
"aspectFit"
<cover-image
@
click=
"setCameraInfo('flash')"
class=
"icon"
mode=
"aspectFit"
:src=
"'/static/photo/icon-light-' + cameraInfo.flash +'.png'"
></cover-image>
: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>
src=
"/static/photo/icon-setting.png"
></cover-image>
</cover-view>
</cover-view>
</cover-view>
</cover-view>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<cover-view
class=
"bottom-box"
v-if=
"!standardShow"
>
<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"
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-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>
<view
class=
'icon'
v-else
></view>
</cover-view>
</cover-view>
<canvas
canvas-id=
"canvas"
id=
"photoCanvas"
class=
"canvas"
<canvas
canvas-id=
"canvas"
id=
"photoCanvas"
class=
"canvas"
...
@@ -37,11 +37,11 @@
...
@@ -37,11 +37,11 @@
<image
@
click=
"closeShadow"
class=
"icon icon-close"
mode=
"aspectFit"
src=
"/static/photo/icon-close.png"
></image>
<image
@
click=
"closeShadow"
class=
"icon icon-close"
mode=
"aspectFit"
src=
"/static/photo/icon-close.png"
></image>
</view>
</view>
</view>
</view>
</view>
</view>
<photo-preview
v-if=
"showType === 2"
@
changeType=
"changeType"
@
finish=
"finish"
/>
<photo-preview
v-if=
"showType === 2"
@
changeType=
"changeType"
@
finish=
"finish"
/>
<photo-setting
v-if=
"showType === 3"
@
changeType=
"changeType"
/>
<photo-setting
v-if=
"showType === 3"
@
changeType=
"changeType"
@
changeWatermark=
"changeWatermark"
/>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
let
r
=
require
(
"@/libs/bmap-wx.min.js"
);
let
r
=
require
(
"@/libs/bmap-wx.min.js"
);
...
@@ -49,31 +49,31 @@
...
@@ -49,31 +49,31 @@
// ak: "rpVq5d3yxaRCoKzVwmFMo0o4iC524CAG",
// ak: "rpVq5d3yxaRCoKzVwmFMo0o4iC524CAG",
ak
:
"iXsGdyEcm1iQONoUPyEp0hrBTLCuOaW2"
ak
:
"iXsGdyEcm1iQONoUPyEp0hrBTLCuOaW2"
});
});
import
standard
from
'@/components/photo/standard.vue'
import
standard
from
'@/components/photo/standard.vue'
import
preview
from
'@/components/photo/preview.vue'
import
preview
from
'@/components/photo/preview.vue'
import
setting
from
'@/components/photo/setting.vue'
import
setting
from
'@/components/photo/setting.vue'
export
default
{
export
default
{
props
:
{
props
:
{
currentItem
:
{
// 对应的规范item
currentItem
:
{
// 对应的规范item
default
()
{
default
()
{
return
{
return
{
_id
:
''
,
// 规格ID
_id
:
''
,
// 规格ID
system_id
:
''
,
// 系统ID
system_id
:
''
,
// 系统ID
brand_id
:
''
,
// 品牌ID
brand_id
:
''
,
// 品牌ID
classify_id
:
''
,
// 分类ID
classify_id
:
''
,
// 分类ID
images
:
[],
// 拍照要求示意图
images
:
[],
// 拍照要求示意图
main_point
:
[]
// 要点
main_point
:
[]
// 要点
}
}
}
}
}
}
},
},
components
:
{
components
:
{
'photo-standard'
:
standard
,
'photo-standard'
:
standard
,
'photo-preview'
:
preview
,
'photo-preview'
:
preview
,
'photo-setting'
:
setting
,
'photo-setting'
:
setting
,
},
},
data
()
{
data
()
{
return
{
return
{
showType
:
1
,
showType
:
1
,
standardShow
:
false
,
standardShow
:
false
,
cameraInfo
:
{
cameraInfo
:
{
...
@@ -102,14 +102,14 @@
...
@@ -102,14 +102,14 @@
ratio
:
0
,
ratio
:
0
,
cameraChange
:
false
,
cameraChange
:
false
,
waterSetting
:
null
,
waterSetting
:
null
,
shadowInitShow
:
false
,
// 第一次进入页面需显示弹窗
shadowInitShow
:
false
,
// 第一次进入页面需显示弹窗
standardStatus
:
false
// 是否显示拍照要求
standardStatus
:
false
// 是否显示拍照要求
}
}
},
},
created
(
e
)
{
created
(
e
)
{
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
getApp
().
trackPage
(
'拍照页'
)
getApp
().
trackPage
(
'拍照页'
)
photo
.
allImages
=
[]
photo
.
allImages
=
[]
photo
.
currentItemLength
=
0
photo
.
currentItemLength
=
0
// this.ctx = uni.createCameraContext();
// this.ctx = uni.createCameraContext();
this
.
updateTime
()
this
.
updateTime
()
...
@@ -117,21 +117,21 @@
...
@@ -117,21 +117,21 @@
this
.
getMarkPath
()
this
.
getMarkPath
()
this
.
initData
()
this
.
initData
()
photo
.
currentItem
=
this
.
currentItem
photo
.
currentItem
=
this
.
currentItem
if
(
this
.
currentItem
.
images
.
length
>
0
)
{
if
(
this
.
currentItem
.
images
.
length
>
0
)
{
this
.
shadowInitShow
=
true
this
.
shadowInitShow
=
true
this
.
standardShow
=
true
this
.
standardShow
=
true
this
.
standardStatus
=
true
this
.
standardStatus
=
true
}
}
},
},
computed
:
{
computed
:
{
titleTxt
()
{
titleTxt
()
{
const
waterSetting
=
this
.
waterSetting
const
waterSetting
=
this
.
waterSetting
let
txt
=
''
let
txt
=
''
if
(
!
waterSetting
||
!
waterSetting
.
lower
_righ
t
)
{
if
(
!
waterSetting
||
!
waterSetting
.
lower
Lef
t
)
{
return
''
return
''
}
}
txt
=
waterSetting
.
lower
_right
&&
waterSetting
.
lower_right
.
title_text
||
''
txt
=
waterSetting
.
lower
Left
&&
waterSetting
.
lowerLeft
.
title
||
''
return
txt
return
txt
},
},
settingTxtArr
()
{
settingTxtArr
()
{
...
@@ -144,17 +144,17 @@
...
@@ -144,17 +144,17 @@
let
settingTxtArr
=
[]
let
settingTxtArr
=
[]
const
typeArr
=
[
'经度'
,
'纬度'
,
'地址'
,
'时间'
]
const
typeArr
=
[
'经度'
,
'纬度'
,
'地址'
,
'时间'
]
const
waterSetting
=
this
.
waterSetting
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
return
arr
}
}
const
settingArr
=
waterSetting
.
lower
_righ
t
.
body
const
settingArr
=
waterSetting
.
lower
Lef
t
.
body
settingArr
.
map
(
item
=>
{
settingArr
.
map
(
item
=>
{
const
idx
=
typeArr
.
indexOf
(
item
.
watemark
_t
ype
)
const
idx
=
typeArr
.
indexOf
(
item
.
watemark
T
ype
)
if
(
item
.
enable
&&
(
idx
>
-
1
||
(
item
.
watemark
_value
&&
item
.
watemark_t
ext
)))
{
if
(
item
.
enable
&&
(
idx
>
-
1
||
(
item
.
watemark
Value
&&
item
.
watemarkT
ext
)))
{
if
(
idx
>
-
1
)
{
if
(
idx
>
-
1
)
{
settingTxtArr
.
push
(
arr
[
idx
])
settingTxtArr
.
push
(
arr
[
idx
])
}
else
{
}
else
{
settingTxtArr
.
push
(
item
.
watemark
_text
+
':'
+
item
.
watemark_v
alue
)
settingTxtArr
.
push
(
item
.
watemark
Text
+
':'
+
item
.
watemarkV
alue
)
}
}
}
}
})
})
...
@@ -179,18 +179,21 @@
...
@@ -179,18 +179,21 @@
this
.
shadowInitShow
=
false
this
.
shadowInitShow
=
false
this
.
standardShow
=
false
this
.
standardShow
=
false
},
},
goBack
()
{
goBack
()
{
uni
.
showTabBar
()
uni
.
showTabBar
()
this
.
$emit
(
'close'
)
this
.
$emit
(
'close'
)
},
},
finish
()
{
finish
()
{
uni
.
showTabBar
()
uni
.
showTabBar
()
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
this
.
$emit
(
'close'
,
photo
.
allImages
)
this
.
$emit
(
'close'
,
photo
.
allImages
)
},
},
changeType
(
type
)
{
changeType
(
type
)
{
this
.
showType
=
type
this
.
showType
=
type
},
},
changeWatermark
(
watermark
){
this
.
waterSetting
=
watermark
},
updateTime
()
{
updateTime
()
{
this
.
waterInfo
.
date
=
this
.
getTime
()
this
.
waterInfo
.
date
=
this
.
getTime
()
// let timer = setTimeout(() => {
// let timer = setTimeout(() => {
...
@@ -224,10 +227,10 @@
...
@@ -224,10 +227,10 @@
},
},
baiduLocation
()
{
baiduLocation
()
{
// 百度sdk解析经纬度
// 百度sdk解析经纬度
let
waterInfo
=
this
.
waterInfo
let
waterInfo
=
this
.
waterInfo
const
t
=
function
()
{
const
t
=
function
()
{
let
t
=
{
let
t
=
{
success
:
function
(
res
)
{
success
:
function
(
res
)
{
let
e
=
res
.
wxMarkerData
[
0
];
let
e
=
res
.
wxMarkerData
[
0
];
let
i
=
e
.
address
;
let
i
=
e
.
address
;
waterInfo
.
address
=
i
waterInfo
.
address
=
i
...
@@ -257,7 +260,7 @@
...
@@ -257,7 +260,7 @@
//获取位置
//获取位置
getLocation
()
{
getLocation
()
{
let
that
=
this
let
that
=
this
const
waterInfo
=
this
.
waterInfo
const
waterInfo
=
this
.
waterInfo
uni
.
getLocation
({
uni
.
getLocation
({
type
:
'gcj02'
,
type
:
'gcj02'
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
...
@@ -423,7 +426,7 @@
...
@@ -423,7 +426,7 @@
globalTempPath
.
origin
=
this
.
tempImgs
.
origin
globalTempPath
.
origin
=
this
.
tempImgs
.
origin
globalTempPath
.
mixWater
=
res
.
tempFilePath
globalTempPath
.
mixWater
=
res
.
tempFilePath
let
timer
=
setTimeout
(()
=>
{
let
timer
=
setTimeout
(()
=>
{
//this.goPage('/pages/photo/preview')
//this.goPage('/pages/photo/preview')
this
.
changeType
(
2
)
this
.
changeType
(
2
)
},
0
)
},
0
)
// this.saveToLocal(res.tempFilePath)
// this.saveToLocal(res.tempFilePath)
...
@@ -477,21 +480,21 @@
...
@@ -477,21 +480,21 @@
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.camera
{
.camera
{
position
:fixed
;
position
:fixed
;
padding
:
0
;
padding
:
0
;
margin
:
0
;
margin
:
0
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
z-index
:
999999
;
z-index
:
999999
;
}
}
.camera-container
{
.camera-container
{
// padding-top:var(--status-bar-height);
// padding-top:var(--status-bar-height);
min-height
:
100vh
;
min-height
:
100vh
;
background-color
:
black
;
background-color
:
black
;
}
}
.header-box
{
.header-box
{
...
...
src/pages/order/complete.vue
View file @
0f00f0af
...
@@ -124,6 +124,7 @@
...
@@ -124,6 +124,7 @@
inGuaranteePeriod
:
''
,
inGuaranteePeriod
:
''
,
list
:
[],
list
:
[],
tabIndex
:
0
,
tabIndex
:
0
,
show200
:
true
,
// 基础信息显示金额输入框
scrollTop
:
0
,
//tab标题的滚动条位置
scrollTop
:
0
,
//tab标题的滚动条位置
oldScrollTop
:
0
,
oldScrollTop
:
0
,
current
:
0
,
// 预设当前项的值
current
:
0
,
// 预设当前项的值
...
@@ -238,9 +239,6 @@
...
@@ -238,9 +239,6 @@
'font-size'
:
'32rpx'
,
'font-size'
:
'32rpx'
,
}
}
},
},
show200
()
{
/// 基础信息显示金额输入框
return
this
.
form
.
paymentMethodsType
!=
'03'
}
},
},
methods
:
{
methods
:
{
getCompleteData
()
{
//获取工单配置的完工项目
getCompleteData
()
{
//获取工单配置的完工项目
...
@@ -400,6 +398,7 @@
...
@@ -400,6 +398,7 @@
}
}
}
}
}
}
console
.
log
(
this
.
form
)
console
.
log
(
this
.
form
)
},
},
nextStep
()
{
nextStep
()
{
...
...
src/pages/photo/list.vue
View file @
0f00f0af
This diff is collapsed.
Click to expand it.
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