onlineMeeting1.vue 40 KB

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