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
00d24079
Commit
00d24079
authored
Mar 22, 2021
by
李超鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev-photo-v2' into dev-photo-v2
parents
770300c5
09a36a4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
310 additions
and
0 deletions
+310
-0
markSetting.vue
take-order/pages/photo/markSetting.vue
+310
-0
No files found.
take-order/pages/photo/markSetting.vue
0 → 100644
View file @
00d24079
<
template
>
<view
class=
"backView"
>
<view
class=
"firstItemView"
>
<view
class=
"itemTitleView "
>
<text
class=
"itemTitle"
>
保存原图
</text>
<text
class=
"itemNotice"
>
拍照后另保存一张无水印的图片
</text>
</view>
<switch
class=
"itemSwitch"
:checked=
"isSaveOrigine"
@
change=
"saveOrigineChange"
color=
"#007AFF"
style=
"transform:scale(0.8)"
/>
</view>
<view
class=
"itemView"
v-for=
"(item,ikey) in itemList"
:key=
"ikey"
>
<view
class=
"itemTitleView"
@
click=
"itemClick(item,ikey)"
>
<text
class=
"itemTitle"
>
{{
item
.
title
}}
</text>
<text
class=
"itemNotice"
>
{{
item
.
notice
}}
</text>
</view>
<switch
class=
"itemSwitch"
:checked=
"item.isSelect"
@
change=
"itemChange"
color=
"#007AFF"
style=
"transform:scale(0.8)"
/>
</view>
<view
class=
"shadowBackView"
v-if=
"isPopShow"
>
<view
class=
"popCenterView"
>
<text
class=
"popTitle"
>
设置自定义项
</text>
<view
class=
"inputBackView"
>
<view
class=
"leftInputView"
>
<input
class=
"leftInput"
type=
"text"
value=
""
placeholder=
"请输入"
@
input=
"leftInput"
/>
</view>
:
<view
class=
"rightInputView"
>
<input
class=
"rightInput"
type=
"text"
value=
""
placeholder=
"请输入内容"
@
input=
"rightInput"
/>
</view>
</view>
<text
class=
"popNoticeText u-m-t-40"
>
示例:
</text>
<text
class=
"popNoticeText"
>
工程队名称:蓝天工程队
</text>
<view
class=
"popBtnView"
>
<view
class=
"popCancelBtn"
@
click=
"popCancelClick()"
>
<text
class=
"popBtnText"
>
取消
</text>
</view>
<view
class=
"popSaveBtn"
@
click=
"popSaveClick()"
>
<text
class=
"popBtnText"
>
保存
</text>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
isSaveOrigine
:
true
,
itemList
:[],
isPopShow
:
false
,
icon_close_new
:
''
}
},
onLoad
(
e
)
{
getApp
().
trackPage
(
'水印设置页'
)
this
.
icon_close_new
=
getApp
().
globalData
.
icon_close_new
if
(
e
&&
e
.
product_code
){
this
.
product_code
=
e
.
product_code
}
this
.
getItemList
()
},
methods
:
{
getItemList
:
function
()
{
this
.
itemList
=
[
{
title
:
'自定义1'
,
notice
:
'点击可编辑更改'
,
isSelect
:
false
},
{
title
:
'自定义2'
,
notice
:
'点击可编辑更改'
,
isSelect
:
true
},
{
title
:
'自定义3'
,
notice
:
'点击可编辑更改'
,
isSelect
:
false
},
{
title
:
'自定义4'
,
notice
:
'点击可编辑更改'
,
isSelect
:
false
},
{
title
:
'自定义5'
,
notice
:
'点击可编辑更改'
,
isSelect
:
false
}
]
},
//保存原图 开关
saveOrigineChange
:
function
(
e
)
{
console
.
log
(
'保存原图 开关 发生 change 事件,携带值为'
,
e
.
target
.
value
)
},
//自定义 开关
itemChange
:
function
(
e
)
{
console
.
log
(
'自定义 开关 发生 change 事件,携带值为'
,
e
.
target
.
value
)
},
//自定义 点击
itemClick
:
function
(
item
,
ikey
)
{
console
.
log
(
'自定义 开关 发生 click 事件,携带值为'
,
item
,
ikey
)
this
.
isPopShow
=
true
},
//左侧输入框
leftInput
:
function
(
e
){
console
.
log
(
'左侧输入框 发生 input 事件,携带值为'
,
e
.
detail
.
value
)
},
//右侧输入框
rightInput
:
function
(
e
){
console
.
log
(
'右侧输入框 发生 input 事件,携带值为'
,
e
.
detail
.
value
)
},
//自定义弹窗 关闭
popCancelClick
:
function
()
{
this
.
isPopShow
=
false
},
//自定义弹窗 保存
popSaveClick
:
function
()
{
this
.
isPopShow
=
false
}
}
}
</
script
>
<
style
>
.backView
{
background-color
:
#FAFAFA
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.firstItemView
{
background-color
:
#FFFFFF
;
width
:
100%
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
padding-top
:
80
rpx
;
padding-bottom
:
80
rpx
;
border-bottom
:
2
rpx
solid
#F4F5F7
;
}
.itemView
{
background-color
:
#FFFFFF
;
width
:
100%
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
padding-top
:
54
rpx
;
padding-bottom
:
54
rpx
;
}
.itemTitleView
{
background-color
:
#FFFFFF
;
width
:
80%
;
display
:
flex
;
flex-direction
:
column
;
padding-left
:
30
rpx
;
}
.itemTitle
{
font-size
:
32
rpx
;
font-weight
:
bold
;
color
:
#333333
;
}
.itemNotice
{
font-size
:
26
rpx
;
font-weight
:
bold
;
color
:
#666666
;
margin-top
:
4
rpx
;
}
.itemSwitch
{
margin-right
:
30
rpx
;
}
.shadowBackView
{
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.popCenterView
{
background-color
:
#FFFFFF
;
width
:
690
rpx
;
height
:
600
rpx
;
margin-top
:
300
rpx
;
border-radius
:
12
rpx
;
display
:
flex
;
flex-direction
:
column
;
}
.popTitle
{
font-size
:
36
rpx
;
font-weight
:
bold
;
margin-top
:
50
rpx
;
padding-left
:
30
rpx
;
}
.inputBackView
{
margin-top
:
52
rpx
;
width
:
100%
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
.leftInputView
{
width
:
220
rpx
;
height
:
72
rpx
;
border
:
2
rpx
solid
#666666
;
margin-left
:
30
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.leftInput
{
width
:
180
rpx
;
height
:
32
rpx
;
}
.rightInputView
{
width
:
360
rpx
;
height
:
72
rpx
;
border
:
2
rpx
solid
#666666
;
margin-right
:
30
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.rightInput
{
width
:
320
rpx
;
height
:
32
rpx
;
}
.popNoticeText
{
font-size
:
26
rpx
;
color
:
#666666
;
padding-left
:
30
rpx
;
}
.popBtnView
{
margin-top
:
110
rpx
;
width
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.popCancelBtn
{
background-color
:
#D1D4D4
;
width
:
280
rpx
;
height
:
96
rpx
;
border-radius
:
48
rpx
;
margin-left
:
40
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.popSaveBtn
{
background-color
:
#2272FF
;
width
:
280
rpx
;
height
:
96
rpx
;
border-radius
:
48
rpx
;
margin-right
:
40
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.popBtnText
{
font-size
:
32
rpx
;
color
:
#FFFFFF
;
font-weight
:
600
;
}
</
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