Commit 5f231fd0 by liang ce

Merge branch 'dev' of http://gitlab.roboming.com/fengzhaoyu/schedule into dev

parents 3e2c2adf 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);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="dm-popup-mask" a:if="{{mask}}" onTap="onMaskTap" style="z-index: {{zIndex}}"></view> <view class="dm-popup-mask" a:if="{{mask}}" onTap="onMaskTap" style="z-index: {{zIndex}}"></view>
<view class="dm-popup-content {{className}} dm-popup-{{position}}" style="z-index: {{zIndex}}"> <view class="dm-popup-content {{className}} dm-popup-{{position}}" style="z-index: {{zIndex}}">
<view a:if="{{position == 'bottom'}}" class="close-icon"> <view a:if="{{position == 'bottom'}}" class="close-icon">
<text onTap="onMaskTap" class="iconfont iconicon_slide"></text> <text onTap="onMaskTap" class="iconfont iconicon_slide" catchTouchStart="onMaskTap" catchTouchMove="onMaskTap" catchTouchEnd="onMaskTap"></text>
<!--<text class="popupComplet">完成</text> --> <!--<text class="popupComplet">完成</text> -->
</view> </view>
<view class="popup-title" a:if="{{title}}">{{title}}</view> <view class="popup-title" a:if="{{title}}">{{title}}</view>
......
...@@ -51,13 +51,17 @@ ...@@ -51,13 +51,17 @@
margin-right: 16rpx; margin-right: 16rpx;
} }
.people>.avater { .people>.avater, .fake-avater {
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
position: relative; position: relative;
} }
.fake-name {
height: 40rpx;
}
.name { .name {
font-size: 24rpx; font-size: 24rpx;
line-height: 40rpx; line-height: 40rpx;
......
...@@ -18,5 +18,11 @@ ...@@ -18,5 +18,11 @@
<view class="name">{{currentTask.acceptorInfo.username}}</view> <view class="name">{{currentTask.acceptorInfo.username}}</view>
</view> </view>
</view> </view>
<view class="participator-bottom" a:else>
<view class="people">
<view class="fake-avater"></view>
<view class="fake-name"></view>
</view>
</view>
</view> </view>
<template a:if="{{action == 'update'}}" is="deleteBtn" data="{{title: '删除该任务' }}"/> <template a:if="{{action == 'update'}}" is="deleteBtn" data="{{title: '删除该任务' }}"/>
\ No newline at end of file
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
<text class="iconfont iconicon_data"></text>文件 <text class="iconfont iconicon_data"></text>文件
</view> </view>
<text class="devider"></text> <text class="devider"></text>
<view> <view onTap="onShareAppMessage">
<text class="iconfont iconicon_share1"></text> <text class="iconfont iconicon_share1"></text>
</view> </view>
</view> </view>
...@@ -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'/>
<!-- 任务修改弹出框 --> <!-- 任务修改弹出框 -->
......
...@@ -1458,6 +1458,16 @@ create.Page({ ...@@ -1458,6 +1458,16 @@ create.Page({
this.setData({ this.setData({
isExpand: false isExpand: false
}) })
},
onShareAppMessage() {
console.log('click')
return {
type: 1, //分享类型,0:全部组件 默认; 1:只能分享到钉钉;2:不能分享,只有刷新按钮
control: true,
title: '明我会议室标题',
desc: '明我会议室描述',
path: 'pages/index/index'
};
} }
}); });
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