Your Name 2 months ago
parent
commit
7062e04034

+ 5
- 0
apps/admin/controller/content/ContentController.php View File

347
                     $api = "http://data.zz.baidu.com/urls?site=$domain&token=$token";
347
                     $api = "http://data.zz.baidu.com/urls?site=$domain&token=$token";
348
                     foreach ($list as $key => $value) {
348
                     foreach ($list as $key => $value) {
349
                         $url = $domain . $urls[$value];
349
                         $url = $domain . $urls[$value];
350
+
351
+                        //替换 .html 后缀
352
+                        $url = str_replace(".html","",$url);
353
+
354
+                        
350
                         $this->log('百度普通收录推送:' . $url);
355
                         $this->log('百度普通收录推送:' . $url);
351
                         $post_urls[] = $url;
356
                         $post_urls[] = $url;
352
                     }
357
                     }

+ 6
- 2
apps/admin/controller/content/ContentSortController.php View File

100
                 $listtpl = basename(post('listtpl'));
100
                 $listtpl = basename(post('listtpl'));
101
                 $contenttpl = basename(post('contenttpl'));
101
                 $contenttpl = basename(post('contenttpl'));
102
                 $status = post('status');
102
                 $status = post('status');
103
+                $is_show = post('is_show');
103
                 
104
                 
104
                 if (! $pcode) { // 父编码默认为0
105
                 if (! $pcode) { // 父编码默认为0
105
                     $pcode = 0;
106
                     $pcode = 0;
138
                         'description' => '',
139
                         'description' => '',
139
                         'sorting' => 255,
140
                         'sorting' => 255,
140
                         'create_user' => session('username'),
141
                         'create_user' => session('username'),
141
-                        'update_user' => session('username')
142
+                        'update_user' => session('username'),
143
+                        'is_show' => $is_show
142
                     );
144
                     );
143
                     $scode = get_auto_code($scode);
145
                     $scode = get_auto_code($scode);
144
                 }
146
                 }
368
             $listtpl = basename(post('listtpl'));
370
             $listtpl = basename(post('listtpl'));
369
             $contenttpl = basename(post('contenttpl'));
371
             $contenttpl = basename(post('contenttpl'));
370
             $status = post('status');
372
             $status = post('status');
373
+            $is_show = post('is_show');
371
             $subname = post('subname');
374
             $subname = post('subname');
372
             $filename = trim(post('filename'), '/');
375
             $filename = trim(post('filename'), '/');
373
             $outlink = post('outlink');
376
             $outlink = post('outlink');
443
                 'title' => $title,
446
                 'title' => $title,
444
                 'keywords' => $keywords,
447
                 'keywords' => $keywords,
445
                 'description' => $description,
448
                 'description' => $description,
446
-                'update_user' => session('username')
449
+                'update_user' => session('username'),
450
+                'is_show' => $is_show
447
             );
451
             );
448
             
452
             
449
             // 执行添加
453
             // 执行添加

+ 7
- 2
apps/admin/controller/content/SingleController.php View File

129
                 alert_back('链接类型不允许推送!');
129
                 alert_back('链接类型不允许推送!');
130
             }
130
             }
131
             if ($data->filename) {
131
             if ($data->filename) {
132
-                $urls[] = $domain . homeurl('/home/Index/' . $data->filename, $url_rule_sort_suffix);
132
+                $url = $domain . homeurl('/home/Index/' . $data->filename, $url_rule_sort_suffix);
133
+                $url = str_replace(".html","",$url);
134
+                $urls[] = $url;
135
+
133
             } else {
136
             } else {
134
-                $urls[] = $domain . homeurl('/home/Index/' . $data->urlname . $url_break_char . $data->scode, $url_rule_sort_suffix);
137
+                $url = $domain . homeurl('/home/Index/' . $data->urlname . $url_break_char . $data->scode, $url_rule_sort_suffix);
138
+                $url = str_replace(".html","",$url);
139
+                $urls[] = $url;
135
             }
140
             }
136
             $result = post_baidu($api, $urls);
141
             $result = post_baidu($api, $urls);
137
             if (isset($result->error)) {
142
             if (isset($result->error)) {

+ 23
- 3
apps/admin/view/default/content/contentsort.html View File

180
 			                     	<input type="radio" name="status" value="1" title="显示" checked>
180
 			                     	<input type="radio" name="status" value="1" title="显示" checked>
181
 									<input type="radio" name="status" value="0" title="隐藏">
181
 									<input type="radio" name="status" value="0" title="隐藏">
182
 			                     </div>
182
 			                     </div>
183
-			                </div>  
184
-			                
185
-			               <div class="layui-form-item">
183
+			                </div>
184
+
185
+
186
+							<div class="layui-form-item">
187
+								<label class="layui-form-label">是否在首页显示</label>
188
+								<div class="layui-input-block">
189
+									<input type="radio" name="is_show" value="1" title="显示" checked>
190
+									<input type="radio" name="is_show" value="0" title="隐藏">
191
+								</div>
192
+							</div>
193
+
194
+
195
+
196
+							<div class="layui-form-item">
186
 			                     <label class="layui-form-label">浏览权限</label>
197
 			                     <label class="layui-form-label">浏览权限</label>
187
 			                     <div class="layui-input-block">
198
 			                     <div class="layui-input-block">
188
 									<select name="gid">
199
 									<select name="gid">
482
 								<input type="radio" name="status" value="0" title="隐藏" {if([$sort->status]==0)}checked="checked"{/if}>
493
 								<input type="radio" name="status" value="0" title="隐藏" {if([$sort->status]==0)}checked="checked"{/if}>
483
 		                     </div>
494
 		                     </div>
484
 		                </div>
495
 		                </div>
496
+
497
+						<div class="layui-form-item">
498
+							<label class="layui-form-label">是否在首页显示</label>
499
+							<div class="layui-input-block">
500
+								<input type="radio" name="is_show" value="1" title="显示" {if([$sort->is_show]==1)}checked="checked"{/if}>
501
+								<input type="radio" name="is_show" value="0" title="隐藏" {if([$sort->is_show]==0)}checked="checked"{/if}>
502
+							</div>
503
+						</div>
504
+
485
 		                
505
 		                
486
 		                 <div class="layui-form-item">
506
 		                 <div class="layui-form-item">
487
 			                     <label class="layui-form-label">浏览权限</label>
507
 			                     <label class="layui-form-label">浏览权限</label>

+ 23
- 11
template/dafeult/index.html View File

44
 <script language="javascript" type="text/javascript">
44
 <script language="javascript" type="text/javascript">
45
   jQuery(".slideBox").slide({mainCell:".bd ul",autoPlay:true,trigger:"click"});
45
   jQuery(".slideBox").slide({mainCell:".bd ul",autoPlay:true,trigger:"click"});
46
 </script> 
46
 </script> 
47
-<!--/焦点图--> 
47
+<!--/焦点图-->
48
 
48
 
49
+
50
+
51
+{pboot:if('{label:index_server_1}' == '1')}
49
 <!--服务范围-->
52
 <!--服务范围-->
50
 <div class="page-bg">
53
 <div class="page-bg">
51
   <div class="page-box">
54
   <div class="page-box">
68
     </div>
71
     </div>
69
   </div>
72
   </div>
70
 </div>
73
 </div>
71
-<!--/服务范围--> 
74
+<!--/服务范围-->
75
+{/pboot:if}
76
+
72
 
77
 
73
 <!--咨询效果-->
78
 <!--咨询效果-->
74
 {pboot:sort scode=11}
79
 {pboot:sort scode=11}
80
+{pboot:if('[sort:is_show]' == '1')}
75
 <div class="page-bg xiaoguo-bg">
81
 <div class="page-bg xiaoguo-bg">
76
   <div class="page-box">
82
   <div class="page-box">
77
     <div class="page-title">
83
     <div class="page-title">
94
     </div>
100
     </div>
95
   </div>
101
   </div>
96
 </div>
102
 </div>
103
+{/pboot:if}
97
 {/pboot:sort}
104
 {/pboot:sort}
98
 <!--/咨询效果--> 
105
 <!--/咨询效果--> 
99
 
106
 
100
 <!--专家团队-->
107
 <!--专家团队-->
101
 {pboot:sort scode=6}
108
 {pboot:sort scode=6}
109
+{pboot:if('[sort:is_show]' == '1')}
102
 <div class="page-bg">
110
 <div class="page-bg">
103
   <div class="page-box">
111
   <div class="page-box">
104
     <div class="page-title">
112
     <div class="page-title">
125
     </div>
133
     </div>
126
   </div>
134
   </div>
127
 </div>
135
 </div>
136
+{/pboot:if}
128
 {/pboot:sort}
137
 {/pboot:sort}
129
 <!--/专家团队--> 
138
 <!--/专家团队--> 
130
 
139
 
131
 <!--首页案例-->
140
 <!--首页案例-->
132
 {pboot:sort scode=7}
141
 {pboot:sort scode=7}
142
+{pboot:if('[sort:is_show]' == '1')}
133
 <div class="page-bg anli-bg">
143
 <div class="page-bg anli-bg">
134
   <div class="page-box">
144
   <div class="page-box">
135
     <div class="page-title">
145
     <div class="page-title">
162
     <div class="more-btn"> <a href="[sort:link]">查看更多<i><span class="icon iconfont icon-xiangyou1"></span></i></a> </div>
172
     <div class="more-btn"> <a href="[sort:link]">查看更多<i><span class="icon iconfont icon-xiangyou1"></span></i></a> </div>
163
   </div>
173
   </div>
164
 </div>
174
 </div>
175
+{/pboot:if}
165
 {/pboot:sort}
176
 {/pboot:sort}
166
-<!--/首页案例--> 
177
+<!--/首页案例-->
178
+
167
 
179
 
168
 <!--咨询流程-->
180
 <!--咨询流程-->
169
 <div class="page-bg">
181
 <div class="page-bg">
170
   <div class="page-box">
182
   <div class="page-box">
183
+    {pboot:if('{label:index_server_2}' == '1')}
171
     <div class="page-title">
184
     <div class="page-title">
172
-
173
       {pboot:sort scode=13}
185
       {pboot:sort scode=13}
174
       <h2>[sort:name]</h2>
186
       <h2>[sort:name]</h2>
175
       <p>[sort:def1]</p>
187
       <p>[sort:def1]</p>
176
       {/pboot:sort}
188
       {/pboot:sort}
177
-
178
-
179
     </div>
189
     </div>
180
     <div class="liucheng">
190
     <div class="liucheng">
181
       <ul>
191
       <ul>
182
-
183
-
184
-
185
         {pboot:sort scode=14}
192
         {pboot:sort scode=14}
186
         <li>
193
         <li>
187
           <div class="box">
194
           <div class="box">
216
 
223
 
217
       </ul>
224
       </ul>
218
     </div>
225
     </div>
219
-    
226
+    {/pboot:if}
227
+
220
     <!--关于我们-->
228
     <!--关于我们-->
229
+
221
     {pboot:content scode=10}
230
     {pboot:content scode=10}
222
-    <div class="home-about">
231
+    <div class="home-about" {pboot:if('{label:ndex_server_3}' == '0')} style="display:none;" {/pboot:if}>
223
       <div class="img"> <img src="[content:ico]"> </div>
232
       <div class="img"> <img src="[content:ico]"> </div>
224
       <div class="desc">
233
       <div class="desc">
225
         <h2>{pboot:companyname}</h2>
234
         <h2>{pboot:companyname}</h2>
248
       </div>
257
       </div>
249
     </div>
258
     </div>
250
     {/pboot:content}
259
     {/pboot:content}
260
+
251
     <!--/关于我们--> 
261
     <!--/关于我们--> 
252
     
262
     
253
   </div>
263
   </div>
256
 
266
 
257
 <!--首页新闻-->
267
 <!--首页新闻-->
258
 {pboot:sort scode=8}
268
 {pboot:sort scode=8}
269
+{pboot:if('[sort:is_show]' == '1')}
259
 <div class="page-bg border-top">
270
 <div class="page-bg border-top">
260
   <div class="page-box">
271
   <div class="page-box">
261
     <div class="page-title">
272
     <div class="page-title">
304
     <div class="more-btn"> <a href="[sort:link]">查看更多<i><span class="icon iconfont icon-xiangyou1"></span></i></a> </div>
315
     <div class="more-btn"> <a href="[sort:link]">查看更多<i><span class="icon iconfont icon-xiangyou1"></span></i></a> </div>
305
   </div>
316
   </div>
306
 </div>
317
 </div>
318
+{/pboot:if}
307
 {/pboot:sort}
319
 {/pboot:sort}
308
 <!--/首页新闻-->
320
 <!--/首页新闻-->
309
 
321
 

+ 18
- 5
template/dafeult/wap/index.html View File

44
 <script language="javascript" type="text/javascript">
44
 <script language="javascript" type="text/javascript">
45
   jQuery(".slideBox").slide({mainCell:".bd ul",effect:"leftLoop",autoPlay:true});
45
   jQuery(".slideBox").slide({mainCell:".bd ul",effect:"leftLoop",autoPlay:true});
46
 </script> 
46
 </script> 
47
-<!--/焦点图--> 
47
+<!--/焦点图-->
48
 
48
 
49
+
50
+{pboot:if('{label:index_server_1}' == '1')}
49
 <!--服务范围-->
51
 <!--服务范围-->
50
 <div class="index-nav-content">
52
 <div class="index-nav-content">
51
   <div class="index-fanwei">
53
   <div class="index-fanwei">
61
     </ul>
63
     </ul>
62
   </div>
64
   </div>
63
 </div>
65
 </div>
64
-<!--服务范围 结束--> 
66
+<!--服务范围 结束-->
67
+{/pboot:if}
65
 
68
 
66
 <!--专家团队-->
69
 <!--专家团队-->
67
 {pboot:sort scode=6}
70
 {pboot:sort scode=6}
71
+{pboot:if('[sort:is_show]' == '1')}
68
 <div class="index-tuandui-page">
72
 <div class="index-tuandui-page">
69
   <div class="index-title">
73
   <div class="index-title">
70
     <h2>[sort:name]</h2>
74
     <h2>[sort:name]</h2>
87
     </div>
91
     </div>
88
   </div>
92
   </div>
89
 </div>
93
 </div>
94
+{/pboot:if}
90
 {/pboot:sort}
95
 {/pboot:sort}
91
 <!--专家团队 结束--> 
96
 <!--专家团队 结束--> 
92
 
97
 
93
 <!--个案分享-->
98
 <!--个案分享-->
94
 {pboot:sort scode=7}
99
 {pboot:sort scode=7}
100
+{pboot:if('[sort:is_show]' == '1')}
95
 <div class="index-page">
101
 <div class="index-page">
96
   <div class="index-title">
102
   <div class="index-title">
97
     <h2>[sort:name]</h2>
103
     <h2>[sort:name]</h2>
120
   </div>
126
   </div>
121
   <script>jQuery(".tab-anli").slide({effect:"leftLoop",trigger:"click"});</script> 
127
   <script>jQuery(".tab-anli").slide({effect:"leftLoop",trigger:"click"});</script> 
122
 </div>
128
 </div>
129
+{/pboot:if}
123
 {/pboot:sort}
130
 {/pboot:sort}
124
 <!--个案分享 结束--> 
131
 <!--个案分享 结束--> 
125
 
132
 
126
 <!--常见问题-->
133
 <!--常见问题-->
127
 {pboot:sort scode=11}
134
 {pboot:sort scode=11}
135
+{pboot:if('[sort:is_show]' == '1')}
128
 <div class="index-page">
136
 <div class="index-page">
129
   <div class="index-title">
137
   <div class="index-title">
130
     <h2>[sort:name]</h2>
138
     <h2>[sort:name]</h2>
145
   </div>
153
   </div>
146
   <script>jQuery(".tab-wenti").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"top",autoPlay:false,scroll:1,vis:5,trigger:"click"});</script> 
154
   <script>jQuery(".tab-wenti").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"top",autoPlay:false,scroll:1,vis:5,trigger:"click"});</script> 
147
 </div>
155
 </div>
156
+{/pboot:if}
148
 {/pboot:sort}
157
 {/pboot:sort}
149
-<!--常见问题 结束--> 
158
+<!--常见问题 结束-->
150
 
159
 
160
+{pboot:if('{label:index_server_2}' == '1')}
151
 <!--服务流程-->
161
 <!--服务流程-->
152
 <div class="index-page">
162
 <div class="index-page">
153
   <div class="index-title">
163
   <div class="index-title">
170
     </ul>
180
     </ul>
171
   </div>
181
   </div>
172
 </div>
182
 </div>
173
-<!--服务流程 结束--> 
183
+<!--服务流程 结束-->
184
+{/pboot:if}
174
 
185
 
175
 <!--关于我们-->
186
 <!--关于我们-->
176
 {pboot:sort scode=10}
187
 {pboot:sort scode=10}
177
-<div class="index-page">
188
+<div class="index-page" {pboot:if('{label:ndex_server_3}' == '0')} style="display:none;" {/pboot:if}>
178
   <div class="index-title">
189
   <div class="index-title">
179
     <h2>[sort:name]</h2>
190
     <h2>[sort:name]</h2>
180
     <a href="[sort:link]">更多<span class="icon iconfont icon-xiangyou1"></span></a> </div>
191
     <a href="[sort:link]">更多<span class="icon iconfont icon-xiangyou1"></span></a> </div>
213
 
224
 
214
 <!--动态资讯-->
225
 <!--动态资讯-->
215
 {pboot:sort scode=8}
226
 {pboot:sort scode=8}
227
+{pboot:if('[sort:is_show]' == '1')}
216
 <div class="index-page">
228
 <div class="index-page">
217
   <div class="index-title">
229
   <div class="index-title">
218
     <h2>[sort:name]</h2>
230
     <h2>[sort:name]</h2>
230
     </ul>
242
     </ul>
231
   </div>
243
   </div>
232
 </div>
244
 </div>
245
+{/pboot:if}
233
 {/pboot:sort}
246
 {/pboot:sort}
234
 <!--动态资讯 结束-->
247
 <!--动态资讯 结束-->
235
 
248
 

Loading…
Cancel
Save