Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4447929c
authored
Oct 26, 2022
by
张晓玮
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'zhangxw_dev_3.0' into 'v3.0'
ios 获取时间戳new Date 兼容性问题 See merge request
!79
2 parents
fcbd339c
fe7af718
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
pages/authentication/registerInfo/registerInfo.js
pages/tab/index/components/activeBox/activeBox.js
pages/tab/index/components/activeBox/activeBox.wxml
pages/tab/index/index.js
pages/authentication/registerInfo/registerInfo.js
View file @
4447929
...
@@ -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
||
'系统异常'
)
}
}
})
})
//
//
...
...
pages/tab/index/components/activeBox/activeBox.js
View file @
4447929
...
@@ -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
})
...
...
pages/tab/index/components/activeBox/activeBox.wxml
View file @
4447929
...
@@ -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>
pages/tab/index/index.js
View file @
4447929
...
@@ -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
})
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment