[更新]修改模板按钮颜色及微信模块模板

This commit is contained in:
Anyon 2018-05-03 11:09:45 +08:00
parent 31a840cf40
commit 3bbfe22b9b
13 changed files with 100 additions and 170 deletions

View File

@ -2,10 +2,11 @@
{block name="button"}
<!--{if auth("$classuri/add")}-->
<button data-modal='{:url("$classuri/add")}' data-title="添加权限" class='layui-btn layui-btn-sm'>添加权限</button>
<button data-modal='{:url("$classuri/add")}' data-title="添加权限" class='layui-btn layui-btn-sm layui-btn-primary'>添加权限</button>
<!--{/if}-->
<!--{if auth("$classuri/del")}-->
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-danger'>删除权限</button>
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-primary'>删除权限</button>
<!--{/if}-->
{/block}

View File

@ -2,7 +2,7 @@
{block name="button"}
<!--{if auth("$classuri/del")}-->
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-danger'>删除日志</button>
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-primary'>删除日志</button>
<!--{/if}-->
{/block}

View File

@ -2,10 +2,10 @@
{block name="button"}
<!--{if auth("$classuri/add")}-->
<button data-modal='{:url("$classuri/add")}' data-title="添加菜单" class='layui-btn layui-btn-sm'>添加菜单</button>
<button data-modal='{:url("$classuri/add")}' data-title="添加菜单" class='layui-btn layui-btn-sm layui-btn-primary'>添加菜单</button>
<!--{/if}-->
<!--{if auth("$classuri/del")}-->
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-danger'>删除菜单</button>
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-primary'>删除菜单</button>
<!--{/if}-->
{/block}

View File

@ -2,7 +2,7 @@
{block name='button'}
<!--{if auth("$classuri/clear")}-->
<button data-load='{:url("$classuri/clear")}' class='layui-btn layui-btn-sm layui-btn-danger'>清理无效记录</button>
<button data-load='{:url("$classuri/clear")}' class='layui-btn layui-btn-sm layui-btn-primary'>清理无效记录</button>
<!--{/if}-->
{/block}

View File

@ -2,10 +2,11 @@
{block name="button"}
<!--{if auth("$classuri/add")}-->
<button data-modal='{:url("$classuri/add")}' data-title="添加用户" class='layui-btn layui-btn-sm'>添加用户</button>
<button data-modal='{:url("$classuri/add")}' data-title="添加用户" class='layui-btn layui-btn-sm layui-btn-primary'>添加用户</button>
<!--{/if}-->
<!--{if auth("$classuri/del")}-->
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-danger'>删除用户</button>
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-primary'>删除用户</button>
<!--{/if}-->
{/block}

View File

@ -3,11 +3,11 @@
{block name="button"}
<!--{if auth("$classuri/add")}-->
<button data-modal='{:url("$classuri/add")}' data-title="添加规格" class='layui-btn layui-btn-sm'>添加规格</button>
<button data-modal='{:url("$classuri/add")}' data-title="添加规格" class='layui-btn layui-btn-sm layui-btn-primary'>添加规格</button>
<!--{/if}-->
<!--{if auth("$classuri/del")}-->
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-danger'>删除规格</button>
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-primary'>删除规格</button>
<!--{/if}-->
{/block}

View File

@ -2,89 +2,16 @@
{block name="button"}
<!--{if auth('wechat/block/backdel')}-->
<button data-update="" data-action="{:url('backdel')}" class='layui-btn layui-btn-sm'>移出黑名单</button>
<button data-update="" data-action="{:url('backdel')}" class='layui-btn layui-btn-sm layui-btn-primary'>批量移出粉丝</button>
<!--{/if}-->
<!--{if auth('wechat/fans/sync')}-->
<button data-load="{:url('wechat/fans/sync')}" class='layui-btn layui-btn-sm'>远程获取粉丝</button>
<button data-load="{:url('wechat/fans/sync')}" class='layui-btn layui-btn-sm layui-btn-primary'>远程获取粉丝</button>
<!--{/if}-->
{/block}
{block name="content"}
<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="nickname" placeholder="请输入昵称" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<select name="sex" class="layui-select">
<option value="">- 性别 -</option>
<!--{foreach [1=>'男',2=>'女'] as $key=>$sex}-->
<!--{if $Think.get.sex eq $key.''}-->
<option selected value="{$key}">- {$sex} -</option>
<!--{else}-->
<option value="{$key}">- {$sex} -</option>
<!--{/if}-->
<!--{/foreach}-->
</select>
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<select name="tag" class="layui-select" lay-search="true">
<option value="">- 粉丝标签 -</option>
<!--{foreach $tags as $key=>$tag}-->
<!--{if $Think.get.tag eq $key}-->
<option selected value="{$key}">{$tag}</option>
<!--{else}-->
<option value="{$key}">{$tag}</option>
<!--{/if}-->
<!--{/foreach}-->
</select>
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="country" value="{$Think.get.country|default=''}" placeholder="请输入国家" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="province" value="{$Think.get.province|default=''}" placeholder="请输入省份" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="city" value="{$Think.get.city|default=''}" placeholder="请输入城市" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="create_at" id='create_at' value="{$Think.get.create_at|default=''}" placeholder="关注时间" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
</div>
</form>
{include file='wechat@fans/search_inc'}
<!-- 表单搜索 结束 -->
<form onsubmit="return false;" data-auto="true" method="post">

View File

@ -2,89 +2,16 @@
{block name="button"}
<!--{if auth("$classuri/backadd")}-->
<button data-update data-action="{:url('backadd')}" class='layui-btn layui-btn-sm layui-btn-danger'>批量拉黑</button>
<button data-update data-action="{:url('backadd')}" class='layui-btn layui-btn-sm layui-btn-primary'>批量拉黑粉丝</button>
<!--{/if}-->
<!--{if auth("$classuri/sync")}-->
<button data-load="{:url('sync')}" class='layui-btn layui-btn-sm'>远程获取粉丝</button>
<button data-load="{:url('sync')}" class='layui-btn layui-btn-sm layui-btn-primary'>远程获取粉丝</button>
<!--{/if}-->
{/block}
{block name="content"}
<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="nickname" placeholder="请输入昵称" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<select name="sex" class="layui-select">
<option value="">- 性别 -</option>
<!--{foreach [1=>'男',2=>'女'] as $key=>$sex}-->
<!--{if $Think.get.sex eq $key.''}-->
<option selected value="{$key}">- {$sex} -</option>
<!--{else}-->
<option value="{$key}">- {$sex} -</option>
<!--{/if}-->
<!--{/foreach}-->
</select>
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<select name="tag" class="layui-select" lay-search="true">
<option value="">- 粉丝标签 -</option>
<!--{foreach $tags as $key=>$tag}-->
<!--{if $Think.get.tag eq $key}-->
<option selected value="{$key}">{$tag}</option>
<!--{else}-->
<option value="{$key}">{$tag}</option>
<!--{/if}-->
<!--{/foreach}-->
</select>
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="country" value="{$Think.get.country|default=''}" placeholder="请输入国家" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="province" value="{$Think.get.province|default=''}" placeholder="请输入省份" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="city" value="{$Think.get.city|default=''}" placeholder="请输入城市" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="create_at" id='create_at' value="{$Think.get.create_at|default=''}" placeholder="关注时间" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
</div>
</form>
{include file='wechat@fans/search_inc'}
<!-- 表单搜索 结束 -->
<form onsubmit="return false;" data-auto="true" method="post">

View File

@ -0,0 +1,74 @@
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="nickname" placeholder="请输入昵称" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<select name="sex" class="layui-select">
<option value="">- 性别 -</option>
<!--{foreach [1=>'男',2=>'女'] as $key=>$sex}-->
<!--{if $Think.get.sex eq $key.''}-->
<option selected value="{$key}">- {$sex} -</option>
<!--{else}-->
<option value="{$key}">- {$sex} -</option>
<!--{/if}-->
<!--{/foreach}-->
</select>
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<select name="tag" class="layui-select" lay-search="true">
<option value="">- 粉丝标签 -</option>
<!--{foreach $tags as $key=>$tag}-->
<!--{if $Think.get.tag eq $key}-->
<option selected value="{$key}">{$tag}</option>
<!--{else}-->
<option value="{$key}">{$tag}</option>
<!--{/if}-->
<!--{/foreach}-->
</select>
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="country" value="{$Think.get.country|default=''}" placeholder="请输入国家" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="province" value="{$Think.get.province|default=''}" placeholder="请输入省份" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="city" value="{$Think.get.city|default=''}" placeholder="请输入城市" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<label class="layui-form-label"> </label>
<div class="layui-input-inline">
<input name="create_at" id='create_at' value="{$Think.get.create_at|default=''}" placeholder="关注时间" class="layui-input">
</div>
</div>
<div class="layui-form-item layui-inline">
<button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
</div>
</form>

View File

@ -3,11 +3,11 @@
{block name="button"}
<!--{if auth("$classuri/add")}-->
<button data-open="{:url('add')}" class='layui-btn layui-btn-sm'>添加规则</button>
<button data-open="{:url('add')}" class='layui-btn layui-btn-sm layui-btn-primary'>添加规则</button>
<!--{/if}-->
<!--{if auth("$classuri/del")}-->
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-danger'>删除规则</button>
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-primary'>删除规则</button>
<!--{/if}-->
{/block}

View File

@ -1,7 +1,7 @@
{extend name='admin@public/content'}
{block name="button"}
<button data-open="{:url('add')}" class='layui-btn layui-btn-sm'>添加图文</button>
<button data-open="{:url('add')}" class='layui-btn layui-btn-sm layui-btn-primary'>添加图文</button>
{/block}
{block name='content'}

View File

@ -3,15 +3,15 @@
{block name="button"}
<!--{if auth("$classuri/add")}-->
<button data-modal="{:url('add')}" data-title="添加标签" class='layui-btn layui-btn-sm'> 添加标签</button>
<button data-modal="{:url('add')}" data-title="添加标签" class='layui-btn layui-btn-sm layui-btn-primary'> 添加标签</button>
<!--{/if}-->
<!--{if auth("$classuri/del")}-->
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-danger'> 删除标签</button>
<button data-update data-field='delete' data-action='{:url("$classuri/del")}' class='layui-btn layui-btn-sm layui-btn-primary'> 删除标签</button>
<!--{/if}-->
<!--{if auth("$classuri/sync")}-->
<button data-load="{:url('sync')}" class='layui-btn layui-btn-sm'> 远程获取标签</button>
<button data-load="{:url('sync')}" class='layui-btn layui-btn-sm layui-btn-primary'> 远程获取标签</button>
<!--{/if}-->
{/block}

View File

@ -135,12 +135,12 @@ class WechatService
if (isset($token['openid'])) {
session("{$appid}_openid", $openid = $token['openid']);
if (empty($fullMode) && request()->get('rcode')) {
redirect(decode(request()->get('rcode')))->send();
redirect(decode(request()->get('rcode')), [], 301)->send();
}
session("{$appid}_fansinfo", $fansinfo = $wechat->getUserInfo($token['access_token'], $openid));
empty($fansinfo) || FansService::set($fansinfo);
}
redirect(decode(request()->get('rcode')))->send();
redirect(decode(request()->get('rcode')), [], 301)->send();
break;
case 'thr':
default: