From c5b5706cd645440a877c546978751b63bf40d008 Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期五, 20 九月 2024 10:13:11 +0800 Subject: [PATCH] ll --- h5/pages/staff/meetingDetail.vue | 34 ++++++++++++++++++++++++++++------ 1 files changed, 28 insertions(+), 6 deletions(-) diff --git a/h5/pages/staff/meetingDetail.vue b/h5/pages/staff/meetingDetail.vue index fd97fcf..3484e31 100644 --- a/h5/pages/staff/meetingDetail.vue +++ b/h5/pages/staff/meetingDetail.vue @@ -76,9 +76,10 @@ <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> <!-- 鎾ゅ洖 --> @@ -131,7 +132,7 @@ </template> <script> -import { meetingDetail, cancelById, closeMeetignById } from '@/api' +import { meetingDetail, cancelById, closeMeetignById,startMeetignById,startEarlyMeetignById } from '@/api' export default { data() { return { @@ -171,7 +172,7 @@ setTimeout(() => { uni.showToast({ title: '鎻愪氦鎴愬姛', - icon: 'success' + icon: 'none' }) }) setTimeout(() => { @@ -180,6 +181,23 @@ } }) }, + 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({ @@ -273,7 +291,7 @@ background-color: #fff; padding: 0 30rpx; .btn { - flex: 1; + flex: 3; height: 88rpx; line-height: 88rpx; background: #ffffff; @@ -283,8 +301,12 @@ 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; -- Gitblit v1.9.3