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
0c296bb2
Commit
0c296bb2
authored
Apr 03, 2020
by
xiexiaoqin
Browse files
Options
Browse Files
Download
Plain Diff
fix
parents
8deba1e5
43205c47
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
myDynamic.acss
PageComponents/myDynamic/myDynamic.acss
+0
-1
scheduleList.js
PageComponents/scheduleList/scheduleList.js
+9
-10
index.axml
pages/index/index.axml
+1
-1
index.js
pages/index/index.js
+9
-8
exampleStore.js
stores/exampleStore.js
+2
-1
No files found.
PageComponents/myDynamic/myDynamic.acss
View file @
0c296bb2
@import "../../template/affairBlank/index.acss";
.dynamicBox {
height: 100vh;
width: 100%;
overflow: hidden;
box-sizing: border-box;
...
...
PageComponents/scheduleList/scheduleList.js
View file @
0c296bb2
...
...
@@ -34,6 +34,9 @@ create.Component({
userName
:
getApp
().
globalData
.
name
}
});
this
.
$store
.
locationSchedule
=
()
=>
{
this
.
locationScheduleList
();
};
},
didUpdate
()
{
if
(
this
.
props
.
update
)
{
...
...
@@ -41,13 +44,10 @@ create.Component({
this
.
update
();
this
.
getDate
();
}
if
(
!
this
.
props
.
update
&&
this
.
$store
.
data
.
isLocation
)
{
this
.
changeLocation
();
}
},
didUnmount
()
{
},
didUnmount
()
{},
methods
:
{
getDate
:
throttle
(
function
(
e
)
{
getDate
:
throttle
(
function
(
e
)
{
let
data
=
{
startTime
:
"2020-01-01 00:00:00"
,
endTime
:
"2025-12-30 23:59:59"
...
...
@@ -77,7 +77,7 @@ create.Component({
);
});
},
1000
),
nextDetail
:
throttle
(
function
(
e
)
{
nextDetail
:
throttle
(
function
(
e
)
{
let
item
=
e
.
target
.
dataset
.
item
;
dd
.
navigateTo
({
url
:
`./../meetingDetail/meetingDetail?scheduleItem=
${
JSON
.
stringify
(
...
...
@@ -234,7 +234,7 @@ create.Component({
);
}
});
scheduleMap
.
forEach
(
function
(
value
,
key
,
map
)
{
scheduleMap
.
forEach
(
function
(
value
,
key
,
map
)
{
scheduleList
.
push
(
value
);
});
return
scheduleList
;
...
...
@@ -372,7 +372,7 @@ create.Component({
value
:
year
});
let
thisDay
=
new
Date
().
toLocaleDateString
();
DateMap
.
forEach
(
function
(
value
,
key
,
map
)
{
DateMap
.
forEach
(
function
(
value
,
key
,
map
)
{
const
keyDate
=
new
Date
(
key
);
if
(
keyDate
.
getDay
()
===
0
&&
...
...
@@ -507,7 +507,7 @@ create.Component({
nextPage
()
{
dd
.
navigateTo
({
url
:
"./../createMeeting/createMeeting"
});
},
changeLocation
()
{
locationScheduleList
()
{
this
.
setData
(
{
todayStr
:
""
...
...
@@ -518,7 +518,6 @@ create.Component({
});
this
.
$store
.
data
.
isLocation
=
false
;
this
.
update
();
console
.
log
(
"更新完毕"
);
}
);
}
...
...
pages/index/index.axml
View file @
0c296bb2
...
...
@@ -3,7 +3,7 @@
</my-dynamic>
</view>
<view a:if="{{tabBarIndex === '1'}}">
<my-schedule
isLocation="{{isLocation}}"
update="{{$data.indexNeedUpdate}}">
<my-schedule update="{{$data.indexNeedUpdate}}">
</my-schedule>
</view>
<view class="tabBar">
...
...
pages/index/index.js
View file @
0c296bb2
...
...
@@ -13,8 +13,8 @@ create.Page({
iconDay
:
iconDay
});
dd
.
setNavigationBar
({
title
:
'动态'
})
title
:
"动态"
})
;
},
onShow
()
{
setTimeout
(
res
=>
{
...
...
@@ -27,24 +27,25 @@ create.Page({
this
.
setData
({
tabBarIndex
:
e
.
currentTarget
.
dataset
.
tabbar
});
let
title
=
'动态'
let
title
=
"动态"
;
switch
(
e
.
currentTarget
.
dataset
.
tabbar
)
{
case
'0'
:
title
=
'动态177'
;
break
;
case
'1'
:
title
=
'日程'
;
case
"1"
:
title
=
"日程"
;
break
;
}
dd
.
setNavigationBar
({
title
:
title
})
})
;
if
(
nowtabBarIndex
===
e
.
currentTarget
.
dataset
.
tabbar
&&
e
.
currentTarget
.
dataset
.
tabbar
===
"1"
)
{
this
.
$store
.
data
.
isLocation
=
true
;
this
.
update
();
if
(
!
this
.
$store
.
data
.
indexNeedUpdate
)
{
this
.
$store
.
locationSchedule
();
}
}
},
createMeeting
()
{
...
...
stores/exampleStore.js
View file @
0c296bb2
...
...
@@ -9,7 +9,7 @@ class Store {
originUsersId
:
[],
originalData
:
null
,
indexNeedUpdate
:
false
,
isLocation
:
false
locationSchedule
:
()
=>
{}
}
}
export
default
new
Store
()
\ 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