Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
Overview
Overview
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
fengzhaoyu
schedule
Commits
8548e2b2
Commit
8548e2b2
authored
Apr 02, 2020
by
liang ce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图标删除冗余代码
parent
3f4821d7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
25 deletions
+39
-25
scheduleList.js
PageComponents/scheduleList/scheduleList.js
+6
-16
index.acss
pages/index/index.acss
+20
-4
index.axml
pages/index/index.axml
+9
-5
index.js
pages/index/index.js
+4
-0
No files found.
PageComponents/scheduleList/scheduleList.js
View file @
8548e2b2
...
...
@@ -18,10 +18,6 @@ create.Component({
thisYear
:
""
,
maxYear
:
""
,
minYear
:
""
,
startPageOnLoad
:
false
,
startPageOnShow
:
false
,
isFirstLoad
:
true
,
isShowSidebar
:
""
,
pageStartTime
:
""
,
pageEndTime
:
""
,
show
:
false
,
...
...
@@ -31,7 +27,6 @@ create.Component({
},
props
:
{},
didMount
()
{
console
.
log
(
getApp
().
globalData
);
this
.
getDate
();
this
.
setData
({
userMsg
:
{
...
...
@@ -62,6 +57,7 @@ create.Component({
},
()
=>
{
let
now
=
new
Date
();
console
.
log
(
now
.
getTime
());
let
year
=
now
.
getFullYear
();
let
scheduleList
=
[];
for
(
let
i
=
0
;
i
<=
year
-
2019
;
i
++
)
{
...
...
@@ -76,16 +72,11 @@ create.Component({
scheduleList
:
scheduleList
,
todayStr
:
finalDate
.
toLocaleDateString
(),
thisYear
:
year
,
maxYear
:
year
,
startPageOnShow
:
true
,
isFirstLoad
:
false
}
// ,
// () => {
// that.setData({
// });
// }
maxYear
:
year
},
()
=>
{
console
.
log
(
new
Date
().
getTime
());
}
);
}
);
...
...
@@ -159,7 +150,6 @@ create.Component({
:
initialTimeDate
.
getDate
();
let
startTimeList
=
item
.
startTime
.
split
(
":"
);
let
DTSTART
=
`
${
initialTimeDateyear
}${
initialTimeDatemonth
}${
initialTimeDateday
}
T
${
startTimeList
[
0
]}${
startTimeList
[
1
]}
00Z`
;
console
.
log
(
DTSTART
);
let
rule
=
RRule
.
fromString
(
`
${
item
.
recurrenceModel
.
recurrenceRule
}
;DTSTART=
${
DTSTART
}
`
);
...
...
pages/index/index.acss
View file @
8548e2b2
...
...
@@ -56,23 +56,38 @@
height: 116rpx;
}
.tabBarView
text
{
.tabBarView
>view
{
display: block;
color: rgba(10, 10, 10, .4)
}
.tabBarView
text
:nth-of-type(1) {
.tabBarView
>view
:nth-of-type(1) {
width: 42rpx;
height: 42rpx;
font-size: 42rpx;
margin-bottom: 11rpx;
}
.tabBarView
text
:nth-of-type(2) {
.tabBarView
>view
:nth-of-type(2) {
height: 10rpx;
font-size: 20rpx;
}
.ischooseTabBar
text
{
.ischooseTabBar
>view
{
color: rgba(10, 10, 10, 1) !important;
}
.iconicon_Calendarbox1 {
position: relative;
}
.iconicon_days {
position: absolute;
left: 5rpx;
top: 5rpx;
font-size: 30rpx;
}
.tabBarView .iconicon_days {
color: #FFFFFF !important;
}
\ No newline at end of file
pages/index/index.axml
View file @
8548e2b2
...
...
@@ -9,17 +9,20 @@
<view class="tabBar">
<view onTap="changeTabBar" data-tabbar='0'>
<view class="tabBarView {{tabBarIndex === '0' ? 'ischooseTabBar' : ''}}">
<
text class="iconfont iconicon_dynamic"></text
>
<
text>动态</text
>
<
view class="iconfont iconicon_dynamic"></view
>
<
view>动态</view
>
</view>
</view>
<view onTap="changeTabBar" data-tabbar='1'>
<view class="tabBarView {{tabBarIndex === '1' ? 'ischooseTabBar' : ''}}">
<text class="iconfont iconicon_Calendarbox1"></text>
<text>日程</text>
<view class="iconfont iconicon_Calendarbox1">
<text class="iconfont iconicon_days iconicon_days{{iconDay}}">
</text>
</view>
<view>日程</view>
</view>
</view>
<view class="createMeeting" onTap="createMeeting">
<
text class="iconfont iconicon_add1"></text
>
<
view class="iconfont iconicon_add1"></view
>
</view>
</view>
\ No newline at end of file
pages/index/index.js
View file @
8548e2b2
...
...
@@ -6,6 +6,10 @@ create.Page({
$data
:
null
,
},
onLoad
()
{
let
iconDay
=
new
Date
().
getDate
()
this
.
setData
({
iconDay
:
iconDay
})
},
onShow
()
{
setTimeout
(
res
=>
{
...
...
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