Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9ecddf0a
authored
Mar 23, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除调试
1 parent
f6d5dabb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
packageEquity/pages/carQuotation/fullSignture/fullSignture.js
project.private.config.json
packageEquity/pages/carQuotation/fullSignture/fullSignture.js
View file @
9ecddf0
...
@@ -28,6 +28,7 @@ Page({
...
@@ -28,6 +28,7 @@ Page({
})
})
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
let
{
windowWidth
,
windowHeight
}
=
wx
.
getSystemInfoSync
()
if
(
options
.
writeOffCode
)
{
if
(
options
.
writeOffCode
)
{
this
.
writeOffCode
=
options
.
writeOffCode
this
.
writeOffCode
=
options
.
writeOffCode
}
}
...
@@ -36,7 +37,7 @@ Page({
...
@@ -36,7 +37,7 @@ Page({
this
.
canvasCtx
=
wx
.
createCanvasContext
(
'signature'
,
that
)
this
.
canvasCtx
=
wx
.
createCanvasContext
(
'signature'
,
that
)
// 设置线的样式
// 设置线的样式
this
.
canvasCtx
.
setFillStyle
(
'white'
)
this
.
canvasCtx
.
setFillStyle
(
'white'
)
this
.
canvasCtx
.
fillRect
(
0
,
0
,
600
,
600
)
this
.
canvasCtx
.
fillRect
(
0
,
0
,
windowWidth
,
windowHeight
)
this
.
canvasCtx
.
setLineCap
(
'round'
)
this
.
canvasCtx
.
setLineCap
(
'round'
)
this
.
canvasCtx
.
setLineJoin
(
'round'
)
this
.
canvasCtx
.
setLineJoin
(
'round'
)
// 初始化颜色
// 初始化颜色
...
@@ -145,6 +146,17 @@ Page({
...
@@ -145,6 +146,17 @@ Page({
canvasId
:
'signature'
,
canvasId
:
'signature'
,
fileType
:
'jpg'
,
fileType
:
'jpg'
,
success
(
res
)
{
success
(
res
)
{
// //将图片保存到本地相册
// wx.saveImageToPhotosAlbum({
// filePath: res.tempFilePath,
// success(res) {
// // wx.$util.showToast('已将图片保存到本地相册', res)
// },
// fail(err) {
// wx.$util.showToast('失败', err)
// console.log(err)
// }
// })
if
(
res
.
tempFilePath
)
{
if
(
res
.
tempFilePath
)
{
that
.
toUploadImage
(
res
.
tempFilePath
)
that
.
toUploadImage
(
res
.
tempFilePath
)
}
}
...
...
project.private.config.json
View file @
9ecddf0
...
@@ -151,6 +151,13 @@
...
@@ -151,6 +151,13 @@
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
"全屏签名"
,
"pathName"
:
"packageEquity/pages/carQuotation/fullSignture/fullSignture"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment