Commit 646be092 by zhangquan

修复bug

1 parent 7b1523a8
...@@ -213,7 +213,7 @@ Page({ ...@@ -213,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.setDate(currentDate.getDate() + this.data.settingDay); const showMaskDate = currentDate.setDate(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日'),
......
...@@ -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>
......
...@@ -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;
......
...@@ -230,7 +230,7 @@ Page({ ...@@ -230,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.setDate(currentDate.getDate() + this.data.settingDay); const showMaskDate = currentDate.setDate(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日')
......
...@@ -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>
......
...@@ -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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!