diy细节优化
parent
0dd6dbdbe3
commit
25549d7b74
|
|
@ -165,7 +165,7 @@ class Common extends BaseController
|
|||
{
|
||||
if(empty($this->admin))
|
||||
{
|
||||
if(IS_AJAX || IS_POST)
|
||||
if(IS_AJAX)
|
||||
{
|
||||
exit(json_encode(DataReturn(MyLang('login_failure_tips'), -400, [
|
||||
'login' => MyUrl('admin/admin/logininfo'),
|
||||
|
|
@ -530,7 +530,7 @@ class Common extends BaseController
|
|||
if(!AdminIsPower(null, null, $unwanted_power))
|
||||
{
|
||||
$msg = MyLang('no_power_tips');
|
||||
if(IS_AJAX || IS_POST)
|
||||
if(IS_AJAX)
|
||||
{
|
||||
exit(json_encode(DataReturn($msg, -1000)));
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
<!-- 基础信息 -->
|
||||
{{if !empty($module_data)}}
|
||||
<div class="am-nbfc">
|
||||
{{if !empty($module_data['logo'])}}
|
||||
<a href="{{:MyUrl('index/customview/index', ['id'=>$module_data['id']])}}" target="_blank">
|
||||
<img src="{{$module_data.logo}}" class="am-img-thumbnail am-radius am-margin-right-sm am-fl" width="25" height="25" />
|
||||
</a>
|
||||
{{/if}}
|
||||
<a href="{{:MyUrl('index/customview/index', ['id'=>$module_data['id']])}}" target="_blank">
|
||||
<span class="am-nowrap-initial">{{$module_data.name}}</span>
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
<!-- 基础信息 -->
|
||||
{{if !empty($module_data)}}
|
||||
<div class="am-nbfc">
|
||||
{{if !empty($module_data['logo'])}}
|
||||
<a href="{{:MyUrl('index/design/index', ['id'=>$module_data['id']])}}" target="_blank">
|
||||
<img src="{{$module_data.logo}}" class="am-img-thumbnail am-radius am-margin-right-sm am-fl" width="25" height="25" />
|
||||
</a>
|
||||
{{/if}}
|
||||
<a href="{{:MyUrl('index/design/index', ['id'=>$module_data['id']])}}" target="_blank">
|
||||
<span class="am-nowrap-initial">{{$module_data.name}}</span>
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
<!-- 商品分类 -->
|
||||
{{if !empty($module_data['data']) && !empty($module_data['form_name_key'])}}
|
||||
<select class="am-radius chosen-select" multiple name="{{$module_data.form_name_key}}" data-placeholder="{{:MyLang('form_goods_category_placeholder')}}">
|
||||
{{foreach $module_data.data as $v}}
|
||||
<option value="{{$v.id}}" {{if !empty($module_data['params']) and !empty($module_data['params'][$module_data['form_name_key']]) and is_array($module_data['params'][$module_data['form_name_key']]) and in_array($v['id'], $module_data['params'][$module_data['form_name_key']])}}selected{{/if}}>{{$v.name}}</option>
|
||||
{{if !empty($v['items'])}}
|
||||
{{foreach $v.items as $vs}}
|
||||
<option style="padding-left: 15px;" value="{{$vs.id}}" {{if !empty($module_data['params']) and !empty($module_data['params'][$module_data['form_name_key']]) and is_array($module_data['params'][$module_data['form_name_key']]) and in_array($vs['id'], $module_data['params'][$module_data['form_name_key']])}}selected{{/if}}>{{if empty($vs['items'])}}├{{else /}}└{{/if}}² {{$vs.name}}</option>
|
||||
{{if !empty($vs['items'])}}
|
||||
{{foreach $vs.items as $kss=>$vss}}
|
||||
<option style="padding-left: 30px;" value="{{$vss.id}}" {{if !empty($module_data['params']) and !empty($module_data['params'][$module_data['form_name_key']]) and is_array($module_data['params'][$module_data['form_name_key']]) and in_array($vss['id'], $module_data['params'][$module_data['form_name_key']])}}selected{{/if}}>{{if $kss eq count($vs['items'])-1}}└{{else /}}├{{/if}}³ {{$vss.name}}</option>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
</select>
|
||||
{{/if}}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{{if !empty($module_data) and isset($module_data['is_install']) and $module_data['is_install'] eq 1}}
|
||||
<a href="javascript:;" class="am-icon-btn submit-state {{if $module_data['is_enable'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:MyUrl('admin/payment/statusupdate')}}" data-id="{{$module_data.payment}}" data-field="is_enable" data-state="{{$module_data['is_enable']}}" data-is-update-status="1">
|
||||
<i class="iconfont icon-enable"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<!-- logo -->
|
||||
{{if !empty($module_data) and !empty($module_data['logo'])}}
|
||||
<a href="{{$module_data['logo']}}" target="_blank">
|
||||
<img src="{{$module_data['logo']}}" class="am-radius" width="50" height="50" />
|
||||
</a>
|
||||
{{/if}}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{{if !empty($module_data) and isset($module_data['is_install']) and $module_data['is_install'] eq 1}}
|
||||
<a href="javascript:;" class="am-icon-btn submit-state {{if $module_data['is_open_user'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:MyUrl('admin/payment/statusupdate')}}" data-id="{{$module_data.payment}}" data-field="is_open_user" data-state="{{$module_data['is_open_user']}}">
|
||||
<i class="iconfont icon-enable"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<ul class="am-nav am-nav-pills table-nav">
|
||||
{{if !empty($nav_data) and is_array($nav_data)}}
|
||||
{{foreach $nav_data as $v}}
|
||||
<li {{if $view_type eq $v['type']}}class="am-active"{{/if}}>
|
||||
<a href="{{:MyUrl('admin/pluginsadmin/index', ['view_type'=>$v['type']])}}">{{$v.name}}</a>
|
||||
</li>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{if $is_system_show_base eq 1 and !empty($store_url)}}
|
||||
<li class="am-fr">
|
||||
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
|
|
@ -5,8 +5,8 @@
|
|||
<link rel="shortcut icon" type="image/x-icon" href="{{$public_host}}favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{:MyLang('common_service.diy.base_nav_title')}}</title>
|
||||
<script type="module" crossorigin src="{{$public_host}}static/diy/js/entry/index-c5782606.js"></script>
|
||||
<link rel="stylesheet" href="{{$public_host}}static/diy/css/index-d8947bcb.css">
|
||||
<script type="module" crossorigin src="{{$public_host}}static/diy/js/entry/index-95cbaf8d.js"></script>
|
||||
<link rel="stylesheet" href="{{$public_host}}static/diy/css/index-f8603fe7.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
|||
import{d as a,c as e,u as s,a as r,o as t}from"../entry/index-c5782606.js";const n=a({__name:"index",setup(a){const n=s(),p=r(),{params:o,query:u}=n,{path:d}=o;return p.replace({path:"/"+d,query:u}),(a,s)=>(t(),e("div"))}});export{n as default};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{d as a,c as e,u as s,a as r,o as t}from"../entry/index-95cbaf8d.js";const n=a({__name:"index",setup(a){const n=s(),p=r(),{params:o,query:u}=n,{path:d}=o;return p.replace({path:"/"+d,query:u}),(a,s)=>(t(),e("div"))}});export{n as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue