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
b155d0dc
Commit
b155d0dc
authored
Sep 03, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
1292e05c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
index.wxss
business/components/calendar/index.wxss
+1
-1
index.js
business/pages/calendarthemeindex/index.js
+11
-4
No files found.
business/components/calendar/index.wxss
View file @
b155d0dc
...
...
@@ -82,7 +82,7 @@
.date-area {
/* height: 80rpx; */
line-height: 1;
padding: 0 2
2
4rpx;
padding: 0 2
1
4rpx;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
...
...
business/pages/calendarthemeindex/index.js
View file @
b155d0dc
...
...
@@ -47,6 +47,7 @@ import initCalendar, {
setSelectedDays
,
getSelectedDay
,
enableArea
,
enableDays
,
jump
}
from
'../../components/calendar/main.js'
;
function
compare
(
property
)
{
...
...
@@ -293,10 +294,6 @@ Page({
})
this
.
clockMemberListGet
(
this
.
data
.
twoSmallSort
,
'init'
);
}
let
dakarole
=
LocalStorage
.
getItem
(
'dakarole'
);
if
(
dakarole
==
2
)
{
this
.
teachersPermission
();
}
},
getDetail
()
{
const
today
=
new
Date
().
getFullYear
()
+
'-'
+
(
Number
((
new
Date
().
getMonth
()
+
1
))
<
10
?
'0'
+
(
new
Date
().
getMonth
()
+
1
):(
new
Date
().
getMonth
()))
+
'-'
+
(
Number
((
new
Date
().
getDate
()))
<
10
?
'0'
+
(
new
Date
().
getDate
()):(
new
Date
().
getDate
()));
...
...
@@ -362,6 +359,13 @@ Page({
noCommentTotal
:
Number
(
data
.
not_review_count
||
0
),
})
this
.
getCircleDetail
()
const
startD
=
data
.
calendar_set
.
start_time
.
split
(
" "
)[
0
]
const
endD
=
data
.
calendar_set
.
end_time
.
split
(
" "
)[
0
]
if
(
this
.
numberDate
(
startD
)
==
this
.
numberDate
(
endD
))
{
enableDays
([
this
.
numberDate
(
startD
)])
}
else
{
enableArea
([
this
.
numberDate
(
startD
),
this
.
numberDate
(
endD
)])
}
}
}).
catch
((
err
)
=>
{
wx
.
hideLoading
()
...
...
@@ -1512,4 +1516,7 @@ Page({
})
return
_length
;
},
numberDate
(
date
)
{
return
date
.
split
(
'-'
)[
0
]
+
'-'
+
Number
(
date
.
split
(
'-'
)[
1
])
+
'-'
+
Number
(
date
.
split
(
'-'
)[
2
])
},
})
\ No newline at end of file
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