update mock function
This commit is contained in:
@ -36,9 +36,9 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">客户信息<span class="caret"></span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="{{ url_for('test1') }}">客户公司信息</a></li>
|
||||
<li><a href="{{ url_for('test2') }}">购买记录</a></li>
|
||||
<li><a href="{{ url_for('test3') }}">客户咨询记录</a></li>
|
||||
<li><a href="{{ url_for('test1') }}">IP登陆地统计</a></li>
|
||||
<li><a href="{{ url_for('test2') }}">登陆市场统计</a></li>
|
||||
<li><a href="{{ url_for('test3') }}">登录次数统计</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -1,22 +1,27 @@
|
||||
{% extends 'layouts/master.html' %}
|
||||
{% block title %}View{% endblock %}
|
||||
{% block body %}
|
||||
<h1>Contacts</h1>
|
||||
<h1>IP登陆地统计</h1>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">公司名称</th>
|
||||
<th scope="col">所在城市</th>
|
||||
<th scope="col">登录日期</th>
|
||||
<td></td>
|
||||
<th scope="col">账号</th>
|
||||
<th scope="col">上次登录IP</th>
|
||||
<th scope="col">上次登陆地</th>
|
||||
<th scope="col">运营商</th>
|
||||
<th scope="col">登录IP地址统计(省)</th>
|
||||
<th scope="col">登陆地统计(省)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for contact in contacts %}
|
||||
<tr>
|
||||
<td>{{ contact.name }}</td>
|
||||
<td>{{ contact.city }}</td>
|
||||
<td>{{ contact.date }}</td>
|
||||
<td>{{ contact['account'] }}</td>
|
||||
<td>{{ contact['ip'] }}</td>
|
||||
<td>{{ contact['location'] }}</td>
|
||||
<td>{{ contact['isp'] }}</td>
|
||||
<td>{{ contact['cnt1'] }}</td>
|
||||
<td>{{ contact['cnt2'] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
@ -1,22 +1,24 @@
|
||||
{% extends 'layouts/master.html' %}
|
||||
{% block title %}View{% endblock %}
|
||||
{% block body %}
|
||||
<h1>Contacts</h1>
|
||||
<h1>登录时间统计</h1>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">公司名称</th>
|
||||
<th scope="col">购买数量</th>
|
||||
<th scope="col">单价</th>
|
||||
<th scope="col">账号</th>
|
||||
<th scope="col">上次登录时间</th>
|
||||
<th scope="col">上次登陆时长</th>
|
||||
<th scope="col">总时长</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for contact in contacts %}
|
||||
<tr>
|
||||
<td>{{ contact.name }}</td>
|
||||
<td>{{ contact.number}}</td>
|
||||
<td>{{ contact.price}}</td>
|
||||
<td>{{ contact['account'] }}</td>
|
||||
<td>{{ contact['login'] }}</td>
|
||||
<td>{{ contact['duration']}}</td>
|
||||
<td>{{ contact['total']}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
@ -1,22 +1,19 @@
|
||||
{% extends 'layouts/master.html' %}
|
||||
{% block title %}View{% endblock %}
|
||||
{% block body %}
|
||||
<h1>Contacts</h1>
|
||||
<h1>登录次数统计</h1>
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">公司名称</th>
|
||||
<th scope="col">咨询时间</th>
|
||||
<th scope="col">咨询主题</th>
|
||||
<td></td>
|
||||
<th scope="col">账号</th>
|
||||
<th scope="col">登录次数</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for contact in contacts %}
|
||||
<tr>
|
||||
<td>{{ contact.name }}</td>
|
||||
<td>{{ contact.date }}</td>
|
||||
<td>{{ contact.subject }}</td>
|
||||
<td>{{ contact['account'] }}</td>
|
||||
<td>{{ contact['count'] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user