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
b80d2800
Commit
b80d2800
authored
Apr 06, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问题修复
parent
975c9ef5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
App.vue
take-order/App.vue
+2
-2
preview.vue
take-order/pages/photo/preview.vue
+2
-2
take.vue
take-order/pages/photo/take.vue
+2
-2
No files found.
take-order/App.vue
View file @
b80d2800
...
@@ -150,9 +150,9 @@ export default {
...
@@ -150,9 +150,9 @@ export default {
},
},
onShow
:
function
()
{
onShow
:
function
()
{
if
(
!
this
.
globalData
.
token
)
{
//
if (!this.globalData.token) {
this
.
autoLogin
()
this
.
autoLogin
()
}
//
}
},
},
methods
:
{
methods
:
{
getSystemInfo
()
{
getSystemInfo
()
{
...
...
take-order/pages/photo/preview.vue
View file @
b80d2800
<
template
>
<
template
>
<view>
<view>
<view
class=
"contentView"
>
<view
class=
"contentView"
>
<u-image
class=
"pic"
:src=
"files[0]"
bg-color=
"transparent"
></u-image>
<u-image
class=
"pic"
:src=
"files[0]"
bg-color=
"transparent"
@
click=
"showPreviewFn"
></u-image>
<!--
<image
class=
"pic"
:src=
"files[0]"
v-lazy
mode=
"aspectFit"
@
click=
"showPreviewFn"
></image>
-->
<!--
<image
class=
"pic"
:src=
"files[0]"
v-lazy
mode=
"aspectFit"
></image>
-->
</view>
</view>
<view
class=
"bottomView"
>
<view
class=
"bottomView"
>
<image
class=
"btn"
:src=
"btn_remake"
@
click=
"$u.debounce(remakePhoto, 500)"
></image>
<image
class=
"btn"
:src=
"btn_remake"
@
click=
"$u.debounce(remakePhoto, 500)"
></image>
...
...
take-order/pages/photo/take.vue
View file @
b80d2800
...
@@ -369,8 +369,8 @@
...
@@ -369,8 +369,8 @@
canvas
.
fillText
(
txt
,
10
,
canvasHeight
-
txtHeight
*
h
++
);
canvas
.
fillText
(
txt
,
10
,
canvasHeight
-
txtHeight
*
h
++
);
}
else
{
}
else
{
if
(
txt
.
length
>
20
){
if
(
txt
.
length
>
20
){
canvas
.
fillText
(
txt
.
substr
(
18
,
2
0
),
10
,
canvasHeight
-
txtHeight
*
h
++
);
canvas
.
fillText
(
txt
.
substr
(
18
,
2
1
),
10
,
canvasHeight
-
txtHeight
*
h
++
);
canvas
.
fillText
(
txt
.
substr
(
0
,
2
0
),
10
,
canvasHeight
-
txtHeight
*
h
++
);
canvas
.
fillText
(
txt
.
substr
(
0
,
2
1
),
10
,
canvasHeight
-
txtHeight
*
h
++
);
}
else
{
}
else
{
canvas
.
fillText
(
txt
,
10
,
canvasHeight
-
txtHeight
*
h
++
);
canvas
.
fillText
(
txt
,
10
,
canvasHeight
-
txtHeight
*
h
++
);
}
}
...
...
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