去除对 admin view 的依赖

This commit is contained in:
邹景立 2022-11-30 11:10:44 +08:00
parent 54bdb10d82
commit ba998bdb4b
37 changed files with 102 additions and 34 deletions

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="content"}
<div class="think-box-shadow" id="ContentBox">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="content"}
<div class="think-box-shadow">

View File

@ -1,4 +1,4 @@
{extend name='../../admin/view/table'}
{extend name='table'}
{block name="button"}
<!--{if auth("add")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name='content'}
<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="MessageTable">

View File

@ -1,4 +1,4 @@
{extend name='../../admin/view/table'}
{extend name='table'}
{block name='button'}
<!--{if auth("add")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name='content'}
<form action="{:sysuri()}?type={$get.type|default=''}" method="post" data-auto="true" class="layui-form layui-card">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name='content'}
<div class="think-box-notify margin-bottom-15">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name='content'}
<form action="{:sysuri()}" class="layui-form layui-card" data-auto="true" method="post">

View File

@ -1,4 +1,4 @@
{extend name='../../admin/view/table'}
{extend name='table'}
{block name="button"}
<!--{if auth("add")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/table"}
{extend name="table"}
{block name="button"}
<!--{if auth("sync") and $type eq 'index'}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="content"}
<div id="TruckForm">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="content"}
<div class="think-box-shadow" id="TruckForm">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/table"}
{extend name="table"}
{block name="button"}
<!--{if auth("add")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="content"}
<style>

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name='content'}
<div class="think-box-notify margin-bottom-15">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/table"}
{extend name="table"}
{block name="button"}
<!--{if auth("add")}-->

32
app/data/view/full.html Normal file
View File

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<title>{block name="title"}{$title|default=''}{if !empty($title)} · {/if}{:sysconf('site_name')}{/block}</title>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=0.4">
<link rel="stylesheet" href="__ROOT__/static/plugs/layui/css/layui.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/theme/css/iconfont.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/theme/css/console.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/extra/style.css?at={:date('md')}">
{block name="style"}{/block}
<script src="__ROOT__/static/plugs/jquery/pace.min.js"></script>
<script src="{:url('admin/api.plugs/script',[],false,false)}"></script>
</head>
<body class="layui-layout-body">
{block name='body'}
<div class="layui-layout layui-layout-admin layui-layout-left-hide">
<div class="layui-body think-bg-white margin-0 padding-0" style="top:0">{block name='content'}{/block}</div>
</div>
{/block}
<script src="__ROOT__/static/plugs/layui/layui.js"></script>
<script src="__ROOT__/static/plugs/require/require.js"></script>
<script src="__ROOT__/static/admin.js"></script>
<script src="__ROOT__/static/extra/script.js"></script>
{block name='script'}{/block}
</body>
</html>

18
app/data/view/main.html Normal file
View File

@ -0,0 +1,18 @@
<div class="layui-card">
{block name='style'}{/block}
{block name='header'}
{notempty name='title'}
<div class="layui-card-header">
<span class="layui-icon font-s10 color-desc margin-right-5">&#xe65b;</span>{$title|default=''}
<div class="pull-right">{block name='button'}{/block}</div>
</div>
{/notempty}
{/block}
<div class="layui-card-line"></div>
<div class="layui-card-body">
<div class="layui-card-html">
{block name='content'}{/block}
</div>
</div>
{block name='script'}{/block}
</div>

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name='content'}
<form action="{:sysuri()}" class="layui-card layui-form" data-auto="true" method="post">

View File

@ -1,4 +1,4 @@
{extend name='../../admin/view/table'}
{extend name='table'}
{block name="button"}
<!--{if auth("add")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/table"}
{extend name="table"}
{block name="button"}
<!--{if auth("add")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="content"}
{include file='shop/goods/formstyle'}

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="button"}
<!--{if auth("add")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/full"}
{extend name="full"}
{block name="content"}
<div class="iframe-pagination">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="button"}
<!--{if auth("clean")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="button"}
<!--{if auth('config')}-->

18
app/data/view/table.html Normal file
View File

@ -0,0 +1,18 @@
<div class="layui-card">
{block name='style'}{/block}
{block name='header'}
{notempty name='title'}
<div class="layui-card-header">
<span class="layui-icon font-s10 color-desc margin-right-5">&#xe65b;</span>{$title|default=''}
<div class="pull-right">{block name='button'}{/block}</div>
</div>
{/notempty}
{/block}
<div class="layui-card-line"></div>
<div class="layui-card-body">
<div class="layui-card-table">
{block name='content'}{/block}
</div>
</div>
{block name='script'}{/block}
</div>

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name='content'}
<div class="think-box-shadow portal-block-container notselect">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="button"}
<!--{if auth("sync")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/full"}
{extend name="full"}
{block name="content"}
<div class="iframe-pagination">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="content"}
<div class="think-box-shadow">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="button"}
<!--{if auth("remove")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="content"}
<div class="layui-badge nowrap think-bg-red padding-5 padding-left-10 font-s15 layui-anim layui-anim-upbit">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="button"}
<!--{if auth("remove")}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name='content'}
<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card">

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="button"}
<!--{if auth('config')}-->

View File

@ -1,4 +1,4 @@
{extend name="../../admin/view/main"}
{extend name="main"}
{block name="button"}
<!--{if auth('config')}-->