Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
miniprogram-gh-carlife
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cd6d46f8
authored
Jun 18, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加签名
1 parent
b150ad3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
3 deletions
packageEquity/pages/claimsNoteDetail/claimsNoteDetail.js
packageEquity/pages/fullSignture/fullSignture.js
packageEquity/pages/signature/signature.js
packageEquity/pages/claimsNoteDetail/claimsNoteDetail.js
View file @
cd6d46f
...
...
@@ -60,7 +60,8 @@ Page({
vehicleSeriesName
:
detailInfo
.
vehicleSeriesName
,
vehicleShapeName
:
detailInfo
.
vehicleShapeName
,
merchantName
:
detailInfo
.
merchantName
,
writeOffCode
:
detailInfo
.
writeOffCode
writeOffCode
:
detailInfo
.
writeOffCode
,
fromDetail
:
1
,
}
let
temp
=
encodeURIComponent
(
JSON
.
stringify
(
para
))
wx
.
navigateTo
({
...
...
packageEquity/pages/fullSignture/fullSignture.js
View file @
cd6d46f
...
...
@@ -189,6 +189,24 @@ Page({
},
// 上传签名到后端
saveToHttp
(
signUrl
)
{
const
fromDetail
=
this
.
fromDetail
const
writeOffCode
=
this
.
writeOffCode
if
(
fromDetail
)
{
wx
.
$util
.
showLoading
(
'提交中'
)
equityApi
.
signSumbit
({
signUrl
,
writeOffCode
}).
then
(
res
=>
{
wx
.
hideLoading
();
if
(
res
)
{
this
.
maskQuery
=
{
writeOffCode
}
const
currentDate
=
new
Date
()
const
showMaskDate
=
currentDate
.
setDate
(
currentDate
.
getDate
()
+
this
.
data
.
settingDay
);
this
.
setData
({
showSuccessMask
:
true
,
maskDate
:
new
Date
(
showMaskDate
).
format
(
'yyyy年MM月dd日'
)
})
}
})
return
}
let
para
=
{
// writeOffCode: this.writeOffCode,
signUrl
,
...
...
packageEquity/pages/signature/signature.js
View file @
cd6d46f
...
...
@@ -25,7 +25,11 @@ Page({
onLoad
(
options
)
{
this
.
getSettingDay
()
let
carInfo
=
JSON
.
parse
(
decodeURIComponent
(
options
.
carInfo
))
this
.
httpInfo
=
JSON
.
parse
(
decodeURIComponent
(
options
.
http
))
try
{
this
.
httpInfo
=
JSON
.
parse
(
decodeURIComponent
(
options
.
http
))
}
catch
(
error
)
{
this
.
httpInfo
=
{}
}
// 跳全屏用到参数
this
.
fullParams
=
options
.
http
let
that
=
this
...
...
@@ -175,8 +179,9 @@ Page({
})
},
toFullPage
()
{
let
fromDetail
=
this
.
data
.
carInfo
.
fromDetail
||
0
wx
.
navigateTo
({
url
:
'/packageEquity/pages/fullSignture/fullSignture?writeOffCode='
+
this
.
data
.
carInfo
.
writeOffCode
+
'&http='
+
this
.
fullParams
+
`&contractNo=
${
this
.
data
.
carInfo
.
contractNo
}
`
+
`&merchantName=
${
this
.
data
.
carInfo
.
merchantName
}
`
,
url
:
'/packageEquity/pages/fullSignture/fullSignture?
fromDetail='
+
fromDetail
+
'&
writeOffCode='
+
this
.
data
.
carInfo
.
writeOffCode
+
'&http='
+
this
.
fullParams
+
`&contractNo=
${
this
.
data
.
carInfo
.
contractNo
}
`
+
`&merchantName=
${
this
.
data
.
carInfo
.
merchantName
}
`
,
});
},
// 上传图片
...
...
@@ -203,6 +208,23 @@ Page({
},
// 上传签名到后端
saveToHttp
(
signUrl
)
{
const
{
writeOffCode
,
fromDetail
}
=
this
.
data
.
carInfo
if
(
fromDetail
)
{
wx
.
$util
.
showLoading
(
'提交中'
)
equityApi
.
signSumbit
({
signUrl
,
writeOffCode
}).
then
(
res
=>
{
wx
.
hideLoading
();
if
(
res
)
{
this
.
maskQuery
=
{
writeOffCode
}
const
currentDate
=
new
Date
()
const
showMaskDate
=
currentDate
.
setDate
(
currentDate
.
getDate
()
+
this
.
data
.
settingDay
);
this
.
setData
({
showSuccessMask
:
true
,
maskDate
:
new
Date
(
showMaskDate
).
format
(
'yyyy年MM月dd日'
)
})
}
})
return
}
let
para
=
{
...
this
.
httpInfo
,
signUrl
...
...
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