dever hace 4 años
padre
commit
3aaa3a7d14

+ 2 - 2
app/content/database/creater.php

@@ -84,8 +84,8 @@ return array
             'default'   => '',
             'desc'      => '地址',
             'match'     => 'option',
-            'update'    => 'textarea',
-            'list'      => true,
+            //'update'    => 'textarea',
+            //'list'      => true,
         ),
 
         'site'      => array

+ 3 - 3
app/content/database/news.php

@@ -200,7 +200,7 @@ return array
             'default'   => '',
             'desc'      => '分享标题',
             'match'     => 'option',
-            'update'    => 'text',
+            //'update'    => 'text',
         ),
 
         'share_pic'     => array
@@ -210,7 +210,7 @@ return array
             'default'   => '',
             'desc'      => '分享图片',
             'match'     => 'option',
-            'update'    => 'image',
+            //'update'    => 'image',
             'key'       => '1',
             'place'     => '200*200',
             //'upload'  => 'qiniu',
@@ -224,7 +224,7 @@ return array
             'default'   => '',
             'desc'      => '分享内容',
             'match'     => 'option',
-            'update'    => 'textarea',
+            //'update'    => 'textarea',
         ),
 
         'content'       => array

+ 11 - 1
app/content/database/xuniren.php

@@ -232,10 +232,20 @@ return array
             'update'    => 'textarea',
         ),
 
+        'home_info'      => array
+        (
+            'type'      => 'varchar-500',
+            'name'      => '首页简介-不能超过50字',
+            'default'   => '',
+            'desc'      => '首页简介',
+            'match'     => 'is_string',
+            'update'    => 'textarea',
+        ),
+
         'info'      => array
         (
             'type'      => 'varchar-500',
-            'name'      => '简介',
+            'name'      => '详情页简介-不能超过110字',
             'default'   => '',
             'desc'      => '简介',
             'match'     => 'is_string',

+ 0 - 1
app/content/lib/Xuniren.php

@@ -18,7 +18,6 @@ class Xuniren
             foreach ($data as $k => $v) {
                 $data[$k] = $this->getPic($v);
                 $data[$k]['link'] = Dever::url('main/xnr-detail?id=' . $v['id']);
-                $data[$k]['info'] = Dever::cut($v['info'], 50);
             }
         }
 

+ 2 - 0
main/template/xuniren/article.php

@@ -20,6 +20,8 @@ $view
 
 ->fetch(array('.article-content .article', 0), 'main/content.view#content')
 
+->fetch(array('.btn-link@data-clipboard-text', 0), 'main/content.view#link')
+
 # 页面上部视频 仅限视频模板
 ->fetch(array('.video-module@style', 0), 'main/content.view_video_1', 'none')
 ->fetch(array('.article-wrapper img@src', 0), 'main/content.view#pic')

+ 1 - 1
main/template/xuniren/home.php

@@ -138,7 +138,7 @@ $view
 
             'p' => array
             (
-                'html' => '$v.info',
+                'html' => '$v.home_info',
             ),
         ),