homepage_room.php 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  6. <title>群主页</title>
  7. <link type="text/css" rel="stylesheet"
  8. href="<?php echo RESOURCE_SITE_URL; ?>/mobile/talk/css/weui.css?<?php echo bonus_version(); ?>"/>
  9. <link rel="stylesheet"
  10. href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.min.css?<?php echo bonus_version(); ?>">
  11. <link type="text/css" rel="stylesheet"
  12. href="<?php echo RESOURCE_SITE_URL; ?>/mobile/talk/css/homepage.css?<?php echo bonus_version(); ?>"/>
  13. </head>
  14. <body>
  15. <?php $output['tpl']->show_cover(); ?>
  16. <div class="group_top">
  17. <div class="group_info">
  18. <?php $output['tpl']->show_group_header(); ?>
  19. <?php $output['tpl']->show_qrcode_btn(); ?>
  20. </div>
  21. <?php $output['tpl']->show_group_notice(); ?>
  22. <div class="group_handle weui-flex">
  23. <?php $output['tpl']->show_group_activity(); ?>
  24. </div>
  25. <div class="group_members weui-flex">
  26. <?php $output['tpl']->show_members(); ?>
  27. </div>
  28. <div id="callback"></div>
  29. </div>
  30. <?php $output['tpl']->show_group_body(); ?>
  31. <?php $output['tpl']->show_personal_settings(); ?>
  32. <?php $output['tpl']->show_group_footer(); ?>
  33. <?php $output['tpl']->show_footer_btn(); ?>
  34. <div class="pop">
  35. <?php $output['tpl']->show_qrcode()?>
  36. </div>
  37. <script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js?<?php echo bonus_version(); ?>"></script>
  38. <script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/jquery-weui.min.js?<?php echo bonus_version(); ?>"></script>
  39. <script type="text/javascript"
  40. src="<?php echo RESOURCE_SITE_URL; ?>/mobile/comm/new_bridge.js?<?php echo bonus_version(); ?>"></script>
  41. <script type="text/javascript"
  42. src="<?php echo RESOURCE_SITE_URL; ?>/js/ajaxfileupload/ajaxfileupload.js?<?php echo bonus_version(); ?>"></script>
  43. <script type="text/javascript">
  44. $(function () {
  45. var talk_type = "<?php echo $output['param']['talk_type']; ?>";
  46. var talk_id = "<?php echo $output['param']['talk_id']; ?>";
  47. var cur_mid ="<?php echo $output['param']['member_id']; ?>";
  48. var jsBridge = new Bridge();
  49. $(window).on('pageshow',function(){
  50. var is_reload = sessionStorage.getItem('is_reload');
  51. if(is_reload) {
  52. sessionStorage.removeItem('is_reload');
  53. window.location.reload();
  54. }
  55. });
  56. if($('#add_group_pwd').length > 0 || $('#add_group_apply').length > 0 || $('#add_group').length > 0) {
  57. $('html').css({"min-height":"100%",background:"#ffffff"})
  58. }
  59. var ajaxFileUpload = function () {
  60. $.showLoading();
  61. $.ajaxFileUpload({
  62. url: '/upfile.php',
  63. secureuri: false,
  64. type: 'post',
  65. fileElementId: 'uploader',
  66. dataType: 'json',
  67. data: {
  68. room_id: talk_id
  69. },
  70. success: function (res) {
  71. if (res.code != 200) {
  72. $.hideLoading();
  73. $.alert(res.message);
  74. } else {
  75. var room_avatar = res.datas.file_path;
  76. console.log(room_avatar);
  77. if (room_avatar) {
  78. const update = update_room_avatar(room_avatar);
  79. if (update) {
  80. $.hideLoading();
  81. } else {
  82. $.alert("网络错误");
  83. }
  84. } else {
  85. }
  86. }
  87. },
  88. error: function (data, status, e) {
  89. }
  90. });
  91. $('#uploader').on('change', function () {
  92. ajaxFileUpload();
  93. });
  94. };
  95. $('#uploader').on('change', function () {
  96. ajaxFileUpload();
  97. });
  98. var update_room_avatar = function (room_avatar) {
  99. $.post('/mobile/index.php?act=member_talk&op=change_room_avatar',
  100. {
  101. room_id: talk_id,
  102. file_path: room_avatar,
  103. client_type: 'ajax'
  104. }, function (res) {
  105. console.log(res);
  106. var result = JSON.parse(res);
  107. if (result.code != 200) {
  108. $.alert(result.message);
  109. return false;
  110. } else {
  111. console.log(result.datas.avatar);
  112. $(".g_avatar").attr("src", result.datas.avatar);
  113. $.toast('修改成功',1000);
  114. }
  115. });
  116. return true;
  117. };
  118. var getTalkInfo = function () {
  119. var jsonobject = {
  120. action: "talk_info",
  121. params: {
  122. talk_id: talk_id,
  123. talk_type: talk_type,//room和chatwo两个类型
  124. }
  125. };
  126. jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject), function (res) {
  127. var datas = JSON.parse(res);
  128. if (datas.talk_info.stick) {
  129. $('#talk_top').attr('checked', true);
  130. }
  131. if (datas.talk_info.forbid) {
  132. $('#no_disturb').attr('checked', true);
  133. }
  134. });
  135. };
  136. getTalkInfo();
  137. $('#add_member').on('click', function () {
  138. var jsonobject = {
  139. action: "friend_add",
  140. params: {
  141. room_id: talk_id
  142. }
  143. };
  144. $.showLoading();
  145. jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject), function (res) {
  146. $.hideLoading();
  147. var datas = JSON.parse(res);
  148. if (datas.friends.length <= 0 || datas.friends == null) return;
  149. var add_friends = datas.friends.join(',');
  150. $.showLoading();
  151. $.get('/mobile/index.php?act=member_talk&op=invite',
  152. {
  153. invitees: add_friends,
  154. room_id: talk_id,
  155. client_type: 'ajax'
  156. },
  157. function (res) {
  158. $.hideLoading();
  159. var datas = JSON.parse(res);
  160. if (datas.code != 200) {
  161. $.alert(datas.message);
  162. return;
  163. }
  164. var html = '';
  165. if (datas.datas.invitees && datas.datas.invitees.length > 0) {
  166. for (var i = 0; i < datas.datas.invitees.length; i++) {
  167. html += '<div class="weui-flex__item" data-member-id="' + datas.datas.invitees[i].member_id + '">' +
  168. '<img src="' + datas.datas.invitees[i].avatar + '" alt="">' +
  169. '<p>' + datas.datas.invitees[i].nickname + '</p>\n' +
  170. '</div>'
  171. }
  172. $('div[data-last="true"]').after(html);
  173. $.toast('添加成功',1000);
  174. }
  175. });
  176. });
  177. });
  178. $('#del_member').on('click', function () {
  179. var jsonobject = {
  180. action: "friend_del",
  181. params: {
  182. room_id: talk_id
  183. }
  184. };
  185. $.showLoading();
  186. jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject), function (res) {
  187. $.hideLoading();
  188. var datas = JSON.parse(res);
  189. if (datas.friends.length <= 0 || datas.friends == null) return;
  190. var del_friends = datas.friends.join(',');
  191. $.showLoading();
  192. $.get('/mobile/index.php?act=member_talk&op=kickout', {
  193. users: del_friends,
  194. room_id: talk_id,
  195. client_type: 'ajax'
  196. }, function (res) {
  197. $.hideLoading();
  198. var result = JSON.parse(res);
  199. if (result.code != 200) {
  200. $.alert(result.message);
  201. return;
  202. }
  203. var del_users = result.datas.users;
  204. var num = del_users.length;
  205. if(num > 0)
  206. {
  207. for (var i = 0; i < del_users.length; i++) {
  208. $('div[data-member-id=' + datas.friends[i] + ']').remove();
  209. }
  210. $.toast('删除成功',1000);
  211. }else
  212. {
  213. $.alert("请先移交管理员权限后,再离开聊天");
  214. return;
  215. }
  216. });
  217. });
  218. });
  219. $('#change_owner').on('click', function () {
  220. var jsonobject = {
  221. action: "talk_manager",
  222. params: {
  223. room_id: talk_id
  224. }
  225. };
  226. $.showLoading();
  227. jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject), function (res) {
  228. $.hideLoading();
  229. var datas = JSON.parse(res);
  230. if (datas.friends.length <= 0 || datas.friends == null) return;
  231. var new_owner = datas.friends.join(',');
  232. $.showLoading();
  233. $.get('/mobile/index.php?act=member_talk&op=change_room_owner',
  234. {
  235. room_owner:new_owner,
  236. room_id: talk_id,
  237. client_type: 'ajax'
  238. }, function (res) {
  239. $.hideLoading();
  240. var result = JSON.parse(res);
  241. console.log(result);
  242. if (result.code != 200) {
  243. $.alert(result.message);
  244. return;
  245. }
  246. $.toast('转让成功',1000);
  247. setTimeout(function () {
  248. window.location.reload();
  249. },1000);
  250. });
  251. });
  252. });
  253. $('#talk_top').on('change', function () {
  254. var _selfVal = $(this).is(':checked');
  255. var jsonobject;
  256. if (_selfVal) {
  257. jsonobject = {
  258. action: "talk_stick",
  259. params: {
  260. talk_id: talk_id,
  261. talk_type: talk_type,
  262. stick: true
  263. }
  264. };
  265. }
  266. else {
  267. jsonobject = {
  268. action: "talk_stick",
  269. params: {
  270. talk_id: talk_id,
  271. talk_type: talk_type,
  272. stick: false
  273. }
  274. };
  275. }
  276. jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject));
  277. });
  278. $('#no_disturb').on('change', function () {
  279. var _selfVal = $(this).is(':checked');
  280. var jsonobject;
  281. if (_selfVal) {
  282. jsonobject = {
  283. action: "talk_forbid",
  284. params: {
  285. talk_id: talk_id,
  286. talk_type: talk_type,
  287. forbid: true
  288. }
  289. };
  290. }
  291. else {
  292. jsonobject = {
  293. action: "talk_forbid",
  294. params: {
  295. talk_id: talk_id,
  296. talk_type: talk_type,
  297. forbid: false
  298. }
  299. };
  300. }
  301. jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject));
  302. });
  303. $('#edit_group_name').on('click', function () {
  304. $.prompt({
  305. title: '修改群名称',
  306. text: '请输入群名称(不得超过15字)',
  307. empty: false, // 是否允许为空
  308. onOK: function (input) {
  309. if (input && input.trim().length <= 15) {
  310. //点击确认
  311. $.showLoading();
  312. $.get('/mobile/index.php?act=member_talk&op=room_edit',
  313. {
  314. room_name: input,
  315. room_id: talk_id,
  316. client_type: 'ajax'
  317. }, function (res) {
  318. $.hideLoading();
  319. var result = JSON.parse(res);
  320. if (result.code != 200) {
  321. $.alert(result.message);
  322. return;
  323. }
  324. var new_group_name = input.trim();
  325. $('#edit_group_name .weui-cell__ft').text(new_group_name);
  326. $('.group_name h3').text(new_group_name);
  327. $.toast('修改成功',1000);
  328. });
  329. }
  330. else {
  331. $.alert('群名称不得超过15字');
  332. }
  333. },
  334. onCancel: function () {
  335. //点击取消
  336. }
  337. });
  338. });
  339. $('#edit_nickname').on('click',function(){
  340. $.prompt({
  341. title: '修改我的昵称',
  342. text: '请输入您的昵称(不得超过15字)',
  343. empty: false, // 是否允许为空
  344. onOK: function (input) {
  345. if (input && input.trim().length <= 15) {
  346. //点击确认
  347. $.showLoading();
  348. $.get('/mobile/index.php?act=member_talk&op=change_membernick',
  349. {
  350. member_nick: input,
  351. room_id: talk_id,
  352. client_type: 'ajax'
  353. }, function (res) {
  354. $.hideLoading();
  355. var result = JSON.parse(res);
  356. if (result.code != 200) {
  357. $.alert(result.message);
  358. return;
  359. }
  360. var new_group_name = input.trim();
  361. $('.weui-flex__item[data-member-id="'+cur_mid+'"] p').text(new_group_name);
  362. $('.group-nickname').text(new_group_name);
  363. $.toast('修改成功',1000);
  364. });
  365. }
  366. else {
  367. $.alert('群名称不得超过15字');
  368. }
  369. },
  370. onCancel: function () {
  371. //点击取消
  372. }
  373. });
  374. });
  375. $('#edit_room_notice').on('click',function(){
  376. $.prompt({
  377. title: '修改群公告',
  378. input: '请输入公告信息',
  379. empty: false, // 是否允许为空
  380. onOK: function (input) {
  381. if (input && input.trim().length <= 120) {
  382. //点击确认
  383. $.showLoading();
  384. $.get('/mobile/index.php?act=member_talk&op=change_room_notice',
  385. {
  386. room_notice: input,
  387. room_id: talk_id,
  388. client_type: 'ajax'
  389. }, function (res) {
  390. $.hideLoading();
  391. var result = JSON.parse(res);
  392. if (result.code != 200) {
  393. $.alert(result.message);
  394. return;
  395. }
  396. var new_notice = "【公告】"+ input.trim();
  397. $('.group_notice_board p').text(new_notice);
  398. $('#room-notice-btn').text("已设置");
  399. $('.group_notice_board').show();
  400. $.toast('修改成功',1000);
  401. });
  402. }
  403. else {
  404. $.alert('群公告不得超过120字');
  405. }
  406. },
  407. onCancel: function () {
  408. //点击取消
  409. }
  410. });
  411. $("#weui-prompt-input").remove(); //去除原始输入框
  412. $(".weui-dialog__bd").append('<textarea rows="8" style="height:110px;" class="weui_input weui-prompt-input" id="weui-prompt-input" value=""></textarea>');
  413. });
  414. $('#edit_room_desc').on('click',function(){
  415. $.prompt({
  416. title: '修改群介绍',
  417. text: '请输入群的简介(65个字符以内)',
  418. empty: false, // 是否允许为空
  419. onOK: function (input) {
  420. if (input && input.trim().length <= 65) {
  421. //点击确认
  422. $.showLoading();
  423. $.get('/mobile/index.php?act=member_talk&op=room_edit',
  424. {
  425. room_desc: input,
  426. room_id: talk_id,
  427. client_type: 'ajax'
  428. }, function (res) {
  429. $.hideLoading();
  430. var result = JSON.parse(res);
  431. if (result.code != 200) {
  432. $.alert(result.message);
  433. return;
  434. }
  435. var room_desc = input.trim();
  436. $('.group_name p').text(room_desc);
  437. $('#room-desc-btn').text("已设置");
  438. $.toast('修改成功',1000);
  439. });
  440. }
  441. else {
  442. $.alert('群介绍不得超过65字');
  443. }
  444. },
  445. onCancel: function () {
  446. //点击取消
  447. }
  448. });
  449. });
  450. $('#quit_group').on('click',function(){
  451. $.confirm({
  452. title: '确认退出',
  453. text: '您确认退出该群吗?',
  454. onOK: function () {
  455. $.showLoading();
  456. $.get('/mobile/index.php?act=member_talk&op=leave',{
  457. room_id:talk_id,
  458. client_type:'ajax'
  459. },function(res){
  460. var datas = JSON.parse(res);
  461. if(datas.code != 200) {
  462. $.alert(datas.message);
  463. $.hideLoading();
  464. return;
  465. }
  466. var jsonobject = {
  467. action: "talk_quit",
  468. params: {
  469. talk_id: talk_id,
  470. talk_type: talk_type
  471. }
  472. };
  473. jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject),function(){
  474. $.hideLoading();
  475. });
  476. });
  477. },
  478. onCancel: function () {
  479. }
  480. });
  481. });
  482. $('#hide_msg').on('click', function () {
  483. $.confirm({
  484. title: '确认清空',
  485. text: '您确认清空聊天记录吗?',
  486. onOK: function () {
  487. $.showLoading();
  488. $.get('/mobile/index.php?act=member_talk&op=hide_msg',
  489. {
  490. room_id: talk_id,
  491. client_type: 'ajax'
  492. }, function (res) {
  493. $.hideLoading();
  494. var result = JSON.parse(res);
  495. console.log(result);
  496. if (result.code != 200) {
  497. $.alert(result.message);
  498. return;
  499. }
  500. var jsonobject = {
  501. action: "talk_clear",
  502. params: {
  503. talk_id: talk_id,
  504. talk_type: talk_type
  505. }
  506. };
  507. jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject));
  508. $.toast('清除成功',1000);
  509. });
  510. },
  511. onCancel: function () {
  512. }
  513. })
  514. });
  515. $('#add_group').on('click', function () {
  516. $.showLoading();
  517. $.get('/mobile/index.php?act=member_talk&op=send_apply',
  518. {
  519. room_id: talk_id,
  520. client_type: 'ajax'
  521. }, function (res) {
  522. $.hideLoading();
  523. var result = JSON.parse(res);
  524. console.log(result);
  525. if (result.code != 200) {
  526. $.alert(result.message);
  527. return;
  528. }
  529. $.toast('进入成功',1000);
  530. });
  531. });
  532. $('#add_group_pwd').on('click', function () {
  533. $.prompt({
  534. title: '密码进群',
  535. text: '请输入密码(最长8位)',
  536. empty: false, // 是否允许为空
  537. onOK: function (input) {
  538. if (input && input.trim().length <= 8) {
  539. $.showLoading();
  540. $.get('/mobile/index.php?act=member_talk&op=send_apply',
  541. {
  542. passwd :input,
  543. room_id: talk_id,
  544. client_type: 'ajax'
  545. }, function (res) {
  546. $.hideLoading();
  547. var result = JSON.parse(res);
  548. console.log(result);
  549. if (result.code != 200) {
  550. $.alert(result.message);
  551. return;
  552. }
  553. $.toast('进入成功',1000);
  554. });
  555. }
  556. else {
  557. $.alert('密码最长为8位,可以由英文字母和数字任意组成,不区分大小写');
  558. }
  559. },
  560. onCancel: function () {
  561. //点击取消
  562. }
  563. });
  564. });
  565. $('#add_group_apply').on('click', function () {
  566. $.prompt({
  567. title: '申请入群',
  568. text: '请输入自我介绍(30字符以内)',
  569. empty: false,
  570. onOK: function (input) {
  571. if (input && input.trim().length <= 30) {
  572. $.showLoading();
  573. $.get('/mobile/index.php?act=member_talk&op=send_apply',
  574. {
  575. apply:1,
  576. msg :input,
  577. room_id: talk_id,
  578. client_type: 'ajax'
  579. }, function (res) {
  580. $.hideLoading();
  581. var result = JSON.parse(res);
  582. console.log(result);
  583. if (result.code != 200) {
  584. $.alert(result.message);
  585. return;
  586. }
  587. $.toast('申请成功',1000);
  588. });
  589. }
  590. else {
  591. $.alert('入群申请最长不得超过30字符');
  592. }
  593. },
  594. onCancel: function () {
  595. //点击取消
  596. }
  597. });
  598. });
  599. $('.group_notice_board p').on('click',function(){
  600. $(this).toggleClass('text_overflow');
  601. if($(this).hasClass('text_overflow')) {
  602. $('.group_notice_board').removeAttr('style');
  603. }
  604. else {
  605. $('.group_notice_board').css('max-height','999px');
  606. }
  607. });
  608. $('.qrcode_btn').on('click',function(){
  609. $('.pop').show(200);
  610. });
  611. $('.close_btn').on('click',function(){
  612. $('.pop').hide();
  613. });
  614. $('.pop').on('touchmove',function(e){
  615. e.preventDefault();
  616. });
  617. $('#group_pwd').on('click',function(e){
  618. if(!$(this).is(':checked')) {
  619. e.preventDefault();
  620. $.showLoading();
  621. $.get('/mobile/index.php?act=member_talk&op=change_passwd',
  622. {
  623. room_id: talk_id,
  624. client_type: 'ajax',
  625. use_pass:0
  626. }, function (res) {
  627. $.hideLoading();
  628. var result = JSON.parse(res);
  629. if (result.code != 200) {
  630. $.alert(result.message);
  631. return;
  632. }
  633. $('#group_pwd').removeAttr('checked');
  634. });
  635. }
  636. else {
  637. $.prompt({
  638. title: '修改群密码',
  639. text: '请设置4-8位群密码',
  640. empty: false,
  641. onOK: function (input) {
  642. if (input && (input.trim().length <= 8 && input.trim().length >= 4)) {
  643. //点击确认
  644. $.showLoading();
  645. $.get('/mobile/index.php?act=member_talk&op=change_passwd',
  646. {
  647. passwd: input,
  648. room_id: talk_id,
  649. client_type: 'ajax',
  650. use_pass:1
  651. }, function (res) {
  652. $.hideLoading();
  653. var result = JSON.parse(res);
  654. if (result.code != 200) {
  655. $.alert(result.message);
  656. $('#group_pwd').removeAttr('checked');
  657. return;
  658. }
  659. $('#group_pwd').attr('checked',true);
  660. $.toast('群密码设置成功',1000);
  661. });
  662. }
  663. else {
  664. $('#group_pwd').removeAttr('checked');
  665. $.alert('群密码设置错误,请重试');
  666. }
  667. },
  668. onCancel: function () {
  669. $('#group_pwd').removeAttr('checked');
  670. }
  671. });
  672. }
  673. });
  674. $('#group_AC').on('click',function(){
  675. $.actions({
  676. actions: [{
  677. text: "企业认证",
  678. onClick: function() {
  679. window.location.href="/mobile/index.php?act=member_talk&op=room_certificate&ctype=2&talk_id="+talk_id;
  680. }
  681. },{
  682. text: "校园认证",
  683. onClick: function() {
  684. window.location.href="/mobile/index.php?act=member_talk&op=room_certificate&ctype=1&talk_id="+talk_id;
  685. }
  686. }]
  687. });
  688. });
  689. $('.group_members .member-detail').on('click',function(){
  690. var member_id = $(this).attr('data-member-id');
  691. window.location.href = "/mobile/index.php?act=member_talk&from_type=1&op=member_detail&visitor_id="+member_id;
  692. });
  693. $("#room-apply-btn").on('click',function () {
  694. window.location.href = "/mobile/index.php?act=member_talk&op=room_apply&talk_id="+talk_id;
  695. })
  696. }
  697. );
  698. </script>
  699. </body>
  700. </html>