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
ed153133
Commit
ed153133
authored
Jan 04, 2021
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
d72448f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
11 deletions
+27
-11
pages.json
take-order/pages.json
+2
-2
detail.vue
take-order/pages/photo/detail.vue
+17
-5
try.vue
take-order/pages/photo/try.vue
+8
-4
No files found.
take-order/pages.json
View file @
ed153133
...
...
@@ -9,7 +9,7 @@
{
"path"
:
"pages/photo/product"
,
"style"
:
{
"navigationBarTitleText"
:
"
选择产品
"
"navigationBarTitleText"
:
"
扳手会工单规范
"
}
},
{
...
...
@@ -65,7 +65,7 @@
{
"path"
:
"pages/photo/brand"
,
"style"
:
{
"navigationBarTitleText"
:
"
选择品牌
"
"navigationBarTitleText"
:
"
扳手会工单规范
"
}
},
{
...
...
take-order/pages/photo/detail.vue
View file @
ed153133
...
...
@@ -49,6 +49,7 @@
last_done_count
:
0
,
swiperList
:[],
windowHeight
:
0
,
title
:
''
}
},
watch
:{
...
...
@@ -105,8 +106,19 @@
this
.
images
=
[].
concat
(
JSON
.
parse
(
e
.
images
))
}
if
(
e
&&
e
.
title
){
this
.
title
=
e
.
title
if
(
this
.
title
.
length
>
6
){
this
.
title
=
this
.
title
.
substr
(
0
,
6
)
+
'...'
}
}
uni
.
setNavigationBarTitle
({
title
:
'走线照片
('
+
this
.
current_count
+
'/'
+
this
.
image_count
+
')'
title
:
this
.
title
+
'
('
+
this
.
current_count
+
'/'
+
this
.
image_count
+
')'
})
uni
.
setNavigationBarColor
({
...
...
@@ -147,7 +159,7 @@
console
.
log
(
'没有拍完 所有数量照片 current_count:'
+
this
.
current_count
)
console
.
log
(
'没有拍完 所有数量照片 current_image:'
+
this
.
current_image
)
uni
.
setNavigationBarTitle
({
title
:
'走线照片
('
+
this
.
current_count
+
'/'
+
this
.
image_count
+
')'
title
:
this
.
title
+
'
('
+
this
.
current_count
+
'/'
+
this
.
image_count
+
')'
})
}
...
...
@@ -212,7 +224,7 @@
.topView
{
background-color
:
#333333
;
width
:
100%
;
height
:
1
46
rpx
;
height
:
1
2%
;
display
:
flex
;
align-items
:
center
;
...
...
@@ -226,7 +238,7 @@
.centerBackView
{
background-color
:
#333333
;
height
:
568
rpx
;
height
:
47.3%
;
display
:
flex
;
flex-direction
:
row
;
}
...
...
@@ -241,7 +253,7 @@
.bottomView
{
background-color
:
#333333
;
width
:
100%
;
height
:
4
88
rpx
;
height
:
4
0.7%
;
position
:
fixed
;
bottom
:
0
;
display
:
flex
;
...
...
take-order/pages/photo/try.vue
View file @
ed153133
...
...
@@ -179,10 +179,14 @@
this
.
canvas
.
setFillStyle
(
'#f2f2f2'
)
let
h
=
1
let
txtHeight
=
36
this
.
canvas
.
fillText
(
'经度'
+
this
.
longitude
,
20
,
canvasHeight
-
txtHeight
*
h
++
);
this
.
canvas
.
fillText
(
'维度'
+
this
.
latitude
,
20
,
canvasHeight
-
txtHeight
*
h
++
);
this
.
canvas
.
fillText
(
'地址'
+
this
.
address
,
20
,
canvasHeight
-
txtHeight
*
h
++
);
this
.
canvas
.
fillText
(
'时间'
+
this
.
date
,
20
,
canvasHeight
-
txtHeight
*
h
++
);
// '经度' +
// '维度' +
// '地址' +
// '时间' +
this
.
canvas
.
fillText
(
this
.
longitude
,
20
,
canvasHeight
-
txtHeight
*
h
++
);
this
.
canvas
.
fillText
(
this
.
latitude
,
20
,
canvasHeight
-
txtHeight
*
h
++
);
this
.
canvas
.
fillText
(
this
.
address
,
20
,
canvasHeight
-
txtHeight
*
h
++
);
this
.
canvas
.
fillText
(
this
.
date
,
20
,
canvasHeight
-
txtHeight
*
h
++
);
//加入 水印图片
this
.
canvas
.
drawImage
(
this
.
markPath
,
canvasWidth
/
2
-
200
,
canvasHeight
/
2
-
50
,
400
,
100
)
...
...
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