소스 검색

banner_nav

Panda 2 달 전
부모
커밋
470799bba9
4개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 1
      application/admin/lang/zh-cn/banner.php
  2. 1 1
      application/admin/model/Banner.php
  3. 2 0
      application/extra/site.php
  4. 1 1
      public/assets/js/backend/banner.js

+ 2 - 1
application/admin/lang/zh-cn/banner.php

@@ -15,5 +15,6 @@ return [
     'Updatetime' => '更新时间',
     'Type'       => '位置',
     'Type 1'     => '首页',
-    'Type 2'     => '商城'
+    'Type 2'     => '商城',
+    'Type 3'     => '首页nav',
 ];

+ 1 - 1
application/admin/model/Banner.php

@@ -46,7 +46,7 @@ class Banner extends Model
 
     public function getTypeList()
     {
-        return ['1' => __('Type 1'), '2' => __('Type 2')];
+        return ['1' => __('Type 1'), '2' => __('Type 2'), '3' => __('Type 3')];
     }
 
 

+ 2 - 0
application/extra/site.php

@@ -32,6 +32,7 @@ return array (
     'userios' => '用户端苹果版本',
     'explain' => '说明配置',
     'keyword' => '关键词',
+    'live' => '直播配置',
   ),
   'mail_type' => '1',
   'mail_smtp_host' => 'smtp.qq.com',
@@ -68,4 +69,5 @@ return array (
   'business_license' => '/uploads/20241210/bdafdca4bd272fafc8072cb43be5f782.png',
   'examine_bg_image' => '/uploads/20241211/811f53e60d4eb8f976373b6f4e22d107.png',
   'keyword_filter' => '毛泽东|邓小平|江泽民|胡锦涛|共产党|习大大|大法|微信',
+  'live_notice' => '欢迎来到直播间直播间内严禁出现违法违规、低俗色情、吸烟酗酒、人身伤害等内容。请大家注意财产安全,理性消费,谨防网络诈骗。',
 );

+ 1 - 1
public/assets/js/backend/banner.js

@@ -33,7 +33,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'weigh', title: __('Weigh'), operate: false},
                         {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
                         {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
-                        {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('Type 2')}, formatter: Table.api.formatter.normal},
+                        {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('Type 2'),"3":__('Type 3')}, formatter: Table.api.formatter.normal},
                         {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
                     ]
                 ]