|
@@ -23,9 +23,7 @@
|
|
|
|
|
|
<?php //$output['tpl']->show_group_notice(); //删除群公告展示 ?>
|
|
|
|
|
|
- <div class="group_handle weui-flex">
|
|
|
- <?php $output['tpl']->show_group_activity(); ?>
|
|
|
- </div>
|
|
|
+ <?php $output['tpl']->show_group_activity(); ?>
|
|
|
|
|
|
<?php $output['tpl']->show_members(); ?>
|
|
|
|
|
@@ -424,46 +422,46 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- $('#edit_room_notice').on('click',function(){
|
|
|
- $.prompt({
|
|
|
- title: '修改群公告',
|
|
|
- input: '请输入公告信息',
|
|
|
- empty: false, // 是否允许为空
|
|
|
- onOK: function (input) {
|
|
|
- if (input && input.trim().length <= 120) {
|
|
|
- //点击确认
|
|
|
- $.showLoading();
|
|
|
- $.get('/mobile/index.php?act=member_talk&op=change_room_notice',
|
|
|
- {
|
|
|
- room_notice: input,
|
|
|
- room_id: talk_id,
|
|
|
- client_type: 'ajax'
|
|
|
- }, function (res) {
|
|
|
- $.hideLoading();
|
|
|
- var result = JSON.parse(res);
|
|
|
- if (result.code != 200) {
|
|
|
- $.alert(result.message);
|
|
|
- return;
|
|
|
- }
|
|
|
- var new_notice = "【公告】"+ input.trim();
|
|
|
- $('.group_notice_board p').text(new_notice);
|
|
|
- $('#room-notice-btn').text("已设置");
|
|
|
- $('.group_notice_board').show();
|
|
|
- $.toast('修改成功',1000);
|
|
|
- });
|
|
|
- }
|
|
|
- else {
|
|
|
- $.alert('群公告不得超过120字');
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- onCancel: function () {
|
|
|
- //点击取消
|
|
|
- }
|
|
|
- });
|
|
|
- $("#weui-prompt-input").remove(); //去除原始输入框
|
|
|
- $(".weui-dialog__bd").append('<textarea rows="8" style="height:110px;" class="weui_input weui-prompt-input" id="weui-prompt-input" value=""></textarea>');
|
|
|
- });
|
|
|
+ // $('#edit_room_notice').on('click',function(){
|
|
|
+ // $.prompt({
|
|
|
+ // title: '修改群公告',
|
|
|
+ // input: '请输入公告信息',
|
|
|
+ // empty: false, // 是否允许为空
|
|
|
+ // onOK: function (input) {
|
|
|
+ // if (input && input.trim().length <= 120) {
|
|
|
+ // //点击确认
|
|
|
+ // $.showLoading();
|
|
|
+ // $.get('/mobile/index.php?act=member_talk&op=change_room_notice',
|
|
|
+ // {
|
|
|
+ // room_notice: input,
|
|
|
+ // room_id: talk_id,
|
|
|
+ // client_type: 'ajax'
|
|
|
+ // }, function (res) {
|
|
|
+ // $.hideLoading();
|
|
|
+ // var result = JSON.parse(res);
|
|
|
+ // if (result.code != 200) {
|
|
|
+ // $.alert(result.message);
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // var new_notice = "【公告】"+ input.trim();
|
|
|
+ // $('.group_notice_board p').text(new_notice);
|
|
|
+ // $('#room-notice-btn').text("已设置");
|
|
|
+ // $('.group_notice_board').show();
|
|
|
+ // $.toast('修改成功',1000);
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // $.alert('群公告不得超过120字');
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // },
|
|
|
+ // onCancel: function () {
|
|
|
+ // //点击取消
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // $("#weui-prompt-input").remove(); //去除原始输入框
|
|
|
+ // $(".weui-dialog__bd").append('<textarea rows="8" style="height:110px;" class="weui_input weui-prompt-input" id="weui-prompt-input" value=""></textarea>');
|
|
|
+ // });
|
|
|
|
|
|
$('#edit_room_desc').on('click',function(){
|
|
|
$.prompt({
|
|
@@ -768,10 +766,10 @@
|
|
|
|
|
|
|
|
|
$("#view-group-notice").on('click',function () {
|
|
|
- var has_notice = $(this).attr('data-has-notice');
|
|
|
- var isManager = $(this).attr('data-isManager');
|
|
|
- if( has_notice || isManager ){
|
|
|
- window.location.href = "/mobile/index.php?act=member_talk&op=message_broad&type=3&isManager="+isManager;
|
|
|
+ var has_notice = parseInt($(this).attr('data-has-notice'));
|
|
|
+ var ismanager = parseInt($(this).attr('data-ismanager'));
|
|
|
+ if( has_notice || ismanager){
|
|
|
+ window.location.href = "/mobile/index.php?act=member_talk&op=message_board&type=3&isManager="+ismanager+"&talk_id="+talk_id;
|
|
|
}else{
|
|
|
$.alert("只有群主可以编辑公告");
|
|
|
return false;
|