浏览代码

【功能修复】领取优惠劵在 validityType = 1 时(固定日期),展示不正确的问题

YunaiV 9 月之前
父节点
当前提交
0213a4b88a
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      sheep/components/s-activity-pop/s-activity-pop.vue

+ 3 - 2
sheep/components/s-activity-pop/s-activity-pop.vue

@@ -57,8 +57,9 @@
               <view class="ss-m-b-24 cotBu-txt">
                 {{
                   item.validityType == 1
-                    ? sheep.$helper.timeFormat(item.validStartTime, 'yyyy.mm.dd') -
-                      sheep.$helper.timeFormat(item.validEndTime, 'yyyy.mm.dd')
+                    ? sheep.$helper.timeFormat(item.validStartTime, 'yyyy-mm-dd') +
+                      '-' +
+                      sheep.$helper.timeFormat(item.validEndTime, 'yyyy-mm-dd')
                     : '领取后' + item.fixedStartTerm + '-' + item.fixedEndTerm + '天可用'
                 }}
               </view>