wesmiler 5 rokov pred
rodič
commit
2d8b2020a3

+ 11 - 1
app/index/controller/JiamengController.php

@@ -224,7 +224,17 @@ class JiamengController extends HomeBaseController
         $info['youshi'] = $content['youshi'];
         $info['tiaojian'] = $content['tiaojian'];
         $info['liucheng'] = $content['liucheng'];
-        $info['jm_support'] = isset($info['jm_support']) && $info['jm_support']? explode(',', $info['jm_support']) : [];
+        $jmSupport = [];
+        $supports = config('params.supports');
+        $support = isset($info['jm_support']) && $info['jm_support']? explode(',', $info['jm_support']) : [];
+        foreach ($support as $val){
+            $name = isset($supports[$val])? $supports[$val] : '';
+            if($name){
+                $jmSupport[] = $name;
+            }
+        }
+
+        $info['jm_support'] = $jmSupport;
         $catinfo = Db::name('category')->where('id',$info['catid'])->find();
         
         $parinfo = Db::name('category')->where('id',$catinfo['parent_id'])->find();

+ 15 - 0
data/config/params.php

@@ -13,6 +13,21 @@ return [
         '200万元以上',
         '300万元以上'
     ],
+    'supports'=> [
+        '',
+        '实地考察选址',
+        '量身设计',
+        '带店培训',
+        '技术操作培训',
+        '行业背景分析',
+        '试营业培训',
+        '营销推广培训',
+        '员工培训指导',
+        '标准化运营手册',
+        '区域保护支持',
+        '市场调研评估',
+        '开业指导',
+    ],
     // 区域列表
     'areaList'=> ['不限','北京','天津','上海','广州','重庆','浙江','江苏','广东','山东','山西','福建','安徽','河北','河南','湖北','湖南','吉林','江西','辽宁','四川','云南','陕西','广西','海南','贵州','黑龙江','内蒙古','宁夏','甘肃','西藏','青海','新疆'],
 ];

+ 1 - 0
data/route/route.php

@@ -24,6 +24,7 @@
         '/know/detail/:id' => 'index/know/show',
         'top10/:catname' => 'index/top10/cate',
         '/sitemap.shtml' => 'index/index/sitemap',
+        '/sitemap-:p.shtml' => 'index/index/sitemap',
     );
 
 ?>

+ 2 - 2
public/themes/mjmls/sitemap.html

@@ -34,9 +34,9 @@
 </div>
 
 <div class="page">
-    <a href="/sitemap.shtml?p={$lastPage}">上一页</a>
+    <a href="/sitemap-{$lastPage}.shtml">上一页</a>
     <if condition="$nextPage">
-    <a href="/sitemap.shtml?p={$nextPage}">下一页</a>
+    <a href="/sitemap-{$nextPage}.shtml">下一页</a>
     </if>
 </div>
 </body>