xieruidong 2 年之前
父節點
當前提交
83ec274501

+ 6 - 0
application/admin/controller/seller/MyTeam.php

@@ -50,4 +50,10 @@ class MyTeam extends Backend
         $this->assign('date',$date);
         return $this->fetch();
     }
+
+    public function profit_static(){
+        list($date,$dateArr)=$this->rangeTime('date');
+        $this->assign('date',$date);
+        return $this->fetch();
+    }
 }

+ 18 - 0
application/admin/view/seller/my_team/profit_static.html

@@ -0,0 +1,18 @@
+<style>
+    .content{
+        background: white;
+    }
+</style>
+<form class="form-inline form" role="form">
+    <div class="form-group">
+        <label for="time">时间段</label>
+        <input type="text" name="date" value="{$date}" class="form-control datetimerange" id="time" placeholder="选择时间" style="width: 300px;">
+    </div>
+    <div class="form-group" style="text-align: right">
+        <button type="submit" class="btn btn-primary doSearch">确定</button>
+    </div>
+    <input type="hidden" name="dialog" value="{:input('dialog')}">
+</form>
+<script>
+    let defDate='{$date}';
+</script>

+ 4 - 1
public/assets/js/backend/seller/my_team.js

@@ -113,6 +113,9 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'table', 'echarts', 'echart
             });
             Table.api.bindevent(table);
             Table.api.bindevent(table1);
-        }
+        },
+        profit_static() {
+            Form.events.daterangepicker($('.form'))
+        },
     };
 });