Merge branch 'master' of http://210.77.77.77/xieshen/newmediamonitoring
|
@ -0,0 +1,60 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- START CONTAINER -->
|
||||
<div class="page-container row-fluid">
|
||||
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</section>
|
||||
<div class="chatapi-windows "></div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">用户数据录入</div>
|
||||
<div class="panel panel-default">
|
||||
<!-- Default panel contents -->
|
||||
<form action="{% url 'backstage-comment' %}" method="post"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group col-md-4">
|
||||
<label for="date">时间</label>
|
||||
<input type="date" class="form-control" id="source"
|
||||
name="date">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputFile">点击上传文件</label>
|
||||
<input type="file" id="exampleInputFile" name="file">
|
||||
<p class="help-block">请上传csv文件(文件表头依次为:评论、回复、新媒体名称、标题、时间、文章链接。时间格式为(2020/11/17))</p>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success">点击上传</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
|
@ -7,4 +7,5 @@ urlpatterns = [
|
|||
path('backstage/newmedia/public/opinion/',views.backstage_new_media_public_opinion,name='backstage-new-media-public-opinion'),
|
||||
path('backstage/error/',views.backstage_error,name='backstage-error'),
|
||||
path('backstage/comment/',views.backstage_comment,name='backstage-comment'),
|
||||
path('backstage/user/',views.backstage_user,name='backstage-user'),
|
||||
]
|
||||
|
|
|
@ -146,3 +146,6 @@ def backstage_comment(request):
|
|||
messages.error(request, '请上传正确的文件类型!!!')
|
||||
return HttpResponseRedirect('/backstage/backstage/comment/')
|
||||
return render(request, 'backstage/backstage-comment.html')
|
||||
|
||||
def backstage_user(request):
|
||||
return render(request,'')
|
|
@ -1,6 +1,6 @@
|
|||
.head {
|
||||
height: 500px;
|
||||
background-image: url("../image/head.png");
|
||||
height: 600px;
|
||||
background-image: url("../image/head1.png");
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,8 @@
|
|||
width: 120px;
|
||||
height: 70px;
|
||||
margin-top: 40px;
|
||||
margin-left: 20px;
|
||||
margin-left: 40px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.menu {
|
||||
|
@ -22,21 +23,36 @@
|
|||
}
|
||||
|
||||
.btn img {
|
||||
margin-top: 150px;
|
||||
margin-top: 200px;
|
||||
width: 150px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.model1 {
|
||||
/*width: 820px;*/
|
||||
margin: 0 auto;
|
||||
height: 140px;
|
||||
width: 60%;
|
||||
/*background-color: white;*/
|
||||
margin-top: -133%;
|
||||
z-index: 999;
|
||||
|
||||
.btn button {
|
||||
width: 150px;
|
||||
height: 40px;
|
||||
border: 1px solid transparent;
|
||||
outline: none;
|
||||
border-radius: 20px;
|
||||
margin-top: 200px;
|
||||
color: blue;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.download-btn {
|
||||
width: 120px;
|
||||
height: 30px;
|
||||
border: 1px solid transparent;
|
||||
outline: none;
|
||||
border-radius: 20px;
|
||||
color: blue;
|
||||
}
|
||||
|
||||
.model1 {
|
||||
height: 130px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.model2 {
|
||||
/*width: 820px;*/
|
||||
margin: 0 auto;
|
||||
|
@ -52,34 +68,120 @@
|
|||
background-image: url("../image/middle2.png");
|
||||
background-size: 100% 100%;
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
margin-top: -30px;
|
||||
}
|
||||
.middle3 {
|
||||
background-image: url("../image/组 14 拷贝.png");
|
||||
background-size: 100% 100%;
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
height: 475px;
|
||||
margin-top: -40px;
|
||||
}
|
||||
|
||||
.middle3 {
|
||||
background-image: url("../image/middle3.png");
|
||||
background-size: 100% 100%;
|
||||
width: 100%;
|
||||
height: 560px;
|
||||
/*margin-top: -40px;*/
|
||||
}
|
||||
|
||||
.rectangle-blue {
|
||||
width: 180px;
|
||||
height: 230px;
|
||||
border: white solid 1px;
|
||||
border-radius: 20px;
|
||||
display: inline-block;
|
||||
margin-left: 3%;
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.rectangle-blue:hover {
|
||||
background-image: url("../image/矩形 9 拷贝.png");
|
||||
}
|
||||
|
||||
.rectangle-blue img {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-top: 50px;
|
||||
|
||||
}
|
||||
|
||||
.rectangle-blue p {
|
||||
color: white;
|
||||
|
||||
}
|
||||
|
||||
/*.rectangle-blue {*/
|
||||
/* background-image: url("../image/矩形 9 拷贝@2x.png");*/
|
||||
/* background-size: 100% 100%;*/
|
||||
/* width: 210px;*/
|
||||
/* height: 265px;*/
|
||||
/*}*/
|
||||
|
||||
.middle4 {
|
||||
background-image: url("../image/组 17 拷贝.png");
|
||||
background-size: 100% 100%;
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
margin-top: 20px;
|
||||
height: 460px;
|
||||
margin-top: -40px;
|
||||
}
|
||||
.all-circle img{
|
||||
|
||||
.all-circle img {
|
||||
}
|
||||
.circle{
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background-color: #526FFF;
|
||||
margin-left: 11%;
|
||||
|
||||
.circle {
|
||||
/*border-radius: 50%;*/
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
text-align: center;
|
||||
line-height: 60px;
|
||||
background-image: url("../image/circle_blue.png");
|
||||
background-size: 60px 60px;
|
||||
margin-left: 30%;
|
||||
/*margin-left: 11%;*/
|
||||
}
|
||||
.foot{
|
||||
|
||||
.circle:hover {
|
||||
background-image: url("../image/circle_yellow.png");
|
||||
}
|
||||
|
||||
.foot {
|
||||
background-color: #A5BBFF;
|
||||
width: 100%;
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
.download-head {
|
||||
background-image: url("../image/组 3.png");
|
||||
height: 800px;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.register-head {
|
||||
background-image: url("../image/register-head-new.png");
|
||||
height: 800px;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.resgiter-img1 {
|
||||
background-image: url("../image/register-big.png");
|
||||
height: 333px;
|
||||
width: 500px;
|
||||
background-size: 100% 100%;
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
||||
.resgiter-img2 {
|
||||
background-image: url("../image/register-middle.png");
|
||||
height: 377px;
|
||||
width: 400px;
|
||||
background-size: 100% 100%;
|
||||
margin-left: 5.5%;
|
||||
z-index: 666;
|
||||
margin-top: -355px;
|
||||
}
|
||||
|
||||
.resgiter-img3 {
|
||||
background-image: url("../image/register-small.png");
|
||||
height: 430px;
|
||||
width: 300px;
|
||||
background-size: 100% 100%;
|
||||
margin-left: 11%;
|
||||
margin-top: -405px;
|
||||
text-align: left;
|
||||
}
|
After Width: | Height: | Size: 8.2 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 7.0 MiB After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 5.6 MiB |
Before Width: | Height: | Size: 199 KiB After Width: | Height: | Size: 706 KiB |
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 1.4 MiB |
After Width: | Height: | Size: 1.8 MiB |
After Width: | Height: | Size: 5.9 MiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 873 KiB |
After Width: | Height: | Size: 2.4 MiB |
|
@ -186,6 +186,10 @@
|
|||
<a {% if url_name == 'backstage-comment' %} class="active" {% endif %}
|
||||
href="{% url 'backstage-comment' %}">评论</a>
|
||||
</li>
|
||||
{# <li>#}
|
||||
{# <a {% if url_name == 'backstage-user' %} class="active" {% endif %}#}
|
||||
{# href="{% url 'backstage-user' %}">用户</a>#}
|
||||
{# </li>#}
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
|
|
@ -0,0 +1,101 @@
|
|||
{% load static %}
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
{# <meta name="viewport" content="width=device-width, initial-scale=1">#}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
|
||||
<title>政务新媒体监测系统</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="{% static 'dashboard/css/home.css' %}" rel="stylesheet">
|
||||
|
||||
<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
|
||||
<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="download-head col-md-12 col-xs-12 col-lg-12">
|
||||
<div class="logo col-md-6 col-xs-6 col-lg-6" style="text-align: center;">
|
||||
<img src="{% static 'dashboard/image/图层 26.png' %}" style="width: 240px;height: 120px;">
|
||||
</div>
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div class="menu">
|
||||
<span class="menu-right"><a href="{% url 'dashboard-home' %}">主页</a></span>
|
||||
<span class="menu-right"><a href="{% url 'dashboard-login' %}">新媒体监测服务</a></span>
|
||||
<span class="menu-right"><a>新媒体监测优势</a></span>
|
||||
<span class="menu-right"><a href="{% url 'dashboard-download' %}">APP下载</a></span>
|
||||
<span class="menu-right"><a>行业动态</a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 col-xs-12 col-lg-12">
|
||||
<div class="col-md-5 col-xs-5 col-lg-5">
|
||||
<div style="float: right;margin-top: 120px">
|
||||
<p style="font-size: 65px;font-weight: 999;color: white">政务新媒体</p>
|
||||
<p style="font-size: 65px;font-weight: 999;color: white">APP下载</p>
|
||||
<a href="{% url 'dashboard-app-download' %}">
|
||||
<button style="width: 200px;height: 50px;border: 1px solid transparent;outline: none;border-radius: 20px;color: #2e6da4; ">
|
||||
<img src="{% static 'dashboard/image/download-a.png' %}">Android客户端下载
|
||||
</button>
|
||||
</a><br>
|
||||
<a href="{% url 'dashboard-app-download' %}">
|
||||
<button style="width: 200px;height: 50px;border: 1px solid transparent;outline: none;border-radius: 20px;color: #2e6da4;margin-top: 20px ">
|
||||
<img src="{% static 'dashboard/image/download-ios.png' %}"> IOS客户端下载
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-7 col-xs-7 col-lg-7"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{# <div class="row">#}
|
||||
{# <div class="foot col-md-12">#}
|
||||
{# <div class="col-md-1">#}
|
||||
{# <img width="100" height="50" style="margin-left: 10%;margin-top: 30px"#}
|
||||
{# src="{% static 'dashboard/image/图层 26@2x.png' %}">#}
|
||||
{# </div>#}
|
||||
{# <div class="col-md-11">#}
|
||||
{# <p style="color: #ffffff;font-size: 16px;margin-left: 15%;margin-top: 20px">合作连接</p>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 15%;margin-top: 20px">公众号</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">微博</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">抖音</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">头条</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">其他</span>#}
|
||||
{# </div>#}
|
||||
{# <div class="col-md-12" style="height: 1px;border-top: solid #FFFFFF 1px;margin-top: 10px"></div>#}
|
||||
{# <div class="col-md-12">#}
|
||||
{# <div style="color: white;text-align: left;height: 250px;margin-left: 22%">#}
|
||||
{# <p>电话:15293151340</p>#}
|
||||
{# <p>电子邮箱:greatfeature@126.com</p>#}
|
||||
{# <p>公司地址:兰州市城关区南昌路421号华宇大厦C座</p>#}
|
||||
{# <div class="col-md-12" style="color: white;margin-left: 25%;margin-top: 30px">甘肃大未来科技文化发展有限公司</div>#}
|
||||
{##}
|
||||
{# </div>#}
|
||||
{##}
|
||||
{##}
|
||||
{# </div>#}
|
||||
{# <div style="height: 200px"></div>#}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
|
||||
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -22,66 +22,216 @@
|
|||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="head col-md-12">
|
||||
<div class="logo col-md-6">
|
||||
<img src="{% static 'dashboard/image/图层 26@2x.png' %}">
|
||||
<div class="head col-md-12 col-xs-12 col-lg-12">
|
||||
<div class="logo col-md-6 col-xs-6 col-lg-6">
|
||||
<img src="{% static 'dashboard/image/图层 26.png' %}" style="width: 150px;height: 70px;">
|
||||
</div>
|
||||
<div class=" col-md-6">
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div class="menu">
|
||||
<span class="menu-right"><a href="{% url 'dashboard-home' %}">主页</a></span>
|
||||
<span class="menu-right"><a href="{% url 'dashboard-login' %}">新媒体监测服务</a></span>
|
||||
<span class="menu-right"><a>新媒体监测优势</a></span>
|
||||
<span class="menu-right"><a href="{% url 'dashboard-app-download' %}">APP下载</a></span>
|
||||
<span class="menu-right"><a href="{% url 'dashboard-download' %}">APP下载</a></span>
|
||||
<span class="menu-right"><a>行业动态</a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn col-md-12">
|
||||
<img src="{% static 'dashboard/image/组 18.png' %}">
|
||||
<div class="btn col-md-12 col-lg-12 col-xs-12">
|
||||
{# <img src="{% static 'dashboard/image/组 18.png' %}">#}
|
||||
<a href="{% url 'dashboard-login' %}"><button>立即体验</button></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12 middle2">
|
||||
<img src="{% static 'dashboard/image/xinmeitijiancefuwu.jpg' %}" style="width: 1170px;margin-left: -1.3%">
|
||||
{# <div class="page-header" style="text-align: center;margin-top: 80px;">#}
|
||||
{# <h2>新媒体监测服务<br>#}
|
||||
{# <small>NEW MEDIA MONITORING SERVICE</small>#}
|
||||
{# </h2>#}
|
||||
{# </div>#}
|
||||
{# <div class="all-circle" style="margin-top: 100px">#}
|
||||
{# <div class="circle" style=""><img src="{% static 'dashboard/image/图层 15.png' %}"></div>#}
|
||||
{# </div>#}
|
||||
{# <div class="all-circle" style="margin-top: 30px;margin-left: 19%">#}
|
||||
{# <div class="circle" style=""><img src="{% static 'dashboard/image/图层 11.png' %}"></div>#}
|
||||
{# </div>#}
|
||||
{# <div class="all-circle" style="margin-top: -130px;margin-left: 35%">#}
|
||||
{# <div class="circle" style=""><img src="{% static 'dashboard/image/图层 12.png' %}"></div>#}
|
||||
{# </div>#}
|
||||
{# <div class="all-circle" style="margin-top: 20px;margin-left: 50%">#}
|
||||
{# <div class="circle" style=""><img src="{% static 'dashboard/image/图层 14.png' %}"></div>#}
|
||||
{# </div>#}
|
||||
{# <div class="all-circle" style="margin-top: -50px;margin-left: 65%">#}
|
||||
{# <div class="circle" style=""><img width="40px" src="{% static 'dashboard/image/热点.png' %}"></div>#}
|
||||
{# </div>#}
|
||||
{# <div class="all-circle" style="margin-top: -100px;margin-left: 80%">#}
|
||||
{# <div class="circle" style=""><img src="{% static 'dashboard/image/月度考核.png' %}"></div>#}
|
||||
{# </div>#}
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-xs-12 col-lg-12" style="margin-top: -90px;z-index: 999">
|
||||
<div class="col-lg-2 col-xs-2 col-md-2"></div>
|
||||
<div class="model1 col-md-8 col-xs-8 col-lg-8">
|
||||
<div class="col-xs-4 col-md-4 col-lg-4" style="text-align: center">
|
||||
<div style="display: inline-block">
|
||||
<p class="model1-p" style="margin-top: 40px;font-weight: 1000">用户量</p>
|
||||
<p class="model1-p" style="color: #00a8e6;font-size: 25px;font-weight: 1000">11120</p>
|
||||
</div>
|
||||
<div class="col-md-12 middle3">
|
||||
<img src="{% static 'dashboard/image/xinmeitijianceyoushi.png' %}" style="width: 1170px;margin-left: -1.3%">
|
||||
<div style="width: 1px;height: 130px;background-color: black;float: right;opacity: .1"></div>
|
||||
</div>
|
||||
<div class="col-xs-4 col-md-4 col-lg-4" style="text-align: center">
|
||||
<div style="display: inline-block">
|
||||
<p class="model1-p" style="margin-top: 40px;font-weight: 1000">每日使用量</p>
|
||||
<p class="model1-p" style="color: #00a8e6;font-size: 25px;font-weight: 1000">28936478</p>
|
||||
</div>
|
||||
<div style="width: 1px;height: 130px;background-color: black;float: right;opacity: .1"></div>
|
||||
</div>
|
||||
<div class="col-xs-4 col-md-4 col-lg-4" style="text-align: center">
|
||||
<div style="display: inline-block">
|
||||
<p class="model1-p" style="margin-top: 40px;font-weight: 1000">处理文章数量</p>
|
||||
<p class="model1-p" style="color: #00a8e6;font-size: 25px;font-weight: 1000">30065981</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 col-xs-2 col-md-2"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-xs-12 col-lg-12 middle2">
|
||||
<div class="page-header" style="text-align: center;margin-top: 80px;">
|
||||
<h2>新媒体监测服务<br>
|
||||
<small>NEW MEDIA MONITORING SERVICE</small>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="col-md-12 col-xs-12 col-lg-12" style="text-align: center">
|
||||
<div class="col-md-2 col-xs-2 col-lg-2 all-circle" style="margin-top: 30px">
|
||||
<div style="float: right">
|
||||
<div class="circle"><a href="{% url 'dashboard-login' %}"><img style="display: inline-block; vertical-align: middle;margin-top: 10px"
|
||||
src="{% static 'dashboard/image/图层 15.png' %}"></a>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<a href="{% url 'dashboard-login' %}"><p style="width: 100%">发布时效性监测</p></a>
|
||||
<p style="font-size: 12px">监测最新发布时间、最长更新时间、发布不达标天数等,全面分析新媒体内容发布及时性。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-xs-2 col-lg-2 all-circle" style="margin-top: 100px">
|
||||
<div class="circle"><a href="{% url 'dashboard-login' %}"><img
|
||||
style="display: inline-block; vertical-align: middle;margin-top: 10px;width: 35px;height: 40px;"
|
||||
src="{% static 'dashboard/image/图层 11.png' %}"></a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="{% url 'dashboard-login' %}"><p style="width: 100%">错别字及敏感词监测</p></a>
|
||||
<p style="font-size: 12px">监测新媒体内容中存在的错别字及敏感词,能准确校对政治性错误,并提供错别字及敏感词的定位功能。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-xs-2 col-lg-2 all-circle" style="margin-top: 40px">
|
||||
<div class="circle"><a href="{% url 'dashboard-login' %}"><img
|
||||
style="display: inline-block; vertical-align: middle;margin-top: 10px;width: 40px;height: 35px;"
|
||||
src="{% static 'dashboard/image/图层 12.png' %}"></a></div>
|
||||
<div>
|
||||
<a href="{% url 'dashboard-login' %}"><p style="width: 100%">外链监测</p></a>
|
||||
<p style="font-size: 12px">监测新媒体内容中的所有外部链接,支持审核,从而及时发现“非法外链”。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-xs-2 col-lg-2 all-circle" style="margin-top: 100px">
|
||||
<div class="circle"><a href="{% url 'dashboard-login' %}"><img
|
||||
style="display: inline-block; vertical-align: middle;margin-top: 10px;width: 35px;height: 35px;"
|
||||
src="{% static 'dashboard/image/图层 14.png' %}"></a></div>
|
||||
<div>
|
||||
<a href="{% url 'dashboard-login' %}"><p style="width: 100%">影响力分析</p></a>
|
||||
<p style="font-size: 12px">在监测到的常规运营指标数据(如发布量、阅读量等)的基础上,通过影响力传播算法,获得新媒体的影响力传播指数。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-xs-2 col-lg-2 all-circle" style="margin-top: 50px">
|
||||
<div class="circle"><a href="{% url 'dashboard-login' %}"><img
|
||||
style="display: inline-block; vertical-align: middle;margin-top: 17px;width: 40px;height: 30px;"
|
||||
src="{% static 'dashboard/image/热点.png' %}"></a></div>
|
||||
<div>
|
||||
<a href="{% url 'dashboard-login' %}"><p style="width: 100%">热点文章榜</p></a>
|
||||
<p style="font-size: 12px">根据新媒体文章的阅读与分享情况,分析新媒体粉丝关注热点,为内容运营提供依据。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2 col-xs-2 col-lg-2 all-circle" style="margin-top: 60px">
|
||||
<div class="circle"><a href="{% url 'dashboard-login' %}"><img
|
||||
style="display: inline-block; vertical-align: middle;margin-top: 10px;width: 35px;height: 35px;"
|
||||
src="{% static 'dashboard/image/月度考核.png' %}"></a></div>
|
||||
<div>
|
||||
<a href="{% url 'dashboard-login' %}"><p style="width: 100%">新媒体绩效考核</p></a>
|
||||
<p style="font-size: 12px">基于新媒体矩阵考核指标,定制新媒体绩效考核排名报表。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-xs-12 col-lg-12 middle3">
|
||||
<div style="text-align: center;margin-top: 50px;color: white">
|
||||
<h2>新媒体监测优势<br>
|
||||
<small style="color: white">ADVANTAGES OF NEW MEDIA MONITORING</small>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="col-md-12 col-xs-12 col-lg-12" style="text-align: center">
|
||||
<div style="text-align: center">
|
||||
{# <div class="col-md-1 col-xs-1 col-lg-1"></div>#}
|
||||
<div class="col-md-12 col-xs-12 col-lg-12">
|
||||
<div class=" rectangle-blue ">
|
||||
<img src="{% static 'dashboard/image/全面.png' %}">
|
||||
<p>全面</p>
|
||||
<p>支持查看可用性统计数据、可用性持续时间、监测点详情监测数据。</p>
|
||||
</div>
|
||||
<div class=" rectangle-blue">
|
||||
<img src="{% static 'dashboard/image/快速 (1).png' %}">
|
||||
<p>快速</p>
|
||||
<p>日诊断页面资源数可超过1000万。一旦发现问题,则秒级告警。</p>
|
||||
</div>
|
||||
<div class=" rectangle-blue">
|
||||
<img src="{% static 'dashboard/image/准确.png' %}">
|
||||
<p>准确</p>
|
||||
<p>数据预处理,对数据进行归一、过滤,确保数据一致性与准确性。</p>
|
||||
</div>
|
||||
<div class=" rectangle-blue">
|
||||
<img style="width: 45px;height: 70px" src="{% static 'dashboard/image/稳定 (1).png' %}">
|
||||
<p>稳定</p>
|
||||
<p>自动化的运维监控、异常流量发现并处理的技术。</p>
|
||||
</div>
|
||||
</div>
|
||||
{# <div class="col-md-1 col-xs-1 col-lg-1"></div>#}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-xs-12 col-lg-12" style="margin-top: -90px;z-index: 999">
|
||||
<div class="col-lg-2 col-xs-2 col-md-2"></div>
|
||||
<div class="model1 col-md-8 col-xs-8 col-lg-8">
|
||||
<div class="col-xs-6 col-md-6 col-lg-6" style="text-align: center">
|
||||
<img class="col-xs-6 col-md-6 col-lg-6" style="margin-top: 30px;width: 120px;height: 75px;" src="{% static 'dashboard/image/组 15 拷贝.png' %}">
|
||||
<div style="margin-top: 30px" class="col-xs-6 col-md-6 col-lg-6">
|
||||
<p class="model1-p" style="color: blue">Android客户端下载</p>
|
||||
<a href="{% url 'dashboard-download' %}"><button class="download-btn">立即下载</button></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 col-md-6 col-lg-6" style="text-align: center">
|
||||
<img class="col-xs-6 col-md-6 col-lg-6" style="margin-top: 25px;width: 120px;height: 75px;" src="{% static 'dashboard/image/组 16 拷贝.png' %}">
|
||||
<div style="margin-top: 30px" class="col-xs-6 col-md-6 col-lg-6">
|
||||
<p class="model1-p" style="color: blue">IOS客户端下载</p>
|
||||
<a href="{% url 'dashboard-download' %}"><button class="download-btn">立即下载</button></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-2 col-xs-2 col-md-2"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-xs-12 col-lg-12 middle4">
|
||||
<div class="page-header" style="text-align: center;margin-top: 80px;">
|
||||
<h2>行业动态<br>
|
||||
<small>INDUSTRY TRENDS</small>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="col-md-12 col-xs-12 col-lg-12" style="text-align: center">
|
||||
<div class="col-md-12 middle4">
|
||||
<img src="{% static 'dashboard/image/hangyedongtai.jpg' %}" style="width: 1170px;margin-left: -1.3%;">
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="col-md-4" style="margin-top: 30px">
|
||||
<img src="{% static 'dashboard/image/组 21.png' %}">
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-4" style="margin-top: 30px">
|
||||
<img src="{% static 'dashboard/image/组 22.png' %}">
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="col-md-4" style="margin-top: 30px">
|
||||
<img src="{% static 'dashboard/image/组 23.png' %}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="foot col-md-12">
|
||||
<div class="col-md-1">
|
||||
<img width="100" height="50" style="margin-left: 10%;margin-top: 30px"
|
||||
|
@ -107,17 +257,11 @@
|
|||
|
||||
|
||||
</div>
|
||||
{# <div style="height: 200px"></div>#}
|
||||
</div>
|
||||
<div class="col-md-12" style="text-align: center">
|
||||
<div class="model1" >
|
||||
<img src="{% static 'dashboard/image/1.png' %}">
|
||||
</div>
|
||||
{# <div class="model2" >#}
|
||||
{# <img src="{% static 'dashboard/image/2.png' %}">#}
|
||||
{# </div>#}
|
||||
<div style="height: 200px"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
|
||||
|
|
|
@ -261,7 +261,7 @@
|
|||
},
|
||||
grid: {
|
||||
left: '3%',
|
||||
right: '4%',
|
||||
right: '8%',
|
||||
bottom: '1%',
|
||||
containLabel: true
|
||||
},
|
||||
|
@ -523,7 +523,7 @@
|
|||
toolbox: {
|
||||
feature: {
|
||||
{#dataView: {show: true, readOnly: false},#}
|
||||
magicType: {show: true, type: ['line', 'bar']},
|
||||
{#magicType: {show: true, type: ['line', 'bar']},#}
|
||||
{#restore: {show: true},#}
|
||||
{#saveAsImage: {show: true}#}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,150 @@
|
|||
{% load static %}
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
{# <meta name="viewport" content="width=device-width, initial-scale=1">#}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
|
||||
<title>政务新媒体监测系统</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="{% static 'dashboard/css/home.css' %}" rel="stylesheet">
|
||||
|
||||
<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
|
||||
<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid register-head">
|
||||
<div class="row">
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="col-md-12 col-xs-12 col-lg-12">
|
||||
<div class="logo col-md-6 col-xs-6 col-lg-6" style="text-align: center;">
|
||||
<img src="{% static 'dashboard/image/图层 26.png' %}" style="width: 240px;height: 120px;">
|
||||
</div>
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div style="margin-top: 50px">
|
||||
<span style="margin-left: 40%"><a style="color: white"
|
||||
href="{% url 'dashboard-home' %}">主页</a></span>
|
||||
<span style="margin-left: 10%"><a style="color: white"
|
||||
href="{% url 'dashboard-login' %}">登录</a></span>
|
||||
<span style="margin-left: 10%"><a style="color: white"
|
||||
href="{% url 'dashboard-register' %}">注册</a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 col-xs-12 col-lg-12">
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div style="float: right;margin-top: 120px">
|
||||
<p style="font-size: 65px;font-weight: 999;color: white">政务新媒体</p>
|
||||
<p style="font-size: 65px;font-weight: 999;color: white">管理系统</p>
|
||||
<p style="font-size: 20px;font-weight: 99;color: white">监测新媒体内容中的敏感词(如黄赌毒、邪教、反共等术语),</p>
|
||||
<p style="font-size: 20px;font-weight: 99;color: white">支持查看上下文,支持敏感词定位。监测新媒体内容中的所有</p>
|
||||
<p style="font-size: 20px;font-weight: 99;color: white">外部链接,支持审核,从而及时发现“非法外链”。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div style="text-align: center">
|
||||
<div class="resgiter-img1" style="text-align: center">
|
||||
|
||||
</div>
|
||||
<div class="resgiter-img2" style="text-align: center">
|
||||
|
||||
</div>
|
||||
<div class="resgiter-img3">
|
||||
<form action="{% url 'dashboard-login-for-phone' %}" method="post">{% csrf_token %}
|
||||
<p>
|
||||
<label for="user_login" style="margin-top: 50px;margin-left: 18%">手机号<br/>
|
||||
<input type="text" name="phone" id="phone" class="input" size="20"
|
||||
placeholder="请输入账号" style="margin-top: 5px"/><input
|
||||
class="btn btn-success" type="button" id="code" value="获取验证码" style="margin-top: 25px"></label>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
<label for="user_pass" style="margin-top: 20px;margin-left: 18%">验证码<br/>
|
||||
<input type="password" name="check_code" id="check_code" class="input" size="20"
|
||||
placeholder="请输入密码" style="margin-top: 5px"/></label>
|
||||
</p>
|
||||
|
||||
<p class="submit" style="margin-top: 50px;text-align: center">
|
||||
<input type="submit" name="wp-submit" id="wp-submit"
|
||||
class="btn btn-orange btn-block"
|
||||
value="注册/登录"
|
||||
style="background-color: #00a8e6;width: 200px;margin-left: 18%"/>
|
||||
</p>
|
||||
</form>
|
||||
<div class="col-lg-12 col-xs-12 col-md-12" style="text-align: center">
|
||||
<div class="col-lg-3 col-xs-3 col-md-3"></div>
|
||||
<div class="col-lg-6 col-xs-6 col-md-6" style="margin-top: 90px">
|
||||
<div style="width: 10px;height: 10px;background-color: white;border-radius: 30px;display: inline-block"></div>
|
||||
<div style="width: 50px;height: 10px;background-color: white;border-radius: 10px;display: inline-block"></div>
|
||||
<div style="width: 10px;height: 10px;background-color: white;border-radius: 30px;display: inline-block"></div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-xs-3 col-md-3"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{# <div class="row">#}
|
||||
{# <div class="foot col-md-12">#}
|
||||
{# <div class="col-md-1">#}
|
||||
{# <img width="100" height="50" style="margin-left: 10%;margin-top: 30px"#}
|
||||
{# src="{% static 'dashboard/image/图层 26@2x.png' %}">#}
|
||||
{# </div>#}
|
||||
{# <div class="col-md-11">#}
|
||||
{# <p style="color: #ffffff;font-size: 16px;margin-left: 15%;margin-top: 20px">合作连接</p>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 15%;margin-top: 20px">公众号</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">微博</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">抖音</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">头条</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">其他</span>#}
|
||||
{# </div>#}
|
||||
{# <div class="col-md-12" style="height: 1px;border-top: solid #FFFFFF 1px;margin-top: 10px"></div>#}
|
||||
{# <div class="col-md-12">#}
|
||||
{# <div style="color: white;text-align: left;height: 250px;margin-left: 22%">#}
|
||||
{# <p>电话:15293151340</p>#}
|
||||
{# <p>电子邮箱:greatfeature@126.com</p>#}
|
||||
{# <p>公司地址:兰州市城关区南昌路421号华宇大厦C座</p>#}
|
||||
{# <div class="col-md-12" style="color: white;margin-left: 25%;margin-top: 30px">甘肃大未来科技文化发展有限公司</div>#}
|
||||
{##}
|
||||
{# </div>#}
|
||||
{##}
|
||||
{##}
|
||||
{# </div>#}
|
||||
{# <div style="height: 200px"></div>#}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
|
||||
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,175 @@
|
|||
{% load static %}
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
{# <meta name="viewport" content="width=device-width, initial-scale=1">#}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
|
||||
<title>政务新媒体监测系统</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="{% static 'dashboard/css/home.css' %}" rel="stylesheet">
|
||||
|
||||
<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
|
||||
<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid register-head">
|
||||
<div class="row">
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="col-md-12 col-xs-12 col-lg-12">
|
||||
<div class="logo col-md-6 col-xs-6 col-lg-6" style="text-align: center;">
|
||||
<img src="{% static 'dashboard/image/图层 26.png' %}" style="width: 240px;height: 120px;">
|
||||
</div>
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div style="margin-top: 50px">
|
||||
<span style="margin-left: 40%"><a style="color: white"
|
||||
href="{% url 'dashboard-home' %}">主页</a></span>
|
||||
<span style="margin-left: 10%"><a style="color: white" href="{% url 'dashboard-login-for-phone' %}">手机号注册/登录</a></span>
|
||||
<span style="margin-left: 10%"><a style="color: white" href="{% url 'dashboard-register' %}">注册</a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 col-xs-12 col-lg-12">
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div style="float: right;margin-top: 120px">
|
||||
<p style="font-size: 65px;font-weight: 999;color: white">政务新媒体</p>
|
||||
<p style="font-size: 65px;font-weight: 999;color: white">管理系统</p>
|
||||
<p style="font-size: 20px;font-weight: 99;color: white">监测新媒体内容中的敏感词(如黄赌毒、邪教、反共等术语),</p>
|
||||
<p style="font-size: 20px;font-weight: 99;color: white">支持查看上下文,支持敏感词定位。监测新媒体内容中的所有</p>
|
||||
<p style="font-size: 20px;font-weight: 99;color: white">外部链接,支持审核,从而及时发现“非法外链”。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div style="text-align: center">
|
||||
<div class="resgiter-img1" style="text-align: center">
|
||||
|
||||
</div>
|
||||
<div class="resgiter-img2" style="text-align: center">
|
||||
|
||||
</div>
|
||||
<div class="resgiter-img3">
|
||||
<form action="{% url 'dashboard-login' %}" method="post">{% csrf_token %}
|
||||
<p>
|
||||
<label for="user_login" style="margin-top: 50px;margin-left: 18%">账号(您注册的手机号)<br/>
|
||||
<input type="text" name="username" id="user_login" class="input" size="20"
|
||||
placeholder="请输入账号" style="margin-top: 5px"/></label>
|
||||
</p>
|
||||
<p>
|
||||
<label for="user_pass" style="margin-top: 20px;margin-left: 18%">密码<br/>
|
||||
<input type="password" name="password" id="user_pass" class="input" size="20"
|
||||
placeholder="请输入密码" style="margin-top: 5px"/></label>
|
||||
</p>
|
||||
<p class="div_index_yan" style="margin-top: 30px;margin-left: 18%">
|
||||
<span>
|
||||
<a href="#" class="next-captcha">
|
||||
<img src="{{ image_url }}" class="captcha" alt="captcha">
|
||||
</a>
|
||||
</span>
|
||||
<input id="id_reg_captcha_0" name="captcha_0" type="hidden"
|
||||
value="{{ hash_key }}"><br>
|
||||
<input type="text" id="id_reg_captcha_1" name="captcha_1" placeholder="验证码"
|
||||
style="width: 200px;">
|
||||
|
||||
</p>
|
||||
<p class="submit" style="margin-top: 50px;text-align: center">
|
||||
<input type="submit" name="wp-submit" id="wp-submit"
|
||||
class="btn btn-orange btn-block"
|
||||
value="登录" style="background-color: #00a8e6;width: 200px;margin-left: 18%"/>
|
||||
</p>
|
||||
</form>
|
||||
<div class="col-lg-12 col-xs-12 col-md-12" style="text-align: center">
|
||||
<div class="col-lg-3 col-xs-3 col-md-3"></div>
|
||||
<div class="col-lg-6 col-xs-6 col-md-6" style="margin-top: 60px">
|
||||
<div style="width: 10px;height: 10px;background-color: white;border-radius: 30px;display: inline-block"></div>
|
||||
<div style="width: 50px;height: 10px;background-color: white;border-radius: 10px;display: inline-block"></div>
|
||||
<div style="width: 10px;height: 10px;background-color: white;border-radius: 30px;display: inline-block"></div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-xs-3 col-md-3"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{# <div class="row">#}
|
||||
{# <div class="foot col-md-12">#}
|
||||
{# <div class="col-md-1">#}
|
||||
{# <img width="100" height="50" style="margin-left: 10%;margin-top: 30px"#}
|
||||
{# src="{% static 'dashboard/image/图层 26@2x.png' %}">#}
|
||||
{# </div>#}
|
||||
{# <div class="col-md-11">#}
|
||||
{# <p style="color: #ffffff;font-size: 16px;margin-left: 15%;margin-top: 20px">合作连接</p>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 15%;margin-top: 20px">公众号</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">微博</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">抖音</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">头条</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">其他</span>#}
|
||||
{# </div>#}
|
||||
{# <div class="col-md-12" style="height: 1px;border-top: solid #FFFFFF 1px;margin-top: 10px"></div>#}
|
||||
{# <div class="col-md-12">#}
|
||||
{# <div style="color: white;text-align: left;height: 250px;margin-left: 22%">#}
|
||||
{# <p>电话:15293151340</p>#}
|
||||
{# <p>电子邮箱:greatfeature@126.com</p>#}
|
||||
{# <p>公司地址:兰州市城关区南昌路421号华宇大厦C座</p>#}
|
||||
{# <div class="col-md-12" style="color: white;margin-left: 25%;margin-top: 30px">甘肃大未来科技文化发展有限公司</div>#}
|
||||
{##}
|
||||
{# </div>#}
|
||||
{##}
|
||||
{##}
|
||||
{# </div>#}
|
||||
{# <div style="height: 200px"></div>#}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
|
||||
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$(".next-captcha").click(function (e) {
|
||||
e.preventDefault();
|
||||
$.getJSON("{% url 'refresh-captcha' %}", function (json) {
|
||||
// This should update your captcha image src and captcha hidden input
|
||||
// debugger;
|
||||
var status = json['status'];
|
||||
console.log(status);
|
||||
console.log("6666666666666666666666666666666");
|
||||
var new_cptch_key = json['new_cptch_key'];
|
||||
var new_cptch_image = json['new_cptch_image'];
|
||||
id_captcha_0 = $("#id_reg_captcha_0");
|
||||
img = $(".captcha");
|
||||
id_captcha_0.attr("value", new_cptch_key);
|
||||
img.attr("src", new_cptch_image);
|
||||
});
|
||||
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,238 @@
|
|||
{% load static %}
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
{# <meta name="viewport" content="width=device-width, initial-scale=1">#}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
|
||||
<title>政务新媒体监测系统</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="{% static 'dashboard/css/home.css' %}" rel="stylesheet">
|
||||
|
||||
<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
|
||||
<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid register-head">
|
||||
<div class="row">
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="col-md-12 col-xs-12 col-lg-12">
|
||||
<div class="logo col-md-6 col-xs-6 col-lg-6" style="text-align: center;">
|
||||
<img src="{% static 'dashboard/image/图层 26.png' %}" style="width: 240px;height: 120px;">
|
||||
</div>
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div style="margin-top: 50px">
|
||||
<span style="margin-left: 40%"><a style="color: white"
|
||||
href="{% url 'dashboard-home' %}">主页</a></span>
|
||||
<span style="margin-left: 10%"><a style="color: white"
|
||||
href="{% url 'dashboard-login' %}">登录</a></span>
|
||||
<span style="margin-left: 10%"><a style="color: white"
|
||||
href="{% url 'dashboard-login-for-phone' %}">手机号注册/登录</a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 col-xs-12 col-lg-12">
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div style="float: right;margin-top: 120px">
|
||||
<p style="font-size: 65px;font-weight: 999;color: white">政务新媒体</p>
|
||||
<p style="font-size: 65px;font-weight: 999;color: white">管理系统</p>
|
||||
<p style="font-size: 20px;font-weight: 99;color: white">监测新媒体内容中的敏感词(如黄赌毒、邪教、反共等术语),</p>
|
||||
<p style="font-size: 20px;font-weight: 99;color: white">支持查看上下文,支持敏感词定位。监测新媒体内容中的所有</p>
|
||||
<p style="font-size: 20px;font-weight: 99;color: white">外部链接,支持审核,从而及时发现“非法外链”。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-xs-6 col-lg-6">
|
||||
<div style="text-align: center">
|
||||
<div class="resgiter-img1" style="text-align: center">
|
||||
|
||||
</div>
|
||||
<div class="resgiter-img2" style="text-align: center">
|
||||
|
||||
</div>
|
||||
<div class="resgiter-img3">
|
||||
<form action="{% url 'dashboard-register' %}" method="post">{% csrf_token %}
|
||||
<p>
|
||||
<label for="user_login" style="margin-top: 30px;margin-left: 18%">单位<br/>
|
||||
<div class="input-group main-search">
|
||||
<input type="text" class="form-control" placeholder="请输入关键字"
|
||||
style="height: 30px;width: 200px;opacity: .9;margin-left: 25%;margin-top: -10px "
|
||||
name="organization">
|
||||
<div class="input-group-btn" style="display: none">
|
||||
<button class="btn btn-default" type="button">
|
||||
<span class="glyphicon glyphicon-search"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="autocomplete-panel"
|
||||
style="z-index: 999;margin-left: 18%;opacity: .9;float: left;position: absolute;margin-top: 80px"></div>
|
||||
</label>
|
||||
</p>
|
||||
<p style="position: relative">
|
||||
<label for="user_login" style="margin-top: 0px;margin-left: 18%">姓名<br/>
|
||||
<input type="text" name="name" id="user_login" class="form-control"
|
||||
size="20"
|
||||
placeholder="请输入姓名"
|
||||
style="height: 30px;width: 200px;opacity: .9;margin-left: -2%;"/></label>
|
||||
</p>
|
||||
<p style="position: relative">
|
||||
<label for="user_login" style="margin-top: 0px;margin-left: 18%">电话<br/>
|
||||
<input type="text" name="username" id="user_login" class="form-control"
|
||||
size="20"
|
||||
placeholder="请输入电话"
|
||||
style="height: 30px;width: 200px;opacity: .9;margin-left: -2%;"/></label>
|
||||
</p>
|
||||
<p style="position: relative">
|
||||
<label for="user_login" style="margin-top: 0px;margin-left: 18%">密码<br/>
|
||||
<input type="password" name="password" id="user_login" class="form-control"
|
||||
size="20"
|
||||
placeholder="请输入密码"
|
||||
style="height: 30px;width: 200px;opacity: .9;margin-left: -2%;"/></label>
|
||||
</p>
|
||||
<p style="position: relative">
|
||||
<label for="user_login" style="margin-top: 0px;margin-left: 18%">确认密码<br/>
|
||||
<input type="password" name="confirm_password" id="user_login" class="form-control"
|
||||
size="20"
|
||||
placeholder="请确认密码"
|
||||
style="height: 30px;width: 200px;opacity: .9;margin-left: -2%;"/></label>
|
||||
</p>
|
||||
<p class="div_index_yan" style="margin-top: 0px;margin-left: 18%">
|
||||
<span>
|
||||
<a href="#" class="next-captcha">
|
||||
<img src="{{ image_url }}" class="captcha" alt="captcha">
|
||||
</a>
|
||||
</span>
|
||||
<input id="id_reg_captcha_0" name="captcha_0" type="hidden"
|
||||
value="{{ hash_key }}"><br>
|
||||
<input type="text" id="id_reg_captcha_1" name="captcha_1" placeholder="验证码"
|
||||
style="width: 200px;">
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
<p class="submit" style="margin-top: 50px;text-align: center">
|
||||
<input type="submit" name="wp-submit" id="wp-submit"
|
||||
class="btn btn-orange btn-block"
|
||||
value="注册"
|
||||
style="background-color: #00a8e6;width: 200px;margin-left: 18%"/>
|
||||
</p>
|
||||
</form>
|
||||
<div class="col-lg-12 col-xs-12 col-md-12" style="text-align: center">
|
||||
<div class="col-lg-3 col-xs-3 col-md-3"></div>
|
||||
<div class="col-lg-6 col-xs-6 col-md-6" style="margin-top: 90px">
|
||||
<div style="width: 10px;height: 10px;background-color: white;border-radius: 30px;display: inline-block"></div>
|
||||
<div style="width: 50px;height: 10px;background-color: white;border-radius: 10px;display: inline-block"></div>
|
||||
<div style="width: 10px;height: 10px;background-color: white;border-radius: 30px;display: inline-block"></div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-xs-3 col-md-3"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{# <div class="row">#}
|
||||
{# <div class="foot col-md-12">#}
|
||||
{# <div class="col-md-1">#}
|
||||
{# <img width="100" height="50" style="margin-left: 10%;margin-top: 30px"#}
|
||||
{# src="{% static 'dashboard/image/图层 26@2x.png' %}">#}
|
||||
{# </div>#}
|
||||
{# <div class="col-md-11">#}
|
||||
{# <p style="color: #ffffff;font-size: 16px;margin-left: 15%;margin-top: 20px">合作连接</p>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 15%;margin-top: 20px">公众号</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">微博</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">抖音</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">头条</span>#}
|
||||
{# <span style="color: white;font-size: 14px;margin-left: 5%;margin-top: 20px">其他</span>#}
|
||||
{# </div>#}
|
||||
{# <div class="col-md-12" style="height: 1px;border-top: solid #FFFFFF 1px;margin-top: 10px"></div>#}
|
||||
{# <div class="col-md-12">#}
|
||||
{# <div style="color: white;text-align: left;height: 250px;margin-left: 22%">#}
|
||||
{# <p>电话:15293151340</p>#}
|
||||
{# <p>电子邮箱:greatfeature@126.com</p>#}
|
||||
{# <p>公司地址:兰州市城关区南昌路421号华宇大厦C座</p>#}
|
||||
{# <div class="col-md-12" style="color: white;margin-left: 25%;margin-top: 30px">甘肃大未来科技文化发展有限公司</div>#}
|
||||
{##}
|
||||
{# </div>#}
|
||||
{##}
|
||||
{##}
|
||||
{# </div>#}
|
||||
{# <div style="height: 200px"></div>#}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
|
||||
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$(".next-captcha").click(function (e) {
|
||||
e.preventDefault();
|
||||
$.getJSON("{% url 'refresh-captcha' %}", function (json) {
|
||||
// This should update your captcha image src and captcha hidden input
|
||||
// debugger;
|
||||
var status = json['status'];
|
||||
console.log(status);
|
||||
console.log("6666666666666666666666666666666");
|
||||
var new_cptch_key = json['new_cptch_key'];
|
||||
var new_cptch_image = json['new_cptch_image'];
|
||||
id_captcha_0 = $("#id_reg_captcha_0");
|
||||
img = $(".captcha");
|
||||
id_captcha_0.attr("value", new_cptch_key);
|
||||
img.attr("src", new_cptch_image);
|
||||
});
|
||||
|
||||
});
|
||||
$('.main-search input').focus(function (e) {
|
||||
e.preventDefault();
|
||||
$("#history_query").hide()
|
||||
var width = $(this).width();
|
||||
var position = $(this).position();
|
||||
var val = $(this).val();
|
||||
var params = {keyword: val}
|
||||
if (val) {
|
||||
$('.autocomplete-panel').load('/get/organization/' + '?' + $.param(params));
|
||||
}
|
||||
$('.autocomplete-panel').css({
|
||||
width: width + 12,
|
||||
top: position.top + 34,
|
||||
left: position.left + 5
|
||||
}).show();
|
||||
}).blur(function (e) {
|
||||
e.preventDefault();
|
||||
}).on('input', function (e) {
|
||||
var val = $(this).val();
|
||||
var params = {keyword: val}
|
||||
$('.autocomplete-panel').load('/get/organization/' + '?' + $.param(params))
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -6,6 +6,7 @@ from dashboard import views
|
|||
urlpatterns = [
|
||||
path('', views.home, name='dashboard-home'),
|
||||
path('index/', views.index, name='dashboard-index'),
|
||||
path('download/', views.download, name='dashboard-download'),
|
||||
path('login/', views.user_login, name='dashboard-login'),
|
||||
path('user/login/for/phone/', views.user_login_for_phone, name='dashboard-login-for-phone'),
|
||||
# 手机用户第一次登录后完善个人信息
|
||||
|
|
|
@ -90,12 +90,12 @@ def user_login(request):
|
|||
messages.error(request, '账号或密码错误,请您确认账号和密码')
|
||||
except:
|
||||
messages.error(request, '账号或密码错误,请您确认账号和密码')
|
||||
return render(request, 'dashboard/login.html', {'hash_key': hash_key, 'image_url': image_url})
|
||||
return render(request, 'dashboard/login-new.html', {'hash_key': hash_key, 'image_url': image_url})
|
||||
|
||||
|
||||
def user_login_for_phone(request):
|
||||
if request.method == 'GET':
|
||||
return render(request, 'dashboard/login-for-phone.html')
|
||||
return render(request, 'dashboard/login-for-phone-new.html')
|
||||
elif request.method == 'POST':
|
||||
p_code = request.POST.get('check_code')
|
||||
phone = request.POST.get('phone')
|
||||
|
@ -133,7 +133,7 @@ def user_login_for_phone(request):
|
|||
else:
|
||||
print(1233333333)
|
||||
messages.error(request, '请输入正确的验证码!!!')
|
||||
return render(request, 'dashboard/login-for-phone.html')
|
||||
return render(request, 'dashboard/login-for-phone-new.html')
|
||||
|
||||
|
||||
def improve_personal_information(request, pk):
|
||||
|
@ -246,6 +246,7 @@ def register(request):
|
|||
image_url = captcha_image_url(hash_key)
|
||||
organization = Organization.objects.filter(status='1')
|
||||
if request.method == 'POST':
|
||||
print("111111111111111111111111")
|
||||
if not request.POST.get('organization'):
|
||||
messages.error(request, '请选择单位')
|
||||
else:
|
||||
|
@ -259,10 +260,8 @@ def register(request):
|
|||
messages.error(request, '请输入姓名')
|
||||
else:
|
||||
name = request.POST.get('name')
|
||||
if not request.POST.get('email'):
|
||||
messages.error(request, '请输入邮箱')
|
||||
else:
|
||||
email = request.POST.get('email')
|
||||
|
||||
# email = request.POST.get('email')
|
||||
if not request.POST.get('username'):
|
||||
messages.error(request, '请输入用户名')
|
||||
else:
|
||||
|
@ -305,7 +304,7 @@ def register(request):
|
|||
messages.error(request, '对不起,您输入的电话号码已被注册')
|
||||
return HttpResponseRedirect('/register/')
|
||||
|
||||
if username is not None and password is not None and confirm_password is not None and email is not None and flag:
|
||||
if username is not None and password is not None and confirm_password is not None and flag:
|
||||
user = User.objects.create_user(username, email, password, last_login=timezone.now())
|
||||
user.is_active = True
|
||||
# user.is_staff = True
|
||||
|
@ -318,7 +317,7 @@ def register(request):
|
|||
user.save()
|
||||
messages.success(request, '注册成功,请登录')
|
||||
return HttpResponseRedirect('/login')
|
||||
return render(request, 'dashboard/register.html',
|
||||
return render(request, 'dashboard/register-new.html',
|
||||
{'hash_key': hash_key, 'image_url': image_url, 'organization': organization})
|
||||
|
||||
|
||||
|
@ -1175,6 +1174,8 @@ def group_super_search_by_keyword(request):
|
|||
{'group': group, 'res_g_i': res_g_i, 'count': count, 'level': level})
|
||||
|
||||
|
||||
def download(request):
|
||||
return render(request,'dashboard/download-app.html')
|
||||
def app_download(request):
|
||||
file = open('/var/www/p3/newmediamonitoring/media/app-10.apk', 'rb')
|
||||
response = HttpResponse(file)
|
||||
|
|
|
@ -103,7 +103,7 @@ def user_management(request):
|
|||
def user_delete(request, pk):
|
||||
print(pk)
|
||||
user = User.objects.get(id=pk)
|
||||
# user.delete()
|
||||
user.delete()
|
||||
return HttpResponseRedirect('/management/user/management/')
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
|
|||
from django.db.models import Sum
|
||||
from django.http import HttpResponse, JsonResponse
|
||||
from django.shortcuts import render
|
||||
from datetime import timedelta
|
||||
from datetime import timedelta,date
|
||||
# Create your views here.
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
|
||||
|
@ -1112,7 +1112,8 @@ def timeliness_monitoring_json_qita(request):
|
|||
|
||||
@login_required
|
||||
def index_map(request):
|
||||
name = request.GET.get('name')
|
||||
name = request.GET.get('name').split('市')[0]
|
||||
print(name)
|
||||
timelinessmonitoring_weixin = \
|
||||
TimelinessMonitoring.objects.filter(city__contains=name, n_type='微信').aggregate(nums=Sum('update'))['nums']
|
||||
timelinessmonitoring_weibo = \
|
||||
|
@ -1161,21 +1162,22 @@ def index_newmedia_count(request):
|
|||
"douyin":douyin_list,
|
||||
"qita":qita_list,
|
||||
}))
|
||||
|
||||
def index_warning_count(request):
|
||||
date_list = [x.strftime('%Y-%m-%d') for x in list(pd.date_range(start='2019-07-01',end=datetime.datetime.now()))]
|
||||
data = []
|
||||
for d in date_list:
|
||||
news = News.objects.filter(type='3',date=d).count()
|
||||
data.append(news)
|
||||
print(str(data)+"6666666666666666666666666666666")
|
||||
# date = News.objects.distinct('date')
|
||||
# date_list = [x.strftime('%Y-%m-%d') for x in list(pd.date_range(start='2019-07-01',end=datetime.datetime.now()))]
|
||||
# data = []
|
||||
# date_list = []
|
||||
# for d in date:
|
||||
# date_list.append(d.date)
|
||||
# news = News.objects.filter(type='3', date=d).count()
|
||||
# for d in date_list:
|
||||
# news = News.objects.filter(type='3',date=d).count()
|
||||
# data.append(news)
|
||||
# print(str(data)+"6666666666666666666666666666666")
|
||||
date = News.objects.distinct('date').order_by('-date')
|
||||
|
||||
data = []
|
||||
date_list = []
|
||||
for d in date:
|
||||
print(d.date)
|
||||
date_list.append(str(d.date))
|
||||
news = News.objects.filter(type='3', date=str(d.date)).count()
|
||||
data.append(news)
|
||||
return HttpResponse(json.dumps({
|
||||
"status":"1",
|
||||
"data":data,
|
||||
|
|
|
@ -20,9 +20,9 @@ def process_notify_task():
|
|||
exists = SMSNotifyRecord.objects.filter(
|
||||
phone=phone, added=today, notice_id=n.id).exists()
|
||||
if exists:
|
||||
return
|
||||
break
|
||||
if hour < 8 or hour > 20:
|
||||
return
|
||||
break
|
||||
print('============', phone, n.type, n.id)
|
||||
SMSNotifyRecord.objects.create(phone=phone, notice_id=n.id)
|
||||
sent_sms_notify(phone, n.type)
|
||||
|
|