Browse Source

支付

master
jianglong 3 years ago
parent
commit
88e00a2762
  1. 4
      .env
  2. 119
      app/admin/controller/community/Organ.php
  3. 119
      app/admin/controller/community/Team.php
  4. 24
      app/admin/controller/setting/Basic.php
  5. 3
      app/admin/logic/community/CommunityArticleLogic.php
  6. 2
      app/admin/logic/community/CommunityCategoryLogic.php
  7. 184
      app/admin/logic/community/OrganTeamLogic.php
  8. 1
      app/admin/logic/setting/BasicLogic.php
  9. 2
      app/admin/validate/community/CommunityCategoryValidate.php
  10. 7
      app/admin/view/community/community_category/add.html
  11. 10
      app/admin/view/community/community_category/edit.html
  12. 9
      app/admin/view/community/community_category/lists.html
  13. 215
      app/admin/view/community/organ/add.html
  14. 225
      app/admin/view/community/organ/edit.html
  15. 226
      app/admin/view/community/organ/lists.html
  16. 215
      app/admin/view/community/team/add.html
  17. 226
      app/admin/view/community/team/edit.html
  18. 226
      app/admin/view/community/team/lists.html
  19. 87
      app/admin/view/setting/basic/sensitive_words.html
  20. 57
      app/api/controller/Community.php
  21. 130
      app/api/logic/CommunityLogic.php
  22. 1
      app/api/logic/GoodsLogic.php
  23. 1
      app/api/logic/IndexLogic.php
  24. 2
      app/api/logic/ResourceLogic.php
  25. 12
      app/common/enum/MenuEnum.php
  26. 12
      app/common/model/community/OrganTeam.php
  27. 4
      runtime/cache/00/b1e0a819bb5f94f3e5604d029ef141.php
  28. 4
      runtime/cache/08/9f9473551c6be7c249c6691db76e8b.php
  29. 4
      runtime/cache/12/bb0249cb4a5d867c05cb88253006ec.php
  30. 4
      runtime/cache/17/3cae69e1a1a69728d9c7389c494c9e.php
  31. 4
      runtime/cache/17/8b359da1a92eac32afc7a1d31c0b14.php
  32. 4
      runtime/cache/18/4ac7d2de0f535b928f57be67c12982.php
  33. 4
      runtime/cache/18/b0842da0c7ddbd0df1131fc872437b.php
  34. 4
      runtime/cache/1e/9273b3315671b45227b5827559a179.php
  35. 4
      runtime/cache/20/7f8bc94ca8123509893d9da7e2ff59.php
  36. 4
      runtime/cache/22/88986d1983eea4de09bf8e70ec9881.php
  37. 4
      runtime/cache/24/aa79f454ae4a96de164eff1ccef5ee.php
  38. 4
      runtime/cache/26/1b47462c6799213cf37df319f33655.php
  39. 4
      runtime/cache/29/b54ac964c061893f6d047ecadf2db6.php
  40. 4
      runtime/cache/2a/2ba4e15d0b50ad705155378a65bc94.php
  41. 4
      runtime/cache/2a/3c59317bf62dee03ac481983f4d910.php
  42. 4
      runtime/cache/2a/3e026a446221f44c23a06208998d4b.php
  43. 4
      runtime/cache/2b/0c0c6ac8dbe9c121625db7f115ed18.php
  44. 4
      runtime/cache/2e/00473f3b37a60f00d26da6bcff1f42.php
  45. 4
      runtime/cache/2f/29b23217261947c25f2b92b8f31f7b.php
  46. 4
      runtime/cache/33/3d185de946c220cbe4e4ad709f3b67.php
  47. 4
      runtime/cache/39/c32ced6a3806745d665754c8c9b590.php
  48. 4
      runtime/cache/40/6a6b9f24afe34133374bf1b54efb00.php
  49. 4
      runtime/cache/47/0d7371185f215c48473a3b188fc928.php
  50. 4
      runtime/cache/49/77e3a4be3b8073aa726f7197724dd7.php
  51. 4
      runtime/cache/4a/8ad83d0b7747781db62e03fdc7fa37.php
  52. 2
      runtime/cache/4c/326658e22fa2ffaa97949563f8a23c.php
  53. 4
      runtime/cache/55/077c04cc51f163ed648cf74ce8012f.php
  54. 4
      runtime/cache/56/96fbd4d00285a1b29d7e9d7375fed5.php
  55. 4
      runtime/cache/61/5afac208647ba8697248d87d324770.php
  56. 4
      runtime/cache/62/6bc5ce31e982e46ce54de37d3e71d0.php
  57. 4
      runtime/cache/63/99f4b69c109e3622c82fb51c3f389f.php
  58. 2
      runtime/cache/6a/a49c0d228d3501681da6f355d518cb.php
  59. 4
      runtime/cache/70/314922defec2fc394307405afdf403.php
  60. 4
      runtime/cache/77/eb6f3f10cc07ca22de436877874513.php
  61. 4
      runtime/cache/7f/96b6c31b46c5b22f831d8e28386e93.php
  62. 4
      runtime/cache/80/62fcd43bc8555526146746c2e3d314.php
  63. 4
      runtime/cache/82/d096523cc6d39b76f6b255c2fa21a9.php
  64. 4
      runtime/cache/85/bdce959c1221dc2c5b731d4db0ea80.php
  65. 4
      runtime/cache/85/caa5b1d52613819bf146e7fa3b4382.php
  66. 4
      runtime/cache/86/e67fd18ec7f98d61476d67794c2b10.php
  67. 4
      runtime/cache/95/42388f400d27a649eb7148f8b75204.php
  68. 4
      runtime/cache/97/e34ce429ea9ead0000ad45740b210e.php
  69. 4
      runtime/cache/9c/1a1a93828df1e24759a846ec5be67f.php
  70. 2
      runtime/cache/9f/d2f37875d1da637002182ec566f162.php
  71. 4
      runtime/cache/a0/8096bd7dce74be06b92b2f8e3a8b2c.php
  72. 2
      runtime/cache/a4/cac12231ceb012f0ffa0d41c73fe3d.php
  73. 4
      runtime/cache/a5/3767114aa0910a8d4c20e9564872b2.php
  74. 4
      runtime/cache/a9/c9c11b4ce126c2478fe48d6a37ad9f.php
  75. 2
      runtime/cache/ad/656c00a17ac7dca6e7693b28eb1e1a.php
  76. 4
      runtime/cache/b7/119ff97c0593fc73d86c66a1ddc909.php
  77. 4
      runtime/cache/c6/3e867a6e02f41c824b20aa5bcc1677.php
  78. 4
      runtime/cache/c9/e49251c47d95189921588a43af1e59.php
  79. 2
      runtime/cache/ce/ecb9316cf9453e86c768bf35cef370.php
  80. 4
      runtime/cache/d1/260e0b5c156de695e1d3fb6e2507ea.php
  81. 4
      runtime/cache/d2/74fcb584937cd6dc52e5797405efa6.php
  82. 4
      runtime/cache/d8/a054e2e395567462f747f11b13d3a7.php
  83. 4
      runtime/cache/df/bcd7e612593de7d6f1945c6e22044c.php
  84. 2
      runtime/cache/e2/1897945f077de19ba1bbc7456fff20.php
  85. 4
      runtime/cache/e6/1f426b849692c71fd8933d7f1daf31.php
  86. 4
      runtime/cache/ea/a98cc14f2c4a8dcadf5e9f3cf4497d.php
  87. 4
      runtime/cache/f0/f4b7a992b581b49b83b8179a36458e.php
  88. 4
      runtime/cache/f4/26ad8c265e571b93fd9aba143f5710.php
  89. 4
      runtime/cache/f5/cacdaa0fcd810984eb8fc26ad3da5d.php
  90. 4
      runtime/cache/fa/1679f5b24b5e54c47a3243dafd0a6f.php
  91. 4
      runtime/cache/fc/d3620e93e047cf969297a7eba927a4.php
  92. 4
      runtime/cache/ff/161c45942c62f121929d9ce44a4d66.php

4
.env

@ -11,7 +11,7 @@ type = "mysql"
username = "ahbcqz" username = "ahbcqz"
[project] [project]
admin_name = "多商户后台" admin_name = "博创设计"
env_name = "多商户后台" env_name = "博创设计"
file_domain = "loca.ahbcqz.com" file_domain = "loca.ahbcqz.com"
ws_domain = "wss://127.0.0.1" ws_domain = "wss://127.0.0.1"

119
app/admin/controller/community/Organ.php

@ -0,0 +1,119 @@
<?php
namespace app\admin\controller\community;
use app\admin\logic\community\OrganTeamLogic;
use app\admin\logic\content\HelpCategoryLogic;
use app\admin\logic\content\HelpLogic;
use app\admin\logic\content\ResourceCategoryLogic;
use app\admin\logic\content\ResourceLogic;
use app\admin\validate\content\HelpValidate;
use app\common\basics\AdminBase;
use app\common\server\JsonServer;
class Organ extends AdminBase
{
/**
* @NOTES: 帮助分类列表
* @author: 张无忌
*/
public function lists()
{
if ($this->request->isAjax()) {
$get = $this->request->get();
$lists = OrganTeamLogic::lists($get,0);
return JsonServer::success("获取成功", $lists);
}
return view('');
}
/**
* @NOTES: 添加帮助类
* @author: 张无忌
*/
public function add()
{
if ($this->request->isAjax()) {
// (new HelpValidate())->goCheck('add');
$post = $this->request->post();
$post['type'] = 0;
$res = OrganTeamLogic::add($post);
if ($res === false) {
$error = OrganTeamLogic::getError() ?: '新增失败';
return JsonServer::error($error);
}
return JsonServer::success('新增成功');
}
return view('');
}
/**
* @NOTES: 编辑帮助分类
* @author: 张无忌
*/
public function edit()
{
if ($this->request->isAjax()) {
// (new HelpValidate())->goCheck('edit');
$post = $this->request->post();
$post['type'] = 0;
$res = OrganTeamLogic::edit($post);
if ($res === false) {
$error = OrganTeamLogic::getError() ?: '编辑失败';
return JsonServer::error($error);
}
return JsonServer::success('编辑成功');
}
$id = $this->request->get('id');
return view('', [
'detail' => OrganTeamLogic::detail($id)
]);
}
/**
* @NOTES: 删除帮助分类
* @author: 张无忌
*/
public function del()
{
if ($this->request->isAjax()) {
// (new HelpValidate())->goCheck('id');
$id = $this->request->post('id');
$res = OrganTeamLogic::del($id);
if ($res === false) {
$error = OrganTeamLogic::getError() ?: '删除失败';
return JsonServer::error($error);
}
return JsonServer::success('删除成功');
}
return JsonServer::error('异常');
}
/**
* @Notes: 隐藏帮助分类
* @Author: 张无忌
*/
public function hide()
{
if ($this->request->isAjax()) {
// (new HelpValidate())->goCheck('id');
$id = $this->request->post('id');
$res = OrganTeamLogic::hide($id);
if ($res === false) {
$error = OrganTeamLogic::getError() ?: '操作失败';
return JsonServer::error($error);
}
return JsonServer::success('操作成功');
}
return JsonServer::success('异常');
}
}

119
app/admin/controller/community/Team.php

@ -0,0 +1,119 @@
<?php
namespace app\admin\controller\community;
use app\admin\logic\community\OrganTeamLogic;
use app\admin\logic\content\HelpCategoryLogic;
use app\admin\logic\content\HelpLogic;
use app\admin\logic\content\ResourceCategoryLogic;
use app\admin\logic\content\ResourceLogic;
use app\admin\validate\content\HelpValidate;
use app\common\basics\AdminBase;
use app\common\server\JsonServer;
class Team extends AdminBase
{
/**
* @NOTES: 帮助分类列表
* @author: 张无忌
*/
public function lists()
{
if ($this->request->isAjax()) {
$get = $this->request->get();
$lists = OrganTeamLogic::lists($get,1);
return JsonServer::success("获取成功", $lists);
}
return view('');
}
/**
* @NOTES: 添加帮助类
* @author: 张无忌
*/
public function add()
{
if ($this->request->isAjax()) {
// (new HelpValidate())->goCheck('add');
$post = $this->request->post();
$post['type'] = 1;
$res = OrganTeamLogic::add($post);
if ($res === false) {
$error = OrganTeamLogic::getError() ?: '新增失败';
return JsonServer::error($error);
}
return JsonServer::success('新增成功');
}
return view('');
}
/**
* @NOTES: 编辑帮助分类
* @author: 张无忌
*/
public function edit()
{
if ($this->request->isAjax()) {
// (new HelpValidate())->goCheck('edit');
$post = $this->request->post();
$post['type'] = 1;
$res = OrganTeamLogic::edit($post);
if ($res === false) {
$error = OrganTeamLogic::getError() ?: '编辑失败';
return JsonServer::error($error);
}
return JsonServer::success('编辑成功');
}
$id = $this->request->get('id');
return view('', [
'detail' => OrganTeamLogic::detail($id)
]);
}
/**
* @NOTES: 删除帮助分类
* @author: 张无忌
*/
public function del()
{
if ($this->request->isAjax()) {
// (new HelpValidate())->goCheck('id');
$id = $this->request->post('id');
$res = OrganTeamLogic::del($id);
if ($res === false) {
$error = OrganTeamLogic::getError() ?: '删除失败';
return JsonServer::error($error);
}
return JsonServer::success('删除成功');
}
return JsonServer::error('异常');
}
/**
* @Notes: 隐藏帮助分类
* @Author: 张无忌
*/
public function hide()
{
if ($this->request->isAjax()) {
// (new HelpValidate())->goCheck('id');
$id = $this->request->post('id');
$res = OrganTeamLogic::hide($id);
if ($res === false) {
$error = OrganTeamLogic::getError() ?: '操作失败';
return JsonServer::error($error);
}
return JsonServer::success('操作成功');
}
return JsonServer::success('异常');
}
}

24
app/admin/controller/setting/Basic.php

@ -223,4 +223,28 @@ class Basic extends AdminBase
return JsonServer::success('操作成功'); return JsonServer::success('操作成功');
} }
} }
/**
* Notes: 政策协议
* @author 段誉(2021/6/11 0:41)
* @return mixed
*/
public function sensitiveWords()
{
$config = [
'words' => ConfigServer::get('sensitive_words', 'words'),
];
return view('', ['config' => $config]);
}
public function setSensitiveWords()
{
$post = $this->request->post();
if ($post) {
ConfigServer::set('sensitive_words', 'words', strip_tags($post['words']));
return JsonServer::success('修改成功');
}
}
} }

3
app/admin/logic/community/CommunityArticleLogic.php

@ -73,7 +73,8 @@ class CommunityArticleLogic extends Logic
foreach ($lists['data'] as &$item) { foreach ($lists['data'] as &$item) {
$item['avatar'] = !empty($item['avatar']) ? UrlServer::getFileUrl($item['avatar']) : ''; $item['avatar'] = !empty($item['avatar']) ? UrlServer::getFileUrl($item['avatar']) : '';
$item['category'] = !empty($item['category']['name']) ? $item['category']['name'] : '--';
$item['category'] = !empty($item['category']['name']) ? ($item['category']['type']==0?'需求-':'服务-').$item['category']['name'] : '--';
} }
return ['count' => $lists['total'], 'lists' => $lists['data']]; return ['count' => $lists['total'], 'lists' => $lists['data']];

2
app/admin/logic/community/CommunityCategoryLogic.php

@ -93,6 +93,7 @@ class CommunityCategoryLogic extends Logic
{ {
return CommunityCategory::create([ return CommunityCategory::create([
'name' => $post['name'], 'name' => $post['name'],
'type' => $post['type']?? 0,
'is_show' => $post['is_show'], 'is_show' => $post['is_show'],
'sort' => $post['sort'] ?? 255, 'sort' => $post['sort'] ?? 255,
'create_time' => time() 'create_time' => time()
@ -111,6 +112,7 @@ class CommunityCategoryLogic extends Logic
{ {
return CommunityCategory::update([ return CommunityCategory::update([
'name' => $post['name'], 'name' => $post['name'],
'type' => $post['type']?? 0,
'is_show' => $post['is_show'], 'is_show' => $post['is_show'],
'sort' => $post['sort'] ?? 255, 'sort' => $post['sort'] ?? 255,
'update_time' => time() 'update_time' => time()

184
app/admin/logic/community/OrganTeamLogic.php

@ -0,0 +1,184 @@
<?php
namespace app\admin\logic\community;
use app\common\basics\Logic;
use app\common\model\community\OrganTeam;
use app\common\model\content\Help;
use app\common\model\content\Resource;
use app\common\server\AreaServer;
use app\common\server\UrlServer;
use Exception;
class OrganTeamLogic extends Logic
{
/**
* 获取分类
* @param $get
* @return array
*/
public static function lists($get,$type=0)
{
try {
$where = [
['del', '=', 0]
];
$where[] = ['type', '=', $type];
if (!empty($get['name']) and $get['name'])
$where[] = ['name', 'like', '%'.$get['name'].'%'];
$model = new OrganTeam();
$lists = $model->field(true)
->where($where)
->order('sort', 'asc')
->paginate([
'page' => $get['page'],
'list_rows' => $get['limit'],
'var_page' => 'page'
])
->toArray();
foreach ($lists['data'] as &$item) {
$item['is_show'] = $item['is_show'] ? '显示' : '隐藏';
$item['address'] = $item['province_id']?AreaServer::getAddress([
$item['province_id'],
$item['city_id'],
]):'';
}
return ['count'=>$lists['total'], 'lists'=>$lists['data']];
} catch (Exception $e) {
return ['error'=>$e->getMessage()];
}
}
public static function getAddr(){
}
/**
* @Notes: 资料详细
* @Author:
* @param $id
* @return array
*/
public static function detail($id)
{
$model = new OrganTeam();
$detail = $model->field(true)->findOrEmpty($id)->toArray();
// $detail['path'] = UrlServer::getFileUrl($detail['path']);
return $detail;
}
/**
* @Notes: 添加帮助
* @Author:
* @param $post
* @return bool
*/
public static function add($post)
{
try {
OrganTeam::create([
'name' => $post['name'],
'image' => $post['image'] ?? '',
'intro' => $post['intro'] ?? '',
'content' => $post['content'] ?? '',
'type' => $post['type'] ?? 0,
'province_id' => $post['province_id'] ?? 0,
'city_id' => $post['city_id'] ?? 0,
'district_id' => $post['district_id'] ?? 0,
'visit' => 0,
'contact' => $post['contact'] ?? '',
'sort' => $post['sort'] ?? 0,
'is_show' => $post['is_show'],
'company' => $post['company'] ?? '',
]);
return true;
} catch (\Exception $e) {
static::$error = $e->getMessage();
return false;
}
}
/**
* @Notes: 编辑帮助
* @Author: 张无忌
* @param $post
* @return bool
*/
public static function edit($post)
{
try {
OrganTeam::update([
'name' => $post['name'],
'image' => $post['image'] ?? '',
'intro' => $post['intro'] ?? '',
'content' => $post['content'] ?? '',
'company' => $post['company'] ?? '',
'type' => $post['type'] ?? 0,
'province_id' => $post['province_id'] ?? 0,
'city_id' => $post['city_id'] ?? 0,
'district_id' => $post['district_id'] ?? 0,
'visit' => 0,
'contact' => $post['contact'] ?? '',
'sort' => $post['sort'] ?? 0,
'is_show' => $post['is_show']
], ['id'=>$post['id']]);
return true;
} catch (\Exception $e) {
static::$error = $e->getMessage();
return false;
}
}
/**
* @Notes: 删除
* @Author:
* @param $id
* @return bool
*/
public static function del($id)
{
try {
OrganTeam::update([
'del' => 1,
'update_time' => time()
], ['id'=>$id]);
return true;
} catch (\Exception $e) {
static::$error = $e->getMessage();
return false;
}
}
/**
* @Notes: 隐藏
* @Author: 张无忌
* @param $id
* @return bool
*/
public static function hide($id)
{
try {
$model = new OrganTeam();
$article = $model->findOrEmpty($id)->toArray();
OrganTeam::update([
'is_show' => !$article['is_show'],
'update_time' => time()
], ['id'=>$id]);
return true;
} catch (\Exception $e) {
static::$error = $e->getMessage();
return false;
}
}
}

1
app/admin/logic/setting/BasicLogic.php

@ -132,6 +132,7 @@ class BasicLogic extends Logic
return ['config'=>$config]; return ['config'=>$config];
} }
/** /**
* @notes 设置版权资质 * @notes 设置版权资质
* @param $post * @param $post

2
app/admin/validate/community/CommunityCategoryValidate.php

@ -16,7 +16,7 @@ class CommunityCategoryValidate extends Validate
{ {
protected $rule = [ protected $rule = [
'id' => 'require|number', 'id' => 'require|number',
'name' => 'require|max:4|unique:'.CommunityCategory::class.',name^del', 'name' => 'require|max:4:'.CommunityCategory::class.',name^del^type',
'is_show' => 'require|in:0,1', 'is_show' => 'require|in:0,1',
'sort' => 'egt:0' 'sort' => 'egt:0'
]; ];

7
app/admin/view/community/community_category/add.html

@ -7,6 +7,13 @@
<input type="text" name="name" id="name" lay-verify="required" autocomplete="off" class="layui-input"> <input type="text" name="name" id="name" lay-verify="required" autocomplete="off" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-form-item">
<label class="layui-form-label"><span style="color:red;">*</span>l类型:</label>
<div class="layui-input-block">
<input type="radio" name="type" value="0" title="需求" checked>
<input type="radio" name="type" value="1" title="服务" >
</div>
</div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label"><span style="color:red;">*</span>状态:</label> <label class="layui-form-label"><span style="color:red;">*</span>状态:</label>

10
app/admin/view/community/community_category/edit.html

@ -9,6 +9,16 @@
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label"><span style="color:red;">*</span>l类型:</label>
<div class="layui-input-block">
<input type="radio" name="type" value="0" title="需求" {if !$detail.type}checked{/if}>
<input type="radio" name="type" value="1" title="服务" {if $detail.type}checked{/if}>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"><span style="color:red;">*</span>分类状态:</label> <label class="layui-form-label"><span style="color:red;">*</span>分类状态:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="radio" name="is_show" value="1" title="显示" {if $detail.is_show}checked{/if}> <input type="radio" name="is_show" value="1" title="显示" {if $detail.is_show}checked{/if}>

9
app/admin/view/community/community_category/lists.html

@ -43,6 +43,14 @@
<input type="checkbox" lay-filter="switch-show" data-id={{d.id}} lay-skin="switch" <input type="checkbox" lay-filter="switch-show" data-id={{d.id}} lay-skin="switch"
lay-text="显示|隐藏" {{# if(d.is_show==1){ }} checked {{# } }}/> lay-text="显示|隐藏" {{# if(d.is_show==1){ }} checked {{# } }}/>
</script> </script>
<script type="text/html" id="showType">
{{# if(d.type == 0){ }}
需求
{{# } }}
{{# if(d.type == 1){ }}
服务
{{# } }}
</script>
</div> </div>
</div> </div>
@ -55,6 +63,7 @@
like.tableLists("#like-table-lists", "{:url()}", [ like.tableLists("#like-table-lists", "{:url()}", [
{field:"name", align:"center", title:"分类名称"} {field:"name", align:"center", title:"分类名称"}
,{field:"type", align:"center", title:"类型",templet: "#showType"}
,{field:"is_show", align:"center", title:"状态", templet: "#showTpl"} ,{field:"is_show", align:"center", title:"状态", templet: "#showTpl"}
,{field:"sort", align:"center", title:"排序"} ,{field:"sort", align:"center", title:"排序"}
,{field:"create_time", align:"center", title:"创建时间"} ,{field:"create_time", align:"center", title:"创建时间"}

215
app/admin/view/community/organ/add.html

@ -0,0 +1,215 @@
{layout name="layout2" /}
<style>
.layui-form-item .layui-input-inline { width: 340px; }
.pay-li {
float: left;
opacity: 1;
position: relative;
}
.pay-img {
width: 80px;
height: 80px;
padding: 4px;
}
.pay-img-del-x {
position: absolute;
z-index: 100;
top: -4px;
right: -2px;
width: 20px;
height: 20px;
font-size: 16px;
line-height: 16px;
color: #fff;
text-align: center;
cursor: pointer;
background: hsla(0, 0%, 60%, .6);
border-radius: 10px;
}
.upload-cert-a{
cursor: pointer;
position: absolute;
z-index: 100;
top: 58px;
right: -10%;
width: 100px;
height: 20px;
font-size: 8px;
line-height: 16px;
text-align: center;
border-radius: 10px;
color: #4e8bff;
}
.upload-cert-a:hover {
color: #0641cb;
}
.pay-cert{
height:80px;line-height:80px
}
.cert-add,.key-add{
height: 80px;
width: 80px;
float: left;
opacity: 1;
position: relative;
border:1px dashed #a0a0a0;
background-image:url('/static/common/image/default/add_file.png');
background-repeat: no-repeat;
background-position: 50% 35%;
background-size:40px 40px;
margin: 4px;
text-align: center;
}
</style>
<div class="layui-card layui-form" style="box-shadow:none;">
<div class="layui-card-body">
<div class="layui-form-item">
<label for="name" class="layui-form-label"><span style="color:red;">*</span>名称:</label>
<div class="layui-input-inline">
<input type="text" name="name" id="name" lay-verType="tips" lay-verify="required" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="intro" class="layui-form-label">简介:</label>
<div class="layui-input-inline">
<input type="text" name="intro" id="intro" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="company" class="layui-form-label">企业名称:</label>
<div class="layui-input-inline">
<input type="text" name="company" id="company" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="sort" class="layui-form-label">排序:</label>
<div class="layui-input-inline">
<input type="text" name="sort" id="sort" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">封面图:</label>
<div class="layui-input-block">
<div class="like-upload-image" switch-tab="0" lay-verType="tips">
<div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
</div>
<div class="layui-form-mid layui-word-aux">建议尺寸:500*500像</div>
</div>
</div>
<div class="layui-form-item">
<label for="contact" class="layui-form-label">联系方式:</label>
<div class="layui-input-inline">
<input type="text" name="contact" id="contact" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">区域:</label>
<div class="layui-input-block">
<div class="layui-input-inline" style="width:120px;">
<select name="province_id" id="province" lay-filter="province"></select>
</div>
<div class="layui-input-inline" style="width:120px;">
<select name="city_id" id="city" lay-filter="city"></select>
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">状态:</label>
<div class="layui-input-inline">
<input type="radio" name="is_show" value="1" title="显示">
<input type="radio" name="is_show" value="0" title="隐藏" checked>
</div>
</div>
<div class="layui-form-item">
<label for="content" class="layui-form-label">内容:</label>
<div class="layui-input-block">
<textarea name="content" id="content" lay-verify="content"></textarea>
</div>
</div>
<div class="layui-form-item layui-hide">
<input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
</div>
</div>
</div>
<script src="__PUBLIC__/static/common/js/area.js"></script>
<script>
layui.config({
base: "/static/lib/"
}).extend({
likeedit: "likeedit/likeedit",
likeArea: "likeArea/likeArea",
}).use(["likeedit","likeArea", "form"], function(){
var form = layui.form;
var likeedit = layui.likeedit;
var likeArea = layui.likeArea;
var content = likeedit.build("content", {
uploadImage: {
url: '{:url("file/lists")}?type=10'
}
});
form.verify({
content: function() {
likeedit.sync(content)
}
});
like.delUpload();
$(document).on("click", ".add-upload-image", function () {
like.imageUpload({
limit: 1,
field: "image",
that: $(this)
});
});
//删除图片/证书
$(document).on('click', '.pay-img-del-x', function () {
$(this).parent().siblings('input').val('');
$(this).parent().siblings().css('display','block');
$(this).parent().remove();
});
//==========================================上传证书start=========================================================
like.certUpload('.cert-add', '{:url("file/other")}?local=1&sub_dir=resource', '{$storageUrl}');
//==========================================上传证书end===========================================================
// 删除按钮的显示与隐藏
$(document).on('mouseover', '.pay-img', function () {
$(this).next().show();
});
$(document).on('mouseout', '.pay-img', function () {
$(this).next().hide();
});
$(document).on('mouseover', '.pay-img-del-x', function () {
$(this).show();
});
$(document).on('mouseout', '.pay-img-del-x', function () {
$(this).hide();
});
likeArea.init(
"province", "city", "district", "province_id", "city_id", "district_id",
"", "", ""
);
likeArea.init(
"refund_province", "refund_city", "refund_district", "refund_province_id", "refund_city_id", "refund_district_id",
"", "", ""
);
})
</script>

225
app/admin/view/community/organ/edit.html

@ -0,0 +1,225 @@
{layout name="layout2" /}
<style>
.layui-form-item .layui-input-inline { width: 340px; }
.pay-li {
float: left;
opacity: 1;
position: relative;
}
.pay-img {
width: 80px;
height: 80px;
padding: 4px;
}
.pay-img-del-x {
position: absolute;
z-index: 100;
top: -4px;
right: -2px;
width: 20px;
height: 20px;
font-size: 16px;
line-height: 16px;
color: #fff;
text-align: center;
cursor: pointer;
background: hsla(0, 0%, 60%, .6);
border-radius: 10px;
}
.upload-cert-a{
cursor: pointer;
position: absolute;
z-index: 100;
top: 58px;
right: -10%;
width: 100px;
height: 20px;
font-size: 8px;
line-height: 16px;
text-align: center;
border-radius: 10px;
color: #4e8bff;
}
.upload-cert-a:hover {
color: #0641cb;
}
.pay-cert{
height:80px;line-height:80px
}
.cert-add,.key-add{
height: 80px;
width: 80px;
float: left;
opacity: 1;
position: relative;
border:1px dashed #a0a0a0;
background-image:url('/static/common/image/default/add_file.png');
background-repeat: no-repeat;
background-position: 50% 35%;
background-size:40px 40px;
margin: 4px;
text-align: center;
}
</style>
<div class="layui-card layui-form" style="box-shadow:none;">
<div class="layui-card-body">
<div class="layui-form-item">
<label for="name" class="layui-form-label"><span style="color:red;">*</span>名称:</label>
<div class="layui-input-inline">
<input type="text" name="name" id="name" value="{$detail.name}" lay-verType="tips" lay-verify="required" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="intro" class="layui-form-label">简介:</label>
<div class="layui-input-inline">
<input type="text" name="intro" id="intro" value="{$detail.intro ?? ''}" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="company" class="layui-form-label">企业名称:</label>
<div class="layui-input-inline">
<input type="text" name="company" id="company" value="{$detail.company ?? ''}" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="contact" class="layui-form-label">联系方式:</label>
<div class="layui-input-inline">
<input type="text" name="contact" id="contact" value="{$detail.contact ?? ''}" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="sort" class="layui-form-label">排序:</label>
<div class="layui-input-inline">
<input type="text" name="sort" id="sort" value="{$detail.sort}" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">封面图:</label>
<div class="layui-input-block">
<div class="like-upload-image">
{if $detail.image}
<div class="upload-image-div">
<img src="{$detail.image}" alt="img">
<input type="hidden" name="image" value="{$detail.image}">
<div class="del-upload-btn">x</div>
</div>
<div class="upload-image-elem" style="display:none;"><a class="add-upload-image"> + 添加图片</a></div>
{else}
<div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
{/if}
</div>
<div class="layui-form-mid layui-word-aux">建议尺寸:500*500像</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">区域:</label>
<div class="layui-input-block">
<div class="layui-input-inline" style="width:120px;">
<select name="province_id" id="province" lay-filter="province"></select>
</div>
<div class="layui-input-inline" style="width:120px;">
<select name="city_id" id="city" lay-filter="city"></select>
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">状态:</label>
<div class="layui-input-inline">
<input type="radio" name="is_show" value="1" title="显示" {if $detail.is_show==1}checked{/if}>
<input type="radio" name="is_show" value="0" title="隐藏" {if $detail.is_show==0}checked{/if}>
</div>
</div>
<div class="layui-form-item">
<label for="content" class="layui-form-label">内容:</label>
<div class="layui-input-block">
<textarea name="content" id="content" lay-verify="content">{$detail.content|raw}</textarea>
</div>
</div>
<div class="layui-form-item layui-hide">
<input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
</div>
</div>
</div>
<script src="__PUBLIC__/static/common/js/area.js"></script>
<script>
layui.config({
base: "/static/lib/"
}).extend({
likeedit: "likeedit/likeedit",
likeArea: "likeArea/likeArea",
}).use(["likeedit", "likeArea", "form"], function(){
var form = layui.form;
var likeedit = layui.likeedit;
var likeArea = layui.likeArea;
var content = likeedit.build("content", {
uploadImage: {
url: '{:url("file/lists")}?type=10'
}
});
form.verify({
content: function() {
likeedit.sync(content)
}
});
like.delUpload();
$(document).on("click", ".add-upload-image", function () {
like.imageUpload({
limit: 1,
field: "image",
that: $(this)
});
});
//删除图片/证书
$(document).on('click', '.pay-img-del-x', function () {
$(this).parent().siblings('input').val('');
$(this).parent().siblings().css('display','block');
$(this).parent().remove();
});
//==========================================上传证书start=========================================================
like.certUpload('.cert-add', '{:url("file/other")}?local=1&sub_dir=resource', '{$storageUrl}');
//==========================================上传证书end===========================================================
// 删除按钮的显示与隐藏
$(document).on('mouseover', '.pay-img', function () {
$(this).next().show();
});
$(document).on('mouseout', '.pay-img', function () {
$(this).next().hide();
});
$(document).on('mouseover', '.pay-img-del-x', function () {
$(this).show();
});
$(document).on('mouseout', '.pay-img-del-x', function () {
$(this).hide();
});
likeArea.init(
"province", "city", "district", "province_id", "city_id", "district_id",
"{$detail.province_id}", "{$detail.city_id}", "{$detail.district_id}"
);
likeArea.init(
"refund_province", "refund_city", "refund_district", "refund_province_id", "refund_city_id", "refund_district_id",
"{$detail.refund_address.province_id ?? ''}", "{$detail.refund_address.city_id ?? ''}", "{$detail.refund_address.district_id ?? ''}"
);
})
</script>

226
app/admin/view/community/organ/lists.html

@ -0,0 +1,226 @@
{layout name="layout1" /}
<div class="wrapper">
<div class="layui-card">
<!-- 操作提示 -->
<div class="layui-card-body">
<div class="layui-collapse" style="border:1px dashed #c4c4c4">
<div class="layui-colla-item">
<h2 class="layui-colla-title like-layui-colla-title">操作提示</h2>
<div class="layui-colla-content layui-show">
<p>*平台监测机构管理。</p>
<p>*排序值越小越前,排序值相同时新增在前。</p>
</div>
</div>
</div>
</div>
<!-- 搜索区域 -->
<div class="layui-card-body layui-form">
<div class="layui-form-item">
<div class="layui-inline">
<label for="name" class="layui-form-label">机构名称:</label>
<div class="layui-input-inline">
<input type="text" id="name" name="name" autocomplete="off" class="layui-input">
</div>
</div>
<input type="hidden" id="type" name="type" value="0">
<div class="layui-inline">
<a class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="search">搜索</a>
</div>
</div>
</div>
<!-- 主体区域 -->
<div class="layui-card-body">
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm layEvent" lay-event="add">新增机构</button>
<table id="like-table-lists" lay-filter="like-table-lists"></table>
<script type="text/html" id="table-image">
{{# if(d.image){ }}
<img src="{{d.image}}" alt="图" style="width:28px;height:28px;">
{{# } }}
</script>
<script type="text/html" id="table-file">
{{# if(d.path){ }}
<a href="{{d.path}}" download="{{d.path_name}}">点击下载</a>
{{# }else { }}
--
{{# } }}
</script>
<script type="text/html" id="table-type">
{{# if(d.type == 0){ }}
免费
{{# } }}
{{# if(d.type == 1){ }}
VIP用户免费
{{# } }}
{{# if(d.type == 2){ }}
付费{{d.price}}元下载
{{# } }}
</script>
<script type="text/html" id="table-operation">
<a class="layui-btn layui-btn-normal layui-btn-sm" lay-event="edit">编辑</a>
{{# if(d.is_show == '显示'){ }}<a class="layui-btn layui-btn-normal layui-btn-sm layui-btn-warm" lay-event="hide">隐藏</a>{{# } }}
{{# if(d.is_show == '隐藏'){ }}<a class="layui-btn layui-btn-normal layui-btn-sm" lay-event="hide">显示</a>{{# } }}
<a class="layui-btn layui-btn-danger layui-btn-sm" lay-event="del">删除</a>
</script>
</div>
</div>
</div>
<script>
layui.use(["table", "form"], function(){
var table = layui.table;
var form = layui.form;
like.tableLists("#like-table-lists", "{:url()}?type=0", [
{field:"id", width:60, title:"ID"}
,{field:"name", width:200, align:"center", title:"名称"}
,{field:"image", width:100, align:"center", title:"封面图", templet:"#table-image"}
,{field:"company", width:180, align:"center", title:"企业名称"}
,{field:"address", width:180, align:"center", title:"区域"}
,{field:"contact", width:150, align:"center", title:"联系方式"}
,{field:"intro", width:100, align:"center", title:"简介"}
,{field:"visit", width:100, align:"center", title:"浏览量"}
,{field:"sort", width:100, align:"center", title:"排序"}
,{field:"create_time", width:180, align:"center", title:"创建时间"}
,{title:"操作", width:200, align:"center", fixed:"right", toolbar:"#table-operation"}
]);
var active = {
add: function() {
layer.open({
type: 2
,title: "新增机构"
,content: "{:url('community.Organ/add')}"
,area: ["90%", "90%"]
,btn: ["确定", "取消"]
,yes: function(index, layero){
var iframeWindow = window["layui-layer-iframe" + index];
var submit = layero.find("iframe").contents().find("#addSubmit");
iframeWindow.layui.form.on("submit(addSubmit)", function(data){
like.ajax({
url: "{:url('community.Organ/add')}",
data: data.field,
type: "POST",
success:function(res) {
if(res.code === 1) {
layui.layer.msg(res.msg);
layer.close(index);
table.reload("like-table-lists", {
where: {},
page: { cur: 1 }
});
}
}
});
});
submit.trigger("click");
}
});
},
edit: function(obj) {
layer.open({
type: 2
,title: "编辑机构"
,content: "{:url('community.Organ/edit')}?id=" + obj.data.id
,area: ["90%", "90%"]
,btn: ["确定", "取消"]
,yes: function(index, layero){
var iframeWindow = window["layui-layer-iframe" + index];
var submit = layero.find("iframe").contents().find("#addSubmit");
iframeWindow.layui.form.on("submit(addSubmit)", function(data){
data.field['id'] = obj.data.id;
like.ajax({
url: "{:url('community.Organ/edit')}",
data: data.field,
type: "POST",
success:function(res) {
if(res.code === 1) {
layui.layer.msg(res.msg);
layer.close(index);
table.reload("like-table-lists", {
where: {},
page: { cur: 1 }
});
}
}
});
});
submit.trigger("click");
}
});
},
del: function(obj) {
layer.confirm("确定删除机构:"+obj.data.name, function(index) {
like.ajax({
url: "{:url('community.Organ/del')}",
data: {id: obj.data.id},
type: "POST",
success: function (res) {
if (res.code === 1) {
layui.layer.msg(res.msg);
layer.close(index);
obj.del();
}
}
});
layer.close(index);
table.reload("like-table-lists", {
where: {},
page: { cur: 1 }
});
})
},
hide: function(obj) {
var text = obj.data.is_show === '显示' ? '确定隐藏:' : '确定显示:';
layer.confirm(text+obj.data.name, function(index) {
like.ajax({
url: "{:url('community.Organ/hide')}",
data: {id: obj.data.id},
type: "POST",
success: function (res) {
if (res.code === 1) {
layui.layer.msg(res.msg);
layer.close(index);
table.reload("like-table-lists", {
where: {},
page: { cur: 1 }
});
}
}
});
layer.close(index);
})
}
};
like.eventClick(active);
form.on("submit(search)", function(data){
table.reload("like-table-lists", {
where: data.field,
page: {
curr: 1
}
});
});
form.on("submit(clear-search)", function(){
$("#title").val("");
form.render("select");
table.reload("like-table-lists", {
where: {},
page: {
curr: 1
}
});
});
})
</script>

215
app/admin/view/community/team/add.html

@ -0,0 +1,215 @@
{layout name="layout2" /}
<style>
.layui-form-item .layui-input-inline { width: 340px; }
.pay-li {
float: left;
opacity: 1;
position: relative;
}
.pay-img {
width: 80px;
height: 80px;
padding: 4px;
}
.pay-img-del-x {
position: absolute;
z-index: 100;
top: -4px;
right: -2px;
width: 20px;
height: 20px;
font-size: 16px;
line-height: 16px;
color: #fff;
text-align: center;
cursor: pointer;
background: hsla(0, 0%, 60%, .6);
border-radius: 10px;
}
.upload-cert-a{
cursor: pointer;
position: absolute;
z-index: 100;
top: 58px;
right: -10%;
width: 100px;
height: 20px;
font-size: 8px;
line-height: 16px;
text-align: center;
border-radius: 10px;
color: #4e8bff;
}
.upload-cert-a:hover {
color: #0641cb;
}
.pay-cert{
height:80px;line-height:80px
}
.cert-add,.key-add{
height: 80px;
width: 80px;
float: left;
opacity: 1;
position: relative;
border:1px dashed #a0a0a0;
background-image:url('/static/common/image/default/add_file.png');
background-repeat: no-repeat;
background-position: 50% 35%;
background-size:40px 40px;
margin: 4px;
text-align: center;
}
</style>
<div class="layui-card layui-form" style="box-shadow:none;">
<div class="layui-card-body">
<div class="layui-form-item">
<label for="name" class="layui-form-label"><span style="color:red;">*</span>名称:</label>
<div class="layui-input-inline">
<input type="text" name="name" id="name" lay-verType="tips" lay-verify="required" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="intro" class="layui-form-label">简介:</label>
<div class="layui-input-inline">
<input type="text" name="intro" id="intro" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="company" class="layui-form-label">所属企业:</label>
<div class="layui-input-inline">
<input type="text" name="company" id="company" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="sort" class="layui-form-label">排序:</label>
<div class="layui-input-inline">
<input type="text" name="sort" id="sort" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">封面图:</label>
<div class="layui-input-block">
<div class="like-upload-image" switch-tab="0" lay-verType="tips">
<div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
</div>
<div class="layui-form-mid layui-word-aux">建议尺寸:500*500像</div>
</div>
</div>
<div class="layui-form-item">
<label for="contact" class="layui-form-label">联系方式:</label>
<div class="layui-input-inline">
<input type="text" name="contact" id="contact" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">区域:</label>
<div class="layui-input-block">
<div class="layui-input-inline" style="width:120px;">
<select name="province_id" id="province" lay-filter="province"></select>
</div>
<div class="layui-input-inline" style="width:120px;">
<select name="city_id" id="city" lay-filter="city"></select>
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">状态:</label>
<div class="layui-input-inline">
<input type="radio" name="is_show" value="1" title="显示">
<input type="radio" name="is_show" value="0" title="隐藏" checked>
</div>
</div>
<div class="layui-form-item">
<label for="content" class="layui-form-label">内容:</label>
<div class="layui-input-block">
<textarea name="content" id="content" lay-verify="content"></textarea>
</div>
</div>
<div class="layui-form-item layui-hide">
<input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
</div>
</div>
</div>
<script src="__PUBLIC__/static/common/js/area.js"></script>
<script>
layui.config({
base: "/static/lib/"
}).extend({
likeedit: "likeedit/likeedit",
likeArea: "likeArea/likeArea",
}).use(["likeedit","likeArea", "form"], function(){
var form = layui.form;
var likeedit = layui.likeedit;
var likeArea = layui.likeArea;
var content = likeedit.build("content", {
uploadImage: {
url: '{:url("file/lists")}?type=10'
}
});
form.verify({
content: function() {
likeedit.sync(content)
}
});
like.delUpload();
$(document).on("click", ".add-upload-image", function () {
like.imageUpload({
limit: 1,
field: "image",
that: $(this)
});
});
//删除图片/证书
$(document).on('click', '.pay-img-del-x', function () {
$(this).parent().siblings('input').val('');
$(this).parent().siblings().css('display','block');
$(this).parent().remove();
});
//==========================================上传证书start=========================================================
like.certUpload('.cert-add', '{:url("file/other")}?local=1&sub_dir=resource', '{$storageUrl}');
//==========================================上传证书end===========================================================
// 删除按钮的显示与隐藏
$(document).on('mouseover', '.pay-img', function () {
$(this).next().show();
});
$(document).on('mouseout', '.pay-img', function () {
$(this).next().hide();
});
$(document).on('mouseover', '.pay-img-del-x', function () {
$(this).show();
});
$(document).on('mouseout', '.pay-img-del-x', function () {
$(this).hide();
});
likeArea.init(
"province", "city", "district", "province_id", "city_id", "district_id",
"", "", ""
);
likeArea.init(
"refund_province", "refund_city", "refund_district", "refund_province_id", "refund_city_id", "refund_district_id",
"", "", ""
);
})
</script>

226
app/admin/view/community/team/edit.html

@ -0,0 +1,226 @@
{layout name="layout2" /}
<style>
.layui-form-item .layui-input-inline { width: 340px; }
.pay-li {
float: left;
opacity: 1;
position: relative;
}
.pay-img {
width: 80px;
height: 80px;
padding: 4px;
}
.pay-img-del-x {
position: absolute;
z-index: 100;
top: -4px;
right: -2px;
width: 20px;
height: 20px;
font-size: 16px;
line-height: 16px;
color: #fff;
text-align: center;
cursor: pointer;
background: hsla(0, 0%, 60%, .6);
border-radius: 10px;
}
.upload-cert-a{
cursor: pointer;
position: absolute;
z-index: 100;
top: 58px;
right: -10%;
width: 100px;
height: 20px;
font-size: 8px;
line-height: 16px;
text-align: center;
border-radius: 10px;
color: #4e8bff;
}
.upload-cert-a:hover {
color: #0641cb;
}
.pay-cert{
height:80px;line-height:80px
}
.cert-add,.key-add{
height: 80px;
width: 80px;
float: left;
opacity: 1;
position: relative;
border:1px dashed #a0a0a0;
background-image:url('/static/common/image/default/add_file.png');
background-repeat: no-repeat;
background-position: 50% 35%;
background-size:40px 40px;
margin: 4px;
text-align: center;
}
</style>
<div class="layui-card layui-form" style="box-shadow:none;">
<div class="layui-card-body">
<div class="layui-form-item">
<label for="name" class="layui-form-label"><span style="color:red;">*</span>名称:</label>
<div class="layui-input-inline">
<input type="text" name="name" id="name" value="{$detail.name}" lay-verType="tips" lay-verify="required" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="intro" class="layui-form-label">简介:</label>
<div class="layui-input-inline">
<input type="text" name="intro" id="intro" value="{$detail.intro ?? ''}" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="company" class="layui-form-label">所属企业:</label>
<div class="layui-input-inline">
<input type="text" name="company" id="company" value="{$detail.company ?? ''}" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="contact" class="layui-form-label">联系方式:</label>
<div class="layui-input-inline">
<input type="text" name="contact" id="contact" value="{$detail.contact ?? ''}" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="sort" class="layui-form-label">排序:</label>
<div class="layui-input-inline">
<input type="text" name="sort" id="sort" value="{$detail.sort}" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">封面图:</label>
<div class="layui-input-block">
<div class="like-upload-image">
{if $detail.image}
<div class="upload-image-div">
<img src="{$detail.image}" alt="img">
<input type="hidden" name="image" value="{$detail.image}">
<div class="del-upload-btn">x</div>
</div>
<div class="upload-image-elem" style="display:none;"><a class="add-upload-image"> + 添加图片</a></div>
{else}
<div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
{/if}
</div>
<div class="layui-form-mid layui-word-aux">建议尺寸:500*500像</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">区域:</label>
<div class="layui-input-block">
<div class="layui-input-inline" style="width:120px;">
<select name="province_id" id="province" lay-filter="province"></select>
</div>
<div class="layui-input-inline" style="width:120px;">
<select name="city_id" id="city" lay-filter="city"></select>
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">状态:</label>
<div class="layui-input-inline">
<input type="radio" name="is_show" value="1" title="显示" {if $detail.is_show==1}checked{/if}>
<input type="radio" name="is_show" value="0" title="隐藏" {if $detail.is_show==0}checked{/if}>
</div>
</div>
<div class="layui-form-item">
<label for="content" class="layui-form-label">内容:</label>
<div class="layui-input-block">
<textarea name="content" id="content" lay-verify="content">{$detail.content|raw}</textarea>
</div>
</div>
<div class="layui-form-item layui-hide">
<input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
</div>
</div>
</div>
<script src="__PUBLIC__/static/common/js/area.js"></script>
<script>
layui.config({
base: "/static/lib/"
}).extend({
likeedit: "likeedit/likeedit",
likeArea: "likeArea/likeArea",
}).use(["likeedit", "likeArea", "form"], function(){
var form = layui.form;
var likeedit = layui.likeedit;
var likeArea = layui.likeArea;
var content = likeedit.build("content", {
uploadImage: {
url: '{:url("file/lists")}?type=10'
}
});
form.verify({
content: function() {
likeedit.sync(content)
}
});
like.delUpload();
$(document).on("click", ".add-upload-image", function () {
like.imageUpload({
limit: 1,
field: "image",
that: $(this)
});
});
//删除图片/证书
$(document).on('click', '.pay-img-del-x', function () {
$(this).parent().siblings('input').val('');
$(this).parent().siblings().css('display','block');
$(this).parent().remove();
});
//==========================================上传证书start=========================================================
like.certUpload('.cert-add', '{:url("file/other")}?local=1&sub_dir=resource', '{$storageUrl}');
//==========================================上传证书end===========================================================
// 删除按钮的显示与隐藏
$(document).on('mouseover', '.pay-img', function () {
$(this).next().show();
});
$(document).on('mouseout', '.pay-img', function () {
$(this).next().hide();
});
$(document).on('mouseover', '.pay-img-del-x', function () {
$(this).show();
});
$(document).on('mouseout', '.pay-img-del-x', function () {
$(this).hide();
});
likeArea.init(
"province", "city", "district", "province_id", "city_id", "district_id",
"{$detail.province_id}", "{$detail.city_id}", "{$detail.district_id}"
);
likeArea.init(
"refund_province", "refund_city", "refund_district", "refund_province_id", "refund_city_id", "refund_district_id",
"{$detail.refund_address.province_id ?? ''}", "{$detail.refund_address.city_id ?? ''}", "{$detail.refund_address.district_id ?? ''}"
);
})
</script>

226
app/admin/view/community/team/lists.html

@ -0,0 +1,226 @@
{layout name="layout1" /}
<div class="wrapper">
<div class="layui-card">
<!-- 操作提示 -->
<div class="layui-card-body">
<div class="layui-collapse" style="border:1px dashed #c4c4c4">
<div class="layui-colla-item">
<h2 class="layui-colla-title like-layui-colla-title">操作提示</h2>
<div class="layui-colla-content layui-show">
<p>*平台专家信息管理。</p>
<p>*排序值越小越前,排序值相同时新增在前。</p>
</div>
</div>
</div>
</div>
<!-- 搜索区域 -->
<div class="layui-card-body layui-form">
<div class="layui-form-item">
<div class="layui-inline">
<label for="name" class="layui-form-label">专家名称:</label>
<div class="layui-input-inline">
<input type="text" id="name" name="name" autocomplete="off" class="layui-input">
</div>
</div>
<input type="hidden" id="type" name="type" value="1">
<div class="layui-inline">
<a class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="search">搜索</a>
</div>
</div>
</div>
<!-- 主体区域 -->
<div class="layui-card-body">
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm layEvent" lay-event="add">新增专家信息</button>
<table id="like-table-lists" lay-filter="like-table-lists"></table>
<script type="text/html" id="table-image">
{{# if(d.image){ }}
<img src="{{d.image}}" alt="图" style="width:28px;height:28px;">
{{# } }}
</script>
<script type="text/html" id="table-file">
{{# if(d.path){ }}
<a href="{{d.path}}" download="{{d.path_name}}">点击下载</a>
{{# }else { }}
--
{{# } }}
</script>
<script type="text/html" id="table-type">
{{# if(d.type == 0){ }}
免费
{{# } }}
{{# if(d.type == 1){ }}
VIP用户免费
{{# } }}
{{# if(d.type == 2){ }}
付费{{d.price}}元下载
{{# } }}
</script>
<script type="text/html" id="table-operation">
<a class="layui-btn layui-btn-normal layui-btn-sm" lay-event="edit">编辑</a>
{{# if(d.is_show == '显示'){ }}<a class="layui-btn layui-btn-normal layui-btn-sm layui-btn-warm" lay-event="hide">隐藏</a>{{# } }}
{{# if(d.is_show == '隐藏'){ }}<a class="layui-btn layui-btn-normal layui-btn-sm" lay-event="hide">显示</a>{{# } }}
<a class="layui-btn layui-btn-danger layui-btn-sm" lay-event="del">删除</a>
</script>
</div>
</div>
</div>
<script>
layui.use(["table", "form"], function(){
var table = layui.table;
var form = layui.form;
like.tableLists("#like-table-lists", "{:url()}?type=0", [
{field:"id", width:60, title:"ID"}
,{field:"name", width:200, align:"center", title:"名称"}
,{field:"image", width:100, align:"center", title:"图片", templet:"#table-image"}
,{field:"company", width:180, align:"center", title:"所属企业"}
,{field:"address", width:180, align:"center", title:"区域"}
,{field:"contact", width:150, align:"center", title:"联系方式"}
,{field:"intro", width:100, align:"center", title:"简介"}
,{field:"visit", width:100, align:"center", title:"浏览量"}
,{field:"sort", width:100, align:"center", title:"排序"}
,{field:"create_time", width:180, align:"center", title:"创建时间"}
,{title:"操作", width:200, align:"center", fixed:"right", toolbar:"#table-operation"}
]);
var active = {
add: function() {
layer.open({
type: 2
,title: "新增专家信息"
,content: "{:url('community.Team/add')}"
,area: ["90%", "90%"]
,btn: ["确定", "取消"]
,yes: function(index, layero){
var iframeWindow = window["layui-layer-iframe" + index];
var submit = layero.find("iframe").contents().find("#addSubmit");
iframeWindow.layui.form.on("submit(addSubmit)", function(data){
like.ajax({
url: "{:url('community.Team/add')}",
data: data.field,
type: "POST",
success:function(res) {
if(res.code === 1) {
layui.layer.msg(res.msg);
layer.close(index);
table.reload("like-table-lists", {
where: {},
page: { cur: 1 }
});
}
}
});
});
submit.trigger("click");
}
});
},
edit: function(obj) {
layer.open({
type: 2
,title: "编辑专家信息"
,content: "{:url('community.Team/edit')}?id=" + obj.data.id
,area: ["90%", "90%"]
,btn: ["确定", "取消"]
,yes: function(index, layero){
var iframeWindow = window["layui-layer-iframe" + index];
var submit = layero.find("iframe").contents().find("#addSubmit");
iframeWindow.layui.form.on("submit(addSubmit)", function(data){
data.field['id'] = obj.data.id;
like.ajax({
url: "{:url('community.Team/edit')}",
data: data.field,
type: "POST",
success:function(res) {
if(res.code === 1) {
layui.layer.msg(res.msg);
layer.close(index);
table.reload("like-table-lists", {
where: {},
page: { cur: 1 }
});
}
}
});
});
submit.trigger("click");
}
});
},
del: function(obj) {
layer.confirm("确定删除专家:"+obj.data.name, function(index) {
like.ajax({
url: "{:url('community.Team/del')}",
data: {id: obj.data.id},
type: "POST",
success: function (res) {
if (res.code === 1) {
layui.layer.msg(res.msg);
layer.close(index);
obj.del();
}
}
});
layer.close(index);
table.reload("like-table-lists", {
where: {},
page: { cur: 1 }
});
})
},
hide: function(obj) {
var text = obj.data.is_show === '显示' ? '确定隐藏:' : '确定显示:';
layer.confirm(text+obj.data.name, function(index) {
like.ajax({
url: "{:url('community.Team/hide')}",
data: {id: obj.data.id},
type: "POST",
success: function (res) {
if (res.code === 1) {
layui.layer.msg(res.msg);
layer.close(index);
table.reload("like-table-lists", {
where: {},
page: { cur: 1 }
});
}
}
});
layer.close(index);
})
}
};
like.eventClick(active);
form.on("submit(search)", function(data){
table.reload("like-table-lists", {
where: data.field,
page: {
curr: 1
}
});
});
form.on("submit(clear-search)", function(){
$("#title").val("");
form.render("select");
table.reload("like-table-lists", {
where: {},
page: {
curr: 1
}
});
});
})
</script>

87
app/admin/view/setting/basic/sensitive_words.html

@ -0,0 +1,87 @@
{layout name="layout1" /}
<div class="wrapper">
<div class="layui-card">
<div class="layui-card-body">
<div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
<div class="layui-colla-item">
<h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
<div class="layui-colla-content layui-show">
<p>*用户提交服务或需求时会审核敏感词,将敏感词替换为**。</p>
<p>*多个敏感词之间用 | 隔开。</p>
</div>
</div>
</div>
</div>
<div class="layui-form" lay-filter="">
<div class="layui-tab layui-tab-card">
<ul class="layui-tab-title">
<li class="layui-this">敏感词库</li>
</ul>
<div class="layui-tab-content">
<div class="layui-tab-item layui-show">
<label class="layui-form-label" style="white-space: nowrap;">内容:</label>
<div class="layui-input-block">
<textarea name="words" id="words" lay-verify="content" class="field-content">{$config.words}</textarea>
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn {$view_theme_color}" lay-submit lay-filter="addSubmit">确认</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
layui.config({
base: "/static/lib/"
}).extend({
likeedit: "likeedit/likeedit"
}).use(["form", "likeedit"], function () {
var $ = layui.$
, form = layui.form
, likeedit = layui.likeedit;
//富文本上传图片
likeedit.set({
uploadImage: {
url: "{:url('file/lists')}",
type: 'post'
}
})
var likeedit_words = likeedit.build('words');
form.verify({
content: function () {
likeedit.sync(likeedit_words);
}
});
form.on("submit(addSubmit)", function(data){
data.field['words'] = likeedit.getContent(likeedit_words);
like.ajax({
url: "{:url('setting.basic/setSensitiveWords')}",
data: data.field,
type: "POST",
success:function(res) {
if(res.code === 1) {
layer.msg(res.msg, {
offset: '15px'
, icon: 1
, time: 1500
},function () {
location.href = location.href;
});
}
}
});
});
});
</script>

57
app/api/controller/Community.php

@ -94,7 +94,12 @@ class Community extends Api
*/ */
public function cate() public function cate()
{ {
$result = CommunityLogic::getCate(); $get = $this->request->get();
$type = '';
if(isset($get['type'])){
$type = intval($get['type']);
}
$result = CommunityLogic::getCate($type);
return JsonServer::success('', $result); return JsonServer::success('', $result);
} }
@ -322,4 +327,54 @@ class Community extends Api
return JsonServer::success('', $result); return JsonServer::success('', $result);
} }
/**
* @notes 获取发现页的文章列表
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 段誉
* @date 2022/4/29 18:09
*/
public function organLists()
{
$get = $this->request->get();
$result = CommunityLogic::getOrganTeamLists($get, $this->page_no, $this->page_size, 0);
return JsonServer::success('', $result);
}
/**
* @notes 获取发现页的文章列表
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 段誉
* @date 2022/4/29 18:09
*/
public function teamLists()
{
$get = $this->request->get();
$result = CommunityLogic::getOrganTeamLists($get, $this->page_no, $this->page_size, 1);
return JsonServer::success('', $result);
}
/**
* @notes 获取发现页的文章列表
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 段誉
* @date 2022/4/29 18:09
*/
public function organTeamDetail()
{
$id = $this->request->get('id/d');
$result = CommunityLogic::organTeamDetail($id);
return JsonServer::success('', $result);
}
} }

130
app/api/logic/CommunityLogic.php

@ -14,7 +14,7 @@ use app\common\enum\{
CommunityArticleEnum, CommunityArticleEnum,
CommunityLikeEnum CommunityLikeEnum
}; };
use app\common\model\{ use app\common\model\{community\OrganTeam,
goods\Goods, goods\Goods,
order\Order, order\Order,
order\OrderGoods, order\OrderGoods,
@ -26,12 +26,8 @@ use app\common\model\{
community\CommunityComment, community\CommunityComment,
community\CommunityFollow, community\CommunityFollow,
community\CommunityLike, community\CommunityLike,
community\CommunityTopic community\CommunityTopic};
}; use app\common\server\{AreaServer, ConfigServer, UrlServer};
use app\common\server\{
ConfigServer,
UrlServer
};
use think\facade\Db; use think\facade\Db;
@ -223,10 +219,14 @@ class CommunityLogic extends Logic
* @author 段誉 * @author 段誉
* @date 2022/4/29 17:49 * @date 2022/4/29 17:49
*/ */
public static function getCate() public static function getCate($type='')
{ {
$lists = CommunityCategory::field(['id', 'name']) $where = ['is_show' => 1, 'del' => 0];
->where(['is_show' => 1, 'del' => 0]) if($type!=''){
$where['type'] = $type;
}
$lists = CommunityCategory::field(['id', 'name','type'])
->where($where)
->order(['sort' => 'asc', 'id' => 'desc']) ->order(['sort' => 'asc', 'id' => 'desc'])
->select()->toArray(); ->select()->toArray();
return $lists; return $lists;
@ -247,11 +247,14 @@ class CommunityLogic extends Logic
*/ */
public static function getArticleLists($get, $page, $size, $user_id = null) public static function getArticleLists($get, $page, $size, $user_id = null)
{ {
$where[] = ['del', '=', 0]; $where[] = ['a.del', '=', 0];
$where[] = ['status', '=', CommunityArticleEnum::STATUS_SUCCESS]; $where[] = ['status', '=', CommunityArticleEnum::STATUS_SUCCESS];
if (!empty($get['cate_id'])) { if (!empty($get['cate_id'])) {
$where[] = ['cate_id', '=', $get['cate_id']]; $where[] = ['cate_id', '=', $get['cate_id']];
} }
if (isset($get['type']) && $get['type']!='') {
$where[] = ['b.type', '=', $get['type']];
}
if (!empty($get['topic_id'])) { if (!empty($get['topic_id'])) {
$where[] = ['topic_id', '=', $get['topic_id']]; $where[] = ['topic_id', '=', $get['topic_id']];
} }
@ -274,14 +277,17 @@ class CommunityLogic extends Logic
$sort = ['like' => 'desc', 'id' => 'desc']; $sort = ['like' => 'desc', 'id' => 'desc'];
} }
$model = new CommunityArticle(); $model = new CommunityArticle();
$count = $model->where($where)->count(); $count = $model->alias('a')->join('community_category b','a.cate_id = b.id')->where($where)->count();
$lists = $model $lists = $model
->alias('a')
->join('community_category b','a.cate_id = b.id')
->with(['user' => function ($query) { ->with(['user' => function ($query) {
$query->field(['id', 'nickname', 'avatar']); $query->field(['id', 'nickname', 'avatar']);
}]) }])
->where($where) ->where($where)
->field(['id', 'user_id', 'cate_id', 'image', 'content', 'like', 'create_time']) ->field(['a.id', 'user_id', 'cate_id', 'image', 'content', 'like', 'a.create_time'])
->page($page, $size) ->page($page, $size)
->order($sort) ->order($sort)
->select() ->select()
@ -507,7 +513,7 @@ class CommunityLogic extends Logic
{ {
$data = [ $data = [
'user_id' => $user_id, 'user_id' => $user_id,
'content' => $post['content'], 'content' => self::replaceSensitiveWords($post['content']),
'image' => !empty($post['image']) ? reset($post['image']) : '', 'image' => !empty($post['image']) ? reset($post['image']) : '',
'goods' => !empty($post['goods']) ? array_unique(array_values($post['goods'])) : '', 'goods' => !empty($post['goods']) ? array_unique(array_values($post['goods'])) : '',
'shop' => !empty($post['shop']) ? array_unique(array_values($post['shop'])) : '', 'shop' => !empty($post['shop']) ? array_unique(array_values($post['shop'])) : '',
@ -563,6 +569,26 @@ class CommunityLogic extends Logic
/** /**
* @notes 过敏感词
* @param $image
* @param $article_id
* @throws \Exception
* @author 段誉
* @date 2022/5/7 9:52
*/
public static function replaceSensitiveWords ($content)
{
// 假设敏感词库存储在 $sensitive_words 变量中,用逗号分割每个敏感词
$sensitive_words = ConfigServer::get('sensitive_words', 'words');
$search_regex = "/(" . $sensitive_words . ")/u";
// 批量替换敏感词
$content = preg_replace($search_regex, "**", $content);
// 输出替换后的字符串
return $content;
}
/**
* @notes 关注用户 * @notes 关注用户
* @param $user_id * @param $user_id
* @param $post * @param $post
@ -923,5 +949,81 @@ class CommunityLogic extends Logic
return $result; return $result;
} }
/**
* @notes 获取文章列表
* @param $get
* @param $page
* @param $size
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 段誉
* @date 2022/4/29 18:09
*/
public static function getOrganTeamLists($get, $page, $size, $type = 0)
{
$where[] = ['a.del', '=', 0];
$where[] = ['a.is_show', '=', 1];
$where[] = ['a.type', '=', $type];
if (!empty($get['cid'])) {
$where[] = ['city_id', '=', $get['cid']];
}
$sort = [];
if (empty($sort)) {
$sort = ['sort' => 'asc', 'id' => 'desc'];
}
$model = new OrganTeam();
$count = $model->alias('a')->where($where)->count();
$lists = $model
->alias('a')
->where($where)
->field('a.*')
->page($page, $size)
->order($sort)
->select()
->toArray();
foreach ($lists as &$item) {
$item['image'] = !empty($item['image']) ? UrlServer::getFileUrl($item['image']) : '';
$item['address'] = $item['province_id']?AreaServer::getAddress([
$item['province_id'],
$item['city_id']]):'全国';
}
return [
'list' => $lists,
'page' => $page,
'size' => $size,
'count' => $count,
'more' => is_more($count, $page, $size)
];
}
/**
* @Notes: 文章详细
* @Author: 张无忌
* @param $id
* @return array
*/
public static function organTeamDetail($id)
{
$article = OrganTeam::field('*')->where('id', $id)->findOrEmpty();
if($article->isEmpty()) {
$article = [];
}else{
$article->visit = $article->visit + 1;
$article->save();
$article = $article->toArray();
$article['address'] = $article['province_id']?AreaServer::getAddress([
$article['province_id'],
$article['city_id']]):'全国';
}
return $article;
}
} }

1
app/api/logic/GoodsLogic.php

@ -434,6 +434,7 @@ class GoodsLogic extends Logic
$order = [ $order = [
'sort_weight' => 'asc', // 数字越小,权重越大 'sort_weight' => 'asc', // 数字越小,权重越大
'sales_actual' => 'desc', 'sales_actual' => 'desc',
'create_time' => 'desc',
'id' => 'desc' 'id' => 'desc'
]; ];

1
app/api/logic/IndexLogic.php

@ -116,6 +116,7 @@ class IndexLogic extends Logic
'sales_total' => 'desc', // 实际销量+虚拟销量倒序 'sales_total' => 'desc', // 实际销量+虚拟销量倒序
'sales_actual' => 'desc', // 实际销量倒序 'sales_actual' => 'desc', // 实际销量倒序
'sort_weight' => 'asc', // 商品权重 'sort_weight' => 'asc', // 商品权重
'create_time' => 'desc', // 商品权重
'id' => 'desc' 'id' => 'desc'
]; ];
$hots = Goods::field('id,name,image,min_price,market_price,sales_actual,create_time,sales_virtual,(sales_actual + sales_virtual) as sales_total') $hots = Goods::field('id,name,image,min_price,market_price,sales_actual,create_time,sales_virtual,(sales_actual + sales_virtual) as sales_total')

2
app/api/logic/ResourceLogic.php

@ -148,7 +148,7 @@ class ResourceLogic extends Logic
if($uid){ if($uid){
if($goodsType==2){ if($goodsType==2){
$resmodel = new UserResource(); $resmodel = new UserResource();
$count = $resmodel->where("user_id",$uid)->where("type",1)->count(); $count = $resmodel->where("resource_id",$id)->where("user_id",$uid)->where("type",1)->count();
if($count){ if($count){
$goodsType=0; $goodsType=0;
} }

12
app/common/enum/MenuEnum.php

@ -127,7 +127,7 @@ class MenuEnum{
//店铺街 //店铺街
[ [
'index' => 114, 'index' => 114,
'name' => '铺街', 'name' => '铺街',
'link' => '/pages/shop_street/shop_street', 'link' => '/pages/shop_street/shop_street',
'is_tab' => 0, 'is_tab' => 0,
'link_type' => 1, 'link_type' => 1,
@ -175,10 +175,18 @@ class MenuEnum{
//种草社区 //种草社区
[ [
'index' => 120, 'index' => 120,
'name' => '种草社区', 'name' => '服务大厅',
'link' => '/pages/community/community', 'link' => '/pages/community/community',
'is_tab' => 1, 'is_tab' => 1,
'link_type' => 1, 'link_type' => 1,
],
//投诉中心
[
'index' => 121,
'name' => '投诉中心',
'link' => '/pages/user/complain',
'is_tab' => 1,
'link_type' => 1,
] ]
]; ];

12
app/common/model/community/OrganTeam.php

@ -0,0 +1,12 @@
<?php
namespace app\common\model\community;
use app\common\basics\Models;
class OrganTeam extends Models
{
}

4
runtime/cache/00/b1e0a819bb5f94f3e5604d029ef141.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/08/9f9473551c6be7c249c6691db76e8b.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/12/bb0249cb4a5d867c05cb88253006ec.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/17/3cae69e1a1a69728d9c7389c494c9e.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/17/8b359da1a92eac32afc7a1d31c0b14.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/18/4ac7d2de0f535b928f57be67c12982.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/18/b0842da0c7ddbd0df1131fc872437b.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/1e/9273b3315671b45227b5827559a179.php

@ -1,4 +0,0 @@
<?php
//000000000600
exit();?>
a:45:{s:2:"id";i:1;s:2:"sn";s:8:"71828424";s:4:"root";i:0;s:8:"nickname";s:14:"用户71828424";s:6:"avatar";s:37:"/static/common/image/default/user.png";s:6:"mobile";s:11:"18256952487";s:9:"real_name";N;s:5:"level";i:0;s:8:"group_id";N;s:3:"sex";i:0;s:8:"birthday";N;s:10:"user_money";s:8:"10000.00";s:13:"user_integral";i:0;s:18:"total_order_amount";s:4:"0.00";s:21:"total_recharge_amount";s:4:"0.00";s:7:"account";s:0:"";s:8:"password";s:32:"5b728ba254f58d115ff28ed18f82f2c3";s:12:"pay_password";N;s:4:"salt";s:4:"90a5";s:12:"first_leader";i:0;s:13:"second_leader";i:0;s:12:"third_leader";i:0;s:17:"ancestor_relation";N;s:15:"is_distribution";i:0;s:24:"distribution_add_remarks";s:0:"";s:19:"freeze_distribution";i:0;s:23:"distribution_h5_qr_code";s:0:"";s:24:"distribution_mnp_qr_code";s:0:"";s:24:"distribution_app_qr_code";s:0:"";s:17:"distribution_code";s:6:"T4T6CG";s:11:"create_time";i:1681693999;s:11:"update_time";i:1681713167;s:10:"login_time";i:1681694028;s:8:"login_ip";s:9:"127.0.0.1";s:7:"disable";i:0;s:3:"del";i:0;s:11:"user_growth";i:0;s:8:"earnings";s:4:"0.00";s:6:"client";i:6;s:7:"tag_ids";s:0:"";s:6:"remark";s:0:"";s:11:"is_new_user";i:0;s:7:"ship_id";N;s:8:"exp_time";i:0;s:5:"token";s:32:"fa189f5600beda8bcf3e52077c9929aa";}

4
runtime/cache/20/7f8bc94ca8123509893d9da7e2ff59.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/22/88986d1983eea4de09bf8e70ec9881.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:8:"LikeMall";}

4
runtime/cache/24/aa79f454ae4a96de164eff1ccef5ee.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:16:{s:2:"id";i:2;s:4:"root";i:1;s:7:"shop_id";i:2;s:4:"name";s:15:"超级管理员";s:7:"account";s:6:"777777";s:4:"salt";s:4:"613f";s:7:"role_id";i:0;s:11:"create_time";s:19:"2021-06-23 15:57:04";s:11:"update_time";s:19:"2023-04-12 11:03:03";s:10:"login_time";s:19:"2023-04-12 11:03:42";s:8:"login_ip";s:9:"127.0.0.1";s:7:"disable";i:0;s:3:"del";i:0;s:5:"token";s:32:"e860f3c9177894fcc4b3dedcb8515ffc";s:6:"client";i:5;s:9:"shop_name";s:16:"大G数码集团";}

4
runtime/cache/26/1b47462c6799213cf37df319f33655.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:1;}

4
runtime/cache/29/b54ac964c061893f6d047ecadf2db6.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/2a/2ba4e15d0b50ad705155378a65bc94.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/2a/3c59317bf62dee03ac481983f4d910.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}

4
runtime/cache/2a/3e026a446221f44c23a06208998d4b.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:1;}

4
runtime/cache/2b/0c0c6ac8dbe9c121625db7f115ed18.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";N;}

4
runtime/cache/2e/00473f3b37a60f00d26da6bcff1f42.php

@ -1,4 +0,0 @@
<?php
//000000001800
exit();?>
1

4
runtime/cache/2f/29b23217261947c25f2b92b8f31f7b.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/33/3d185de946c220cbe4e4ad709f3b67.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";N;}

4
runtime/cache/39/c32ced6a3806745d665754c8c9b590.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";N;}

4
runtime/cache/40/6a6b9f24afe34133374bf1b54efb00.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/47/0d7371185f215c48473a3b188fc928.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";N;}

4
runtime/cache/49/77e3a4be3b8073aa726f7197724dd7.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:1;}

4
runtime/cache/4a/8ad83d0b7747781db62e03fdc7fa37.php

@ -1,4 +0,0 @@
<?php
//000000086400
exit();?>
a:46:{s:2:"id";i:1;s:2:"sn";s:8:"71828424";s:4:"root";i:0;s:8:"nickname";s:14:"用户71828424";s:6:"avatar";s:37:"/static/common/image/default/user.png";s:6:"mobile";s:11:"18256952487";s:9:"real_name";N;s:5:"level";i:0;s:8:"group_id";N;s:3:"sex";s:6:"未知";s:8:"birthday";N;s:10:"user_money";s:8:"10000.00";s:13:"user_integral";i:0;s:18:"total_order_amount";s:4:"0.00";s:21:"total_recharge_amount";s:4:"0.00";s:7:"account";s:0:"";s:8:"password";s:32:"5b728ba254f58d115ff28ed18f82f2c3";s:12:"pay_password";N;s:4:"salt";s:4:"90a5";s:12:"first_leader";i:0;s:13:"second_leader";i:0;s:12:"third_leader";i:0;s:17:"ancestor_relation";N;s:15:"is_distribution";i:0;s:24:"distribution_add_remarks";s:0:"";s:19:"freeze_distribution";i:0;s:23:"distribution_h5_qr_code";s:0:"";s:24:"distribution_mnp_qr_code";s:0:"";s:24:"distribution_app_qr_code";s:0:"";s:17:"distribution_code";s:6:"T4T6CG";s:11:"create_time";s:19:"2023-04-17 09:13:19";s:11:"update_time";s:19:"2023-04-17 14:32:47";s:10:"login_time";s:19:"2023-04-21 15:46:38";s:8:"login_ip";s:9:"127.0.0.1";s:7:"disable";i:0;s:3:"del";i:0;s:11:"user_growth";i:0;s:8:"earnings";s:4:"0.00";s:6:"client";i:6;s:7:"tag_ids";s:0:"";s:6:"remark";s:0:"";s:11:"is_new_user";i:0;s:7:"ship_id";N;s:8:"exp_time";i:0;s:9:"ship_free";i:0;s:5:"token";s:32:"9daf08d1fb68e12c55efd79de8b8e100";}

2
runtime/cache/4c/326658e22fa2ffaa97949563f8a23c.php

@ -1,4 +1,4 @@
<?php <?php
//000000000000 //000000000000
exit();?> exit();?>
a:1:{s:13:"config_server";N;} a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/55/077c04cc51f163ed648cf74ce8012f.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/56/96fbd4d00285a1b29d7e9d7375fed5.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/61/5afac208647ba8697248d87d324770.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/62/6bc5ce31e982e46ce54de37d3e71d0.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/63/99f4b69c109e3622c82fb51c3f389f.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";N;}

2
runtime/cache/6a/a49c0d228d3501681da6f355d518cb.php

@ -1,4 +1,4 @@
<?php <?php
//000000000000 //000000000000
exit();?> exit();?>
a:1:{s:13:"config_server";i:0;} a:1:{s:13:"config_server";i:1;}

4
runtime/cache/70/314922defec2fc394307405afdf403.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}

4
runtime/cache/77/eb6f3f10cc07ca22de436877874513.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/7f/96b6c31b46c5b22f831d8e28386e93.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}

4
runtime/cache/80/62fcd43bc8555526146746c2e3d314.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}

4
runtime/cache/82/d096523cc6d39b76f6b255c2fa21a9.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/85/bdce959c1221dc2c5b731d4db0ea80.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";N;}

4
runtime/cache/85/caa5b1d52613819bf146e7fa3b4382.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/86/e67fd18ec7f98d61476d67794c2b10.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}

4
runtime/cache/95/42388f400d27a649eb7148f8b75204.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";a:0:{}}

4
runtime/cache/97/e34ce429ea9ead0000ad45740b210e.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/9c/1a1a93828df1e24759a846ec5be67f.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";a:1:{i:0;s:0:"";}}

2
runtime/cache/9f/d2f37875d1da637002182ec566f162.php

@ -1,4 +1,4 @@
<?php <?php
//000000000000 //000000000000
exit();?> exit();?>
a:6:{i:0;s:75:"D:\waibao\ahbcqz\server\runtime\cache\1e\9273b3315671b45227b5827559a179.php";i:1;s:75:"D:\waibao\ahbcqz\server\runtime\cache\a1\55016152d5af019afbbfd20daf7335.php";i:2;s:75:"D:\waibao\ahbcqz\server\runtime\cache\c0\cf484f10720659d936916d74e6362a.php";i:3;s:75:"E:\waibao\ahbcqz\server\runtime\cache\35\4c90d26061baaa2f7a972849339da3.php";i:4;s:75:"E:\waibao\ahbcqz\server\runtime\cache\64\80bd487ac5e230fd1fb2d74457b697.php";i:5;s:75:"E:\waibao\ahbcqz\server\runtime\cache\11\e63c5fed23ed0b72e5c3d85dccdf6a.php";} a:2:{i:0;s:75:"E:\waibao\ahbcqz\server\runtime\cache\ad\710db81cabed7a4fc183cdbe36b098.php";i:1;s:75:"E:\waibao\ahbcqz\server\runtime\cache\b0\2f627ee37a64f2b7a2192d33ffb6ce.php";}

4
runtime/cache/a0/8096bd7dce74be06b92b2f8e3a8b2c.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";a:1:{i:0;i:1;}}

2
runtime/cache/a4/cac12231ceb012f0ffa0d41c73fe3d.php

@ -1,4 +1,4 @@
<?php <?php
//000000000000 //000000000000
exit();?> exit();?>
a:1:{s:13:"config_server";s:53:"Copyright © 2019-2021 广州好象科技有限公司";} a:1:{s:13:"config_server";s:71:"Copyright © 2019-2023 安徽博创起重设备安装工程有限公司";}

4
runtime/cache/a5/3767114aa0910a8d4c20e9564872b2.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/a9/c9c11b4ce126c2478fe48d6a37ad9f.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}

2
runtime/cache/ad/656c00a17ac7dca6e7693b28eb1e1a.php

@ -1,4 +1,4 @@
<?php <?php
//000000000000 //000000000000
exit();?> exit();?>
a:1:{s:13:"config_server";s:20:"likeshop管理后台";} a:1:{s:13:"config_server";s:24:"博创设计管理后台";}

4
runtime/cache/b7/119ff97c0593fc73d86c66a1ddc909.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:1;}

4
runtime/cache/c6/3e867a6e02f41c824b20aa5bcc1677.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:1;}

4
runtime/cache/c9/e49251c47d95189921588a43af1e59.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{i:0;s:75:"D:\waibao\ahbcqz\server\runtime\cache\2e\00473f3b37a60f00d26da6bcff1f42.php";}

2
runtime/cache/ce/ecb9316cf9453e86c768bf35cef370.php

@ -1,4 +1,4 @@
<?php <?php
//000000000000 //000000000000
exit();?> exit();?>
a:1:{s:13:"config_server";N;} a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/d1/260e0b5c156de695e1d3fb6e2507ea.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";N;}

4
runtime/cache/d2/74fcb584937cd6dc52e5797405efa6.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

4
runtime/cache/d8/a054e2e395567462f747f11b13d3a7.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";N;}

4
runtime/cache/df/bcd7e612593de7d6f1945c6e22044c.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:0:"";}

2
runtime/cache/e2/1897945f077de19ba1bbc7456fff20.php

@ -1,4 +1,4 @@
<?php <?php
//000000000000 //000000000000
exit();?> exit();?>
a:1:{s:13:"config_server";s:8:"likeshop";} a:1:{s:13:"config_server";s:12:"博创设计";}

4
runtime/cache/e6/1f426b849692c71fd8933d7f1daf31.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";N;}

4
runtime/cache/ea/a98cc14f2c4a8dcadf5e9f3cf4497d.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}

4
runtime/cache/f0/f4b7a992b581b49b83b8179a36458e.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:8:"LikeMall";}

4
runtime/cache/f4/26ad8c265e571b93fd9aba143f5710.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";s:31:"/images/share/share_user_bg.png";}

4
runtime/cache/f5/cacdaa0fcd810984eb8fc26ad3da5d.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}

4
runtime/cache/fa/1679f5b24b5e54c47a3243dafd0a6f.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:1;}

4
runtime/cache/fc/d3620e93e047cf969297a7eba927a4.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}

4
runtime/cache/ff/161c45942c62f121929d9ce44a4d66.php

@ -1,4 +0,0 @@
<?php
//000000000000
exit();?>
a:1:{s:13:"config_server";i:0;}
Loading…
Cancel
Save