Commit d485a614 by fengzhaoyu

修改问题

parent f4bf6607
...@@ -47,9 +47,9 @@ create.Component({ ...@@ -47,9 +47,9 @@ create.Component({
this.getDate(); this.getDate();
} }
}, },
didUnmount() {}, didUnmount() { },
methods: { methods: {
getDate: throttle(function(e) { getDate: throttle(function (e) {
let data = { let data = {
startTime: "2020-01-01 00:00:00", startTime: "2020-01-01 00:00:00",
endTime: "2025-12-30 23:59:59" endTime: "2025-12-30 23:59:59"
...@@ -79,7 +79,7 @@ create.Component({ ...@@ -79,7 +79,7 @@ create.Component({
); );
}); });
}, 1000), }, 1000),
nextDetail: throttle(function(e) { nextDetail: throttle(function (e) {
let item = e.target.dataset.item; let item = e.target.dataset.item;
dd.navigateTo({ dd.navigateTo({
url: `./../meetingDetail/meetingDetail?scheduleItem=${JSON.stringify( url: `./../meetingDetail/meetingDetail?scheduleItem=${JSON.stringify(
...@@ -204,8 +204,8 @@ create.Component({ ...@@ -204,8 +204,8 @@ create.Component({
item.recurrenceModel.startTime; item.recurrenceModel.startTime;
let endTime = new Date( let endTime = new Date(
getFormatDate(item2, "yyyyMMdd") + getFormatDate(item2, "yyyyMMdd") +
" " + " " +
item.recurrenceModel.startTime item.recurrenceModel.startTime
); );
endTime.setMinutes( endTime.setMinutes(
endTime.getMinutes() + item.recurrenceModel.duration endTime.getMinutes() + item.recurrenceModel.duration
...@@ -240,7 +240,7 @@ create.Component({ ...@@ -240,7 +240,7 @@ create.Component({
); );
} }
}); });
scheduleMap.forEach(function(value, key, map) { scheduleMap.forEach(function (value, key, map) {
scheduleList.push(value); scheduleList.push(value);
}); });
return scheduleList; return scheduleList;
...@@ -322,9 +322,9 @@ create.Component({ ...@@ -322,9 +322,9 @@ create.Component({
thisDayEndTime: AllScheduleList[y].endTime.slice(11, 16), thisDayEndTime: AllScheduleList[y].endTime.slice(11, 16),
isBeOverdue: isBeOverdue:
new Date().getTime() > new Date().getTime() >
new Date( new Date(
AllScheduleList[y].endTime.replace(/-/g, "/") AllScheduleList[y].endTime.replace(/-/g, "/")
).getTime() ).getTime()
? true ? true
: false : false
}); });
...@@ -359,9 +359,9 @@ create.Component({ ...@@ -359,9 +359,9 @@ create.Component({
duration: count + 1, duration: count + 1,
isBeOverdue: isBeOverdue:
new Date().getTime() > new Date().getTime() >
new Date( new Date(
AllScheduleList[y].endTime.replace(/-/g, "/") AllScheduleList[y].endTime.replace(/-/g, "/")
).getTime() ).getTime()
? true ? true
: false : false
}); });
...@@ -378,7 +378,7 @@ create.Component({ ...@@ -378,7 +378,7 @@ create.Component({
value: year value: year
}); });
let thisDay = new Date().toLocaleDateString(); let thisDay = new Date().toLocaleDateString();
DateMap.forEach(function(value, key, map) { DateMap.forEach(function (value, key, map) {
if ( if (
new Date(key).getDay() === 0 && new Date(key).getDay() === 0 &&
that.count( that.count(
...@@ -404,7 +404,7 @@ create.Component({ ...@@ -404,7 +404,7 @@ create.Component({
type: "week", type: "week",
value: `第${listWeek}周,${rangeMonth1 + 1}${rangeDay1}日 - ${ value: `第${listWeek}周,${rangeMonth1 + 1}${rangeDay1}日 - ${
rangeMonth2 == rangeMonth1 ? "" : rangeMonth2 + 1 + "月" rangeMonth2 == rangeMonth1 ? "" : rangeMonth2 + 1 + "月"
}${rangeDay2}日`, }${rangeDay2}日`,
dayStr: key dayStr: key
}); });
} }
...@@ -420,7 +420,7 @@ create.Component({ ...@@ -420,7 +420,7 @@ create.Component({
type: "week", type: "week",
value: `第${listWeek}周,${rangeMonth1 + 1}${rangeDay1}日 - ${ value: `第${listWeek}周,${rangeMonth1 + 1}${rangeDay1}日 - ${
rangeMonth2 == rangeMonth1 ? "" : rangeMonth2 + 1 + "月" rangeMonth2 == rangeMonth1 ? "" : rangeMonth2 + 1 + "月"
}${rangeDay2}日`, }${rangeDay2}日`,
dayStr: key dayStr: key
}); });
} }
...@@ -442,7 +442,7 @@ create.Component({ ...@@ -442,7 +442,7 @@ create.Component({
type: "week", type: "week",
value: `第${listWeek}周,${rangeMonth1 + 1}${rangeDay1}日 - ${ value: `第${listWeek}周,${rangeMonth1 + 1}${rangeDay1}日 - ${
rangeMonth2 == rangeMonth1 ? "" : rangeMonth2 + 1 + "月" rangeMonth2 == rangeMonth1 ? "" : rangeMonth2 + 1 + "月"
}${rangeDay2}日`, }${rangeDay2}日`,
dayStr: key dayStr: key
}); });
} }
......
...@@ -49,7 +49,6 @@ Component({ ...@@ -49,7 +49,6 @@ Component({
this.setData({ this.setData({
comSelectList: [-1] comSelectList: [-1]
}) })
this.props.onCompelete([-1])
} }
else if (!this.props.multiple) { else if (!this.props.multiple) {
this.setData({ this.setData({
......
...@@ -9,7 +9,8 @@ page { ...@@ -9,7 +9,8 @@ page {
.icon { .icon {
vertical-align: middle; vertical-align: middle;
color: #0a0a0a; color: #0a0a0a;
font-size: 34rpx; font-size: 40rpx;
line-height: 50rpx;
} }
input { input {
...@@ -18,7 +19,7 @@ input { ...@@ -18,7 +19,7 @@ input {
} }
.createTitle { .createTitle {
padding: 28rpx 36rpx 16rpx; padding: 28rpx 32rpx 16rpx;
} }
.title { .title {
...@@ -60,22 +61,21 @@ input { ...@@ -60,22 +61,21 @@ input {
.place, .time, .participator, .meetingWay { .place, .time, .participator, .meetingWay {
display: flex; display: flex;
padding: 0 36rpx; padding: 0 32rpx;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
color: #191F25; color: #191F25;
overflow: hidden; overflow: hidden;
margin-top: 54rpx; margin-top: 48rpx;
} }
.place>.icon, .time>.icon, .participator>.icon, .meetingWay>.icon { .place>.icon, .time>.icon, .participator>.icon, .meetingWay>.icon {
margin-right: 26rpx; margin-right: 24rpx;
} }
.noPlace, .hasplace, .timeText, .participatorText, .noWay, .hasWay { .noPlace, .hasplace, .timeText, .participatorText, .noWay, .hasWay {
height: 38rpx;
font-size: 34rpx; font-size: 34rpx;
width: 100%; width: 100%;
line-height: 38rpx; line-height: 1.5;
} }
.hasplace, .timeText { .hasplace, .timeText {
...@@ -85,7 +85,7 @@ input { ...@@ -85,7 +85,7 @@ input {
} }
.placeContaint, .timeContaint, .participatorContaint, .meetingWayContent { .placeContaint, .timeContaint, .participatorContaint, .meetingWayContent {
width: 678rpx; width: 622rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
...@@ -128,7 +128,6 @@ input { ...@@ -128,7 +128,6 @@ input {
.participatorText { .participatorText {
display: flex; display: flex;
align-items: center; align-items: center;
height: 38rpx;
} }
.participatorListBottom { .participatorListBottom {
...@@ -233,4 +232,18 @@ input { ...@@ -233,4 +232,18 @@ input {
.footNavTop .devider { .footNavTop .devider {
margin: 0!important; margin: 0!important;
}
.meetingWayImageUrl {
flex-grow: 0;
width: 40rpx;
height: 40rpx;
margin-right: 24rpx;
}
.meetingWayImageUrl>image {
margin-top: 5rpx;
vertical-align: top;
width: 100%;
height: 100%;
} }
\ No newline at end of file
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<!-- title remark 标题 描述 --> <!-- title remark 标题 描述 -->
<view class="createTitle"> <view class="createTitle">
<view class="title"> <view class="title">
<input placeholder-class="placeholder" placeholder="{{placeholder}}" class="text" onInput="onInput" data-type="title" value="{{title}}" focus="{{true}}"/> <input placeholder-class="placeholder" placeholder="{{placeholder}}" class="text" onInput="onInput" data-type="title" value="{{title}}" focus="{{false}}"/>
<view class="icon iconfont iconicon_description1 {{remark ? '' : 'noValueIcon'}}" onTap="addRemark"> <view class="icon iconfont iconicon_description1" onTap="addRemark" a:if="{{!isShowRemark}}">
</view> </view>
</view> </view>
<view class="remark" a:if="{{isShowRemark}}"> <view class="remark" a:if="{{isShowRemark}}">
...@@ -89,7 +89,10 @@ ...@@ -89,7 +89,10 @@
</view> </view>
<!-- meetingWay 会议方式 --> <!-- meetingWay 会议方式 -->
<view class="meetingWay"> <view class="meetingWay">
<view class="iconicon_meet iconfont icon {{comListData.meetingWayModelId ? '' : 'noValueIcon'}}"> <view a:if="{{comListData.meetingWayModelId === null}}" class="iconicon_meet iconfont icon noValueIcon">
</view>
<view a:else class="meetingWayImageUrl">
<image mode="scaleToFill" src="{{comListData.meetingWayList[comListData.meetingWayModelId].imageUrl}}"/>
</view> </view>
<view class="meetingWayContent"> <view class="meetingWayContent">
<view class="noWay" a:if="{{comListData.meetingWayModelId == null}}" catchTap="showPopup" data-type='meetingWayModel'> <view class="noWay" a:if="{{comListData.meetingWayModelId == null}}" catchTap="showPopup" data-type='meetingWayModel'>
......
...@@ -80,9 +80,8 @@ create.Page({ ...@@ -80,9 +80,8 @@ create.Page({
}, },
// 添加描述 // 添加描述
addRemark() { addRemark() {
let isShowRemark = !this.data.isShowRemark
this.setData({ this.setData({
isShowRemark: isShowRemark isShowRemark: true
}) })
this.update() this.update()
......
版本175 版本176
{{tabBarIndex}} {{tabBarIndex}}
<view a:if="{{tabBarIndex === '0'}}"> <view a:if="{{tabBarIndex === '0'}}">
<my-dynamic> <my-dynamic>
......
...@@ -11,6 +11,9 @@ create.Page({ ...@@ -11,6 +11,9 @@ create.Page({
this.setData({ this.setData({
iconDay: iconDay iconDay: iconDay
}); });
dd.setNavigationBar({
title: '动态'
})
}, },
onShow() { onShow() {
setTimeout(res => { setTimeout(res => {
...@@ -22,6 +25,18 @@ create.Page({ ...@@ -22,6 +25,18 @@ create.Page({
this.setData({ this.setData({
tabBarIndex: e.currentTarget.dataset.tabbar tabBarIndex: e.currentTarget.dataset.tabbar
}); });
let title = '动态'
switch (e.currentTarget.dataset.tabbar) {
case '0':
title = '动态';
break;
case '1':
title = '日程';
break;
}
dd.setNavigationBar({
title: title
})
}, },
createMeeting() { createMeeting() {
// isClicked(this) // isClicked(this)
......
...@@ -138,7 +138,9 @@ page { ...@@ -138,7 +138,9 @@ page {
.icon { .icon {
vertical-align: middle; vertical-align: middle;
color: #0a0a0a; color: #0a0a0a;
font-size: 34rpx; font-size: 40rpx;
line-height: 50rpx;
line-height: 50rpx;
} }
input { input {
...@@ -149,7 +151,7 @@ input { ...@@ -149,7 +151,7 @@ input {
} }
.createTitle { .createTitle {
padding: 14rpx 36rpx 16rpx; padding: 14rpx 32rpx 16rpx;
position: relative; position: relative;
min-height: 90rpx; min-height: 90rpx;
overflow: hidden; overflow: hidden;
...@@ -199,22 +201,21 @@ input { ...@@ -199,22 +201,21 @@ input {
.place, .time, .participator, .meetingWay { .place, .time, .participator, .meetingWay {
display: flex; display: flex;
padding: 0 36rpx; padding: 0 32rpx;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
color: #191F25; color: #191F25;
overflow: hidden; overflow: hidden;
margin-top: 54rpx; margin-top: 48rpx;
} }
.place>.icon, .time>.icon, .participator>.icon, .meetingWay>.icon { .place>.icon, .time>.icon, .participator>.icon, .meetingWay>.icon {
margin-right: 26rpx; margin-right: 24rpx;
} }
.noPlace, .hasplace, .timeText, .participatorText, .noWay, .hasWay { .noPlace, .hasplace, .timeText, .participatorText, .noWay, .hasWay {
height: 38rpx;
font-size: 34rpx; font-size: 34rpx;
width: 100%; width: 100%;
line-height: 38rpx; line-height: 1.5;
} }
.hasplace, .timeText { .hasplace, .timeText {
...@@ -224,7 +225,7 @@ input { ...@@ -224,7 +225,7 @@ input {
} }
.placeContaint, .timeContaint, .participatorContaint, .meetingWayContent { .placeContaint, .timeContaint, .participatorContaint, .meetingWayContent {
width: 678rpx; width: 622rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
...@@ -267,7 +268,6 @@ input { ...@@ -267,7 +268,6 @@ input {
.participatorText { .participatorText {
display: flex; display: flex;
align-items: center; align-items: center;
height: 38rpx;
} }
.participatorListBottom { .participatorListBottom {
...@@ -545,4 +545,18 @@ input { ...@@ -545,4 +545,18 @@ input {
.metingDetail { .metingDetail {
overflow: hidden; overflow: hidden;
height: 100vh; height: 100vh;
}
.meetingWayImageUrl {
flex-grow: 0;
width: 40rpx;
height: 40rpx;
margin-right: 24rpx;
}
.meetingWayImageUrl>image {
margin-top: 5rpx;
vertical-align: top;
width: 100%;
height: 100%;
} }
\ No newline at end of file
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
<view class="permissionContant"> <view class="permissionContant">
<view class="createTitle"> <view class="createTitle">
<view class="title"> <view class="title">
<input placeholder-class="placeholder" placeholder="{{placeholder}}" class="text" onInput="onInput" data-type="title" data-selectType="common" value="{{title}}" onConfirm="onConfirm" focus="{{true}}"/> <input placeholder-class="placeholder" placeholder="{{placeholder}}" class="text" onInput="onInput" data-type="title" data-selectType="common" value="{{title}}" onConfirm="onConfirm" focus="{{false}}" onBlur="onBlur"/>
<view class="icon iconfont iconicon_description1 {{remark ? '' : 'noValueIcon'}}" onTap="addRemark"> <view class="icon iconfont iconicon_description1" a:if="{{!isShowRemark}}" onTap="addRemark">
</view> </view>
</view> </view>
<view class="remark" a:if="{{isShowRemark}}"> <view class="remark" a:if="{{isShowRemark}}">
<input placeholder-class="placeholder" placeholder="请添加描述" class="text" onInput="onInput" data-type="remark" value="{{remark}}" onConfirm="onConfirm"/> <input placeholder-class="placeholder" placeholder="请添加描述" class="text" onInput="onInput" data-type="remark" value="{{remark}}" onConfirm="onConfirm" onBlur="onBlur" focus="{{false}}"/>
</view> </view>
</view> </view>
<view class="permission" a:if="{{currentPeople != organizer}}"> <view class="permission" a:if="{{currentPeople != organizer}}">
...@@ -120,7 +120,10 @@ ...@@ -120,7 +120,10 @@
<view class="permissionContant" a:if="{{comListData.meetingWayList[comListData.meetingWayModelId].text || currentPeople === organizer}}"> <view class="permissionContant" a:if="{{comListData.meetingWayList[comListData.meetingWayModelId].text || currentPeople === organizer}}">
<!--<view class="iconicon_attender iconfont icon {{$data.participatorList.length>1 ? '' : 'noValueIcon'}}"></view> --> <!--<view class="iconicon_attender iconfont icon {{$data.participatorList.length>1 ? '' : 'noValueIcon'}}"></view> -->
<view class="meetingWay"> <view class="meetingWay">
<view class="iconicon_meet iconfont icon {{comListData.meetingWayModelId ? '' : 'noValueIcon'}}"> <view a:if="{{comListData.meetingWayModelId === null}}" class="iconicon_meet iconfont icon noValueIcon">
</view>
<view a:else class="meetingWayImageUrl">
<image mode="scaleToFill" src="{{comListData.meetingWayList[comListData.meetingWayModelId].imageUrl}}"/>
</view> </view>
<view class="meetingWayContent"> <view class="meetingWayContent">
<view class="noWay" a:if="{{comListData.meetingWayModelId == null}}" catchTap="showPopup" data-type='meetingWayModel'> <view class="noWay" a:if="{{comListData.meetingWayModelId == null}}" catchTap="showPopup" data-type='meetingWayModel'>
...@@ -142,7 +145,8 @@ ...@@ -142,7 +145,8 @@
<!-- 底部导航栏 --> <!-- 底部导航栏 -->
<view class="footNav"> <view class="footNav">
<view class="footNavTop" a:if="{{!isExpand}}"> <view class="footNavTop" a:if="{{!isExpand}}">
<view class="originStaus" a:if="{{confirmAttendance === null}}"> <!-- 待定状态 -->
<view class="originStaus" a:if="{{confirmAttendance === -9}}">
<view catchTap="participate"> <view catchTap="participate">
<text class="iconfont iconicon_Agreed1"></text> <text class="iconfont iconicon_Agreed1"></text>
<text>参加</text></view> <text>参加</text></view>
...@@ -152,6 +156,7 @@ ...@@ -152,6 +156,7 @@
<text>不参加</text> <text>不参加</text>
</view> </view>
</view> </view>
<!--参加状态-->
<view class="participateStatus" a:if="{{confirmAttendance === 1}}"> <view class="participateStatus" a:if="{{confirmAttendance === 1}}">
<view class="remind" catchTap="showPopup" data-type="aheadTime"> <view class="remind" catchTap="showPopup" data-type="aheadTime">
<text class="iconfont iconicon_time1"></text> <text class="iconfont iconicon_time1"></text>
...@@ -164,10 +169,13 @@ ...@@ -164,10 +169,13 @@
<text class="iconfont iconicon_share"></text> <text class="iconfont iconicon_share"></text>
</view> </view>
<text class="devider"></text> <text class="devider"></text>
<view class="participate" catchTap="noParticipate"> <view class="participate" catchTap="initialState">
<text class="iconfont iconicon_Agreed1"></text> <text class="iconfont iconicon_Agreed1"></text>
<text>参加</text></view></view> <text>参加</text>
<view class="noParticipateStatus" a:if="{{confirmAttendance === 0}}" catchTap="participate"> </view>
</view>
<!--不参加状态 -->
<view class="noParticipateStatus" a:if="{{confirmAttendance === 0}}" catchTap="initialState">
<text class="iconfont iconicon_noAgreed1"></text> <text class="iconfont iconicon_noAgreed1"></text>
<text>不参加</text> <text>不参加</text>
</view> </view>
......
...@@ -210,9 +210,8 @@ create.Page({ ...@@ -210,9 +210,8 @@ create.Page({
}, },
// 添加描述 // 添加描述
addRemark() { addRemark() {
let isShowRemark = !this.data.isShowRemark
this.setData({ this.setData({
isShowRemark: isShowRemark isShowRemark: true
}) })
this.update() this.update()
...@@ -810,38 +809,42 @@ create.Page({ ...@@ -810,38 +809,42 @@ create.Page({
let modifyContent = '' let modifyContent = ''
switch (value) { switch (value) {
case 'title': case 'title':
let dataTitle = { if (this.data.title !== this.$store.data.originalData.title) {
title: this.data.title, let dataTitle = {
modifyModel: modifyModel, title: this.data.title,
modifyContent: 'title' modifyModel: modifyModel,
} modifyContent: 'title'
this.modifySchedule(dataTitle).catch(err => { }
this.setData({ this.modifySchedule(dataTitle).catch(err => {
title: this.$store.data.originalData.title, this.setData({
'conToastData.showToast': true, title: this.$store.data.originalData.title,
'conToastData.title': ' 网络异常' 'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
})
}).then(res => {
this.$store.data.originalData.title = this.data.title
this.update()
}) })
}).then(res => { }
this.$store.data.originalData.title = this.data.title
this.update()
})
break break
case 'remark': case 'remark':
let dataRemark = { if (this.data.remark !== this.$store.data.originalData.remark) {
remark: this.data.remark, let dataRemark = {
modifyModel: modifyModel, remark: this.data.remark,
modifyContent: 'remark' modifyModel: modifyModel,
} modifyContent: 'remark'
this.modifySchedule(dataRemark).catch(err => { }
this.setData({ this.modifySchedule(dataRemark).catch(err => {
remark: this.$store.data.originalData.remark, this.setData({
'conToastData.showToast': true, remark: this.$store.data.originalData.remark,
'conToastData.title': ' 网络异常' 'conToastData.showToast': true,
'conToastData.title': ' 网络异常'
})
}).then(res => {
this.$store.data.originalData.remark = this.data.remark
this.update()
}) })
}).then(res => { }
this.$store.data.originalData.remark = this.data.remark
this.update()
})
break break
case 'meeting_way': case 'meeting_way':
let dataWay = { let dataWay = {
...@@ -1151,6 +1154,28 @@ create.Page({ ...@@ -1151,6 +1154,28 @@ create.Page({
}) })
} }
}, },
initialState() {
let data = {
templateId: this.data.scheduleItem.scheduleTemplateId,
planDate: this.data.scheduleItem.planDate,
scheduleId: this.data.scheduleItem.id,
value: -9,
type: 'only'
}
if (this.data.repeatable === 1) {
data.type = 'all'
} else {
data.type = 'only'
}
isParticipate(data).then(res => {
if (res.data.code === 0) {
this.setData({
confirmAttendance: -9
})
}
})
},
// 页面卸载 // 页面卸载
onUnload() { onUnload() {
// 页面被关闭 // 页面被关闭
......
...@@ -75,23 +75,22 @@ input { ...@@ -75,23 +75,22 @@ input {
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
padding: 16rpx 32rpx; padding: 32rpx;
background: #fff; background: #fff;
box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.04); box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.04);
position: fixed;
bottom: 0; bottom: 0;
} }
.button { .button {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
width: 686rpx; width: 686rpx;
height: 96rpx; height: 72rpx;
background: #4D88FF; background: #EA0C28;
border-radius: 48rpx; border-radius: 48rpx;
font-size: 34rpx; font-size: 32rpx;
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
line-height: 96rpx; line-height: 72rpx;
} }
.conflict { .conflict {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment