mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update options.html
This commit is contained in:
parent
c75d167dd3
commit
2686b24568
@ -2,21 +2,19 @@
|
||||
|
||||
{block name="content"}
|
||||
|
||||
<div class="layui-card layui-form">
|
||||
<div class="layui-card-body think-box-shadow padding-bottom-5">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">Auth<br><span class="nowrap color-desc">授权方式</span></label>
|
||||
<div class="layui-input-block">
|
||||
{foreach ['api'=>'公众号平台API模式','thr'=>'第三方平台授权模式','test'=>'接口功能测试'] as $k=>$v}
|
||||
<input type="radio" data-wechat-type="{$k}" name="wechat.type" value="{$k}" title="{$v}" lay-filter="wechat_type">
|
||||
{/foreach}
|
||||
<p class="help-block">请选择微信对接方式,其中第三方平台授权需要微信开放平台支持,同时需要搭建 Service 服务!</p>
|
||||
</div>
|
||||
<div class="think-box-shadow layui-form">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">Auth<br><span class="nowrap color-desc">授权方式</span></label>
|
||||
<div class="layui-input-block">
|
||||
{foreach ['api'=>'公众号平台API模式','thr'=>'第三方平台授权模式','test'=>'接口功能测试'] as $k=>$v}
|
||||
<input type="radio" data-wechat-type="{$k}" name="wechat.type" value="{$k}" title="{$v}" lay-filter="wechat_type">
|
||||
{/foreach}
|
||||
<p class="help-block">请选择微信对接方式,其中第三方平台授权需要微信开放平台支持,同时需要搭建 Service 服务!</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="think-box-shadow ">
|
||||
<div class="think-box-shadow margin-top-15">
|
||||
<div class="layui-anim layui-anim-upbit" data-type="api">{include file='config/options_api'}</div>
|
||||
<div class="layui-anim layui-anim-upbit" data-type="thr">{include file='config/options_thr'}</div>
|
||||
<div class="layui-anim layui-anim-upbit" data-type="test">{include file='config/options_tst'}</div>
|
||||
@ -27,16 +25,13 @@
|
||||
{block name='script'}
|
||||
<script>
|
||||
$(function () {
|
||||
apply('{:sysconf("wechat.type")}' || 'api');
|
||||
window.form.render();
|
||||
window.form.on('radio(wechat_type)', function (data) {
|
||||
apply(data.value);
|
||||
});
|
||||
apply({value: '{:sysconf("wechat.type")}' || 'api'});
|
||||
window.form.render(), window.form.on('radio(wechat_type)', apply);
|
||||
|
||||
function apply(value) {
|
||||
this.$active = $("[data-wechat-type='" + value + "']").trigger('click');
|
||||
function apply(data) {
|
||||
this.$active = $("[data-wechat-type='" + data.value + "']").trigger('click');
|
||||
if (this.$active.size() < 1) $("[data-wechat-type]:first").trigger('click');
|
||||
$('[data-type="' + value + '"]').show().siblings('[data-type]').hide();
|
||||
$('[data-type="' + data.value + '"]').show().siblings('[data-type]').hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user