Compare commits

...

2 Commits

Author SHA1 Message Date
邹景立
ccc3bbc73b 修改后台样式 2022-03-14 22:21:53 +08:00
邹景立
3577d77dac 修改注释 2022-03-14 21:50:48 +08:00
7 changed files with 105 additions and 113 deletions

View File

@ -19,6 +19,7 @@ namespace app\wechat\controller;
use app\wechat\model\WechatAuto;
use think\admin\Controller;
use think\admin\extend\CodeExtend;
use think\admin\helper\QueryHelper;
/**
* 关注自动回复
@ -41,15 +42,14 @@ class Auto extends Controller
* 关注自动回复
* @auth true
* @menu true
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function index()
{
$this->title = '关注自动回复';
$query = WechatAuto::mQuery()->like('code,type');
$query->equal('status')->dateBetween('create_at')->order('time asc')->page();
WechatAuto::mQuery(null, function (QueryHelper $query) {
$query->like('code,type')->equal('status');
$query->dateBetween('create_at')->order('time asc')->page();
});
}
/**

View File

@ -17,6 +17,7 @@
namespace app\wechat\controller;
use app\wechat\model\WechatFans;
use app\wechat\model\WechatFansTags;
use app\wechat\service\WechatService;
use think\admin\Controller;
use think\admin\helper\QueryHelper;
@ -115,7 +116,7 @@ class Fans extends Controller
{
try {
WechatFans::mQuery()->empty();
WechatFans::mQuery()->empty();
WechatFansTags::mQuery()->empty();
$this->success('清空用户数据成功!');
} catch (HttpResponseException $exception) {
throw $exception;

View File

@ -19,6 +19,7 @@ namespace app\wechat\controller;
use app\wechat\model\WechatKeys;
use app\wechat\service\WechatService;
use think\admin\Controller;
use think\admin\helper\QueryHelper;
use think\exception\HttpResponseException;
/**
@ -41,9 +42,6 @@ class Keys extends Controller
* 回复规则管理
* @auth true
* @menu true
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function index()
{
@ -59,8 +57,10 @@ class Keys extends Controller
}
// 数据列表分页处理
$this->title = '回复规则管理';
$query = WechatKeys::mQuery()->whereNotIn('keys', ['subscribe', 'default']);
$query->equal('status')->like('keys,type')->dateBetween('create_at')->order('sort desc,id desc')->page();
WechatKeys::mQuery(null, function (QueryHelper $query) {
$query->equal('status')->like('keys,type')->dateBetween('create_at');
$query->whereNotIn('keys', ['subscribe', 'default'])->order('sort desc,id desc')->page();
});
}
/**

View File

@ -20,6 +20,7 @@ use app\wechat\model\WechatNews;
use app\wechat\model\WechatNewsArticle;
use app\wechat\service\MediaService;
use think\admin\Controller;
use think\admin\helper\QueryHelper;
use think\admin\service\AdminService;
/**
@ -33,14 +34,13 @@ class News extends Controller
* 微信图文管理
* @auth true
* @menu true
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function index()
{
$this->title = '微信图文列表';
WechatNews::mQuery()->where(['is_deleted' => 0])->order('id desc')->page();
WechatNews::mQuery(null, function (QueryHelper $query) {
$query->where(['is_deleted' => 0])->order('id desc')->page();
});
}
/**
@ -60,9 +60,6 @@ class News extends Controller
/**
* 图文选择器
* @auth true
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function select()
{

View File

@ -1,127 +1,121 @@
@charset "UTF-8";
@import "_config.less";
.layui-layout-theme-white {
.layui-layout-theme-white > .layui-layout-admin {
> .layui-side {
box-shadow: none;
background-color: #fff !important;
> .layui-layout-admin {
> .layui-side {
.layui-logo {
color: #333;
box-shadow: none;
background-color: #fff !important;
font-weight: bold;
}
.layui-logo {
color: #333;
box-shadow: none;
font-weight: bold;
.layui-side-scroll {
display: flex !important;
box-sizing: border-box;
.layui-nav-child {
background: none !important;
}
.layui-side-scroll {
display: flex !important;
box-sizing: border-box;
.layui-side-icon {
width: 60px;
display: none;
background: #fff;
.layui-nav-child {
background: none !important;
a {
height: 60px;
display: block;
text-align: center;
line-height: 60px;
}
.layui-side-icon {
width: 60px;
display: none;
.layui-icon {
color: #999;
}
> .layui-this {
background: #fff;
a {
height: 60px;
display: block;
text-align: center;
line-height: 60px;
}
.layui-icon {
color: #999;
}
> .layui-this {
background: #fff;
.layui-icon {
color: #098 !important;
}
color: #090 !important;
}
}
}
.layui-side-tree {
flex: 1;
.layui-side-tree {
flex: 1;
.layui-nav-item {
.layui-nav-item {
background: none !important;
border-bottom-color: #fff;
a {
color: #333 !important;
background: none !important;
border-bottom-color: #fff;
border-bottom: none !important;
a {
color: #333 !important;
&:hover {
color: #090 !important;
}
}
.layui-this, &.layui-this {
> a {
color: #090 !important;
background: none !important;
border-bottom: none !important;
font-weight: bold !important;
&:hover {
color: #098 !important;
}
}
.layui-this, &.layui-this {
> a {
color: #098 !important;
background: none !important;
font-weight: bold !important;
&:hover {
background: none !important;
}
}
}
&ed > a {
color: #999 !important;
}
}
}
}
}
> .layui-body {
> .think-page-body > .layui-card {
&:before {
top: 0;
left: 0;
bottom: 0;
z-index: 4;
content: '';
position: absolute;
box-shadow: @ShadowBodyRight;
}
> .layui-card-header {
box-shadow: none !important;
border-left: @BoxBottomLine;
}
}
}
> .layui-header {
background: none !important;
.layui-nav-item {
&.layui-this > a {
color: #098 !important;
font-weight: bold;
background: none !important;
}
> a {
color: #333 !important;
&:hover {
color: #098 !important;
background: none !important;
&ed > a {
color: #999 !important;
}
}
}
}
}
> .layui-body > .think-page-body > .layui-card {
&:before {
top: 0;
left: 0;
bottom: 0;
z-index: 4;
content: '';
position: absolute;
box-shadow: @ShadowBodyRight;
}
> .layui-card-header {
border-left: @BoxBottomLine;
}
}
> .layui-header {
background: #fff !important;
.layui-nav-item {
&.layui-this > a {
color: #090 !important;
font-weight: bold;
background: none !important;
}
> a {
color: #333 !important;
&:hover {
color: #090 !important;
background: none !important;
}
}
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long