onlineMeeting.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. <template>
  2. <div style="background: #fff;">
  3. <div class="autoBox box" v-loading="loading">
  4. <div class="crumbs">
  5. <el-breadcrumb separator="/">
  6. <el-breadcrumb-item :to="{ path: 'home' }">{{$t('common.Home')}}</el-breadcrumb-item>
  7. <el-breadcrumb-item>{{$t('common.OnlineMeeting')}}</el-breadcrumb-item>
  8. </el-breadcrumb>
  9. </div>
  10. <div class="content">
  11. <div>
  12. <div style="width:180px;height:1px;background:#979797;display: inline-block;vertical-align: middle;"></div>
  13. <div style="display: inline-block;margin: 0 50px;color: #2f598d;font-size: 24px;">{{$t('common.OnlineMeeting')}}----{{$t('common.TencentMeeting')}}</div>
  14. <div style="width:180px;height:1px;background:#979797;display: inline-block;vertical-align: middle;"></div>
  15. </div>
  16. <div style="margin-top: 83px;">
  17. <span style="font-size: 18px;font-weight: 700;">{{$t('common.FunctionIntroduction')}}</span>
  18. <p>{{$t('common.FunctionIntroductionText')}}</p>
  19. </div>
  20. <div style="margin-top: 60px;">
  21. <span style="font-size: 18px;font-weight: 700;">{{$t('common.Characteristic')}}</span>
  22. <p>{{$t('common.CharacteristicText')}}</p>
  23. </div>
  24. <div style="margin-top: 93px;">
  25. <!--快速会议-->
  26. <el-button :class="$i18n.locale=='zh'?'meetingBtn':'meetingBtn2'" style="background: #50aefb;box-shadow: 0 2px 25px #c5c5c5;border-radius: 15px;" @click="quickMeeting">
  27. <!-- <el-button :class="$i18n.locale=='zh'?'meetingBtn':'meetingBtn2'" style="background: #50aefb;box-shadow: 0 2px 25px #c5c5c5;border-radius: 15px;" @click="templeTip">-->
  28. <div style="display: inline-block;vertical-align: middle;">
  29. <img src="@/assets/img/helpCenter/quickMeeting.png" alt="">
  30. </div>
  31. {{$t('common.QuickMeeting')}}
  32. </el-button>
  33. <!--预定会议-->
  34. <el-button :class="$i18n.locale=='zh'?'meetingBtn':'meetingBtn2'" style="background: #54cfbc;box-shadow: 0 2px 25px #c5c5c5;border-radius: 15px;" @click="reserve">
  35. <!-- <el-button :class="$i18n.locale=='zh'?'meetingBtn':'meetingBtn2'" style="background: #50aefb;box-shadow: 0 2px 25px #c5c5c5;border-radius: 15px;" @click="templeTip">-->
  36. <div style="display: inline-block;vertical-align: middle;">
  37. <img src="@/assets/img/helpCenter/reservationMeeting.png" alt="">
  38. </div>
  39. {{$t('common.ScheduledMeeting')}}
  40. </el-button>
  41. <!--我的会议-->
  42. <el-button :class="$i18n.locale=='zh'?'meetingBtn':'meetingBtn2'" style="background: #f0ae4e;box-shadow: 0 2px 25px #c5c5c5;border-radius: 15px;" @click="myMeeting">
  43. <div style="display: inline-block;vertical-align: middle;">
  44. <img src="@/assets/img/helpCenter/myMeeting.png" alt="">
  45. </div>
  46. {{$t('common.MyMeeting')}}
  47. </el-button>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="tep">
  52. <div class="mark"></div>
  53. <div class="tepDet">
  54. <div class="tepCont">
  55. <h3>{{$t('common.UsingTheStep')}}</h3>
  56. <!-- <span>{{$t('common.UsingTheStepText')}}</span>-->
  57. </div>
  58. </div>
  59. <div class="detail">
  60. <div class="detOut">
  61. <div class="detCont"></div>
  62. <div style="position: relative;top: -44px;left: 40%;">
  63. <img src="@/assets/img/helpCenter/MenberLogin.png" alt="" style="position: absolute;top: 0px;left: 0;">
  64. </div>
  65. <div class="detContInner">
  66. <span>{{$t('common.MemberLogin')}}</span>
  67. <p>{{$t('common.MemberLoginText')}}</p>
  68. </div>
  69. </div>
  70. <div class="detOut">
  71. <div class="detCont"></div>
  72. <div style="position: relative;top: -44px;left: 40%;">
  73. <img src="@/assets/img/helpCenter/CtroMeeting.png" alt="" style="position: absolute;top: 0px;left: 0;">
  74. </div>
  75. <div class="detContInner">
  76. <span>{{$t('common.CreatingMeeting')}}</span>
  77. <p>{{$t('common.CreatingMeetingText')}}</p>
  78. </div>
  79. </div>
  80. <div class="detOut">
  81. <div class="detCont"></div>
  82. <div style="position: relative;top: -44px;left: 40%;">
  83. <img src="@/assets/img/helpCenter/creatMeeting.png" alt="" style="position: absolute;top: 0px;left: 0;">
  84. </div>
  85. <div class="detContInner">
  86. <span>{{$t('common.ManagementMeeting')}}</span>
  87. <p>{{$t('common.ManagementMeetingText')}}</p>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <!-- 快速会议、预定会议临时提示 -->
  93. <el-dialog
  94. :title="$t('common.WarmPrompt')"
  95. :visible.sync="quickMeetingtemporaryVisible"
  96. width="30%">
  97. <div v-if="$i18n.locale == 'zh'">
  98. 在线会议功能因系统升级,暂时不可使用,敬请谅解。
  99. </div>
  100. <div v-else>
  101. The online conference function is temporarily unavailable due to system upgrade. Please understand.
  102. </div>
  103. </el-dialog>
  104. <!-- 快速会议提示 -->
  105. <el-dialog
  106. :title="$t('common.TencentMeeting')"
  107. :visible.sync="quickMeetingDialogVisible"
  108. width="30%"
  109. :before-close="handleClose">
  110. <span>
  111. <strong>
  112. <p>{{$t('common.mTip1')}}</p>
  113. <p>{{$t('common.mTip2')}}</p>
  114. <p><a :href="quickMeetingResult.meeting_info_list[0].join_url" target="_blank">{{quickMeetingResult.meeting_info_list[0].join_url}}</a></p>
  115. <p>{{$t('common.meetingId')}}{{quickMeetingResult.meeting_info_list[0].meeting_code}}</p>
  116. </strong>
  117. </span>
  118. </el-dialog>
  119. <!-- 预定会议 -->
  120. <el-dialog :title="$t('common.ScheduledMeeting')" :visible.sync="scheduledMeeting">
  121. <el-form :model="scheduledMeetingConfig">
  122. <el-form-item :label="$t('common.mTheTheme')" label-width="120px">
  123. <el-input v-model="scheduledMeetingConfig.subject" autocomplete="off" maxlength="100" show-word-limit></el-input>
  124. </el-form-item>
  125. <el-form-item :label="$t('common.mStartTime')" label-width="120px">
  126. <el-date-picker
  127. v-model="startDate"
  128. :clearable="false"
  129. type="date"
  130. :editable="false"
  131. :picker-options="pickerOptions"
  132. value-format="yyyy-MM-dd"
  133. :placeholder="$t('common.mSelectDate')">
  134. </el-date-picker>
  135. <el-time-select
  136. v-model="startTime"
  137. :clearable="false"
  138. :editable="false"
  139. :picker-options="{
  140. start: '00:00',
  141. step: '00:15',
  142. end: '24:00'
  143. }"
  144. :placeholder="$t('common.mSelectTime')"
  145. style="margin-left: 10px">
  146. </el-time-select>
  147. </el-form-item>
  148. <el-form-item :label="$t('common.mEndTime')" label-width="120px">
  149. <el-date-picker
  150. v-model="startDate"
  151. type="date"
  152. :clearable="false"
  153. value-format="yyyy-MM-dd"
  154. :editable="false"
  155. :picker-options="pickerOptions"
  156. :placeholder="$t('common.mSelectDate')">
  157. </el-date-picker>
  158. <el-time-select
  159. v-model="endTime"
  160. :clearable="false"
  161. :editable="false"
  162. :picker-options="{
  163. start: '00:00',
  164. step: '00:15',
  165. end: '24:00',
  166. minTime: startTime
  167. }"
  168. :placeholder="$t('common.mSelectDate')"
  169. style="margin-left: 10px">
  170. </el-time-select>
  171. </el-form-item>
  172. <el-form-item :label="$t('common.mPassword')" label-width="120px">
  173. <el-checkbox v-model="openPass">{{$t('common.OpenMeetingPassword')}}</el-checkbox>
  174. <el-input v-model="scheduledMeetingConfig.password" autocomplete="off" v-if="openPass" maxlength="6"></el-input>
  175. </el-form-item>
  176. </el-form>
  177. <div slot="footer" class="dialog-footer">
  178. <el-button @click="scheduledMeeting = false">{{$t('common.mCancel')}}</el-button>
  179. <el-button type="primary" @click="scheduledMeetingEvent">{{$t('common.mConfirm')}}</el-button>
  180. </div>
  181. </el-dialog>
  182. <!-- 预定会议提示 -->
  183. <el-dialog
  184. :title="$t('common.TencentMeeting')"
  185. :visible.sync="scheduledMeetingDialogVisible"
  186. width="30%"
  187. :before-close="handleClose">
  188. <span>
  189. <strong>
  190. <p>{{$t('common.mTip1')}}</p>
  191. <p>{{$t('common.mTheTheme')}}:{{scheduledMeetingResult.meeting_info_list[0].subject}}</p>
  192. <p>{{$t('common.mTime')}}:{{formatDateAndHouse(parseInt((scheduledMeetingResult.meeting_info_list[0].start_time + '000'))) }} - {{formatDateAndHouse(parseInt((scheduledMeetingResult.meeting_info_list[0].end_time + '000'))) }}</p>
  193. <p>{{$t('common.mTip2')}}</p>
  194. <p><a :href="scheduledMeetingResult.meeting_info_list[0].join_url" target="_blank">{{scheduledMeetingResult.meeting_info_list[0].join_url}}</a></p>
  195. <p>{{$t('common.meetingId')}}{{scheduledMeetingResult.meeting_info_list[0].meeting_code}}</p>
  196. <p>{{$t('common.mPassword')}}:{{scheduledMeetingResult.meeting_info_list[0].password}}</p>
  197. </strong>
  198. </span>
  199. </el-dialog>
  200. <el-dialog
  201. :title="$t('common.MyMeeting')"
  202. :visible.sync="meetingsDialogVisible"
  203. width="30%"
  204. :before-close="handleClose">
  205. <span>
  206. <div style="height: 400px;overflow:scroll;background:#EEEEEE;padding: 20px 30px">
  207. <div v-for="(value,key) in meetingList" :key="key">
  208. <strong>{{key}}</strong>
  209. <el-divider></el-divider>
  210. <div v-for="(item,index) in value" :key="index" style="font-size: 10px;">
  211. <p>{{$t('common.mTheTheme')}}:{{item.subject}}</p>
  212. <p>{{$t('common.TheOriginator')}}:{{username}}</p>
  213. <p>{{$t('common.mTime')}}:{{formatDateAndHouse(parseInt(item.startTime)*1000)}} - {{formatDateAndHouse(parseInt(item.endTime)*1000)}}</p>
  214. <p>{{$t('common.meetingId')}}{{item.meetingCode }}</p>
  215. <p>{{$t('common.mUrl')}}:<a :href="item.joinUrl" target="_blank">{{item.joinUrl}}</a></p>
  216. <p v-if="item.password">{{$t('common.mPassword')}}:{{item.password}}</p>
  217. <el-divider></el-divider>
  218. </div>
  219. </div>
  220. <div v-if="JSON.stringify(meetingList) == '{}'" style="width: 100%;position: relative;">
  221. <div style="position: absolute;left: 50%;top: 150px;transform: translate(-50%,-50%);font-size: 20px">
  222. {{$t('common.NoData')}}
  223. </div>
  224. </div>
  225. </div>
  226. </span>
  227. </el-dialog>
  228. <el-dialog
  229. :title="$i18n.locale=='zh'?'提示':'Reminder'"
  230. :visible.sync="toViewLogin"
  231. :width="$i18n.locale=='zh'?'500px':'750px'"
  232. :height="$i18n.locale=='zh'?'300px':'386px'"
  233. :before-close="toViewLoginChange">
  234. <div style="width: 100%;height: 100%;">
  235. <img src="@/assets/img/loginTips.png" alt="" style="width: 180px;height: 180px;margin-left: 20px;">
  236. <div style="float: right;margin-right: 20px;"
  237. :style="$i18n.locale=='zh'?'width: 49%;margin-top: 10px;':'width: 453px;margin-top: -25px;'">
  238. <div style="font-size: 20px;font-weight: normal;color: #333333;
  239. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  240. line-height: 40px;">
  241. {{$t('common.ReminderFirst')}}
  242. </div>
  243. <div style="font-size: 16px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  244. font-weight: normal;color: #666666;line-height: 30px;">
  245. {{$t('common.ReminderSecond')}} <span style="color: #0091FF;font-size: 18px;">{{num}}</span>
  246. {{$t('common.ReminderThird')}}
  247. </div>
  248. <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  249. font-weight: normal;color: #666666;line-height: 30px;">
  250. {{$t('common.ReminderForth')}}
  251. </div>
  252. <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  253. height:33px;line-height:60px;font-weight: normal;color: #0091FF;">
  254. <span style="margin-left: 40px;" class="cursor" @click="toView('login')">
  255. {{$t('common.ReminderFifth')}}
  256. </span>
  257. <span style="margin-left: 10px;" class="cursor" @click="toView('Register')">
  258. {{$t('common.ReminderSixth')}}
  259. </span>
  260. </div>
  261. </div>
  262. </div>
  263. </el-dialog>
  264. </div>
  265. </template>
  266. <script>
  267. import {quickMeeting,myMeetings} from '@/api/meeting/tencentMeeting'
  268. import {getToken, resetToken} from "@/utils/auth";
  269. export default {
  270. name: 'onlineMeeting',
  271. mounted() {
  272. if(this.$Cookies.get('token')){
  273. let user = window.localStorage.getItem('user');
  274. let users = JSON.parse(user);
  275. console.log(users)
  276. let emailUserUid = users.umsUser.userEmail.split("@")[0];
  277. this.quickMeetingConfig.userid = emailUserUid;
  278. this.quickMeetingConfig.hosts[0] = {
  279. "userid": emailUserUid
  280. };
  281. this.scheduledMeetingConfig.userid = emailUserUid;
  282. this.scheduledMeetingConfig.hosts[0] = {
  283. "userid": emailUserUid
  284. };
  285. this.userId = users.userId;
  286. this.username = users.username;
  287. this.userUserTypeDict = users.umsUser.userUsertypeDict;
  288. this.onlineStatus = true;
  289. }
  290. let date = new Date();
  291. this.startDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
  292. this.endDate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
  293. },
  294. data () {
  295. return {
  296. num: 0,
  297. num: 5,
  298. toViewLogin: false,
  299. isOnlineConsultation: false,
  300. meetingsDialogVisible:false,
  301. quickMeetingDialogVisible: false,
  302. scheduledMeeting:false,
  303. scheduledMeetingDialogVisible:false,
  304. quickMeetingtemporaryVisible:false,
  305. openPass:false,
  306. onlineStatus:false,
  307. loading:false,
  308. userUserTypeDict:'',
  309. userId:'',
  310. username:'',
  311. startDate:'',
  312. startTime:'00:00',
  313. endDate:'',
  314. endTime:'00:10',
  315. pickerOptions:{
  316. disabledDate(time) {
  317. return time.getTime() < Date.now();
  318. },
  319. },
  320. meetingList:new Map(),
  321. quickMeetingResult : {
  322. meeting_number: 1,
  323. meeting_info_list:[
  324. {
  325. subject: "",
  326. meeting_id: "",
  327. meeting_code: "",
  328. password: "",
  329. start_time : "",
  330. end_time : "",
  331. hosts:[],
  332. participants:[],
  333. user_non_registered:[],
  334. join_url: "",
  335. settings:{}
  336. }
  337. ]
  338. },
  339. scheduledMeetingResult : {
  340. meeting_number: 1,
  341. meeting_info_list:[
  342. {
  343. subject: "",
  344. meeting_id: "",
  345. meeting_code: "",
  346. password: "",
  347. start_time : "",
  348. end_time : "",
  349. hosts:[],
  350. participants:[],
  351. user_non_registered:[],
  352. join_url: "",
  353. settings:{}
  354. }
  355. ]
  356. },
  357. quickMeetingConfig : {
  358. userid: "tester",//用户id
  359. instanceid: 5,//用户终端设备类型 1 - PC,2 - Mac,3 - Android,4 - iOS,5 - Web,6 - iPad,7 - Android Pad,8 - 小程序。
  360. subject: "我的会议",//会议主题
  361. type: 1,//会议类型 0 - 预约会议 1 - 快速会议。
  362. hosts: [{
  363. "userid": "tester"
  364. }],//会议主持人的用户 ID,如果没有指定,主持人被设定为参数 userid 的用户,即 API 调用者。
  365. start_time: "1600227151",//会议开始时间
  366. end_time: "1600313551 ",//会议结束时间
  367. //password:'', //会议密码
  368. enable_interpreter:true,
  369. settings: {
  370. mute_enable_join : true,//入会时静音。
  371. allow_unmute_self : true,//允许参会者取消静音。
  372. mute_all: false,//全体静音。
  373. host_video: true,//入会时主持人视频是否开启,暂时不支持。
  374. participant_video: false,//入会时参会者视频是否开启,暂时不支持。
  375. enable_record: false,//开启录播,暂时不支持。
  376. play_ivr_on_leave: false,//参会者离开时播放提示音。
  377. play_ivr_on_join: false,//有新的入会者加入时播放提示音。
  378. live_url: false,//开启直播, 暂时不支持。
  379. //allow_in_before_host:true,//是否允许成员在主持人进会前加入会议
  380. //auto_in_waiting_room:false,//是否开启等候室,默认值 false
  381. //allow_screen_shared_watermark:false,//是否开启屏幕共享水印,默认值 false。
  382. //only_enterprise_user_allowed:false//是否仅企业内部成员可入会,默认值 false。
  383. }
  384. },
  385. scheduledMeetingConfig : {
  386. userid: "tester",//用户id
  387. instanceid: 5,//用户终端设备类型 1 - PC,2 - Mac,3 - Android,4 - iOS,5 - Web,6 - iPad,7 - Android Pad,8 - 小程序。
  388. subject: "我的会议",//会议主题
  389. type: 0,//会议类型 0 - 预约会议 1 - 快速会议。
  390. // hosts: [],//会议主持人的用户 ID,如果没有指定,主持人被设定为参数 userid 的用户,即 API 调用者。
  391. start_time: '',//会议开始时间
  392. end_time: '',//会议结束时间
  393. password:'', //会议密码
  394. enable_interpreter:true,
  395. settings: {
  396. mute_enable_join : true,//入会时静音。
  397. allow_unmute_self : true,//允许参会者取消静音。
  398. mute_all: false,//全体静音。
  399. host_video: true,//入会时主持人视频是否开启,暂时不支持。
  400. participant_video: false,//入会时参会者视频是否开启,暂时不支持。
  401. enable_record: false,//开启录播,暂时不支持。
  402. play_ivr_on_leave: false,//参会者离开时播放提示音。
  403. play_ivr_on_join: false,//有新的入会者加入时播放提示音。
  404. live_url: false,//开启直播, 暂时不支持。
  405. //allow_in_before_host:true,//是否允许成员在主持人进会前加入会议
  406. //auto_in_waiting_room:false,//是否开启等候室,默认值 false
  407. //allow_screen_shared_watermark:false,//是否开启屏幕共享水印,默认值 false。
  408. //only_enterprise_user_allowed:false//是否仅企业内部成员可入会,默认值 false。
  409. }
  410. }
  411. }
  412. },
  413. computed:{
  414. meetingStartTime(){
  415. let start = this.startDate.replace(/-/g, '/');
  416. let sDate = start + " " + this.startTime;
  417. let date = new Date(sDate);
  418. console.log(date);
  419. return (parseInt(date.getTime())/1000).toString()
  420. },
  421. meetingEndTime(){
  422. let end = this.startDate.replace(/-/g, '/');
  423. let eDate = end + " " + this.endTime;
  424. let date = new Date(eDate);
  425. console.log(date);
  426. return (parseInt(date.getTime())/1000).toString()
  427. }
  428. },
  429. watch:{
  430. "openPass"(){
  431. if(!this.openPass){
  432. this.scheduledMeetingConfig.password = '';
  433. }
  434. },
  435. "toViewLogin"() {
  436. if (this.toViewLogin == true) {
  437. this.loginTipsChange()
  438. }
  439. }
  440. },
  441. methods:{
  442. loginTipsChange() {
  443. const that = this;
  444. this.num = 5;
  445. // clearInterval(timer_interval);
  446. this.timer = setInterval(function () {
  447. if (that.num > 0) {
  448. that.num--;
  449. } else {
  450. if (that.toViewLogin == true) {
  451. clearInterval(that.timer);
  452. that.toView('login');
  453. } else {
  454. clearInterval(that.timer);
  455. }
  456. }
  457. }, 1000)
  458. },
  459. toViewLoginChange(done) {
  460. this.toViewLogin = false;
  461. this.num = 5;
  462. clearInterval(this.timer);
  463. },
  464. toView(router, json) {
  465. clearInterval(this.timer);
  466. this.$router.push({
  467. name: router,
  468. params: json,
  469. });
  470. },
  471. reserve(){
  472. let user = window.localStorage.getItem("user");
  473. if (!this.$Cookies.get('token')) {
  474. this.toViewLogin = true;
  475. } else {
  476. this.scheduledMeeting = true;
  477. }
  478. /* if(this.userUserTypeDict != '2'){
  479. this.$alert('该功能仅会员可以使用', '温馨提示', {
  480. confirmButtonText: '确定'
  481. });
  482. return
  483. }*/
  484. },
  485. myMeeting(){
  486. let user = window.localStorage.getItem("user");
  487. if (!this.$Cookies.get('token')) {
  488. this.toViewLogin = true;
  489. } else {
  490. /*if(this.userUserTypeDict != '2'){
  491. this.$alert(this.$t('common.checkTip3'), this.$t('common.WarmPrompt'), {
  492. confirmButtonText: this.$t('common.mConfirm')
  493. });
  494. return
  495. }*/
  496. this.loading = true;
  497. myMeetings(this.userId).then(result => {
  498. this.loading = false;
  499. this.meetingList = result.data;
  500. this.meetingsDialogVisible = true;
  501. }).catch(error =>{
  502. this.loading = false;
  503. this.$alert(this.$t('common.mError'), this.$t('common.WarmPrompt'), {
  504. confirmButtonText: this.$t('common.mConfirm')
  505. });
  506. })
  507. }
  508. },
  509. handleClose(done) {
  510. this.$confirm(this.$t('common.cClose'),this.$t('common.WarmPrompt'),{
  511. confirmButtonText: this.$t('common.mConfirm'),
  512. cancelButtonText: this.$t('common.mCancel'),
  513. })
  514. .then(_ => {
  515. done();
  516. })
  517. .catch(_ => {});
  518. },
  519. scheduledMeetingEvent(){
  520. let that = this;
  521. var token = "" + getToken();
  522. console.log('开始',this.meetingStartTime)
  523. console.log('结束',this.meetingEndTime)
  524. console.log(parseInt(this.meetingStartTime) < parseInt(this.meetingEndTime))
  525. if(parseInt(this.meetingStartTime) > parseInt(this.meetingEndTime)){
  526. this.$alert(this.$t('common.checkTip1'), this.$t('common.WarmPrompt'), {
  527. confirmButtonText: this.$t('common.mConfirm')
  528. });
  529. return
  530. };
  531. if(parseInt(this.meetingStartTime) * 1000 < new Date().getTime()){
  532. this.$alert(this.$t('common.checkTip2'), this.$t('common.WarmPrompt'), {
  533. confirmButtonText: this.$t('common.mConfirm')
  534. });
  535. return
  536. };
  537. that.scheduledMeetingConfig.start_time = this.meetingStartTime;
  538. that.scheduledMeetingConfig.end_time = this.meetingEndTime;
  539. this.loading = true;
  540. quickMeeting(JSON.stringify(that.scheduledMeetingConfig),that.userId,token).then( resutl => {
  541. let meeting = resutl.data;
  542. this.loading = false;
  543. if(meeting.meeting_info_list){
  544. that.scheduledMeeting = false;
  545. that.scheduledMeetingResult = meeting;
  546. that.scheduledMeetingDialogVisible = true;
  547. }else{
  548. this.$alert(this.$t('common.mError'), this.$t('common.WarmPrompt'), {
  549. confirmButtonText: this.$t('common.mConfirm')
  550. });
  551. }
  552. console.log(meeting);
  553. }).catch((error) => {
  554. // 此处你的业务代码
  555. this.loading = false;
  556. this.$alert(this.$t('common.mError'), this.$t('common.WarmPrompt'), {
  557. confirmButtonText: this.$t('common.mConfirm')
  558. });
  559. });
  560. },
  561. quickMeeting(){
  562. // if(!this.onlineStatus){
  563. // this.$alert(this.$t('common.PleaseLoginFirst'), this.$t('common.WarmPrompt'), {
  564. // confirmButtonText: this.$t('common.mConfirm')
  565. // });
  566. // return
  567. // }
  568. let user = window.localStorage.getItem("user");
  569. if (!this.$Cookies.get('token')) {
  570. this.toViewLogin = true;
  571. } else {
  572. /*if(this.userUserTypeDict != '2'){
  573. this.$alert('该功能仅会员可以使用', '温馨提示', {
  574. confirmButtonText: '确定'
  575. });
  576. return
  577. }*/
  578. let that = this;
  579. var token = "" + getToken();
  580. this.loading = true;
  581. quickMeeting(JSON.stringify(that.quickMeetingConfig), that.userId, token).then(resutl => {
  582. let meeting = resutl.data;
  583. this.loading = false;
  584. if (meeting.meeting_info_list) {
  585. that.quickMeetingResult = meeting;
  586. that.quickMeetingDialogVisible = true
  587. } else {
  588. this.$alert(this.$t('common.mError'), this.$t('common.WarmPrompt'), {
  589. confirmButtonText: this.$t('common.mConfirm')
  590. });
  591. }
  592. }).catch((error) => {
  593. this.loading = false;
  594. this.$alert(this.$t('common.mError'), this.$t('common.WarmPrompt'), {
  595. confirmButtonText: this.$t('common.mConfirm')
  596. });
  597. });
  598. ;
  599. }
  600. },
  601. templeTip(){
  602. const that = this;
  603. if (!that.$Cookies.get('token')) {
  604. that.toViewLogin = true;
  605. } else {
  606. that.quickMeetingtemporaryVisible = true
  607. }
  608. }
  609. }
  610. }
  611. </script>
  612. <!-- Add "scoped" attribute to limit CSS to this component only -->
  613. <style scoped>
  614. body {
  615. margin: 0;
  616. }
  617. .box {
  618. margin-top: 10px;
  619. background: #fff;
  620. /* height: 500px; */
  621. padding: 20px 0;
  622. }
  623. .crumbs {
  624. margin-left: 20px;
  625. }
  626. .content{
  627. width: 88%;
  628. text-align: center;
  629. padding: 74px 74px;
  630. }
  631. .meetingBtn{
  632. margin-right: 50px;
  633. width: 180px;
  634. height: 95px;
  635. color: #fff;
  636. font-size: 18px;
  637. vertical-align: middle;
  638. }
  639. .meetingBtn2{
  640. margin-right: 50px;
  641. width: 240px;
  642. height: 95px;
  643. color: #fff;
  644. font-size: 18px;
  645. vertical-align: middle;
  646. }
  647. .tep{
  648. width: 100%;
  649. height: 550px;
  650. background: url(../../assets/img/home/tepbg.png) no-repeat ;
  651. /* background-size: cover; */
  652. position: relative;
  653. }
  654. .mark{
  655. width: 100%;
  656. height: 100%;
  657. position: absolute;
  658. top: 0;
  659. left: 0;
  660. background: #0c0808;
  661. opacity: 0.6;
  662. }
  663. .tepDet{
  664. position: relative;
  665. width: 1200px;
  666. /* height: 100%; */
  667. margin: auto;
  668. color: #fff;
  669. text-align: center;
  670. padding: 80px 10px;
  671. }
  672. .detail{
  673. width: 1200px;
  674. margin: auto;
  675. color: #fff;
  676. padding-left: 200px;
  677. text-align: center;
  678. position: relative;
  679. }
  680. .detBox{
  681. width: 360px;
  682. height: 200px;
  683. background: #fff;
  684. opacity: 0.2;
  685. position: relative;
  686. display: inline-block;
  687. margin-right: 25px;
  688. }
  689. .tepCont{
  690. width: 100%;
  691. position: relative;
  692. top:0;
  693. left: 0;
  694. color: #fff;
  695. font-size: 18px;
  696. }
  697. .detCont{
  698. width:300px;
  699. height:200px;
  700. float: left;
  701. margin-right: 25px;
  702. background: #d9dae0;
  703. opacity: 0.2;
  704. }
  705. .detContInner{
  706. height: 100px;
  707. width: 280px;
  708. padding-left: 10px;
  709. position: absolute;
  710. margin-top: 50px;
  711. }
  712. .detOut{
  713. width:300px;
  714. height:200px;
  715. float: left;
  716. margin-right: 25px;
  717. }
  718. /deep/.el-dialog__body {
  719. word-break: normal;
  720. }
  721. </style>