rabin há 5 dias atrás
pai
commit
e5124b5465

+ 2 - 1
src/place/benefit/manage/scope.php

@@ -6,10 +6,11 @@ return [
                 'name'      => '选择范围',
                 'type' => 'cascader',
                 'check' => true,
+                'clearable' => true,
                 'option'    => 'Dever::call("Pbenefit/Manage/Lib/Scope.getData")',
                 'remote' => 'Pbenefit/Manage/Api/Main.getScope',
                 'width' => '100%',
-                'clearable' => true,
+                
             ],
             'ids' => [
                 'name'      => '关联项目',

+ 1 - 1
src/place/page/app/Lib/Ad.php

@@ -91,7 +91,7 @@ class Ad
             $result['link'] = 'source/tool?id=' . $info['source_id'];
         } elseif ($info['jump'] == 6) {
             # 资源订单页
-            $result['link'] = 'source/order';
+            $result['link'] = 'order/list';
         } elseif ($info['jump'] == 7) {
             # 会员
             $result['link'] = 'vip/home';

+ 7 - 1
src/place/page/manage/ad.php

@@ -145,9 +145,15 @@ return [
                 'type' => 'cascader',
                 'option'    => 'Dever::call("Psource/Manage/Lib/Cate.getList")',
                 'remote' => 'Psource/Manage/Api/Main.getSourceList',
+                'check' => true,
+                'clearable' => true,
             ],
             'source_id' => [
-                'type' => 'select',
+                'type' => 'select2',
+                # select2需要有默认值
+                'option' => [],
+                'clearable' => true,
+                'multiple' => false,
             ],
 
             'link' => [

+ 4 - 4
src/place/page/table/ad.php

@@ -75,12 +75,12 @@ return [
                 1 => '资源频道页',
                 2 => '资源分类页',
                 3 => '资源介绍页',
-                4 => '资源内容页',
+                //4 => '资源内容页',
                 //5 => '资源功能页',
                 20 => '资源订单页',
-                21 => '会员主页',
-                22 => '分销员主页',
-                23 => '代理主页',
+                //21 => '身份主页',
+                //22 => '分销员主页',
+                //23 => '代理主页',
             ],
         ],
         'source_channel' => [

+ 42 - 0
src/place/page/table/news.php

@@ -0,0 +1,42 @@
+<?php
+return [
+    'name' => '导读文章表',
+    'partition' => 'Dever::call("Manage/Lib/Util.system")',
+    'struct' => [
+        'cate_id' => [
+            'name'      => '分类',
+            'type'      => 'int(11)',
+            'default'   => '1',
+        ],
+
+        'name' => [
+            'name'      => '标题',
+            'type'      => 'varchar(32)',
+        ],
+
+        'content'       => [
+            'name'      => '内容',
+            'type'      => 'text',
+        ],
+
+        'sort' => [
+            'name'      => '排序',
+            'type'      => 'int(11)',
+            'default'   => '1',
+        ],
+
+        'status' => [
+            'name'      => '状态',
+            'type'      => 'tinyint(1)',
+            'default'   => 1,
+            'value'     => [
+                1 => '展示',
+                2 => '不展示',
+            ],
+        ],
+    ],
+
+    'index' => [
+        'search' => 'cate_id,status,sort',
+    ],
+];