Commit 5671a5a2 by fengzhaoyu

编辑

parent cb0cc127
.mwSelect {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
background: rgba(25, 31, 37, 0.4);
flex-direction: column-reverse;
font-family: PingFangSC-Regular;
font-size: 34rpx;
color: #191F25;
}
\ No newline at end of file
<view class="mwSelect">
</view>
\ No newline at end of file
Component({
mixins: [],
data: {},
props: {},
didMount() {},
didUpdate() {},
didUnmount() {},
methods: {},
});
{
"component": true
}
\ No newline at end of file
......@@ -82,6 +82,7 @@ page {
width: 355rpx;
text-indent: 32rpx;
position: relative;
/* border-right: 1rpx solid rgba(25, 31, 37, 0.12); */
}
.selectTime {
......@@ -325,26 +326,39 @@ page {
.repeat .iconshanchu {
float: right;
margin-right: 32rpx;
margin-right: 24rpx;
}
.terminationTime {
height: 112rpx;
line-height: 112rpx;
}
.describe {
background: #fff;
margin-top: 16rpx;
padding: 32rpx;
display: flex;
}
.describe .icondidianmiaoshu {
font-size: 40rpx;
margin-right: 27rpx;
}
.describeText {
width: 574rpx;
}
.describe .iconshanchu {
position: absolute;
right: 32rpx;
}
.blank {
overflow-x: scroll;
}
.blank>text {
margin-right: 10rpx;
}
\ No newline at end of file
<view class="createOrEditSchedule">
<!-- 主题 -->
<view class="theme">
<input placeholder="添加主题" onInput="getTitle" value="{{title}}" />
{{aheadText}}
<input placeholder="添加主题" type="text" onInput="getTitle" value="{{title}}"/>
</view>
<!-- 时间 -->
<view class="time">
......@@ -43,7 +44,8 @@
<text>{{locationName}}</text>
<text class="iconshanchu iconfont" data-icon="icondingwei" catchTap="closeEditList"></text>
</view>
<text a:else>添加地点
<text a:else>
添加地点
</text>
</view>
</view>
......@@ -86,9 +88,9 @@
<view class="remind" a:if="{{aheadTimes.length}}">
<view class="icon iconfont iconfont iconhuiqiantixing">
</view>
<view class="text">
<text>
提前 <text a:for="{{aheadTimes}}" style="margin-right: 10rpx;">{{item}}</text>分钟提醒
<view class="text" data-nextPage="remind" onTap="nextPage">
<text class="blank">
<text>{{aheadText}}</text>提醒
</text>
<text class="close iconshanchu iconfont" data-icon="iconhuiqiantixing" catchTap="closeEditList"></text>
</view>
......@@ -98,8 +100,8 @@
<view class="iconfont iconchongfu">
</view>
<view class="repeatContaint">
<view class="repeatTime">
<text>{{recurrenceModel.model=='day_in_week'?(recurrenceModel.weekDayList.length==7?'每周重复':'每周的工作日重复'):recurrenceModel.model=='every_day'?'每天重复': '不重复'}}</text>
<view class="repeatTime" data-nextPage="repeatMechanism" onTap="nextPage">
<text>{{recurrenceModel.model=='day_in_week'?(recurrenceModel.weekDayList.length==1?repeatWeek:'每周的工作日重复'):recurrenceModel.model=='every_day'?'每天重复': '不重复'}}</text>
<view class="iconfont iconshanchu" data-icon="iconchongfu" catchTap="closeEditList">
</view>
</view>
......@@ -115,7 +117,7 @@
<view class="describe" a:if="{{!!remark}}">
<view class="iconfont icondidianmiaoshu">
</view>
<view class="describeText">
<view class="describeText" data-nextPage="addRemark" onTap="nextPage">
{{remark}}
</view>
<view class="iconfont iconshanchu" data-icon="icondidianmiaoshu" catchTap="closeEditList">
......@@ -151,16 +153,35 @@
描述
</view>
</view>
<view class="listGroup" onTap="editSchedule" data-icon="iconshanchu">
<view a:if="{{scheduleItem.virtual=='N'}}" class="listGroup" onTap="editSchedule" data-icon="iconshanchu">
<view class="listIcon iconfont iconshanchu">
</view>
<view class="listText">
删除
</view>
</view>
<picker a:else value="{{0}}" range="{{['仅删除此次会议', '删除以后会议', '删除所有会议']}}" onChange="deleteRepeatSchedule">
<view class="listGroup" data-icon="iconshanchu">
<view class="listIcon iconfont iconshanchu">
</view>
<view class="listText">
删除
</view>
</view>
</picker>
</view>
<!-- 编辑重复的时候的保存 -->
<picker a:if="{{scheduleItem.virtual=='Y'}}" value="{{0}}" range="{{['仅更新此会议', '更新以后会议', '更新所有会议']}}" onChange="saveRepeat">
<view>
<view class="save">
<view>
{{buttonText}}
</view>
</view>
</view>
</picker>
<!-- 保存 -->
<view class="save">
<view class="save" a:else>
<view onTap="saveCreate">
{{buttonText}}
</view>
......
{
"defaultTitle": "首页",
"usingComponents": {
"mw-select": "../../components/mwSelect/mwSelect"
}
"defaultTitle": "首页"
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
page {
background: #f6f6f6;
font-family: PingFangSC-Regular;
font-size: 42rpx;
font-size: 32rpx;
color: #191F25;
}
......
......@@ -4,10 +4,12 @@ create.Page({
store: exampleStore,
useAll: true,
data: {
week1: ['MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU'],
week2: ['每周一重复', '每周二重复', '每周三重复', '每周四重复', '每周五重复', '每周六重复', '每周日重复'],
repeatList: [
{ model: 'no_repeat', text: '不重复', weekDayList: [] },
{ model: 'every_day', text: '每天重复', weekDayList: [] },
{ model: 'day_in_week', text: '每周重复', weekDayList: ['MO', 'TU', 'WE', 'TH', 'FR', 'SA', 'SU'] },
{ model: 'day_in_week', text: '每周重复', weekDayList: [] },
{ model: 'day_in_week', text: '每周的工作日重复', weekDayList: ['MO', 'TU', 'WE', 'TH', 'FR'] }
]
},
......@@ -15,6 +17,12 @@ create.Page({
dd.setNavigationBar({
title: '选择重复'
})
let week = new Date().getDay()
this.data.repeatList[2].weekDayList = [this.data.week1[week]]
this.data.repeatList[2].text = this.data.week2[week]
this.setData({
repeatList: this.data.repeatList
})
},
// 选择重复机制
selectRepeat(event) {
......
......@@ -190,3 +190,9 @@ page {
.cancel {
background: #E60012;
}
.blank {
overflow-x: scroll;
}
.blank>text {
margin-right: 10rpx;
}
\ No newline at end of file
......@@ -53,8 +53,17 @@
<view class="remind" a:if="{{aheadTimes.length}}">
<view class="icon iconshijian iconfont">
</view>
<view class="text">
提前<text a:for="{{aheadTimes}}" a:for-item="item">{{item}}分</text>钟提醒
<view class="text blank">
提前
<text a:if="{{aheadTimes.includes(0)}}">立即提醒</text>
<text a:if="{{aheadTimes.includes(1)}}">5分钟</text>
<text a:if="{{aheadTimes.includes(15)}}">15分钟</text>
<text a:if="{{aheadTimes.includes(30)}}">30分钟</text>
<text a:if="{{aheadTimes.includes(60)}}">1小时</text>
<text a:if="{{aheadTimes.includes(1440)}}">1天前</text>
<text a:if="{{aheadTimes.includes(2880)}}">两天前</text>
<text a:if="{{aheadTimes.includes(10080)}}">1周前</text>
提醒
</view>
</view>
<!-- 会议描述 -->
......@@ -88,10 +97,6 @@
</view>
<view class="buttonGroup" data-nextPage="edit" onTap="nextPage">
<text class="icondidianmiaoshu iconfont"></text>
<text>删除</text>
</view>
<view class="buttonGroup" data-nextPage="edit" onTap="nextPage">
<text class="icondidianmiaoshu iconfont"></text>
<text>参加</text>
</view>
<view class="buttonGroup" data-nextPage="edit" onTap="nextPage">
......
......@@ -21,16 +21,18 @@ create.Page({
},
onLoad(event) {
let scheduleItem = JSON.parse(event.scheduleItem)
dd.setNavigationBar({
title: '会议详情'
})
this.setData({
scheduleItem: scheduleItem
})
dd.setNavigationBar({
title: '会议详情'
})
},
onShow() {
let data = {
id: scheduleItem.id,
planDate: scheduleItem.planDate,
templateId: scheduleItem.scheduleTemplateId
id: this.data.scheduleItem.id,
planDate: this.data.scheduleItem.planDate,
templateId: this.data.scheduleItem.scheduleTemplateId
}
getScheduleDetail(data).then(res => {
this.setData({
......@@ -38,10 +40,10 @@ create.Page({
location: res.data.data.location,
startTime: res.data.data.startTime,
endTime: res.data.data.endTime,
aheadTimes: res.data.data.aheadTimes,
week: this.data.weeks[new Date(res.data.data.startTime).getDay() - 1]
})
this.store.data.userList = res.data.data.userList
this.store.data.aheadTimes = res.data.data.aheadTimes
this.store.data.remark = res.data.data.remark
this.acrossDay(res.data.data.startTime, res.data.data.endTime)
this.update()
......@@ -51,6 +53,7 @@ create.Page({
uploadSpaceId: res.data.data
})
})
},
// 是否跨天
acrossDay(time1, time2) {
......@@ -100,6 +103,7 @@ create.Page({
}
})
},
// 跳转下一页
nextPage(event) {
switch (event.target.dataset.nextPage) {
case 'participants':
......@@ -111,6 +115,7 @@ create.Page({
break;
}
},
// 预览文件
preview(fileId, fileSize, fileType, fileName) {
dd.previewFileInDingTalk({
corpId: dd.corpId,
......@@ -118,7 +123,7 @@ create.Page({
fileId: fileId,
fileName: fileName,
fileSize: fileSize,
fileType: fileType,
fileType: fileType
})
}
......
......@@ -11,8 +11,9 @@ class Store {
model:"no_repeat"
},
editList: [{ icon: 'icondingwei', text: '地点' }, { icon: 'iconhuiqiantixing', text: '提醒' }, { icon: 'iconchongfu', text: '重复' }, { icon: 'icondidianmiaoshu', text: '描述' }, { icon: 'iconshanchu', text: '删除' }],
remark: ' 111 ', // 会议描述
aheadTimes: []
remark: '', // 会议描述
aheadTimes: [],
requireUserList: []
}
}
......
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