Browse Source

clear cached

Your Name 2 months ago
parent
commit
944ed304d3

+ 10
- 3
apps/admin/controller/system/CityController.php View File

79
                 $mutietitle = str_replace(',', ',', $mutietitle);
79
                 $mutietitle = str_replace(',', ',', $mutietitle);
80
                 $pid = post('pid', 'int');
80
                 $pid = post('pid', 'int');
81
                 $logo = post('logo');
81
                 $logo = post('logo');
82
+                $weixin = post('weixin');
83
+
82
                 if (! $mutititle) {
84
                 if (! $mutititle) {
83
                     alert_back('城市名称不能为空!');
85
                     alert_back('城市名称不能为空!');
84
                 }
86
                 }
110
                         'email' => '',
112
                         'email' => '',
111
                         'qq' => '',
113
                         'qq' => '',
112
                         'address' => '',
114
                         'address' => '',
113
-                        'logo' => $logo
115
+                        'logo' => $logo,
116
+                        'weixin' => $weixin
114
                     );
117
                     );
115
                 }
118
                 }
116
             }else{
119
             }else{
125
                 $seo_keywords = post('seo_keywords');
128
                 $seo_keywords = post('seo_keywords');
126
                 $seo_description = post('seo_description');
129
                 $seo_description = post('seo_description');
127
                 $logo = post('logo');
130
                 $logo = post('logo');
131
+                $weixin = post('weixin');
128
 
132
 
129
                 $contact = post('contact');
133
                 $contact = post('contact');
130
                 $mobile = post('mobile');
134
                 $mobile = post('mobile');
163
                     'email' => $email,
167
                     'email' => $email,
164
                     'qq' => $qq,
168
                     'qq' => $qq,
165
                     'address' => $address,
169
                     'address' => $address,
166
-                    'logo' => $logo
170
+                    'logo' => $logo,
171
+                    'weixin' => $weixin
167
                 );
172
                 );
168
             }
173
             }
169
             // 执行添加
174
             // 执行添加
234
             $qq = post('qq');
239
             $qq = post('qq');
235
             $address = post('address');
240
             $address = post('address');
236
             $logo = post('logo');
241
             $logo = post('logo');
242
+            $weixin = post('weixin');
237
 
243
 
238
             if($id==$pid){
244
             if($id==$pid){
239
                 alert_back('区域混乱啦!');
245
                 alert_back('区域混乱啦!');
262
                 'email' => $email,
268
                 'email' => $email,
263
                 'qq' => $qq,
269
                 'qq' => $qq,
264
                 'address' => $address,
270
                 'address' => $address,
265
-                'logo' => $logo
271
+                'logo' => $logo,
272
+                'weixin' => $weixin
266
             );
273
             );
267
             // 执行添加
274
             // 执行添加
268
             if ($this->model->modCity($id, $data)) {
275
             if ($this->model->modCity($id, $data)) {

+ 28
- 0
apps/admin/view/default/system/city.html View File

196
                             <input type="text" name="address" placeholder="请输入分站地址" class="layui-input" />
196
                             <input type="text" name="address" placeholder="请输入分站地址" class="layui-input" />
197
                         </div>
197
                         </div>
198
                     </div>
198
                     </div>
199
+
200
+
201
+
202
+                            <div class="layui-form-item">
203
+                                <label class="layui-form-label">微信图标</label>
204
+                                <div class="layui-input-inline">
205
+                                    <input type="text" name="weixin" id="weixin" value="{$city->weixin}" placeholder="请上传微信图标"  class="layui-input">
206
+                                </div>
207
+                                <button type="button" class="layui-btn upload" data-des="weixin">
208
+                                    <i class="layui-icon">&#xe67c;</i>上传图片
209
+                                </button>
210
+                                <div id="weixin_box" class="pic"><dl><dt>{if(@[$city->weixin])}<img src="{SITE_DIR}{$city->weixin}" data-url="{$city->weixin}"></dt><dd>删除</dd></dl>{/if}</div>
211
+                            </div>
212
+
213
+
199
 					    </div>
214
 					    </div>
200
 					  </div>
215
 					  </div>
201
 					</div>
216
 					</div>
337
                                         <input type="text" name="address" placeholder="请输入分站地址" value="{$city->address}" class="layui-input" />
352
                                         <input type="text" name="address" placeholder="请输入分站地址" value="{$city->address}" class="layui-input" />
338
                                     </div>
353
                                     </div>
339
                                 </div>
354
                                 </div>
355
+
356
+                            <div class="layui-form-item">
357
+                                <label class="layui-form-label">微信图标</label>
358
+                                <div class="layui-input-inline">
359
+                                    <input type="text" name="weixin" id="weixin" value="{$city->weixin}" placeholder="请上传微信图标"  class="layui-input">
360
+                                </div>
361
+                                <button type="button" class="layui-btn upload" data-des="weixin">
362
+                                    <i class="layui-icon">&#xe67c;</i>上传图片
363
+                                </button>
364
+                                <div id="weixin_box" class="pic"><dl><dt>{if(@[$city->weixin])}<img src="{SITE_DIR}{$city->weixin}" data-url="{$city->weixin}"></dt><dd>删除</dd></dl>{/if}</div>
365
+                            </div>
366
+
367
+
340
 					    </div>
368
 					    </div>
341
 					  </div>
369
 					  </div>
342
 					</div>
370
 					</div>

+ 36
- 16
apps/common/HomeController.php View File

101
             if( $domain == $main_domain ){
101
             if( $domain == $main_domain ){
102
                 //cookie('city','');
102
                 //cookie('city','');
103
                 cookie('city',$this->config('firstcity'));
103
                 cookie('city',$this->config('firstcity'));
104
-                //var_dump($domain_first);die;
105
             }else{
104
             }else{
106
                 cookie('city',$domain_first);
105
                 cookie('city',$domain_first);
107
 
106
 
108
-                //var_dump($domain_first);
109
-                //设置新的cookie 城市id
110
-                //$cityid = 1;
111
-                $cityid = $this->model->getCityId($domain_first);
112
-                if(empty($cityid)){
113
-                    $cityid = 0;
107
+                $apo = explode('.', $domain);
108
+                if(!empty($apo[2])){
109
+                    //非主域名 二级域名 验证是否是城市
110
+                    $isHf = $this->model->getCityDomain($domain_first);
111
+                    if((int)$isHf > 0){
112
+                    }else{
113
+                        //var_dump($domain);die;
114
+                        //301到首页
115
+                        $target_url = "https://www.".$apo[1].'.'.$apo[2];
116
+                        //var_dump($target_url);die;
117
+                        header("HTTP/1.1 301 Moved Permanently");
118
+                        header("Location: $target_url");
119
+                        exit;
120
+                    }
114
                 }
121
                 }
115
-                //var_dump($cityid);
116
-                cookie('city_id',$cityid);
117
-                //模板赋值变量 用于sql 同样查询数组可循环
118
-                $this->assign('cityId',$cityid);
119
-                //测试数据
120
-                /*$testArray = [
121
-                    1,2,3,4
122
-                ];
123
-                $this->assign('testArray',$testArray);*/
124
             }
122
             }
125
 
123
 
124
+            //var_dump($domain_first);die;
125
+            //var_dump($domain_first);
126
+            //设置新的cookie 城市id
127
+            //$cityid = 1;
128
+            $cityid = $this->model->getCityId($domain_first);
129
+            if(empty($cityid)){
130
+                $cityid = 0;
131
+                $temp_cityId = 381;
132
+            }else{
133
+                $temp_cityId = $cityid;
134
+            }
135
+            //var_dump($cityid);
136
+            cookie('city_id',$cityid);
137
+            //模板赋值变量 用于sql 同样查询数组可循环
138
+            $this->assign('cityId',$cityid);
139
+            $this->assign('temp_cityId',$temp_cityId);
140
+            //测试数据
141
+            /*$testArray = [
142
+                1,2,3,4
143
+            ];
144
+            $this->assign('testArray',$testArray);*/
145
+
126
             //var_dump($domain_first);die;
146
             //var_dump($domain_first);die;
127
             //输出logo
147
             //输出logo
128
             $citylogo = $this->model->getCityLogo($domain_first);
148
             $citylogo = $this->model->getCityLogo($domain_first);

+ 17
- 3
apps/home/controller/ParserController.php View File

2999
 
2999
 
3000
                         if($kp > 0){
3000
                         if($kp > 0){
3001
                             if($a%$kp == 0 && $a > 0){
3001
                             if($a%$kp == 0 && $a > 0){
3002
-                                $one_html = $one_html."<br/>";
3002
+                                //计数换行
3003
+                                //$one_html = $one_html."<br/>";
3003
                             }
3004
                             }
3004
                         }
3005
                         }
3005
                     }
3006
                     }
3479
     {
3480
     {
3480
         $pattern = '/\{pboot:if\(([^}^\$]+)\)\}([\s\S]*?)\{\/pboot:if\}/';
3481
         $pattern = '/\{pboot:if\(([^}^\$]+)\)\}([\s\S]*?)\{\/pboot:if\}/';
3481
         $pattern2 = '/pboot:([0-9])+if/';
3482
         $pattern2 = '/pboot:([0-9])+if/';
3483
+
3484
+        $content = str_replace('{xx}', '[xx]', $content);
3485
+
3482
         if (preg_match_all($pattern, $content, $matches)) {
3486
         if (preg_match_all($pattern, $content, $matches)) {
3483
             $count = count($matches[0]);
3487
             $count = count($matches[0]);
3484
             for ($i = 0; $i < $count; $i ++) {
3488
             for ($i = 0; $i < $count; $i ++) {
3489
                 $white_fun = array(
3493
                 $white_fun = array(
3490
                     'date'
3494
                     'date'
3491
                 );
3495
                 );
3492
-                
3496
+
3497
+                $matches[0][$i] = str_replace('[xx]', '{xx}', $matches[0][$i]);
3498
+
3493
                 // 还原可能包含的保留内容,避免判断失效
3499
                 // 还原可能包含的保留内容,避免判断失效
3494
                 $matches[1][$i] = $this->restorePreLabel($matches[1][$i]);
3500
                 $matches[1][$i] = $this->restorePreLabel($matches[1][$i]);
3495
                 
3501
                 
3545
                     $out_html = str_replace('{' . $matches3[1] . 'else}', '{else}', $out_html);
3551
                     $out_html = str_replace('{' . $matches3[1] . 'else}', '{else}', $out_html);
3546
                     $out_html = $this->parserIfLabel($out_html);
3552
                     $out_html = $this->parserIfLabel($out_html);
3547
                 }
3553
                 }
3548
-                
3554
+
3555
+                $content = str_replace('[xx]', '{xx}', $content);
3549
                 // 执行替换
3556
                 // 执行替换
3550
                 $content = str_replace($matches[0][$i], $out_html, $content);
3557
                 $content = str_replace($matches[0][$i], $out_html, $content);
3551
             }
3558
             }
3559
+
3560
+            if((int)$count === 0){
3561
+                $content = str_replace('[xx]', '{xx}', $content);
3562
+            }
3563
+        }else{
3564
+            $content = str_replace('[xx]', '{xx}', $content);
3552
         }
3565
         }
3566
+
3553
 //        var_dump(111);die;
3567
 //        var_dump(111);die;
3554
         return $content;
3568
         return $content;
3555
     }
3569
     }

+ 4
- 0
apps/home/model/ParserModel.php View File

1055
         return parent::table('ay_site')->where(['id'=>1])->value('logo');
1055
         return parent::table('ay_site')->where(['id'=>1])->value('logo');
1056
     }
1056
     }
1057
 
1057
 
1058
+    public function getCityDomain($name){
1059
+        return parent::table('ay_city')->where(['etitle'=>$name])->value('id');
1060
+    }
1061
+
1058
 
1062
 
1059
 }
1063
 }

+ 2
- 1
git.txt View File

26
 git commit -m "clear cached"
26
 git commit -m "clear cached"
27
 git push origin local-develop:develop
27
 git push origin local-develop:develop
28
 
28
 
29
+===============================
29
 git fetch --all
30
 git fetch --all
30
 git reset --hard origin/master
31
 git reset --hard origin/master
31
-git pull origin/master
32
+git pull origin master

+ 29
- 1
skin/css/style.css View File

462
   border: 1px solid #333;
462
   border: 1px solid #333;
463
 }
463
 }
464
 .pagination .st{ font-family:宋体}
464
 .pagination .st{ font-family:宋体}
465
-.text-secondary{ text-align:center; padding:20px 0}
465
+.text-secondary{ text-align:center; padding:20px 0}
466
+
467
+
468
+.head-1 .top {
469
+    height: 34px;
470
+    line-height: 34px;
471
+    background-color: #f1f1f1;
472
+    font-size: 12px;
473
+    color: #777;
474
+}
475
+.head-1 .w1200 {
476
+    width: 1202px;
477
+    margin: 0 auto;
478
+    position: relative;
479
+}
480
+.head-1 .top .welcome {
481
+    float: left;
482
+    text-align: left;
483
+}
484
+.head-1 .top .info {
485
+    position: absolute;
486
+    right: 0;
487
+}
488
+.head-1 .welcome a{
489
+    color: red;
490
+}
491
+.head-1 .info a{
492
+    color: red;
493
+}

+ 5
- 1
template/dafeult/case.html View File

56
           </li>
56
           </li>
57
         </ul>
57
         </ul>
58
       </div>
58
       </div>
59
-      <div class="tuandui-zixun"> <a href="http://wpa.qq.com/msgrd?v=3&uin={pboot:companyqq}&site=qq&menu=yes" rel="nofollow" target="_black">我想向TA咨询</a> </div>
59
+      <div class="tuandui-zixun">
60
+
61
+        <a href="/yuyue"  target="_black">向TA咨询(免费评估)</a>
62
+
63
+      </div>
60
       <div class="sxp">
64
       <div class="sxp">
61
         <p class="prev">上一篇:{content:precontent}</p>
65
         <p class="prev">上一篇:{content:precontent}</p>
62
         <p class="next">下一篇:{content:nextcontent}</p>
66
         <p class="next">下一篇:{content:nextcontent}</p>

+ 1
- 1
template/dafeult/city.html View File

69
 <div class="footer" style="font-size: 16px;">
69
 <div class="footer" style="font-size: 16px;">
70
 	<div class="footer-dh">友情链接:
70
 	<div class="footer-dh">友情链接:
71
 
71
 
72
-		{pboot:sql sql="select * from ay_link where city='{$cityId}'"}
72
+		{pboot:sql sql="select * from ay_link where gid=2"}
73
 		<a href="[sql:link]" class="first-level" target="_blank" style="padding-right: 10px;"> [sql:name] </a>
73
 		<a href="[sql:link]" class="first-level" target="_blank" style="padding-right: 10px;"> [sql:name] </a>
74
 		{/pboot:sql}
74
 		{/pboot:sql}
75
 
75
 

+ 95
- 5
template/dafeult/foot.html View File

14
         </ul>
14
         </ul>
15
       </div>
15
       </div>
16
       <div class="footer-message">
16
       <div class="footer-message">
17
+
18
+
19
+        {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
20
+        {pboot:if('[sql:phone]'=='')}
17
         <p>咨询热线:{pboot:companyphone}</p>
21
         <p>咨询热线:{pboot:companyphone}</p>
22
+        {else}
23
+        <p>咨询热线:[sql:phone]</p>
24
+        {/pboot:if}
25
+
26
+        {pboot:if('[sql:email]'=='')}
18
         <p>联系邮箱:{pboot:companyemail}</p>
27
         <p>联系邮箱:{pboot:companyemail}</p>
28
+        {else}
29
+        <p>联系邮箱:[sql:email]</p>
30
+        {/pboot:if}
31
+
32
+        {pboot:if('[sql:address]'=='')}
19
         <p>公司地址:{pboot:companyaddress}</p>
33
         <p>公司地址:{pboot:companyaddress}</p>
34
+        {else}
35
+        <p>公司地址:[sql:address]</p>
36
+        {/pboot:if}
37
+
38
+        {/pboot:sql}
39
+
40
+
20
       </div>
41
       </div>
21
     </div>
42
     </div>
22
     <div class="right">
43
     <div class="right">
23
-      <div class="ewm"> <img src="{pboot:companyweixin}">
44
+      <div class="ewm">
45
+
46
+
47
+
48
+        {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
49
+        {pboot:if('[sql:weixin]'=='')}
50
+        <img src="{pboot:companyweixin}">
51
+        {else}
52
+        <img src="[sql:weixin]">
53
+        {/pboot:if}
54
+        {/pboot:sql}
55
+
24
         <p>客服微信</p>
56
         <p>客服微信</p>
25
       </div>
57
       </div>
26
     </div>
58
     </div>
27
   </div>
59
   </div>
28
 </div>
60
 </div>
29
 <div class="footer-copy">
61
 <div class="footer-copy">
30
-  <p>{pboot:sitecopyright} <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{pboot:siteicp}</a> <a href="{pboot:sitedomain}/index.php/sitemap.xml" target="_blank">网站地图</a> {pboot:sitestatistical}</p>
62
+  <p>
63
+
64
+    {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
65
+    {pboot:if('{$temp_cityId}'==381)}
66
+
67
+    <a href="{pboot:sitedomain}">心理咨询</a>  Copyright  ©  2019-2024
68
+    <a href="{pboot:sitedomain}">心理医生</a>,<a href="{pboot:sitedomain}">心理咨询中心</a>【<a href="{pboot:sitedomain}">乐达心理</a>】全国高端连锁"心理咨询机构"
69
+
70
+    {else}
71
+
72
+    <a href="{pboot:httpurl}">[sql:title]心理咨询</a>  Copyright  ©  2019-2024
73
+    <a href="{pboot:httpurl}">[sql:title]心理医生</a>,<a href="{pboot:httpurl}">[sql:title]心理咨询中心</a>【<a href="{pboot:sitedomain}">乐达心理</a>】全国高端连锁"心理咨询机构"
74
+
75
+
76
+    {/pboot:if}
77
+    {/pboot:sql}
78
+
79
+    {pboot:sitecopyright} <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{pboot:siteicp}</a> <a href="{pboot:sitedomain}/index.php/sitemap.xml" target="_blank">网站地图</a> {pboot:sitestatistical}</p>
31
   <p style="display:none;"></p>
80
   <p style="display:none;"></p>
32
 </div>
81
 </div>
33
 <!--/页脚--> 
82
 <!--/页脚--> 
38
 <!--    <li> <a href="" target="_black" rel="nofollow"> <i class="icon-kefu-1"></i>
87
 <!--    <li> <a href="" target="_black" rel="nofollow"> <i class="icon-kefu-1"></i>
39
       <p>在线客服</p>
88
       <p>在线客服</p>
40
       </a> </li>-->
89
       </a> </li>-->
41
-    <li> <a href="tel:{pboot:companyphone}"> <i class="icon-kefu-2"></i>
42
-      <p>电话咨询</p>
90
+
91
+
92
+
93
+    {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
94
+
95
+
96
+    <li>
97
+
98
+
99
+      {pboot:if('[sql:phone]'=='')}
100
+      <a href="tel:{pboot:companyphone}">
101
+        <i class="icon-kefu-2"></i>
102
+        <p>电话咨询</p>
43
       </a>
103
       </a>
44
       <div class="kefu-call">
104
       <div class="kefu-call">
45
         <p>7×24小时客服</p>
105
         <p>7×24小时客服</p>
46
         <strong>{pboot:companyphone}</strong> </div>
106
         <strong>{pboot:companyphone}</strong> </div>
107
+      {else}
108
+      <a href="tel:[sql:phone]">
109
+        <i class="icon-kefu-2"></i>
110
+        <p>电话咨询</p>
111
+      </a>
112
+      <div class="kefu-call">
113
+        <p>7×24小时客服</p>
114
+        <strong>[sql:phone]</strong> </div>
115
+      {/pboot:if}
116
+
117
+
118
+
47
     </li>
119
     </li>
120
+
121
+
122
+
123
+
124
+
48
     <li> <i class="icon-kefu-3"></i>
125
     <li> <i class="icon-kefu-3"></i>
49
       <p>微信客服</p>
126
       <p>微信客服</p>
50
-      <div class="kefu-img"> <img src="{pboot:companyweixin}">
127
+      <div class="kefu-img">
128
+
129
+        {pboot:if('[sql:weixin]'=='')}
130
+        <img src="{pboot:companyweixin}">
131
+        {else}
132
+        <img src="[sql:weixin]">
133
+        {/pboot:if}
134
+
51
         <p class="red">扫描二维码</p>
135
         <p class="red">扫描二维码</p>
52
         <p>添加微信客服</p>
136
         <p>添加微信客服</p>
53
       </div>
137
       </div>
54
     </li>
138
     </li>
139
+
140
+
141
+    {/pboot:sql}
142
+
143
+
144
+
55
     <li> <a href="#top" rel="nofollow"> <i class="icon-kefu-4"></i>
145
     <li> <a href="#top" rel="nofollow"> <i class="icon-kefu-4"></i>
56
       <p>返回顶部</p>
146
       <p>返回顶部</p>
57
       </a> </li>
147
       </a> </li>

+ 5
- 1
template/dafeult/foot_city.html View File

27
   </div>
27
   </div>
28
 </div>
28
 </div>
29
 <div class="footer-copy">
29
 <div class="footer-copy">
30
-  <p>{pboot:sitecopyright} <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{pboot:siteicp}</a> <a href="{pboot:sitedomain}/index.php/sitemap.xml" target="_blank">网站地图</a> {pboot:sitestatistical}</p>
30
+  <p>
31
+    <a href="{label:city_url}">心理咨询</a>  Copyright  ©  2019-2024
32
+    <a href="{label:city_url}">心理医生</a>,<a href="{label:city_url}">心理咨询中心</a>【<a href="{pboot:sitedomain}">乐达心理</a>】全国高端连锁"心理咨询机构"
33
+
34
+    {pboot:sitecopyright} <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{pboot:siteicp}</a> <a href="{pboot:sitedomain}/index.php/sitemap.xml" target="_blank">网站地图</a> {pboot:sitestatistical}</p>
31
   <p style="display:none;"></p>
35
   <p style="display:none;"></p>
32
 </div>
36
 </div>
33
 <!--/页脚--> 
37
 <!--/页脚--> 

+ 10
- 0
template/dafeult/head.html View File

1
+{include file=top.html}
2
+
1
 <!--导航栏-->
3
 <!--导航栏-->
2
 <div class="header">
4
 <div class="header">
3
   <div class="header-box">
5
   <div class="header-box">
33
 	
35
 	
34
     <div class="call">
36
     <div class="call">
35
       <p class="small">心理咨询电话:</p>
37
       <p class="small">心理咨询电话:</p>
38
+
39
+      {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
40
+      {pboot:if('[sql:phone]'=='')}
36
       <p class="big">{pboot:companyphone}</p>
41
       <p class="big">{pboot:companyphone}</p>
42
+      {else}
43
+      <p class="big">[sql:phone]</p>
44
+      {/pboot:if}
45
+      {/pboot:sql}
46
+
37
     </div>
47
     </div>
38
   </div>
48
   </div>
39
 </div>
49
 </div>

+ 1
- 0
template/dafeult/head_city.html View File

1
+{include file=top_city.html}
1
 <!--导航栏-->
2
 <!--导航栏-->
2
 <div class="header">
3
 <div class="header">
3
   <div class="header-box">
4
   <div class="header-box">

+ 2
- 2
template/dafeult/hot.html View File

2
     <div class="footer-dh" style="line-height: 16px;"><font style="font-weight: bold;">热门城市</font>:<br/><br/><br/>
2
     <div class="footer-dh" style="line-height: 16px;"><font style="font-weight: bold;">热门城市</font>:<br/><br/><br/>
3
 
3
 
4
         <!--环境变量-->
4
         <!--环境变量-->
5
-        {pboot:sql sql="select * from ay_city where pid!=0 OR id IN(1,2,9,22) ORDER BY RAND() LIMIT 50" kp="15"}
6
-        <a href="https://[sql:etitle].{label:top_domain}" class="first-level" target="_blank" style="margin-right:20px;display:block;float:left;padding-right: 10px;">[sql:title] </a>
5
+        {pboot:sql sql="select * from ay_city where pid!=0 and status=1 OR id IN(1,2,9,22) ORDER BY RAND() LIMIT 50" kp="15"}
6
+        <a href="https://[sql:etitle].{label:top_domain}" class="first-level" target="_blank" style="margin-right:20px;display:block;float:left;padding-right: 10px;margin-bottom: 10px;" title="[sql:title]{label:hot_after}">[sql:title]{label:hot_after}</a>
7
         {/pboot:sql}
7
         {/pboot:sql}
8
 
8
 
9
     </div>
9
     </div>

+ 21
- 1
template/dafeult/index.html View File

21
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
21
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
22
 </head>
22
 </head>
23
 <body>
23
 <body>
24
+
24
 {include file=head.html}
25
 {include file=head.html}
25
 
26
 
26
 <!--焦点图-->
27
 <!--焦点图-->
182
             <div class="desc">
183
             <div class="desc">
183
               <p>预约方式:电话或微信
184
               <p>预约方式:电话或微信
184
                 文字或语音进行初步评估</p>
185
                 文字或语音进行初步评估</p>
185
-              <a href="http://wpa.qq.com/msgrd?v=3&uin={pboot:companyqq}&site=qq&menu=yes" target="_black" rel="nofollow" class="yuyue-btn">在线预约</a> </div>
186
+
187
+              <a href="/yuyue" target="_black" class="yuyue-btn">在线预约</a>
188
+
189
+            </div>
186
           </div>
190
           </div>
187
         </li>
191
         </li>
188
         <li>
192
         <li>
245
         <h4></h4>
249
         <h4></h4>
246
         <p>[content:content drophtml=1 dropblank=1 len=200 more='...']</p>
250
         <p>[content:content drophtml=1 dropblank=1 len=200 more='...']</p>
247
         <br>
251
         <br>
252
+
253
+        {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
254
+
255
+
256
+        {pboot:if('[sql:address]'=='')}
248
         <p>联系地址:{pboot:companyaddress}</p>
257
         <p>联系地址:{pboot:companyaddress}</p>
258
+        {else}
259
+        <p>联系地址:[sql:address]</p>
260
+        {/pboot:if}
261
+
262
+        {pboot:if('[sql:phone]'=='')}
249
         <p>联系电话:{pboot:companyphone}</p>
263
         <p>联系电话:{pboot:companyphone}</p>
264
+        {else}
265
+        <p>联系电话:[sql:phone]</p>
266
+        {/pboot:if}
267
+
268
+        {/pboot:sql}
269
+
250
         <div class="small-more-btn"> <a href="[content:link]">查看更多<i><span class="icon iconfont icon-xiangyou1"></span></i></a> </div>
270
         <div class="small-more-btn"> <a href="[content:link]">查看更多<i><span class="icon iconfont icon-xiangyou1"></span></i></a> </div>
251
       </div>
271
       </div>
252
     </div>
272
     </div>

+ 33
- 0
template/dafeult/left.html View File

13
         <h4>联系我们</h4>
13
         <h4>联系我们</h4>
14
         <div class="danye-message-list">
14
         <div class="danye-message-list">
15
           <ul>
15
           <ul>
16
+
17
+            {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
18
+
19
+
20
+            {pboot:if('[sql:phone]'=='')}
16
             <li> <span>联系电话:</span>
21
             <li> <span>联系电话:</span>
17
               <p class="text">{pboot:companyphone}</p>
22
               <p class="text">{pboot:companyphone}</p>
18
             </li>
23
             </li>
24
+            {else}
25
+            <li> <span>联系电话:</span>
26
+              <p class="text">[sql:phone]</p>
27
+            </li>
28
+            {/pboot:if}
29
+
30
+
31
+            {pboot:if('[sql:address]'=='')}
19
             <li> <span>公司地址:</span>
32
             <li> <span>公司地址:</span>
20
               <p class="text">{pboot:companyaddress}</p>
33
               <p class="text">{pboot:companyaddress}</p>
21
             </li>
34
             </li>
35
+            {else}
36
+            <li> <span>公司地址:</span>
37
+              <p class="text">[sql:address]</p>
38
+            </li>
39
+            {/pboot:if}
40
+
41
+
42
+            {pboot:if('[sql:weixin]'=='')}
22
             <li class="center"> <img src="{pboot:companyweixin}">
43
             <li class="center"> <img src="{pboot:companyweixin}">
23
               <p>微信预约咨询</p>
44
               <p>微信预约咨询</p>
24
             </li>
45
             </li>
46
+            {else}
47
+            <li class="center"> <img src="[sql:weixin]">
48
+              <p>微信预约咨询</p>
49
+            </li>
50
+
51
+
52
+            {/pboot:if}
53
+
54
+
55
+
56
+            {/pboot:sql}
57
+
25
           </ul>
58
           </ul>
26
         </div>
59
         </div>
27
       </div>
60
       </div>

+ 1
- 1
template/dafeult/message.html View File

103
             <div class="desc">
103
             <div class="desc">
104
               <p>预约方式:电话或微信
104
               <p>预约方式:电话或微信
105
                 文字或语音进行初步评估</p>
105
                 文字或语音进行初步评估</p>
106
-              <a href="http://wpa.qq.com/msgrd?v=3&uin={pboot:companyqq}&site=qq&menu=yes" target="_black" rel="nofollow" class="yuyue-btn">在线预约</a> </div>
106
+              <a href="/yuyue" target="_black" class="yuyue-btn">在线预约</a></div>
107
           </div>
107
           </div>
108
         </li>
108
         </li>
109
         <li>
109
         <li>

+ 1
- 1
template/dafeult/team.html View File

49
         </ul>
49
         </ul>
50
       </div>
50
       </div>
51
       <div class="tuandui-zixun">
51
       <div class="tuandui-zixun">
52
-        <a href="/yuyue" rel="nofollow" target="_black">向TA咨询(免费评估)</a>
52
+        <a href="/yuyue"  target="_black">向TA咨询(免费评估)</a>
53
       </div>
53
       </div>
54
       <div class="sxp">
54
       <div class="sxp">
55
         <p class="prev">上一篇:{content:precontent}</p>
55
         <p class="prev">上一篇:{content:precontent}</p>

+ 27
- 0
template/dafeult/top.html View File

1
+<div class="head-1">
2
+<div class="top">
3
+    <div class="w1200">
4
+        {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
5
+        <div class="welcome">
6
+
7
+            {pboot:if('{$temp_cityId}'==381)}
8
+            <a href="{pboot:sitedomain}">心理咨询</a>,<a href="{pboot:sitedomain}">心理医生</a>,<a href="{pboot:sitedomain}">心理咨询中心</a>【<a href="{pboot:sitedomain}">乐达心理</a>】
9
+            {else}
10
+
11
+            <a href="{pboot:httpurl}">[sql:title]心理咨询</a>,<a href="{pboot:httpurl}">[sql:title]心理医生</a>,<a href="{pboot:httpurl}">[sql:title]心理咨询中心</a>【<a href="{pboot:sitedomain}" style="color:blue;">乐达心理</a>】
12
+
13
+
14
+            {/pboot:if}
15
+
16
+        </div>
17
+        <div class="info">
18
+            {pboot:if('{$temp_cityId}'==381)}
19
+            找“<a href="{pboot:sitedomain}">心理咨询机构</a>”首选“<a href="{pboot:sitedomain}">乐达心理咨询</a>”效果好!专业!
20
+            {else}
21
+            找“<a href="{pboot:httpurl}">[sql:title]心理咨询机构</a>”首选“<a href="{pboot:sitedomain}" style="color:blue;">乐达心理咨询</a>”效果好!专业!
22
+            {/pboot:if}
23
+        </div>
24
+        {/pboot:sql}
25
+    </div>
26
+</div>
27
+</div>

+ 13
- 0
template/dafeult/top_city.html View File

1
+<div class="head-1">
2
+<div class="top">
3
+    <div class="w1200">
4
+        <div class="welcome">
5
+            <a href="{label:city_url}">心理咨询预约</a>,首选【<a href="{pboot:sitedomain}" style="color:blue;">乐达心理</a>】
6
+        </div>
7
+        <div class="info">
8
+            <a href="{label:city_url}">心理咨询预约</a>【<a href="{pboot:sitedomain}" style="color:blue;">乐达心理</a>ledaxinli.com】全国高端连锁心理咨询机构
9
+        </div>
10
+
11
+    </div>
12
+</div>
13
+</div>

+ 5
- 1
template/dafeult/wap/case.html View File

54
       </li>
54
       </li>
55
     </ul>
55
     </ul>
56
   </div>
56
   </div>
57
-  <div class="tuandui-zixun"> <a href="http://wpa.qq.com/msgrd?v=3&uin={pboot:companyqq}&site=qq&menu=yes" target="_black">我想向TA咨询</a> </div>
57
+  <div class="tuandui-zixun">
58
+
59
+    <a href="/yuyue" target="_black">向TA咨询(免费评估)</a>
60
+
61
+  </div>
58
   <div class="sxp">
62
   <div class="sxp">
59
     <p class="prev">上一篇:{content:precontent}</p>
63
     <p class="prev">上一篇:{content:precontent}</p>
60
     <p class="next">下一篇:{content:nextcontent}</p>
64
     <p class="next">下一篇:{content:nextcontent}</p>

+ 13
- 1
template/dafeult/wap/head.html View File

11
     </a>
11
     </a>
12
 
12
 
13
   </div>
13
   </div>
14
-  <div class="right-btn"> <a href="tel:{pboot:companyphone}"><span class="icon iconfont icon-dianhua1"></span></a> </div>
14
+  <div class="right-btn">
15
+
16
+    {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
17
+    {pboot:if('[sql:phone]'=='')}
18
+    <a href="tel:{pboot:companyphone}"><span class="icon iconfont icon-dianhua1"></span></a>
19
+    {else}
20
+    <a href="tel:[sql:phone]"><span class="icon iconfont icon-dianhua1"></span></a>
21
+    {/pboot:if}
22
+    {/pboot:sql}
23
+
24
+
25
+
26
+  </div>
15
 </div>
27
 </div>
16
 <div class="fixed-nav-bg"> </div>
28
 <div class="fixed-nav-bg"> </div>
17
 <div class="fixed-nav">
29
 <div class="fixed-nav">

+ 2
- 2
template/dafeult/wap/hot.html View File

2
 
2
 
3
 <font style="margin-bottom:10px;display:block;font-weight: bold; ">热门城市:</font>
3
 <font style="margin-bottom:10px;display:block;font-weight: bold; ">热门城市:</font>
4
         <!--环境变量-->
4
         <!--环境变量-->
5
-        {pboot:sql sql="select * from ay_city where pid!=0 OR id IN(1,2,9,22) ORDER BY RAND() LIMIT 50" kp="0"}
6
-        <a href="https://[sql:etitle].{label:top_domain}" class="first-level" target="_blank" style="margin-right:20px;display:block;float:left;padding-right: 10px;">[sql:title] </a>
5
+        {pboot:sql sql="select * from ay_city where pid!=0 and status=1 OR id IN(1,2,9,22) ORDER BY RAND() LIMIT 50" kp="0"}
6
+        <a href="https://[sql:etitle].{label:top_domain}" class="first-level" target="_blank" style="margin-right:20px;display:block;float:left;padding-right: 10px;margin-bottom: 10px;" title="[sql:title]{label:hot_after}">[sql:title]{label:hot_after}</a>
7
         {/pboot:sql}
7
         {/pboot:sql}
8
 
8
 
9
 
9
 

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

207
     <div class="desc">
207
     <div class="desc">
208
       <p>[content:content drophtml=1 dropblank=1 len=140 more='...']</p>
208
       <p>[content:content drophtml=1 dropblank=1 len=140 more='...']</p>
209
       <br>
209
       <br>
210
+
211
+
212
+      {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
213
+
214
+
215
+      {pboot:if('[sql:address]'=='')}
210
       <p>联系地址:{pboot:companyaddress}</p>
216
       <p>联系地址:{pboot:companyaddress}</p>
217
+      {else}
218
+      <p>联系地址:[sql:address]</p>
219
+      {/pboot:if}
220
+
221
+      {pboot:if('[sql:phone]'=='')}
211
       <p>联系电话:{pboot:companyphone}</p>
222
       <p>联系电话:{pboot:companyphone}</p>
223
+      {else}
224
+      <p>联系电话:[sql:phone]</p>
225
+      {/pboot:if}
226
+
227
+      {/pboot:sql}
228
+
229
+
212
     </div>
230
     </div>
213
   </div>
231
   </div>
214
   {/pboot:content}
232
   {/pboot:content}

+ 1
- 1
template/dafeult/wap/team.html View File

42
     </ul>
42
     </ul>
43
   </div>
43
   </div>
44
   <div class="tuandui-zixun">
44
   <div class="tuandui-zixun">
45
-    <a href="/yuyue" rel="nofollow" target="_black">向TA咨询(免费评估)</a>
45
+    <a href="/yuyue" target="_black">向TA咨询(免费评估)</a>
46
   </div>
46
   </div>
47
   <div class="sxp">
47
   <div class="sxp">
48
     <p class="prev">上一篇:{content:precontent}</p>
48
     <p class="prev">上一篇:{content:precontent}</p>

Loading…
Cancel
Save