🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] #### 小程序列表/app/app.html seo ``` <title>{if input('ks')}{:input('ks')}{else/}{:dingyi($c.name,'全部')}{/if} - 小程序导航 - {:guojiz('title')}</title> <meta name="keywords" content="{:dingyi($c.keywords,guojiz('keywords'))}" /> <meta name="description" content="{:dingyi($c.description,guojiz('description'))}" /> ``` 搜索 ``` <form action="/app/soso.html"> <div class="input-search"> <div> <input type="text" placeholder="输入关键字" name="ks" autocomplete="off" value="{:input('ks')}"> <button class="layui-btn layui-btn-shop"><i class="layui-icon layui-icon-search"></i></button> <dl class="layui-hide-sm layui-show-md-inline-block"> <dt>热搜:</dt> {volist name=":exps(config('app.appks'))" id="vo"} <dd><a href="/app/soso.html?ks={$vo}">{$vo}</a></dd> {/volist} </dl> </div> </div> </form> ``` 导航 ``` <span class="layui-breadcrumb" style="visibility: visible;"> <a href="/">网站首页</a> <span lay-separator="">/</span> <a href="/app.html">小程序</a> <span lay-separator="">/</span> <a><cite>{:dingyi($c.name,'全部')}</cite></a> </span> ``` 数据 ``` {if input('id')=='soso'} <!--搜索数据--> <?php $app=fun_so('app',array('f.open'=>1),input('ks'),18,false,'cate','f.title-f.description');?> {else/} {if input('id')} <!--分类--> <?php $app=funb('app',array('open'=>1),findNum(input('id')),'settop desc,id desc',18,0);?> {else/} <!--全部--> <?php $app=funa('app',array('open'=>1),'settop desc,id desc',18,0);?> {/if} {/if} {volist name="$app" id="vo" empty=" <div class='empty' align='center'> <img src='__GUOJIZ__/images/wu.png'/> <h4>没有更多的记录</h4> </div>"} <div class="layui-col-xs6 layui-col-sm6 layui-col-md4 layui-col-lg2"> <a class="template store-list-box" href="/app/html_{$vo.id}.html"> <img src="{$vo.ico}" class="store-list-cover"> <h2 class="layui-elip" {if $vo.settop==1}style="color: #0b9d37;"{/if}>{$vo.title}</h2> <div> <label class="layui-badge-rim store-list-pay">{:funs('cate', array('id'=>$vo.tid), 'name')}</label> <div class="store-list-colorbar">人气:{$vo.view}</div> </div> </a> </div> {/volist} ``` 分页 ``` {$app->render()} ``` #### 小程序详情 /app/app_html.html ``` 字段 '介绍', uid '用户uid', tid'上级', open'状态', baidu '百度推送', settop '是否置顶', view'浏览量', ico '图标', ma '二维码', www'官方网站', title '标题', keywords '关键字', description '描述', zhuti '主体', time'创建的时间', ri '日点击量', yue '月点击量', nian'年点击量', ``` 例如调用标题 ``` {$t.title} {$t.字段} ``` 调用当前对应的分类数据 ``` {$c.name}//名称 {$c.字段}//集体字段去查看cate表 ``` 知道当前的用户的uid如何获取该用户的数据 请查看万能标签介绍 seo ``` <title>{$t.title} - 小程序导航 - {:guojiz('title')}</title> <meta name="keywords" content="{$t.keywords}" /> <meta name="description" content="{$t.description}" /> ``` 搜索 ``` <form action="/app/soso.html"> <div class="input-search"> <div><input type="text" placeholder="输入关键字" name="ks" autocomplete="off" value="{:input('ks')}"> <button class="layui-btn layui-btn-shop"><i class="layui-icon layui-icon-search"></i></button> <dl class="layui-hide-sm layui-show-md-inline-block"> <dt>热搜:</dt> {volist name=":exps(config('app.appks'))" id="vo"} <dd><a href="/app/soso.html?ks={$vo}">{$vo}</a></dd> {/volist} </dl> </div> </div> </form> ``` 导航 ``` <span class="layui-breadcrumb" style="visibility: visible;"> <a href="/">网站首页</a> <span lay-separator="">/</span> <a href="/app.html">公众号</a> <span lay-separator="">/</span> <a href="/app/list{$c.id}.html">{$c.name}</a> <span lay-separator="">/</span> <a><cite>{$t.title}</cite></a> </span> ``` 关键字TAG ``` {if condition="$t['keywords'] neq ''"} <div class="layui-container shopdata"> <div class="layui-card shopdata-intro"> <div class="layui-card-body layui-row"> <div class="wrap"> <div class="blog-widget widget-box mt-20"> <ul class="cat cat-tag"> {volist name=":exps($t['keywords'])" id="vo"} <li> <a href="/app/soso.html?ks={$vo}">{$vo}</a> </li> {/volist} </ul> </div> </div> </div> </div> </div> {/if} ``` 点击统计 ``` <div id="pillar2" style="width:100%;height:305px;"></div> <script type="text/javascript" src="__GUOJIZ__/js/echarts.min.js"></script> <script> var pillar2 = echarts.init(document.getElementById('pillar2')); pillar2.setOption({ color:["#00afff"], tooltip : { trigger: 'axis' }, calculable : true, xAxis : [ { type : 'category', data : ['{:vo_c($config,'-8','time')}','{:vo_c($config,'-7','time')}','{:vo_c($config,'-6','time')}','{:vo_c($config,'-5','time')}','{:vo_c($config,'-7','time')}','{:vo_c($config,'-9','time')}', '{:vo_c($config,'-2','time')}','{:vo_c($config,'-1','time')}','今日点击'] } ], yAxis : [ { type : 'value' } ], series : [ { name:'累计点击人次', type:'bar', data : ['{:vo_c($config,'-8','view')}','{:vo_c($config,'-7','view')}','{:vo_c($config,'-6','view')}','{:vo_c($config,'-5','view')}','{:vo_c($config,'-4','view')}','{:vo_c($config,'-3','view')}', '{:vo_c($config,'-2','view')}','{:vo_c($config,'-1','view')}','{:vo_c($config,'0','view')}'] } ] }); </script> ``` 相关推荐 ``` {volist name=":fun_sj('app',array('open'=>1,'tid'=>$t.tid),'12')" id="vo"} <div class="layui-col-xs6 layui-col-sm6 layui-col-md4 layui-col-lg2"> <a class="template store-list-box" href="/app/html_{$vo.id}.html"> <img src="{$vo.ico}" class="store-list-cover"> <h2 class="layui-elip">{$vo.title}</h2> <div> <label class="layui-badge-rim store-list-pay">{:funs('cate', array('id'=>$vo.tid), 'name')}</label> <div class="store-list-colorbar"><i class="layui-icon">&#xe60e;</i>{$vo.view}</div> </div> </a> </div> {/volist} ```