Commit b150ad3c by zhangquan

需求开发

1 parent 98a6e7a6
......@@ -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>
......
......@@ -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 = {
......@@ -192,7 +200,7 @@ Page({
if (res) {
this.maskQuery = para
const currentDate = new Date()
const showMaskDate = currentDate.setMonth(currentDate.getMonth() + 3);
const showMaskDate = currentDate.setDate(currentDate.getDate() + this.data.settingDay);
this.setData({
showSuccessMask:true,
maskDate:new Date(showMaskDate).format('yyyy年MM月dd日'),
......
......@@ -18,7 +18,7 @@
<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;">{{maskDate}}</text>。</view>
<view class="mask-text">请在有效期内至广汇旗下<text style="font-weight: 600;">{{maskMerchant}}</text>,将有工作人员协助您办理资料提交手续。</view>
<view class="mask-text">祝您用车愉快。</view>
</view>
......
......@@ -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,6 +23,7 @@ Page({
maskDate:''
},
onLoad(options) {
this.getSettingDay()
let carInfo = JSON.parse(decodeURIComponent(options.carInfo))
this.httpInfo = JSON.parse(decodeURIComponent(options.http))
// 跳全屏用到参数
......@@ -54,6 +55,13 @@ Page({
});
}).exec();
},
getSettingDay() {
equityApi.getSettingDay({}).then(res => {
this.setData({
settingDay: res || 0
})
})
},
scaleStart(event) {
if (event.type != 'touchstart') return false;
let currentPoint = {
......@@ -205,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() + this.data.settingDay);
this.setData({
showSuccessMask:true,
maskDate:new Date(showMaskDate).format('yyyy年MM月dd日')
......
......@@ -34,7 +34,7 @@
<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;">{{maskDate}}</text>。</view>
<view class="mask-text">请在有效期内至广汇旗下<text style="font-weight: 600;">{{carInfo.merchantName}}</text>,将有工作人员协助您办理资料提交手续。</view>
<view class="mask-text">祝您用车愉快。</view>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!