huangdong 6 年之前
父节点
当前提交
a88f901cf7
共有 2 个文件被更改,包括 36 次插入36 次删除
  1. 34 34
      data/resource/mobile/talk/js/room_apply.js
  2. 2 2
      mobile/control/control.php

+ 34 - 34
data/resource/mobile/talk/js/room_apply.js

@@ -189,52 +189,52 @@ $(function () {
 
     $(document).on('click','.refusal_btn',function(){
         var msg_id = $(this).attr('data-msg-id');
-        // $.showLoading();
-        // $.get("/mobile/index.php", {
-        //     act: "member_relation",
-        //     op: "handle_applys",
-        //     msg_id: msg_id,
-        //     pass:0,
-        //     client_type: "ajax",
-        // }, function (res) {
-        //     $.hideLoading();
-        //     var data = JSON.parse(res);
-        //     if (data.code != 200) {
-        //         $.alert(data.message);
-        //         return;
-        //     }
+        $.showLoading();
+        $.get("/mobile/index.php", {
+            act: "member_relation",
+            op: "handle_applys",
+            msg_id: msg_id,
+            pass:0,
+            client_type: "ajax",
+        }, function (res) {
+            $.hideLoading();
+            var data = JSON.parse(res);
+            if (data.code != 200) {
+                $.alert(data.message);
+                return;
+            }
             $.toast('操作成功',1000);
             var add_item = "<span class=\"state\">已忽略</span></p>";
             $(this).parents('.applys-item').find('.apply_name').append(add_item);
-            $(this).parent('.handle').remove;
-        // });
-        // return false;
+            $(this).parent('.handle').remove();
+        });
+        return false;
     });
 
     $(document).on('click','.agree_btn',function(e)
     {
         var msg_id = $(this).attr('data-msg-id');
-        // $.showLoading();
-        // $.get("/mobile/index.php", {
-        //     act: "member_relation",
-        //     op: "handle_applys",
-        //     msg_id: msg_id,
-        //     pass:1,
-        //     client_type: "ajax",
-        // }, function (res) {
-        //     $.hideLoading();
-        //     var data = JSON.parse(res);
-        //     if (data.code != 200) {
-        //         $.alert(data.message);
-        //         return;
-        //     }
+        $.showLoading();
+        $.get("/mobile/index.php", {
+            act: "member_relation",
+            op: "handle_applys",
+            msg_id: msg_id,
+            pass:1,
+            client_type: "ajax",
+        }, function (res) {
+            $.hideLoading();
+            var data = JSON.parse(res);
+            if (data.code != 200) {
+                $.alert(data.message);
+                return;
+            }
             $.toast('操作成功',1000);
 
             var add_item = "<span class=\"state\">已通过</span></p>";
             $(this).parents('.applys-item').find('.apply_name').append(add_item);
-            $(this).parent('.handle').remove;
-        // });
-        // return false;
+            $(this).parent('.handle').remove();
+        });
+        return false;
     });
 
     // $(document).on('click','.applys-item',function(){

+ 2 - 2
mobile/control/control.php

@@ -331,9 +331,9 @@ class mbMemberControl extends mobileControl
 
 function bonus_version()
 {
-    return "v=2018103002";
+    return "v=2018103003";
 }
 function shop_version()
 {
-    return "v=2018103002";
+    return "v=2018103003";
 }