Browse Source

支付

master
jianglong 2 years ago
parent
commit
fc0ba2379c
  1. 11
      app/admin/controller/content/Resource.php
  2. 7
      app/admin/controller/content/ResourceCategory.php
  3. 28
      app/admin/logic/content/ResourceCategoryLogic.php
  4. 10
      app/admin/logic/content/ResourceLogic.php
  5. 41
      app/admin/view/content/resource/add.html
  6. 44
      app/admin/view/content/resource/edit.html
  7. 1
      app/admin/view/content/resource/lists.html
  8. 12
      app/admin/view/content/resource_category/add.html
  9. 12
      app/admin/view/content/resource_category/edit.html
  10. 1
      app/admin/view/content/resource_category/lists.html
  11. 8
      app/api/logic/ResourceLogic.php
  12. 10
      app/common/model/content/Resource.php
  13. 43
      runtime/admin/temp/11b1f5a2163bcf964e1939530bd00942.php
  14. 3
      runtime/admin/temp/78162e704fbe5f7a6099f3687a5c91f8.php
  15. 3
      runtime/admin/temp/e90c6cc0d969fe8d18d6f2260835932b.php
  16. 14
      runtime/admin/temp/f147d63d483a25f220830848ba1555dd.php
  17. 2
      runtime/cache/9f/d2f37875d1da637002182ec566f162.php
  18. 1
      runtime/session/sess_ee5ef07b6cec43c0853f1fa95f09ad66

11
app/admin/controller/content/Resource.php

@ -71,10 +71,17 @@ class Resource extends AdminBase
return JsonServer::success('编辑成功'); return JsonServer::success('编辑成功');
} }
$id = $this->request->get('id'); $id = $this->request->get('id');
$detail = ResourceLogic::detail($id);
$category2 = [];
if($detail['cid']>0){
$category2 = ResourceCategoryLogic::getCategory($detail['cid']);
}
return view('', [ return view('', [
'detail' => ResourceLogic::detail($id), 'detail' => $detail,
'category' => ResourceCategoryLogic::getCategory() 'category' => ResourceCategoryLogic::getCategory(),
'category2' => $category2
]); ]);
} }

7
app/admin/controller/content/ResourceCategory.php

@ -45,7 +45,9 @@ class ResourceCategory extends AdminBase
} }
return view(); return view('', [
'category' => ResourceCategoryLogic::getCategory()
]);
} }
/** /**
@ -66,7 +68,8 @@ class ResourceCategory extends AdminBase
$id = $this->request->get('id'); $id = $this->request->get('id');
return view('', [ return view('', [
'detail' => ResourceCategoryLogic::detail($id) 'detail' => ResourceCategoryLogic::detail($id),
'category' => ResourceCategoryLogic::getCategory()
]); ]);
} }

28
app/admin/logic/content/ResourceCategoryLogic.php

@ -20,8 +20,11 @@ class ResourceCategoryLogic extends Logic
{ {
try { try {
$where = [ $where = [
['del', '=', 0] ['del', '=', 0],
]; ];
if(isset($get['pid']) && $get['pid']>0){
$where[] = ['pid', '=', $get['pid']];
}
$model = new ResourceCategory(); $model = new ResourceCategory();
$lists = $model->field(true) $lists = $model->field(true)
@ -36,6 +39,21 @@ class ResourceCategoryLogic extends Logic
foreach ($lists['data'] as &$item) { foreach ($lists['data'] as &$item) {
$item['is_show'] = $item['is_show'] ? '启用' : '停用'; $item['is_show'] = $item['is_show'] ? '启用' : '停用';
if($item['pid']){
$where2 = [
['del', '=', 0],
['id', '=', $item['pid']],
];
$cates = $model->where($where2)->find();
if($cates){
$item['p_name'] = $cates['name'];
}else{
$item['p_name'] = '无';
}
}else{
$item['p_name'] = '无';
}
} }
return ['count'=>$lists['total'], 'lists'=>$lists['data']]; return ['count'=>$lists['total'], 'lists'=>$lists['data']];
@ -49,12 +67,12 @@ class ResourceCategoryLogic extends Logic
* @Author: 张无忌 * @Author: 张无忌
* @return array * @return array
*/ */
public static function getCategory() public static function getCategory($pid=0)
{ {
try { try {
$model = new ResourceCategory(); $model = new ResourceCategory();
return $model->field(true) return $model->field(true)
->where(['del'=>0, 'is_show'=>1]) ->where(['del'=>0, 'is_show'=>1,'pid'=>$pid])
->order('id', 'desc') ->order('id', 'desc')
->select() ->select()
->toArray(); ->toArray();
@ -85,7 +103,8 @@ class ResourceCategoryLogic extends Logic
try { try {
ResourceCategory::create([ ResourceCategory::create([
'name' => $post['name'], 'name' => $post['name'],
'is_show' => $post['is_show'] 'is_show' => $post['is_show'],
'pid' => $post['pid']
]); ]);
return true; return true;
@ -106,6 +125,7 @@ class ResourceCategoryLogic extends Logic
ResourceCategory::update([ ResourceCategory::update([
'name' => $post['name'], 'name' => $post['name'],
'pid' => $post['pid'],
'is_show' => $post['is_show'] 'is_show' => $post['is_show']
], ['id'=>$post['id']]); ], ['id'=>$post['id']]);

10
app/admin/logic/content/ResourceLogic.php

@ -44,8 +44,16 @@ class ResourceLogic extends Logic
]) ])
->toArray(); ->toArray();
foreach ($lists['data'] as &$item) { foreach ($lists['data'] as &$item) {
$item['category'] = $item['category']['name'] ?? '未知'; $item['category'] = $item['category']['name'] ?? '未知';
if($item['cid2']){
$cates = ResourceCategoryLogic::detail($item['cid2']);
$item['category2'] = $cates ? $cates['name'] : '无';
}else{
$item['category2'] = '无';
}
$item['is_show'] = $item['is_show'] ? '显示' : '隐藏'; $item['is_show'] = $item['is_show'] ? '显示' : '隐藏';
$item['path'] = $item['path']?UrlServer::getFileUrl($item['path']):''; $item['path'] = $item['path']?UrlServer::getFileUrl($item['path']):'';
$item['path_name']= $item['path']?substr($item['path'],strrpos($item['path'],"/")+1):''; $item['path_name']= $item['path']?substr($item['path'],strrpos($item['path'],"/")+1):'';
@ -90,6 +98,7 @@ class ResourceLogic extends Logic
try { try {
Resource::create([ Resource::create([
'cid' => $post['cid'], 'cid' => $post['cid'],
'cid2' => $post['cid2'],
'title' => $post['title'], 'title' => $post['title'],
'image' => $post['image'] ?? '', 'image' => $post['image'] ?? '',
'path' => $post['path'] ?? '', 'path' => $post['path'] ?? '',
@ -125,6 +134,7 @@ class ResourceLogic extends Logic
try { try {
Resource::update([ Resource::update([
'cid' => $post['cid'], 'cid' => $post['cid'],
'cid2' => $post['cid2'],
'title' => $post['title'], 'title' => $post['title'],
'image' => $post['image'] ?? '', 'image' => $post['image'] ?? '',
'path' => $post['path'] ?? '', 'path' => $post['path'] ?? '',

41
app/admin/view/content/resource/add.html

@ -74,7 +74,7 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label for="cid" class="layui-form-label"><span style="color:red;">*</span>资料分类:</label> <label for="cid" class="layui-form-label"><span style="color:red;">*</span>资料分类:</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select name="cid" id="cid" lay-verType="tips" lay-verify="required"> <select name="cid" id="cid" lay-verType="tips" lay-verify="required" lay-filter="cid">
<option value="">全部</option> <option value="">全部</option>
{volist name="category" id="vo"} {volist name="category" id="vo"}
<option value="{$vo.id}">{$vo.name}</option> <option value="{$vo.id}">{$vo.name}</option>
@ -84,6 +84,15 @@
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label for="cid2" class="layui-form-label"><span style="color:red;">*</span>资料二级分类:</label>
<div class="layui-input-inline">
<select name="cid2" id="cid2" lay-verType="tips" lay-verify="required">
<option value="">全部</option>
</select>
</div>
</div>
<div class="layui-form-item">
<label for="intro" class="layui-form-label">资料简介:</label> <label for="intro" class="layui-form-label">资料简介:</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input type="text" name="intro" id="intro" autocomplete="off" class="layui-input"> <input type="text" name="intro" id="intro" autocomplete="off" class="layui-input">
@ -193,6 +202,36 @@
} }
}); });
form.on('select(cid)', function (data) {
console.log(data);
var cid = data.value;
$.ajax({
type: 'GET',
dataType: 'json',
url: "{:url('content.ResourceCategory/lists')}",
data: {pid:cid,page:1,limit:100},
success: function(res) {
console.log(res)
var html = '<option value="">全部</option>';
if(res.code == 1 && res.data.count > 0){
var list = res.data.lists
for (var i=0;i<res.data.count;i++){
item = list[i]
html += '<option value="'+item.id+'">'+item.name+'</option>';
}
}
console.log(html)
$("#cid2").html(html)
form.render();
}
})
});
form.verify({ form.verify({
content: function() { content: function() {
likeedit.sync(content) likeedit.sync(content)

44
app/admin/view/content/resource/edit.html

@ -74,7 +74,7 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label for="cid" class="layui-form-label"><span style="color:red;">*</span>资料分类:</label> <label for="cid" class="layui-form-label"><span style="color:red;">*</span>资料分类:</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select name="cid" id="cid" lay-verType="tips" lay-verify="required"> <select name="cid" id="cid" lay-verType="tips" lay-verify="required" lay-filter="cid">
<option value="">全部</option> <option value="">全部</option>
{volist name="category" id="vo"} {volist name="category" id="vo"}
<option value="{$vo.id}" {if $detail.cid==$vo.id}selected{/if}>{$vo.name}</option> <option value="{$vo.id}" {if $detail.cid==$vo.id}selected{/if}>{$vo.name}</option>
@ -84,6 +84,19 @@
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label for="cid2" class="layui-form-label"><span style="color:red;">*</span>资料二级分类:</label>
<div class="layui-input-inline">
<select name="cid2" id="cid2" lay-verType="tips" lay-verify="required">
<option value="">全部</option>
{volist name="category2" id="vo"}
<option value="{$vo.id}" {if $detail.cid2==$vo.id}selected{/if}>{$vo.name}</option>
{/volist}
</select>
</div>
</div>
<div class="layui-form-item">
<label for="intro" class="layui-form-label">资料简介:</label> <label for="intro" class="layui-form-label">资料简介:</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input type="text" name="intro" id="intro" value="{$detail.intro ?? ''}" autocomplete="off" class="layui-input"> <input type="text" name="intro" id="intro" value="{$detail.intro ?? ''}" autocomplete="off" class="layui-input">
@ -213,6 +226,34 @@
} }
}); });
form.on('select(cid)', function (data) {
console.log(data);
var cid = data.value;
$.ajax({
type: 'GET',
dataType: 'json',
url: "{:url('content.ResourceCategory/lists')}",
data: {pid:cid,page:1,limit:100},
success: function(res) {
console.log(res)
var html = '<option value="">全部</option>';
if(res.code == 1 && res.data.count > 0){
var list = res.data.lists
for (var i=0;i<res.data.count;i++){
item = list[i]
html += '<option value="'+item.id+'">'+item.name+'</option>';
}
}
console.log(html)
$("#cid2").html(html)
form.render();
}
})
});
form.verify({ form.verify({
content: function() { content: function() {
likeedit.sync(content) likeedit.sync(content)
@ -265,5 +306,6 @@
"{$detail.refund_address.province_id ?? ''}", "{$detail.refund_address.city_id ?? ''}", "{$detail.refund_address.district_id ?? ''}" "{$detail.refund_address.province_id ?? ''}", "{$detail.refund_address.city_id ?? ''}", "{$detail.refund_address.district_id ?? ''}"
); );
$("")
}) })
</script> </script>

1
app/admin/view/content/resource/lists.html

@ -92,6 +92,7 @@
,{field:"title", width:200, align:"center", title:"资料标题"} ,{field:"title", width:200, align:"center", title:"资料标题"}
,{field:"image", width:100, align:"center", title:"封面图", templet:"#table-image"} ,{field:"image", width:100, align:"center", title:"封面图", templet:"#table-image"}
,{field:"category", width:150, align:"center", title:"资料分类"} ,{field:"category", width:150, align:"center", title:"资料分类"}
,{field:"category2", width:150, align:"center", title:"子分类"}
,{field:"address", width:180, align:"center", title:"资料区域"} ,{field:"address", width:180, align:"center", title:"资料区域"}
,{field:"type", width:150, align:"center", title:"付费类型", templet:"#table-type"} ,{field:"type", width:150, align:"center", title:"付费类型", templet:"#table-type"}
,{field:"type", width:100, align:"center", title:"文件", templet:"#table-file"} ,{field:"type", width:100, align:"center", title:"文件", templet:"#table-file"}

12
app/admin/view/content/resource_category/add.html

@ -2,6 +2,18 @@
<div class="layui-card layui-form" style="box-shadow:none;"> <div class="layui-card layui-form" style="box-shadow:none;">
<div class="layui-card-body"> <div class="layui-card-body">
<div class="layui-form-item"> <div class="layui-form-item">
<label for="pid" class="layui-form-label"><span style="color:red;">*</span>父级分类:</label>
<div class="layui-input-inline">
<select name="pid" id="pid" lay-verType="tips" lay-verify="required">
<option value=""></option>
{volist name="category" id="vo"}
<option value="{$vo.id}">{$vo.name}</option>
{/volist}
</select>
</div>
</div>
<div class="layui-form-item">
<label for="name" class="layui-form-label"><span style="color:red;">*</span>分类名称:</label> <label for="name" class="layui-form-label"><span style="color:red;">*</span>分类名称:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<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">

12
app/admin/view/content/resource_category/edit.html

@ -2,6 +2,18 @@
<div class="layui-card layui-form" style="box-shadow:none;"> <div class="layui-card layui-form" style="box-shadow:none;">
<div class="layui-card-body"> <div class="layui-card-body">
<div class="layui-form-item"> <div class="layui-form-item">
<label for="pid" class="layui-form-label"><span style="color:red;">*</span>父级分类:</label>
<div class="layui-input-inline">
<select name="pid" id="pid" lay-verType="tips" lay-verify="required">
<option value=""></option>
{volist name="category" id="vo"}
<option value="{$vo.id}" {if $detail.pid==$vo.id}selected{/if}>{$vo.name}</option>
{/volist}
</select>
</div>
</div>
<div class="layui-form-item">
<label for="name" class="layui-form-label"><span style="color:red;">*</span>分类名称:</label> <label for="name" class="layui-form-label"><span style="color:red;">*</span>分类名称:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" name="name" id="name" value="{$detail.name}" lay-verify="required" autocomplete="off" class="layui-input"> <input type="text" name="name" id="name" value="{$detail.name}" lay-verify="required" autocomplete="off" class="layui-input">

1
app/admin/view/content/resource_category/lists.html

@ -35,6 +35,7 @@
var table = layui.table; var table = layui.table;
like.tableLists("#like-table-lists", "{:url()}", [ like.tableLists("#like-table-lists", "{:url()}", [
{field:"id", width:60, title:"ID"} {field:"id", width:60, title:"ID"}
,{field:"p_name", width:160, align:"center", title:"父级分类"}
,{field:"name", width:160, align:"center", title:"资料分类"} ,{field:"name", width:160, align:"center", title:"资料分类"}
,{field:"is_show", width:100, align:"center", title:"资料状态"} ,{field:"is_show", width:100, align:"center", title:"资料状态"}
,{field:"create_time", width:180, align:"center", title:"创建时间"} ,{field:"create_time", width:180, align:"center", title:"创建时间"}

8
app/api/logic/ResourceLogic.php

@ -36,6 +36,10 @@ class ResourceLogic extends Logic
} }
} }
if(isset($get['pid']) ){
$where[] = ['pid','=',$get['pid']];
}
return $model->field(['id', 'name']) return $model->field(['id', 'name'])
->where([ ->where([
['del', '=', 0], ['del', '=', 0],
@ -73,6 +77,10 @@ class ResourceLogic extends Logic
$where[] = ['cid', '=', $get['cid']]; $where[] = ['cid', '=', $get['cid']];
} }
if(isset($get['cid2']) && !empty($get['cid2']) && $get['cid2']>0 && !strstr($get['cid2'],"city_") ) {
$where[] = ['cid2', '=', $get['cid2']];
}
if(isset($get['cid']) && !empty($get['cid']) && strstr($get['cid'],"city_") ) { if(isset($get['cid']) && !empty($get['cid']) && strstr($get['cid'],"city_") ) {
$where[] = ['a.city_id', '=', str_replace("city_","",$get['cid'])]; $where[] = ['a.city_id', '=', str_replace("city_","",$get['cid'])];
} }

10
app/common/model/content/Resource.php

@ -17,4 +17,14 @@ class Resource extends Models
{ {
return $this->hasOne('ResourceCategory', 'id', 'cid'); return $this->hasOne('ResourceCategory', 'id', 'cid');
} }
/**
* @Notes: 关联资源分类模型
* @Author:
*/
public function category2()
{
return $this->hasOne('ResourceCategory', 'id', 'cid2');
}
} }

43
runtime/admin/temp/11b1f5a2163bcf964e1939530bd00942.php

@ -1,4 +1,4 @@
<?php /*a:2:{s:64:"E:\waibao\ahbcqz\server\app\admin\view\content\resource\add.html";i:1681710457;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout2.html";i:1679478874;}*/ ?> <?php /*a:2:{s:64:"E:\waibao\ahbcqz\server\app\admin\view\content\resource\add.html";i:1704276024;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout2.html";i:1679478874;}*/ ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -93,7 +93,7 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label for="cid" class="layui-form-label"><span style="color:red;">*</span>资料分类:</label> <label for="cid" class="layui-form-label"><span style="color:red;">*</span>资料分类:</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select name="cid" id="cid" lay-verType="tips" lay-verify="required"> <select name="cid" id="cid" lay-verType="tips" lay-verify="required" lay-filter="cid">
<option value="">全部</option> <option value="">全部</option>
<?php if(is_array($category) || $category instanceof \think\Collection || $category instanceof \think\Paginator): $i = 0; $__LIST__ = $category;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> <?php if(is_array($category) || $category instanceof \think\Collection || $category instanceof \think\Paginator): $i = 0; $__LIST__ = $category;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['name']); ?></option> <option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['name']); ?></option>
@ -103,6 +103,15 @@
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label for="cid2" class="layui-form-label"><span style="color:red;">*</span>资料二级分类:</label>
<div class="layui-input-inline">
<select name="cid2" id="cid2" lay-verType="tips" lay-verify="required">
<option value="">全部</option>
</select>
</div>
</div>
<div class="layui-form-item">
<label for="intro" class="layui-form-label">资料简介:</label> <label for="intro" class="layui-form-label">资料简介:</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input type="text" name="intro" id="intro" autocomplete="off" class="layui-input"> <input type="text" name="intro" id="intro" autocomplete="off" class="layui-input">
@ -212,6 +221,36 @@
} }
}); });
form.on('select(cid)', function (data) {
console.log(data);
var cid = data.value;
$.ajax({
type: 'GET',
dataType: 'json',
url: "<?php echo url('content.ResourceCategory/lists'); ?>",
data: {pid:cid,page:1,limit:100},
success: function(res) {
console.log(res)
var html = '<option value="">全部</option>';
if(res.code == 1 && res.data.count > 0){
var list = res.data.lists
for (var i=0;i<res.data.count;i++){
item = list[i]
html += '<option value="'+item.id+'">'+item.name+'</option>';
}
}
console.log(html)
$("#cid2").html(html)
form.render();
}
})
});
form.verify({ form.verify({
content: function() { content: function() {
likeedit.sync(content) likeedit.sync(content)

3
runtime/admin/temp/78162e704fbe5f7a6099f3687a5c91f8.php

@ -1,4 +1,4 @@
<?php /*a:2:{s:75:"E:\waibao\ahbcqz\server\app\admin\view\content\resource_category\lists.html";i:1681701612;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout1.html";i:1679478874;}*/ ?> <?php /*a:2:{s:75:"E:\waibao\ahbcqz\server\app\admin\view\content\resource_category\lists.html";i:1704273191;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout1.html";i:1679478874;}*/ ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -56,6 +56,7 @@
var table = layui.table; var table = layui.table;
like.tableLists("#like-table-lists", "<?php echo url(); ?>", [ like.tableLists("#like-table-lists", "<?php echo url(); ?>", [
{field:"id", width:60, title:"ID"} {field:"id", width:60, title:"ID"}
,{field:"p_name", width:160, align:"center", title:"父级分类"}
,{field:"name", width:160, align:"center", title:"资料分类"} ,{field:"name", width:160, align:"center", title:"资料分类"}
,{field:"is_show", width:100, align:"center", title:"资料状态"} ,{field:"is_show", width:100, align:"center", title:"资料状态"}
,{field:"create_time", width:180, align:"center", title:"创建时间"} ,{field:"create_time", width:180, align:"center", title:"创建时间"}

3
runtime/admin/temp/e90c6cc0d969fe8d18d6f2260835932b.php

@ -1,4 +1,4 @@
<?php /*a:2:{s:66:"E:\waibao\ahbcqz\server\app\admin\view\content\resource\lists.html";i:1681711311;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout1.html";i:1679478874;}*/ ?> <?php /*a:2:{s:66:"E:\waibao\ahbcqz\server\app\admin\view\content\resource\lists.html";i:1704273909;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout1.html";i:1679478874;}*/ ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -113,6 +113,7 @@
,{field:"title", width:200, align:"center", title:"资料标题"} ,{field:"title", width:200, align:"center", title:"资料标题"}
,{field:"image", width:100, align:"center", title:"封面图", templet:"#table-image"} ,{field:"image", width:100, align:"center", title:"封面图", templet:"#table-image"}
,{field:"category", width:150, align:"center", title:"资料分类"} ,{field:"category", width:150, align:"center", title:"资料分类"}
,{field:"category2", width:150, align:"center", title:"子分类"}
,{field:"address", width:180, align:"center", title:"资料区域"} ,{field:"address", width:180, align:"center", title:"资料区域"}
,{field:"type", width:150, align:"center", title:"付费类型", templet:"#table-type"} ,{field:"type", width:150, align:"center", title:"付费类型", templet:"#table-type"}
,{field:"type", width:100, align:"center", title:"文件", templet:"#table-file"} ,{field:"type", width:100, align:"center", title:"文件", templet:"#table-file"}

14
runtime/admin/temp/f147d63d483a25f220830848ba1555dd.php

@ -1,4 +1,4 @@
<?php /*a:2:{s:73:"E:\waibao\ahbcqz\server\app\admin\view\content\resource_category\add.html";i:1681701464;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout2.html";i:1679478874;}*/ ?> <?php /*a:2:{s:73:"E:\waibao\ahbcqz\server\app\admin\view\content\resource_category\add.html";i:1704273332;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout2.html";i:1679478874;}*/ ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -21,6 +21,18 @@
<div class="layui-card layui-form" style="box-shadow:none;"> <div class="layui-card layui-form" style="box-shadow:none;">
<div class="layui-card-body"> <div class="layui-card-body">
<div class="layui-form-item"> <div class="layui-form-item">
<label for="pid" class="layui-form-label"><span style="color:red;">*</span>父级分类:</label>
<div class="layui-input-inline">
<select name="pid" id="pid" lay-verType="tips" lay-verify="required">
<option value=""></option>
<?php if(is_array($category) || $category instanceof \think\Collection || $category instanceof \think\Paginator): $i = 0; $__LIST__ = $category;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['name']); ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
</div>
<div class="layui-form-item">
<label for="name" class="layui-form-label"><span style="color:red;">*</span>分类名称:</label> <label for="name" class="layui-form-label"><span style="color:red;">*</span>分类名称:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<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">

2
runtime/cache/9f/d2f37875d1da637002182ec566f162.php

@ -1,4 +1,4 @@
<?php <?php
//000000000000 //000000000000
exit();?> exit();?>
a:6:{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";i:2;s:75:"E:\waibao\ahbcqz\server\runtime\cache\a5\132d23a4f708efcceee81162e0d944.php";i:3;s:75:"E:\waibao\ahbcqz\server\runtime\cache\51\5060a84cc9236c33edb430c07bcd5d.php";i:4;s:75:"E:\waibao\ahbcqz\server\runtime\cache\15\7f97380bf9d6dd15b8de122c49579f.php";i:5;s:75:"E:\waibao\ahbcqz\server\runtime\cache\85\4e59911e21c259fcd17dbf96f12fd2.php";} a:7:{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";i:2;s:75:"E:\waibao\ahbcqz\server\runtime\cache\a5\132d23a4f708efcceee81162e0d944.php";i:3;s:75:"E:\waibao\ahbcqz\server\runtime\cache\51\5060a84cc9236c33edb430c07bcd5d.php";i:4;s:75:"E:\waibao\ahbcqz\server\runtime\cache\15\7f97380bf9d6dd15b8de122c49579f.php";i:5;s:75:"E:\waibao\ahbcqz\server\runtime\cache\85\4e59911e21c259fcd17dbf96f12fd2.php";i:6;s:75:"E:\waibao\ahbcqz\server\runtime\cache\03\8ff1cb9d73a91f65140a6b0f3fa1a9.php";}

1
runtime/session/sess_ee5ef07b6cec43c0853f1fa95f09ad66

@ -1 +0,0 @@
a:1:{s:10:"admin_info";a:4:{s:2:"id";i:1;s:7:"account";s:5:"admin";s:4:"name";s:5:"admin";s:7:"role_id";i:0;}}
Loading…
Cancel
Save