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 14fcdf39
authored
Jul 10, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.41' into 'master'
上线合并 See merge request
!2
2 parents
98a6e7a6
646be092
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
76 additions
and
17 deletions
api/equity.js
packageEquity/pages/claimsNote/claimsNote.wxml
packageEquity/pages/claimsNoteDetail/claimsNoteDetail.js
packageEquity/pages/claimsNoteDetail/claimsNoteDetail.wxml
packageEquity/pages/fullSignture/fullSignture.js
packageEquity/pages/fullSignture/fullSignture.wxml
packageEquity/pages/fullSignture/fullSignture.wxss
packageEquity/pages/jobDetail/jobDetail.js
packageEquity/pages/serviceApply/serviceApply.wxml
packageEquity/pages/signature/signature.js
packageEquity/pages/signature/signature.wxml
packageEquity/pages/signature/signature.wxss
api/equity.js
View file @
14fcdf3
...
@@ -317,6 +317,13 @@ module.exports = {
...
@@ -317,6 +317,13 @@ module.exports = {
...
data
,
...
data
,
});
});
},
},
// 倒计时天数
getSettingDay
(
data
)
{
return
api
.
post
({
method
:
`scrm.api.equity.service.claims.order.status.update.frequency`
,
...
data
,
});
},
// 理赔案件详情
// 理赔案件详情
claimsDetail
(
data
)
{
claimsDetail
(
data
)
{
return
api
.
post
({
return
api
.
post
({
...
...
packageEquity/pages/claimsNote/claimsNote.wxml
View file @
14fcdf3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view class="wrapper" data-item="{{item}}" catch:tap="toDetail">
<view class="wrapper" data-item="{{item}}" catch:tap="toDetail">
<view class="header flex_scb">
<view class="header flex_scb">
<view class="flex_sc">
<view class="flex_sc">
<view class="label">
核销
码</view>
<view class="label">
理赔
码</view>
<view class="code">{{item.writeOffCode}}</view>
<view class="code">{{item.writeOffCode}}</view>
</view>
</view>
<view class="status">{{status[item.customerStatus]}}</view>
<view class="status">{{status[item.customerStatus]}}</view>
...
...
packageEquity/pages/claimsNoteDetail/claimsNoteDetail.js
View file @
14fcdf3
...
@@ -60,7 +60,8 @@ Page({
...
@@ -60,7 +60,8 @@ Page({
vehicleSeriesName
:
detailInfo
.
vehicleSeriesName
,
vehicleSeriesName
:
detailInfo
.
vehicleSeriesName
,
vehicleShapeName
:
detailInfo
.
vehicleShapeName
,
vehicleShapeName
:
detailInfo
.
vehicleShapeName
,
merchantName
:
detailInfo
.
merchantName
,
merchantName
:
detailInfo
.
merchantName
,
writeOffCode
:
detailInfo
.
writeOffCode
writeOffCode
:
detailInfo
.
writeOffCode
,
fromDetail
:
1
,
}
}
let
temp
=
encodeURIComponent
(
JSON
.
stringify
(
para
))
let
temp
=
encodeURIComponent
(
JSON
.
stringify
(
para
))
wx
.
navigateTo
({
wx
.
navigateTo
({
...
...
packageEquity/pages/claimsNoteDetail/claimsNoteDetail.wxml
View file @
14fcdf3
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<image bind:tap="setCopyData" webp class="icon" src="{{IMGURL}}equity/claims/pre_copy_icon.png?v={{img_version}}" />
<image bind:tap="setCopyData" webp class="icon" src="{{IMGURL}}equity/claims/pre_copy_icon.png?v={{img_version}}" />
<view bind:tap="setCopyData" class="mintext">复制</view>
<view bind:tap="setCopyData" class="mintext">复制</view>
</view>
</view>
<view class="default_text title flex_cc">
核销
码</view>
<view class="default_text title flex_cc">
理赔
码</view>
</view>
</view>
<view class="info_wrap">
<view class="info_wrap">
<view class="widget mar26">
<view class="widget mar26">
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
</view>
</view>
<view wx:if="{{detailInfo.customerStatus==3}}" class="btn_wrap flex_cc" style="height:{{isIphoneX?'176rpx':'108rpx'}}">
<view wx:if="{{detailInfo.customerStatus==3}}" class="btn_wrap flex_cc" style="height:{{isIphoneX?'176rpx':'108rpx'}}">
<!-- <view class="btn_wrap flex_cc" style="height:{{isIphoneX?'176rpx':'108rpx'}}"> -->
<!-- <view class="btn_wrap flex_cc" style="height:{{isIphoneX?'176rpx':'108rpx'}}"> -->
<
!-- <view class="fixed_btn flex_cc" bind:tap="toSignPage">去确认</view> --
>
<
view class="fixed_btn flex_cc" bind:tap="toSignPage">去确认</view
>
</view>
</view>
</view>
</view>
...
...
packageEquity/pages/fullSignture/fullSignture.js
View file @
14fcdf3
...
@@ -28,6 +28,7 @@ Page({
...
@@ -28,6 +28,7 @@ Page({
this
.
contractNo
=
options
.
contractNo
this
.
contractNo
=
options
.
contractNo
this
.
merchantName
=
options
.
merchantName
this
.
merchantName
=
options
.
merchantName
}
}
this
.
getSettingDay
()
let
that
=
this
let
that
=
this
let
query
=
wx
.
createSelectorQuery
().
in
(
this
);
//获取自定义组件的SelectQuery对象
let
query
=
wx
.
createSelectorQuery
().
in
(
this
);
//获取自定义组件的SelectQuery对象
this
.
canvasCtx
=
wx
.
createCanvasContext
(
'signature'
,
that
)
this
.
canvasCtx
=
wx
.
createCanvasContext
(
'signature'
,
that
)
...
@@ -46,6 +47,13 @@ Page({
...
@@ -46,6 +47,13 @@ Page({
});
});
}).
exec
();
}).
exec
();
},
},
getSettingDay
()
{
equityApi
.
getSettingDay
({}).
then
(
res
=>
{
this
.
setData
({
settingDay
:
res
||
0
})
})
},
scaleStart
(
event
)
{
scaleStart
(
event
)
{
if
(
event
.
type
!=
'touchstart'
)
return
false
;
if
(
event
.
type
!=
'touchstart'
)
return
false
;
let
currentPoint
=
{
let
currentPoint
=
{
...
@@ -181,6 +189,19 @@ Page({
...
@@ -181,6 +189,19 @@ Page({
},
},
// 上传签名到后端
// 上传签名到后端
saveToHttp
(
signUrl
)
{
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
}
this
.
toConfirmOK
()
}
})
return
}
let
para
=
{
let
para
=
{
// writeOffCode: this.writeOffCode,
// writeOffCode: this.writeOffCode,
signUrl
,
signUrl
,
...
@@ -192,7 +213,7 @@ Page({
...
@@ -192,7 +213,7 @@ Page({
if
(
res
)
{
if
(
res
)
{
this
.
maskQuery
=
para
this
.
maskQuery
=
para
const
currentDate
=
new
Date
()
const
currentDate
=
new
Date
()
const
showMaskDate
=
currentDate
.
set
Month
(
currentDate
.
getMonth
()
+
3
);
const
showMaskDate
=
currentDate
.
set
Date
(
currentDate
.
getDate
()
+
Number
(
this
.
data
.
settingDay
)
);
this
.
setData
({
this
.
setData
({
showSuccessMask
:
true
,
showSuccessMask
:
true
,
maskDate
:
new
Date
(
showMaskDate
).
format
(
'yyyy年MM月dd日'
),
maskDate
:
new
Date
(
showMaskDate
).
format
(
'yyyy年MM月dd日'
),
...
...
packageEquity/pages/fullSignture/fullSignture.wxml
View file @
14fcdf3
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
<view class="mask-title">申请成功</view>
<view class="mask-title">申请成功</view>
<view class="mask-main">
<view class="mask-main">
<view class="mask-text">尊敬的客户:</view>
<view class="mask-text">尊敬的客户:</view>
<view class="mask-text
">您已成功申请广汇数字无忧卡权益。本次核销
码有效期截止日期为:<text style="font-weight: 600;">{{maskDate}}</text>。</view>
<view class="mask-text
indent">您已成功申请广汇数字无忧卡权益。本次理赔
码有效期截止日期为:<text style="font-weight: 600;">{{maskDate}}</text>。</view>
<view class="mask-text">请在有效期内至广汇旗下<text style="font-weight: 600;">{{maskMerchant}}</text>,将有工作人员协助您办理资料提交手续。</view>
<view class="mask-text
indent
">请在有效期内至广汇旗下<text style="font-weight: 600;">{{maskMerchant}}</text>,将有工作人员协助您办理资料提交手续。</view>
<view class="mask-text">祝您用车愉快。</view>
<view class="mask-text">祝您用车愉快。</view>
</view>
</view>
<view bind:tap="toConfirmOK" class="mask-footer">好的</view>
<view bind:tap="toConfirmOK" class="mask-footer">好的</view>
...
...
packageEquity/pages/fullSignture/fullSignture.wxss
View file @
14fcdf3
...
@@ -117,7 +117,9 @@ page{
...
@@ -117,7 +117,9 @@ page{
font-weight: 400;
font-weight: 400;
line-height: 44rpx;
line-height: 44rpx;
}
}
.indent{
text-indent: 56rpx;
}
.mask-footer {
.mask-footer {
height: 88rpx;
height: 88rpx;
display: flex;
display: flex;
...
...
packageEquity/pages/jobDetail/jobDetail.js
View file @
14fcdf3
...
@@ -209,7 +209,8 @@ Page({
...
@@ -209,7 +209,8 @@ Page({
item
.
showStatus
=
0
;
item
.
showStatus
=
0
;
}
}
});
});
this
.
handlerDetailList
(
res
[
0
]);
let
item
=
JSON
.
parse
(
JSON
.
stringify
(
res
[
0
]));
this
.
handlerDetailList
(
item
);
this
.
setNaviTitle
(
queryItem
.
serviceShortName
);
this
.
setNaviTitle
(
queryItem
.
serviceShortName
);
}
}
this
.
setData
({
this
.
setData
({
...
...
packageEquity/pages/serviceApply/serviceApply.wxml
View file @
14fcdf3
...
@@ -16,11 +16,11 @@
...
@@ -16,11 +16,11 @@
</view>
</view>
</view>
</view>
</view>
</view>
<!--
核销
码 -->
<!--
理赔
码 -->
<view class="code-box">
<view class="code-box">
<view class="code-info">
<view class="code-info">
<view class="code-title">
<view class="code-title">
<text class="code-title-left">
核销
码</text>
<text class="code-title-left">
理赔
码</text>
<text class="code-title-right">过期后需重新申请服务</text>
<text class="code-title-right">过期后需重新申请服务</text>
</view>
</view>
<view class="code-num-box">
<view class="code-num-box">
...
...
packageEquity/pages/signature/signature.js
View file @
14fcdf3
...
@@ -23,8 +23,13 @@ Page({
...
@@ -23,8 +23,13 @@ Page({
maskDate
:
''
maskDate
:
''
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
getSettingDay
()
let
carInfo
=
JSON
.
parse
(
decodeURIComponent
(
options
.
carInfo
))
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
this
.
fullParams
=
options
.
http
let
that
=
this
let
that
=
this
...
@@ -54,6 +59,13 @@ Page({
...
@@ -54,6 +59,13 @@ Page({
});
});
}).
exec
();
}).
exec
();
},
},
getSettingDay
()
{
equityApi
.
getSettingDay
({}).
then
(
res
=>
{
this
.
setData
({
settingDay
:
res
||
0
})
})
},
scaleStart
(
event
)
{
scaleStart
(
event
)
{
if
(
event
.
type
!=
'touchstart'
)
return
false
;
if
(
event
.
type
!=
'touchstart'
)
return
false
;
let
currentPoint
=
{
let
currentPoint
=
{
...
@@ -167,8 +179,9 @@ Page({
...
@@ -167,8 +179,9 @@ Page({
})
})
},
},
toFullPage
()
{
toFullPage
()
{
let
fromDetail
=
this
.
data
.
carInfo
.
fromDetail
||
0
wx
.
navigateTo
({
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
}
`
,
});
});
},
},
// 上传图片
// 上传图片
...
@@ -195,6 +208,18 @@ Page({
...
@@ -195,6 +208,18 @@ Page({
},
},
// 上传签名到后端
// 上传签名到后端
saveToHttp
(
signUrl
)
{
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
}
this
.
toConfirmOK
()
}
})
return
}
let
para
=
{
let
para
=
{
...
this
.
httpInfo
,
...
this
.
httpInfo
,
signUrl
signUrl
...
@@ -205,7 +230,7 @@ Page({
...
@@ -205,7 +230,7 @@ Page({
if
(
res
)
{
if
(
res
)
{
this
.
maskQuery
=
para
this
.
maskQuery
=
para
const
currentDate
=
new
Date
()
const
currentDate
=
new
Date
()
const
showMaskDate
=
currentDate
.
set
Month
(
currentDate
.
getMonth
()
+
3
);
const
showMaskDate
=
currentDate
.
set
Date
(
currentDate
.
getDate
()
+
Number
(
this
.
data
.
settingDay
)
);
this
.
setData
({
this
.
setData
({
showSuccessMask
:
true
,
showSuccessMask
:
true
,
maskDate
:
new
Date
(
showMaskDate
).
format
(
'yyyy年MM月dd日'
)
maskDate
:
new
Date
(
showMaskDate
).
format
(
'yyyy年MM月dd日'
)
...
...
packageEquity/pages/signature/signature.wxml
View file @
14fcdf3
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
<view class="mask-title">申请成功</view>
<view class="mask-title">申请成功</view>
<view class="mask-main">
<view class="mask-main">
<view class="mask-text">尊敬的客户:</view>
<view class="mask-text">尊敬的客户:</view>
<view class="mask-text
">您已成功申请广汇数字无忧卡权益。本次核销
码有效期截止日期为:<text style="font-weight: 600;">{{maskDate}}</text>。</view>
<view class="mask-text
indent">您已成功申请广汇数字无忧卡权益。本次理赔
码有效期截止日期为:<text style="font-weight: 600;">{{maskDate}}</text>。</view>
<view class="mask-text">请在有效期内至广汇旗下<text style="font-weight: 600;">{{carInfo.merchantName}}</text>,将有工作人员协助您办理资料提交手续。</view>
<view class="mask-text
indent
">请在有效期内至广汇旗下<text style="font-weight: 600;">{{carInfo.merchantName}}</text>,将有工作人员协助您办理资料提交手续。</view>
<view class="mask-text">祝您用车愉快。</view>
<view class="mask-text">祝您用车愉快。</view>
</view>
</view>
<view bind:tap="toConfirmOK" class="mask-footer">好的</view>
<view bind:tap="toConfirmOK" class="mask-footer">好的</view>
...
...
packageEquity/pages/signature/signature.wxss
View file @
14fcdf3
...
@@ -157,7 +157,9 @@ page {
...
@@ -157,7 +157,9 @@ page {
font-weight: 400;
font-weight: 400;
line-height: 44rpx;
line-height: 44rpx;
}
}
.indent{
text-indent: 56rpx;
}
.mask-footer {
.mask-footer {
height: 88rpx;
height: 88rpx;
display: flex;
display: flex;
...
...
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