Commit 4447929c by 张晓玮

Merge branch 'zhangxw_dev_3.0' into 'v3.0'

ios 获取时间戳new Date 兼容性问题

See merge request !79
2 parents fcbd339c fe7af718
...@@ -114,7 +114,7 @@ Page({ ...@@ -114,7 +114,7 @@ Page({
if (res.code == '0'){ if (res.code == '0'){
this.toLogin() this.toLogin()
}else{ }else{
wx.$api.showToast(message || '系统异常') wx.$api.showToast(res.message || '系统异常')
} }
}) })
// //
......
...@@ -71,7 +71,7 @@ Component({ ...@@ -71,7 +71,7 @@ Component({
v.forEach(k => { v.forEach(k => {
k.time = (new Date(k.activityTime).getMonth() + 1).toString().padStart(2, "0") + "月" + new Date(k.activityTime).getDate().toString().padStart(2, "0") + "日" k.time = (new Date(k.activityTime).getMonth() + 1).toString().padStart(2, "0") + "月" + new Date(k.activityTime).getDate().toString().padStart(2, "0") + "日"
k.ind = ind k.ind = ind
if (d.getTime() > new Date(`${k.activityTime} 23:59:59`).getTime()) k.status = 2 if (d.getTime() > new Date(`${k.activityTime.replace(/-/g,'/')} 23:59:59`).getTime()) k.status = 2
if (nowDate == k.time) { if (nowDate == k.time) {
val.calenderActiveIndex = index val.calenderActiveIndex = index
this.setData({activeDateIndex : ind}) this.setData({activeDateIndex : ind})
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<block wx:if="{{nothing}}"> <block wx:if="{{nothing}}">
<view class="list-nothing to-bottom"></view> <view class="list-nothing to-bottom"></view>
</block> </block>
<view class="canvas-box"> <!-- <view class="canvas-box">
<canvas type="2d" style="width:352rpx;height:352rpx;background:#fff;" id="mycanvas" /> <canvas type="2d" style="width:352rpx;height:352rpx;background:#fff;" id="mycanvas" />
</view> </view> -->
</view> </view>
...@@ -85,7 +85,7 @@ Page({ ...@@ -85,7 +85,7 @@ Page({
v.forEach(k => { v.forEach(k => {
k.time = (new Date(k.activityTime).getMonth() + 1).toString().padStart(2, "0") + "月" + new Date(k.activityTime).getDate().toString().padStart(2, "0") + "日" k.time = (new Date(k.activityTime).getMonth() + 1).toString().padStart(2, "0") + "月" + new Date(k.activityTime).getDate().toString().padStart(2, "0") + "日"
k.ind = ind k.ind = ind
if (d.getTime() > new Date(`${k.activityTime} 23:59:59`).getTime()) k.status = 2 if (d.getTime() > new Date(`${k.activityTime.replace(/-/g,'/')} 23:59:59`).getTime()) k.status = 2
if (nowDate == k.time) { if (nowDate == k.time) {
val.calenderActiveIndex = index val.calenderActiveIndex = index
this.setData({activeDateIndex: ind}) this.setData({activeDateIndex: ind})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!