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
b077ea55
Commit
b077ea55
authored
Nov 03, 2020
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:列表问题
parent
89583922
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
104 additions
and
17 deletions
+104
-17
constant.js
pages/createMeeting/constant.js
+12
-0
createMeeting.acss
pages/createMeeting/createMeeting.acss
+16
-3
createMeeting.axml
pages/createMeeting/createMeeting.axml
+17
-0
createMeeting.js
pages/createMeeting/createMeeting.js
+30
-2
meetingDetail.acss
pages/meetingDetail/meetingDetail.acss
+10
-2
meetingDetail.axml
pages/meetingDetail/meetingDetail.axml
+1
-1
meetingDetail.js
pages/meetingDetail/meetingDetail.js
+8
-4
utils.js
pages/meetingDetail/utils.js
+9
-4
utils.js
utils/utils.js
+1
-1
No files found.
pages/createMeeting/constant.js
View file @
b077ea55
...
...
@@ -7,4 +7,15 @@ export const repeatList = [
{
id
:
2
,
text
:
'每周'
,
icon
:
''
,
repeatable
:
1
,
recurrenceModel
:
{
model
:
'weekly'
,
interval
:
1
,
initialTime
:
`2020-03-23`
,
terminateTime
:
`2022-03-23`
,
weekDayList
:
[
'MO'
]
}
},
{
id
:
3
,
text
:
'每周的工作日'
,
icon
:
''
,
repeatable
:
1
,
recurrenceModel
:
{
model
:
'weekly'
,
interval
:
1
,
initialTime
:
`2020-03-23`
,
terminateTime
:
`2022-03-23`
,
weekDayList
:
[
'MO'
,
'TU'
,
'WE'
,
'TH'
,
'FR'
]
}
},
{
id
:
4
,
text
:
'每月'
,
icon
:
''
,
repeatable
:
1
,
recurrenceModel
:
{
model
:
'absolute_Monthly'
,
daysOfMonth
:
[
'23'
],
interval
:
1
,
initialTime
:
`2020-03-23`
,
terminateTime
:
`2022-03-23`
,
weekDayList
:
null
}
}
]
export
const
aheadTimeList
=
[
{
id
:
-
1
,
text
:
'不提醒'
,
icon
:
'iconicon_cycle'
},
{
id
:
0
,
text
:
'会议开始时提醒'
,
icon
:
''
},
{
id
:
5
,
text
:
'提前5分钟提醒'
,
icon
:
''
},
{
id
:
15
,
text
:
'提前15分钟提醒'
,
icon
:
''
},
{
id
:
30
,
text
:
'提前30分钟提醒'
,
icon
:
''
},
{
id
:
60
,
text
:
'提前一小时提醒'
,
icon
:
''
},
{
id
:
120
,
text
:
'提前二小时提醒'
,
icon
:
''
},
{
id
:
1440
,
text
:
'提前一天提醒'
,
icon
:
''
},
{
id
:
105120
,
text
:
'提前一周提醒'
,
icon
:
''
}
]
\ No newline at end of file
pages/createMeeting/createMeeting.acss
View file @
b077ea55
...
...
@@ -61,7 +61,7 @@ input {
font-family: PingFangSC-Regular;
}
.place, .time, .participator, .meetingWay {
.place, .time, .participator, .meetingWay
, .aheadTime
{
display: flex;
padding: 0 32rpx;
font-family: PingFangSC-Regular;
...
...
@@ -70,7 +70,7 @@ input {
margin-top: 48rpx;
}
.place>.icon, .time>.icon, .participator>.icon, .meetingWay>.icon {
.place>.icon, .time>.icon, .participator>.icon, .meetingWay>.icon
, .aheadTime>.icon
{
margin-right: 24rpx;
}
...
...
@@ -86,7 +86,7 @@ input {
overflow: hidden;
}
.placeContaint, .timeContaint, .participatorContaint, .meetingWayContent {
.placeContaint, .timeContaint, .participatorContaint, .meetingWayContent
, .aheadTimeContent
{
width: 622rpx;
display: flex;
justify-content: space-between;
...
...
@@ -246,4 +246,16 @@ input {
.iconright {
font-size: 30rpx;
color: rgba(10, 10, 10, 0.3)!important;
}
.aheadTimeItem {
width: 100%;
white-space: nowrap;
overflow-x: scroll;
font-size: 34rpx;
line-height: 1.5
}
.aheadTimeText:last-child .divder {
display: none
}
\ No newline at end of file
pages/createMeeting/createMeeting.axml
View file @
b077ea55
...
...
@@ -76,6 +76,21 @@
</view>
</view>
</view>
<view class="aheadTime">
<view class="iconicon_time1 iconfont icon">
</view>
<view class="aheadTimeContent">
<view class="aheadTimeItem" onTap="handleSelectAheadTime">
<text class="aheadTimeText" a:for="{{aheadTime.aheadTimeList}}" a:if="{{aheadTime.aheadTimes.includes(item.id)}}">
{{item.text}}
<text class="divder">{{"、"}}</text>
</text>
</view>
<!--<view class="hasplace" onTap="goSelectPlace">
{{$data.locationName}}</view> -->
<view class=" icon iconfont iconicon_open"></view>
</view>
</view>
<!-- 保存 -->
<view class="save" onTap="addSchedule1">
<view class="button {{limitClick ? 'gray' : ''}}">
...
...
@@ -87,5 +102,6 @@
<popup title="{{popup.title}}" show="{{popup.show}}" mask="{{popup.mask}}" onClose="closePopup">
<meeting-time-picker a:if="{{'time' === popup.type}}" onComplete="onComplete" isIPX="{{isIPX}}"></meeting-time-picker>
<list a:if="{{popup.type=='repeat'}}" dataComList="{{repeat.repeatList}}" comSelectListId="{{repeat.selectRepeatId}}" onComSelectList="selectRepeatListItem"></list>
<list a:if="{{popup.type=='aheadTime'}}" onClose="closePopup" multiple="{{true}}" onCompelete="handleAheadTimeSave" complete="{{true}}" dataComList="{{aheadTime.aheadTimeList}}" onComSelectList="selectComList" comSelectList="{{aheadTime.aheadTimesListId}}" iconType="{{aheadTime.iconType}}"></list>
</popup>
</view>
\ No newline at end of file
pages/createMeeting/createMeeting.js
View file @
b077ea55
import
{
addSchedule
,
updateMeetingTask
,
getDeviceBySn
}
from
'../../api/request.js'
import
{
selectPeople
,
modifyTimeImpactRepeat
,
throttle
,
dealRepeatModal
,
getInterTime
,
getShowTime
,
getTwoYearToday
}
from
'./../../utils/utils.js'
import
{
checkFullScren
}
from
"../../utils/checkFullScren"
;
import
{
repeatList
,
repeatWeek
}
from
"./constant"
import
{
repeatList
,
repeatWeek
,
aheadTimeList
}
from
"./constant"
import
create
from
'dd-store'
import
pageStore
from
'../meetingDetail/store'
;
create
.
Page
({
...
...
@@ -28,6 +28,13 @@ create.Page({
placeholder
:
''
,
isIPX
:
false
,
limitClick
:
false
,
aheadTime
:
{
aheadTimeList
:
aheadTimeList
,
aheadTimes
:
[
15
],
iconType
:
'icon'
,
aheadTimesListId
:
[
15
],
},
},
onLoad
(
query
)
{
if
(
query
&&
query
.
sn
)
{
...
...
@@ -147,6 +154,26 @@ create.Page({
},
// 选择会前提醒
handleSelectAheadTime
()
{
this
.
setData
({
popup
:
{
show
:
true
,
title
:
"会前提醒"
,
mask
:
true
,
type
:
'aheadTime'
}
})
},
// 会前提醒点击完成
handleAheadTimeSave
(
event
)
{
this
.
closePopup
()
this
.
setData
({
'aheadTime.aheadTimes'
:
event
,
'aheadTime.aheadTimesListId'
:
event
,
})
},
// 关闭popup
closePopup
()
{
...
...
@@ -206,7 +233,8 @@ create.Page({
repeatable
:
this
.
data
.
repeat
.
repeatable
,
remark
:
this
.
data
.
meetingRemark
,
recurrenceModel
:
this
.
data
.
repeat
.
recurrenceModel
,
meetingWayModel
:
{
model
:
null
}
meetingWayModel
:
{
model
:
null
},
aheadTimes
:
this
.
data
.
aheadTime
.
aheadTimesListId
}
const
res
=
await
addSchedule
(
data
).
catch
(
err
=>
{
this
.
setData
({
limitClick
:
false
});
...
...
pages/meetingDetail/meetingDetail.acss
View file @
b077ea55
...
...
@@ -332,8 +332,8 @@ input {
.headUrl>image {
vertical-align: top;
width:
100%
;
height:
100%
;
width:
80rpx
;
height:
80rpx
;
border-radius: 50%;
}
...
...
@@ -747,4 +747,11 @@ input {
.text:last-child {
padding-right: 0;
border-right: none;
}
.disableSelectAheadTime {
/* cursor: no-drop; */
/* background: #f5f6f7; */
/* background: #ccc; */
color: (10, 10, 10, 0.3)
}
\ No newline at end of file
pages/meetingDetail/meetingDetail.axml
View file @
b077ea55
...
...
@@ -143,7 +143,7 @@
</view>
<!--参加状态-->
<view class="participateStatus" a:if="{{confirmAttendance === 1}}">
<view class="remind
" catchTap="handleAheadTime
" data-type="aheadTime">
<view class="remind
{{organizer == currentPeople ? '' : 'disableSelectAheadTime'}}" catchTap="{{organizer == currentPeople ? 'handleAheadTime' : '' }}
" data-type="aheadTime">
<text class="iconfont iconicon_time1"></text>
<text class="remindTimeContaint" a:if="{{aheadTime.aheadTimes.length}}">
<block class="remindTime" decode="{{true}}" a:for="{{aheadTime.aheadTimeList}}" a:if="{{aheadTime.aheadTimes.includes(item.id)}}">
...
...
pages/meetingDetail/meetingDetail.js
View file @
b077ea55
...
...
@@ -859,12 +859,15 @@ create.Page({
if
(
res
.
data
.
code
!==
0
)
{
return
}
if
(
_that
.
data
.
currentPeople
===
_that
.
data
.
organizer
)
{
_that
.
setData
({
'aheadTime.aheadTimes'
:
[
15
],
'aheadTime.aheadTimesListId'
:
[
15
],
})
}
_that
.
setData
({
'aheadTime.aheadTimes'
:
[
15
],
'aheadTime.aheadTimesListId'
:
[
15
],
confirmAttendance
:
dataParticipate
.
value
})
_that
.
$store
.
data
.
participatorList
[
_that
.
data
.
currentPeople
].
confirmAttendance
=
dataParticipate
.
value
_that
.
$store
.
data
.
showParticipatorList
=
Object
.
values
(
_that
.
$store
.
data
.
participatorList
)
_that
.
$store
.
data
.
originUsers
=
[...
_that
.
$store
.
data
.
showParticipatorList
]
...
...
@@ -1374,7 +1377,8 @@ create.Page({
this
.
update
()
},
// 图片加载完成
imageLoad
()
{
imageLoad
(
event
)
{
// debugger
},
...
...
pages/meetingDetail/utils.js
View file @
b077ea55
...
...
@@ -17,10 +17,15 @@ export function getSelectRepeatId(recurrenceModel, repeatList) {
export
function
getInitialPsarticipants
(
participants
)
{
let
people
=
{}
for
(
let
i
=
0
;
i
<
participants
.
length
;
i
++
)
{
if
(
i
<
11
&&
participants
[
i
].
headUrl
)
{
let
img
=
new
new
Image
()
img
.
src
=
img
.
headUrl
}
// if (i < 11 && participants[i].participator && participants[i].participator.headUrl) {
// console.log(participants[i].participator.headUrl)
// // console.log(new Image)
// // let img = new Image()
// // img.onload = function () {
// // // console.log(participants[i].participator.headUrl)
// // img.src = participants[i].participator.headUrl
// // };
// }
participants
[
i
].
participator
.
confirmAttendance
=
participants
[
i
].
confirmAttendance
people
[
participants
[
i
].
participator
.
userId
]
=
participants
[
i
].
participator
}
...
...
utils/utils.js
View file @
b077ea55
...
...
@@ -299,7 +299,7 @@ export function selectedelRequired(select, require) {
// 文件格式化
export
function
renderSize
(
value
)
{
if
(
null
==
value
||
value
==
''
||
value
==
0
)
{
return
"
0 B
"
;
return
""
;
}
var
unitArr
=
new
Array
(
"B"
,
"K"
,
"M"
,
"G"
,
"T"
,
"P"
,
"E"
,
"Z"
,
"Y"
);
var
index
=
0
;
...
...
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