| | |
| | | <view class="empty empty2"></view> |
| | | <view class="main_footer" v-if="detail.meetingStatus == '1'"> |
| | | <view class="btn" @click="openCancel">撤回</view> |
| | | <view class="btn agree" @click="handleEdit">修改</view> |
| | | <view class="btn edit" @click="handleEdit">修改</view> |
| | | <view class="btn agree" @click="handleStart">开始会议</view> |
| | | </view> |
| | | <view class="main_footer" v-if="detail.meetingStatus == '2'"> |
| | | <view class="main_footer" v-if="detail.meetingStatus == '2' && detail.isAdmin == 1"> |
| | | <view class="btn agree" @click="openClose">结束</view> |
| | | </view> |
| | | <!-- 撤回 --> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { meetingDetail, cancelById, closeMeetignById } from '@/api' |
| | | import { meetingDetail, cancelById, closeMeetignById,startMeetignById,startEarlyMeetignById } from '@/api' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | setTimeout(() => { |
| | | uni.showToast({ |
| | | title: '提交成功', |
| | | icon: 'success' |
| | | icon: 'none' |
| | | }) |
| | | }) |
| | | setTimeout(() => { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | handleStart() { |
| | | const { id, detail } = this |
| | | let fn = new Date(detail.startTime).getTime() > new Date().getTime() ? startEarlyMeetignById : startMeetignById |
| | | fn({ id }).then(res => { |
| | | if (res.code === 200) { |
| | | setTimeout(() => { |
| | | uni.showToast({ |
| | | title: '会议已开始', |
| | | icon: 'none' |
| | | }) |
| | | }) |
| | | setTimeout(() => { |
| | | uni.navigateBack() |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | handleEdit() { |
| | | const { id } = this |
| | | uni.navigateTo({ |
| | |
| | | background-color: #fff; |
| | | padding: 0 30rpx; |
| | | .btn { |
| | | flex: 1; |
| | | flex: 3; |
| | | height: 88rpx; |
| | | line-height: 88rpx; |
| | | background: #ffffff; |
| | |
| | | text-align: center; |
| | | margin: 16rpx 8rpx; |
| | | } |
| | | |
| | | .edit{ |
| | | color: $uni-color-primary; |
| | | border: 1rpx solid $uni-color-primary; |
| | | } |
| | | .agree { |
| | | flex: 5; |
| | | background: $uni-color-primary; |
| | | color: #fff; |
| | | border: 1rpx solid $uni-color-primary; |