Commit b7a3ec00 by liang ce
parents a9a57609 9bd5f9e0
{ {
"pages": [ "pages": [
"pages/index/index", "pages/index/index",
"pages/meetingRoomList/meetingRoomList",
"pages/uploadFile/uploadFile", "pages/uploadFile/uploadFile",
"pages/repetitionTime/repetitionTime", "pages/repetitionTime/repetitionTime",
"pages/createOrEditSchedule/createOrEditSchedule", "pages/createOrEditSchedule/createOrEditSchedule",
...@@ -12,6 +11,8 @@ ...@@ -12,6 +11,8 @@
"pages/scheduleDetail/scheduleDetail", "pages/scheduleDetail/scheduleDetail",
"pages/place/place", "pages/place/place",
"pages/participantsDetail/participantsDetail", "pages/participantsDetail/participantsDetail",
"pages/editFile/editFile" "pages/editFile/editFile",
"pages/meetingRoomList/meetingRoomList",
"pages/createOrEditSchedule/createOrEditSchedule"
] ]
} }
<!-- <mw-select></mw-select> --> <!-- <mw-select></mw-select> -->
版本号:90 版本号:94
<scroll-view a:if="{{todayStr !== ''}}" scroll-y="{{true}}" upper-threshold="50" lower-threshold="50" onScrollToLower="lower" style="height: 100vh;" scroll-into-view="{{todayStr}}"> <scroll-view a:if="{{todayStr !== ''}}" scroll-y="{{true}}" upper-threshold="50" lower-threshold="50" onScrollToLower="lower" style="height: 100vh;" scroll-into-view="{{todayStr}}">
<block a:for="{{scheduleList}}" a:for-item="scheduleYearList"> <block a:for="{{scheduleList}}" a:for-item="scheduleYearList">
<block a:for="{{scheduleYearList}}"> <block a:for="{{scheduleYearList}}">
......
<view class="scheduleDetail"> <view class="scheduleDetail">
{{startTime}}
<view class="scheduleInfo"> <view class="scheduleInfo">
<!-- 标题 --> <!-- 标题 -->
<view class="title"> <view class="title">
...@@ -23,13 +24,13 @@ ...@@ -23,13 +24,13 @@
<view class="text" a:if="{{isAcrossDay}}"> <view class="text" a:if="{{isAcrossDay}}">
<view> <view>
{{` {{`
${startTime.substring(5, 7)}月${startTime.substring(8, 10)}日 ${startTime.substring(11, 16)} 至 ${time1.substring(5, 7)}月${time1.substring(8, 10)}日 ${time1.substring(11, 16)} 至
${endTime.substring(5, 7)}月${endTime.substring(8, 10)}日 ${endTime.substring(11, 16)} ${time2.substring(5, 7)}月${time2.substring(8, 10)}日 ${time2.substring(11, 16)}
`}} `}}
</view> </view>
</view> </view>
<view class="text" a:else> <view class="text" a:else>
{{`${startTime.substring(5, 7)}月${startTime.substring(8, 10)}日 ${week} ${startTime.substring(11, 16)}-${endTime.substring(11, 16)}`}} {{`${time1.substring(5, 7)}月${time1.substring(8, 10)}日 ${week} ${time1.substring(11, 16)}-${time2.substring(11, 16)}`}}
</view> </view>
</view> </view>
</view> </view>
...@@ -100,7 +101,7 @@ ...@@ -100,7 +101,7 @@
<view class="dynamicright"> <view class="dynamicright">
<view class="dynamicMinutes"> <view class="dynamicMinutes">
<text>{{item.username}}</text> <text>{{item.username}}</text>
<text>5分钟前</text> <text>{{item.time}}</text>
</view> </view>
<view class="describe" a:if="{{!!item.descript}}"> <view class="describe" a:if="{{!!item.descript}}">
{{item.descript}} {{item.descript}}
......
...@@ -7,8 +7,8 @@ create.Page({ ...@@ -7,8 +7,8 @@ create.Page({
data: { data: {
title: '', title: '',
location: '', location: '',
startTime: '', time1: '',
endTime: '', time2: '',
weeks: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'], weeks: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
week: '', week: '',
isAcrossDay: true, isAcrossDay: true,
...@@ -46,8 +46,8 @@ create.Page({ ...@@ -46,8 +46,8 @@ create.Page({
this.setData({ this.setData({
title: res.data.data.title, title: res.data.data.title,
location: res.data.data.location, location: res.data.data.location,
startTime: res.data.data.startTime, time1: res.data.data.startTime,
endTime: res.data.data.endTime, time2: res.data.data.endTime,
organizer: res.data.data.organizer, organizer: res.data.data.organizer,
week: this.data.weeks[new Date(res.data.data.startTime).getDay() - 1] week: this.data.weeks[new Date(res.data.data.startTime).getDay() - 1]
}) })
...@@ -109,6 +109,9 @@ create.Page({ ...@@ -109,6 +109,9 @@ create.Page({
space: { spaceId: _that.data.uploadSpaceId, compress: true, isCopy: 1, max: 9 }, space: { spaceId: _that.data.uploadSpaceId, compress: true, isCopy: 1, max: 9 },
types: ["photo", "camera", "space"], types: ["photo", "camera", "space"],
success: (res) => { success: (res) => {
console.log(111111)
console.log(JSON.stringify(res))
console.log(2222)
dd.navigateTo({ url: `./../uploadFile/uploadFile?scheduleItem=${JSON.stringify(_that.data.scheduleItem)}&upLoadInfo=${JSON.stringify(res)}` }) dd.navigateTo({ url: `./../uploadFile/uploadFile?scheduleItem=${JSON.stringify(_that.data.scheduleItem)}&upLoadInfo=${JSON.stringify(res)}` })
}, },
fail: (err) => { fail: (err) => {
...@@ -181,6 +184,7 @@ create.Page({ ...@@ -181,6 +184,7 @@ create.Page({
if (!!res.data.data) { if (!!res.data.data) {
res.data.data.forEach((item, index) => { res.data.data.forEach((item, index) => {
if (!!item.scheduleAccessory) { if (!!item.scheduleAccessory) {
item.scheduleAccessory.time = this.dealFileTime(item.createTime)
item.scheduleAccessory.fileInfos = JSON.parse(item.scheduleAccessory.fileInfos) item.scheduleAccessory.fileInfos = JSON.parse(item.scheduleAccessory.fileInfos)
item.scheduleAccessory.uploaderInfo = JSON.parse(item.scheduleAccessory.uploaderInfo) item.scheduleAccessory.uploaderInfo = JSON.parse(item.scheduleAccessory.uploaderInfo)
allFileInfo.push(item.scheduleAccessory) allFileInfo.push(item.scheduleAccessory)
...@@ -218,5 +222,20 @@ create.Page({ ...@@ -218,5 +222,20 @@ create.Page({
dd.navigateTo({ url: `./../editFile/editFile?file=${JSON.stringify(event.target.dataset.file)}` }) dd.navigateTo({ url: `./../editFile/editFile?file=${JSON.stringify(event.target.dataset.file)}` })
break; break;
} }
},
// 判断是刚刚 五分钟以内 十分钟以内 正常时间年月日
dealFileTime(creatTime) {
let nowTime = new Date().getTime()
let time = new Date(creatTime).getTime()
let timeResule = ''
if ((nowTime - time) / 1000 < 60) {
timeResule = '刚刚'
} else if((nowTime - time) / 1000 < 60*5 || (nowTime - time) / 1000==60 ){
timeResule = '5分钟以内'
} else {
timeResule = creatTime.substring(0, 16)
}
return timeResule
} }
}); });
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