Commit 14fcdf39 by 前端

Merge branch 'SAAS+V4.41' into 'master'

上线合并

See merge request !2
2 parents 98a6e7a6 646be092
......@@ -317,6 +317,13 @@ module.exports = {
...data,
});
},
// 倒计时天数
getSettingDay(data) {
return api.post({
method: `scrm.api.equity.service.claims.order.status.update.frequency`,
...data,
});
},
// 理赔案件详情
claimsDetail(data) {
return api.post({
......
......@@ -4,7 +4,7 @@
<view class="wrapper" data-item="{{item}}" catch:tap="toDetail">
<view class="header flex_scb">
<view class="flex_sc">
<view class="label">核销码</view>
<view class="label">理赔码</view>
<view class="code">{{item.writeOffCode}}</view>
</view>
<view class="status">{{status[item.customerStatus]}}</view>
......
......@@ -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({
......
......@@ -20,7 +20,7 @@
<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>
<view class="default_text title flex_cc">核销码</view>
<view class="default_text title flex_cc">理赔码</view>
</view>
<view class="info_wrap">
<view class="widget mar26">
......@@ -86,7 +86,7 @@
</view>
<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="fixed_btn flex_cc" bind:tap="toSignPage">去确认</view> -->
<view class="fixed_btn flex_cc" bind:tap="toSignPage">去确认</view>
</view>
</view>
......
......@@ -28,6 +28,7 @@ Page({
this.contractNo = options.contractNo
this.merchantName = options.merchantName
}
this.getSettingDay()
let that = this
let query = wx.createSelectorQuery().in(this); //获取自定义组件的SelectQuery对象
this.canvasCtx = wx.createCanvasContext('signature', that)
......@@ -46,6 +47,13 @@ Page({
});
}).exec();
},
getSettingDay() {
equityApi.getSettingDay({}).then(res => {
this.setData({
settingDay: res || 0
})
})
},
scaleStart(event) {
if (event.type != 'touchstart') return false;
let currentPoint = {
......@@ -181,6 +189,19 @@ 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}
this.toConfirmOK()
}
})
return
}
let para = {
// writeOffCode: this.writeOffCode,
signUrl,
......@@ -192,7 +213,7 @@ Page({
if (res) {
this.maskQuery = para
const currentDate = new Date()
const showMaskDate = currentDate.setMonth(currentDate.getMonth() + 3);
const showMaskDate = currentDate.setDate(currentDate.getDate() + Number(this.data.settingDay));
this.setData({
showSuccessMask:true,
maskDate:new Date(showMaskDate).format('yyyy年MM月dd日'),
......
......@@ -18,8 +18,8 @@
<view class="mask-title">申请成功</view>
<view class="mask-main">
<view class="mask-text">尊敬的客户:</view>
<view class="mask-text">您已成功申请广汇数字无忧卡权益。本次核销码有效期截止日期为:<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;">{{maskDate}}</text>。</view>
<view class="mask-text indent">请在有效期内至广汇旗下<text style="font-weight: 600;">{{maskMerchant}}</text>,将有工作人员协助您办理资料提交手续。</view>
<view class="mask-text">祝您用车愉快。</view>
</view>
<view bind:tap="toConfirmOK" class="mask-footer">好的</view>
......
......@@ -117,7 +117,9 @@ page{
font-weight: 400;
line-height: 44rpx;
}
.indent{
text-indent: 56rpx;
}
.mask-footer {
height: 88rpx;
display: flex;
......
......@@ -209,7 +209,8 @@ Page({
item.showStatus = 0;
}
});
this.handlerDetailList(res[0]);
let item = JSON.parse(JSON.stringify(res[0]));
this.handlerDetailList(item);
this.setNaviTitle(queryItem.serviceShortName);
}
this.setData({
......
......@@ -16,11 +16,11 @@
</view>
</view>
</view>
<!-- 核销码 -->
<!-- 理赔码 -->
<view class="code-box">
<view class="code-info">
<view class="code-title">
<text class="code-title-left">核销码</text>
<text class="code-title-left">理赔码</text>
<text class="code-title-right">过期后需重新申请服务</text>
</view>
<view class="code-num-box">
......
......@@ -23,8 +23,13 @@ Page({
maskDate:''
},
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
......@@ -54,6 +59,13 @@ Page({
});
}).exec();
},
getSettingDay() {
equityApi.getSettingDay({}).then(res => {
this.setData({
settingDay: res || 0
})
})
},
scaleStart(event) {
if (event.type != 'touchstart') return false;
let currentPoint = {
......@@ -167,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}`,
});
},
// 上传图片
......@@ -195,6 +208,18 @@ 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}
this.toConfirmOK()
}
})
return
}
let para = {
...this.httpInfo,
signUrl
......@@ -205,7 +230,7 @@ Page({
if (res) {
this.maskQuery = para
const currentDate = new Date()
const showMaskDate = currentDate.setMonth(currentDate.getMonth() + 3);
const showMaskDate = currentDate.setDate(currentDate.getDate() + Number(this.data.settingDay));
this.setData({
showSuccessMask:true,
maskDate:new Date(showMaskDate).format('yyyy年MM月dd日')
......
......@@ -34,8 +34,8 @@
<view class="mask-title">申请成功</view>
<view class="mask-main">
<view class="mask-text">尊敬的客户:</view>
<view class="mask-text">您已成功申请广汇数字无忧卡权益。本次核销码有效期截止日期为:<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;">{{maskDate}}</text>。</view>
<view class="mask-text indent">请在有效期内至广汇旗下<text style="font-weight: 600;">{{carInfo.merchantName}}</text>,将有工作人员协助您办理资料提交手续。</view>
<view class="mask-text">祝您用车愉快。</view>
</view>
<view bind:tap="toConfirmOK" class="mask-footer">好的</view>
......
......@@ -157,7 +157,9 @@ page {
font-weight: 400;
line-height: 44rpx;
}
.indent{
text-indent: 56rpx;
}
.mask-footer {
height: 88rpx;
display: flex;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!