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
8ec9ff17
Commit
8ec9ff17
authored
Apr 08, 2020
by
xiexiaoqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: time picker every time didmount
parent
ba8416cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
meetingTimePicker.js
components/meetingTimePicker/meetingTimePicker.js
+4
-4
meetingDetail.axml
pages/meetingDetail/meetingDetail.axml
+2
-2
No files found.
components/meetingTimePicker/meetingTimePicker.js
View file @
8ec9ff17
import
{
getInterTime
}
from
'../../utils/utils'
;
import
{
getInterTime
}
from
'../../utils/utils'
;
const
currentDate
=
new
Date
();
const
currentDate
=
new
Date
();
const
weekList
=
[
'周日'
,
'周一'
,
'周二'
,
'周三'
,
'周四'
,
'周五'
,
'周六'
];
const
weekList
=
[
'周日'
,
'周一'
,
'周二'
,
'周三'
,
'周四'
,
'周五'
,
'周六'
];
const
durationList
=
[{
value
:
60
,
label
:
'1小时'
},
{
value
:
120
,
label
:
'2小时'
},
{
value
:
30
,
label
:
'30分钟
'
}];
const
durationList
=
[{
value
:
30
,
label
:
'30分钟'
},
{
value
:
60
,
label
:
'1小时'
},
{
value
:
120
,
label
:
'2小时
'
}];
const
timeData
=
generateDate
(
365
);
const
timeData
=
generateDate
(
365
);
const
timeHour
=
generateHour
(
24
);
const
timeHour
=
generateHour
(
24
);
const
timeMin
=
generateMin
(
60
);
const
timeMin
=
generateMin
(
60
);
...
@@ -160,7 +160,7 @@ Component({
...
@@ -160,7 +160,7 @@ Component({
showTime
:
''
,
showTime
:
''
,
},
},
duration
:
{
duration
:
{
pickValue
:
[
2
],
pickValue
:
[
0
],
showTime
:
''
,
showTime
:
''
,
label
:
'30分钟'
,
label
:
'30分钟'
,
},
},
...
@@ -176,7 +176,8 @@ Component({
...
@@ -176,7 +176,8 @@ Component({
},
},
didUpdate
()
{
didUpdate
()
{
},
},
didUnmount
()
{
},
didUnmount
()
{
},
methods
:
{
methods
:
{
//设置初始值
//设置初始值
setInitialValue
()
{
setInitialValue
()
{
...
@@ -193,7 +194,6 @@ Component({
...
@@ -193,7 +194,6 @@ Component({
if
(
this
.
props
.
endTime
)
{
if
(
this
.
props
.
endTime
)
{
endDate
=
new
Date
(
this
.
props
.
endTime
);
endDate
=
new
Date
(
this
.
props
.
endTime
);
}
}
console
.
log
(
this
.
props
)
this
.
changeStart
(
startDate
);
this
.
changeStart
(
startDate
);
this
.
changeEnd
(
endDate
);
this
.
changeEnd
(
endDate
);
...
...
pages/meetingDetail/meetingDetail.axml
View file @
8ec9ff17
...
@@ -228,13 +228,13 @@
...
@@ -228,13 +228,13 @@
</view>
</view>
</block>
</block>
<view a:else>正在加载</view>
<view a:else>正在加载</view>
<popup title="{{popupTitle}}" show="{{popupShow}}" mask="true" onClose="closePopup">
<popup
a:if="{{popupShow}}"
title="{{popupTitle}}" show="{{popupShow}}" mask="true" onClose="closePopup">
<meeting-time-picker a:if="{{'time' === comType}}" onComplete="onComplete" startTime="{{$data.startTime}}" endTime="{{$data.endTime}}"></meeting-time-picker>
<meeting-time-picker a:if="{{'time' === comType}}" onComplete="onComplete" startTime="{{$data.startTime}}" endTime="{{$data.endTime}}"></meeting-time-picker>
<hlist a:if="{{'participator' === comType}}" dataComList="{{comHListData.contactData}}" onSelectComHList="selectComHList"></hlist>
<hlist a:if="{{'participator' === comType}}" dataComList="{{comHListData.contactData}}" onSelectComHList="selectComHList"></hlist>
<list multiple="{{comListData.multiple}}" onCompelete="selectAheadtimes" comSelectList="{{comListData.aheadTimesListId}}" complete="{{comType=='aheadTime' ? true : false}}"a:if="{{comType=='repeat' || comType=='meetingWayModel' || comType=='aheadTime'}}" dataComList="{{comType=='repeat' ? comListData.repeatList : (comType=='aheadTime' ? comListData.aheadTimesList : comListData.meetingWayList)}}" onComSelectList="selectComList" comSelectListId="{{comType=='repeat' ? comListData.comSelectListId : (comType=='aheadTime'?comListData.aheadTimesListId : comListData.meetingWayModelId)}}" iconType="{{comListData.iconType}}">
<list multiple="{{comListData.multiple}}" onCompelete="selectAheadtimes" comSelectList="{{comListData.aheadTimesListId}}" complete="{{comType=='aheadTime' ? true : false}}"a:if="{{comType=='repeat' || comType=='meetingWayModel' || comType=='aheadTime'}}" dataComList="{{comType=='repeat' ? comListData.repeatList : (comType=='aheadTime' ? comListData.aheadTimesList : comListData.meetingWayList)}}" onComSelectList="selectComList" comSelectListId="{{comType=='repeat' ? comListData.comSelectListId : (comType=='aheadTime'?comListData.aheadTimesListId : comListData.meetingWayModelId)}}" iconType="{{comListData.iconType}}">
</list>
</list>
</popup>
</popup>
<popup show="{{show}}" onClose="closePop" title="{{pop.title}}">
<popup
a:if="{{show}}"
show="{{show}}" onClose="closePop" title="{{pop.title}}">
<!-- 任务创建弹出框 -->
<!-- 任务创建弹出框 -->
<task-panel a:if="{{pop.type === 'createTask'}}" onComplete="complete" action='create'/>
<task-panel a:if="{{pop.type === 'createTask'}}" onComplete="complete" action='create'/>
<!-- 任务修改弹出框 -->
<!-- 任务修改弹出框 -->
...
...
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