Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
53bec5dc
Commit
53bec5dc
authored
May 13, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddd
parent
c2fa4c08
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
12 deletions
+19
-12
index.js
business/pages/calendarthemeindex/index.js
+1
-1
index.js
src/components/clockitem/index.js
+2
-0
index.js
src/pages/calendarthemeindex/index.js
+15
-10
index.wxml
src/pages/calendarthemeindex/index.wxml
+1
-1
No files found.
business/pages/calendarthemeindex/index.js
View file @
53bec5dc
...
...
@@ -1468,5 +1468,5 @@ Page({
wx
.
navigateTo
({
url
:
`/business/pages/calendarclock/index?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
tid
}
&sid=
${
this
.
data
.
sid
}
&clockdate=
${
clockdate
}
`
})
}
}
,
})
\ No newline at end of file
src/components/clockitem/index.js
View file @
53bec5dc
...
...
@@ -223,6 +223,7 @@ Component({
tid
:
that
.
data
.
tid
,
cid
:
that
.
data
.
clock
.
id
,
})
that
.
triggerEvent
(
'delActiveDClock'
)
}
},
fail
(
res
)
{
...
...
@@ -238,6 +239,7 @@ Component({
this
.
triggerEvent
(
'delClock'
,
{
cid
:
params
.
cid
})
this
.
triggerEvent
(
'delActiveDClock'
)
}
})
},
...
...
src/pages/calendarthemeindex/index.js
View file @
53bec5dc
...
...
@@ -479,8 +479,8 @@ Page({
let
fixdate
=
res
.
datetime
.
split
(
" "
)[
0
]
// 定位到日期
if
(
nowTime
>=
startTime
&&
nowTime
<=
endTime
)
{
data
.
themeStatus
=
1
;
// 进行中
if
(
this
.
data
.
d
)
{
fixdate
=
'20'
+
this
.
data
.
d
.
slice
(
0
,
2
)
+
'-'
+
this
.
data
.
d
.
slice
(
2
,
4
)
+
'-'
+
this
.
data
.
d
.
slice
(
4
,
6
)
if
(
this
.
data
.
d
)
{
fixdate
=
'20'
+
this
.
data
.
d
.
slice
(
0
,
2
)
+
'-'
+
this
.
data
.
d
.
slice
(
2
,
4
)
+
'-'
+
this
.
data
.
d
.
slice
(
4
,
6
)
}
}
else
if
(
nowTime
<
startTime
)
{
// data.operationDate=[]
...
...
@@ -489,12 +489,12 @@ Page({
// enableDays([])
}
else
{
data
.
themeStatus
=
3
// 未已结束
if
(
this
.
data
.
d
)
{
fixdate
=
'20'
+
this
.
data
.
d
.
slice
(
0
,
2
)
+
'-'
+
this
.
data
.
d
.
slice
(
2
,
4
)
+
'-'
+
this
.
data
.
d
.
slice
(
4
,
6
)
}
else
{
if
(
this
.
data
.
d
)
{
fixdate
=
'20'
+
this
.
data
.
d
.
slice
(
0
,
2
)
+
'-'
+
this
.
data
.
d
.
slice
(
2
,
4
)
+
'-'
+
this
.
data
.
d
.
slice
(
4
,
6
)
}
else
{
fixdate
=
data
.
calendar_set
.
end_time
.
split
(
" "
)[
0
]
}
// data.operationDate=[startD,endD]
}
if
(
this
.
numberDate
(
startD
)
==
this
.
numberDate
(
endD
))
{
...
...
@@ -999,8 +999,7 @@ Page({
}
}
},
shareFriend
()
{
},
shareFriend
()
{},
// generatePoster () {
// },
// 设置昵称相关
...
...
@@ -1728,7 +1727,7 @@ Page({
activeDay
:
_activeDay
,
hasmore
:
true
,
clockPage
:
1
},
()
=>
{
},
()
=>
{
this
.
clockListGet
(
'init'
);
this
.
selfClockGet
();
})
...
...
@@ -1813,7 +1812,7 @@ Page({
hasmore
:
true
,
clockPage
:
1
})
},
compareTime
(
date1
,
date2
,
type
)
{
// date2比date1大
...
...
@@ -2375,5 +2374,11 @@ Page({
}
})
})
},
// 删除打卡
delActiveDClock
()
{
this
.
setData
({
"activeDay.isClock"
:
false
})
}
})
\ No newline at end of file
src/pages/calendarthemeindex/index.wxml
View file @
53bec5dc
...
...
@@ -262,7 +262,7 @@
headerclick="{{true}}" bind:playvoice="playvoice" bind:pausevoice="pausevoice"
bind:voiceslide="voiceslide" audioStorage="{{audioStorage}}" bind:slidestart="slidestart"
bind:slideend="slideend" bind:videoplay="videoplay" bind:delEvaluate="selfDelEvaluate"
bind:showcommenteditor="showcommenteditor" bind:playvideo="playvideo">
bind:showcommenteditor="showcommenteditor" bind:playvideo="playvideo"
bind:delActiveDClock="delActiveDClock"
>
</clock-item>
</view>
<view class="sign-count-box" hover-class="none" hover-stop-propagation="false">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment