yzx 7 ماه پیش
والد
کامیت
9566bff16f
2فایلهای تغییر یافته به همراه10 افزوده شده و 3 حذف شده
  1. 6 3
      app/mobile/view/index/appointment_add.html
  2. 4 0
      app/mobile/view/index/detail.html

+ 6 - 3
app/mobile/view/index/appointment_add.html

@@ -128,9 +128,8 @@
                     let callback = function (e) {
                         layer.msg(e.msg);
                         if (e.code == 0) {
-                            tool.tabRefresh(71);
-                            tool.sideClose(1000);
-                            a = 1
+
+                            window.location.href = "/mobile/index/detail?id=" + "{$project_id}"
                         }
                     }
                     tool.post("/admin/project.appointment/add_company", data.field, callback)
@@ -145,6 +144,10 @@
         return pattern.test(str);
     }
 
+
+
+
+
 </script>
 </body>
 

+ 4 - 0
app/mobile/view/index/detail.html

@@ -960,7 +960,9 @@
                 layer.msg(e.msg);
                 setTimeout(function () {
                     layer.close(index);
+                    location.reload()
                 }, 2000)
+                location.reload()
             }
             if (text !== "") {
                 if("{$unit_type}" == 2){
@@ -985,7 +987,9 @@
                 layer.msg(e.msg);
                 setTimeout(function () {
                     layer.close(index);
+                    location.reload()
                 }, 2000)
+
             }
             if (text !== "") {
                 if("{$unit_type}" == 2){