内容目录
- 一、详细介绍
- 二、效果展示
- 1.部分代码
- 2.效果图展示
- 三、学习资料下载
一、详细介绍
后台php,前端uniapp可以二次开
2024最新独立版校园跑腿校园社区小程序源码+附教程
测试环境:Nginx+PHP7.2+MySQL5.6
多校版本,多模块,适合跑腿,外卖,表白,二手,快递等校园服务
二、效果展示
1.部分代码
代码如下(示例):
class FragmentTag extends TagLib
{protected $tags = array('sql' => ['attr' => 'query,connect', 'alias' => 'iterate'],'relate' => ['attr' => 'sqlstr','level'=>3],'newslist'=>['attr'=>'classid,field,order,num,sqlstr,flag,group,result,empty,cache,extend','level'=>3],'list'=>['attr'=>'table,classid,field,num,order,sqlstr,cache','level'=>3],'query'=>['attr'=>'table,field,num,order,sqlstr,cache','level'=>3],'class'=>['attr'=>'field,num,order,sqlstr,cache','level'=>3],'page'=>['attr'=>'table,field,num,order,sqlstr,cache','level'=>1],'sig' => ['attr'=>'id,field,cache','close'=>0],'input' => ['attr' => 'id,name,hidden,readonly,onclick,style','close' => 0],);public function tagSql($tag, $content){ $result= !empty($tag['result'])?$tag['result']: 'sql';preg_match_all('/select(.*)from/iUs',$tag['query'],$all);if(!empty($all[1][0])){$sqlvalue = explode(',',trim($all[1][0]));}$connect.=($tag['connect'])?$tag['connect']:config('database.default');$tag['query'] = str_replace('pre_',config('database.connections.'.$connect.'.prefix'),$tag['query']);if(false == strpos($tag['query'],'.')){$tag['query'] = str_replace('\'','"',$tag['query']);}$data ="\\think\\facade\\Db::connect('".$connect."')->query('{$tag['query']}')";
2.效果图展示
三、学习资料下载
蓝奏云:https://qumaw.lanzoul.com/iWLbP1ykigoj