Browse Source

clear cached

Your Name 2 months ago
parent
commit
944ed304d3

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

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

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

@@ -196,6 +196,21 @@
196 196
                             <input type="text" name="address" placeholder="请输入分站地址" class="layui-input" />
197 197
                         </div>
198 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 214
 					    </div>
200 215
 					  </div>
201 216
 					</div>
@@ -337,6 +352,19 @@
337 352
                                         <input type="text" name="address" placeholder="请输入分站地址" value="{$city->address}" class="layui-input" />
338 353
                                     </div>
339 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 368
 					    </div>
341 369
 					  </div>
342 370
 					</div>

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

@@ -101,28 +101,48 @@ class HomeController extends Controller
101 101
             if( $domain == $main_domain ){
102 102
                 //cookie('city','');
103 103
                 cookie('city',$this->config('firstcity'));
104
-                //var_dump($domain_first);die;
105 104
             }else{
106 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 146
             //var_dump($domain_first);die;
127 147
             //输出logo
128 148
             $citylogo = $this->model->getCityLogo($domain_first);

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

@@ -2999,7 +2999,8 @@ class ParserController extends Controller
2999 2999
 
3000 3000
                         if($kp > 0){
3001 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,6 +3480,9 @@ class ParserController extends Controller
3479 3480
     {
3480 3481
         $pattern = '/\{pboot:if\(([^}^\$]+)\)\}([\s\S]*?)\{\/pboot:if\}/';
3481 3482
         $pattern2 = '/pboot:([0-9])+if/';
3483
+
3484
+        $content = str_replace('{xx}', '[xx]', $content);
3485
+
3482 3486
         if (preg_match_all($pattern, $content, $matches)) {
3483 3487
             $count = count($matches[0]);
3484 3488
             for ($i = 0; $i < $count; $i ++) {
@@ -3489,7 +3493,9 @@ class ParserController extends Controller
3489 3493
                 $white_fun = array(
3490 3494
                     'date'
3491 3495
                 );
3492
-                
3496
+
3497
+                $matches[0][$i] = str_replace('[xx]', '{xx}', $matches[0][$i]);
3498
+
3493 3499
                 // 还原可能包含的保留内容,避免判断失效
3494 3500
                 $matches[1][$i] = $this->restorePreLabel($matches[1][$i]);
3495 3501
                 
@@ -3545,11 +3551,19 @@ class ParserController extends Controller
3545 3551
                     $out_html = str_replace('{' . $matches3[1] . 'else}', '{else}', $out_html);
3546 3552
                     $out_html = $this->parserIfLabel($out_html);
3547 3553
                 }
3548
-                
3554
+
3555
+                $content = str_replace('[xx]', '{xx}', $content);
3549 3556
                 // 执行替换
3550 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 3567
 //        var_dump(111);die;
3554 3568
         return $content;
3555 3569
     }

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

@@ -1055,5 +1055,9 @@ class ParserModel extends Model
1055 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,6 +26,7 @@ git add .
26 26
 git commit -m "clear cached"
27 27
 git push origin local-develop:develop
28 28
 
29
+===============================
29 30
 git fetch --all
30 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,4 +462,32 @@ body.bg-white{ background:#fff;}
462 462
   border: 1px solid #333;
463 463
 }
464 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,7 +56,11 @@
56 56
           </li>
57 57
         </ul>
58 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 64
       <div class="sxp">
61 65
         <p class="prev">上一篇:{content:precontent}</p>
62 66
         <p class="next">下一篇:{content:nextcontent}</p>

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

@@ -69,7 +69,7 @@
69 69
 <div class="footer" style="font-size: 16px;">
70 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 73
 		<a href="[sql:link]" class="first-level" target="_blank" style="padding-right: 10px;"> [sql:name] </a>
74 74
 		{/pboot:sql}
75 75
 

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

@@ -14,20 +14,69 @@
14 14
         </ul>
15 15
       </div>
16 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 21
         <p>咨询热线:{pboot:companyphone}</p>
22
+        {else}
23
+        <p>咨询热线:[sql:phone]</p>
24
+        {/pboot:if}
25
+
26
+        {pboot:if('[sql:email]'=='')}
18 27
         <p>联系邮箱:{pboot:companyemail}</p>
28
+        {else}
29
+        <p>联系邮箱:[sql:email]</p>
30
+        {/pboot:if}
31
+
32
+        {pboot:if('[sql:address]'=='')}
19 33
         <p>公司地址:{pboot:companyaddress}</p>
34
+        {else}
35
+        <p>公司地址:[sql:address]</p>
36
+        {/pboot:if}
37
+
38
+        {/pboot:sql}
39
+
40
+
20 41
       </div>
21 42
     </div>
22 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 56
         <p>客服微信</p>
25 57
       </div>
26 58
     </div>
27 59
   </div>
28 60
 </div>
29 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 80
   <p style="display:none;"></p>
32 81
 </div>
33 82
 <!--/页脚--> 
@@ -38,20 +87,61 @@
38 87
 <!--    <li> <a href="" target="_black" rel="nofollow"> <i class="icon-kefu-1"></i>
39 88
       <p>在线客服</p>
40 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 103
       </a>
44 104
       <div class="kefu-call">
45 105
         <p>7×24小时客服</p>
46 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 119
     </li>
120
+
121
+
122
+
123
+
124
+
48 125
     <li> <i class="icon-kefu-3"></i>
49 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 135
         <p class="red">扫描二维码</p>
52 136
         <p>添加微信客服</p>
53 137
       </div>
54 138
     </li>
139
+
140
+
141
+    {/pboot:sql}
142
+
143
+
144
+
55 145
     <li> <a href="#top" rel="nofollow"> <i class="icon-kefu-4"></i>
56 146
       <p>返回顶部</p>
57 147
       </a> </li>

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

@@ -27,7 +27,11 @@
27 27
   </div>
28 28
 </div>
29 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 35
   <p style="display:none;"></p>
32 36
 </div>
33 37
 <!--/页脚--> 

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

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

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

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

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

@@ -2,8 +2,8 @@
2 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 7
         {/pboot:sql}
8 8
 
9 9
     </div>

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

@@ -21,6 +21,7 @@
21 21
 <script type="text/javascript" src="{pboot:sitedomain}/skin/js/superslide.3.0.js"></script>
22 22
 </head>
23 23
 <body>
24
+
24 25
 {include file=head.html}
25 26
 
26 27
 <!--焦点图-->
@@ -182,7 +183,10 @@
182 183
             <div class="desc">
183 184
               <p>预约方式:电话或微信
184 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 190
           </div>
187 191
         </li>
188 192
         <li>
@@ -245,8 +249,24 @@
245 249
         <h4></h4>
246 250
         <p>[content:content drophtml=1 dropblank=1 len=200 more='...']</p>
247 251
         <br>
252
+
253
+        {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
254
+
255
+
256
+        {pboot:if('[sql:address]'=='')}
248 257
         <p>联系地址:{pboot:companyaddress}</p>
258
+        {else}
259
+        <p>联系地址:[sql:address]</p>
260
+        {/pboot:if}
261
+
262
+        {pboot:if('[sql:phone]'=='')}
249 263
         <p>联系电话:{pboot:companyphone}</p>
264
+        {else}
265
+        <p>联系电话:[sql:phone]</p>
266
+        {/pboot:if}
267
+
268
+        {/pboot:sql}
269
+
250 270
         <div class="small-more-btn"> <a href="[content:link]">查看更多<i><span class="icon iconfont icon-xiangyou1"></span></i></a> </div>
251 271
       </div>
252 272
     </div>

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

@@ -13,15 +13,48 @@
13 13
         <h4>联系我们</h4>
14 14
         <div class="danye-message-list">
15 15
           <ul>
16
+
17
+            {pboot:sql sql="select * from ay_city where id='{$temp_cityId}'"}
18
+
19
+
20
+            {pboot:if('[sql:phone]'=='')}
16 21
             <li> <span>联系电话:</span>
17 22
               <p class="text">{pboot:companyphone}</p>
18 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 32
             <li> <span>公司地址:</span>
20 33
               <p class="text">{pboot:companyaddress}</p>
21 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 43
             <li class="center"> <img src="{pboot:companyweixin}">
23 44
               <p>微信预约咨询</p>
24 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 58
           </ul>
26 59
         </div>
27 60
       </div>

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

@@ -103,7 +103,7 @@
103 103
             <div class="desc">
104 104
               <p>预约方式:电话或微信
105 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 107
           </div>
108 108
         </li>
109 109
         <li>

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

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

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

@@ -0,0 +1,27 @@
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

@@ -0,0 +1,13 @@
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,7 +54,11 @@
54 54
       </li>
55 55
     </ul>
56 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 62
   <div class="sxp">
59 63
     <p class="prev">上一篇:{content:precontent}</p>
60 64
     <p class="next">下一篇:{content:nextcontent}</p>

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

@@ -11,7 +11,19 @@
11 11
     </a>
12 12
 
13 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 27
 </div>
16 28
 <div class="fixed-nav-bg"> </div>
17 29
 <div class="fixed-nav">

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

@@ -2,8 +2,8 @@
2 2
 
3 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 7
         {/pboot:sql}
8 8
 
9 9
 

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

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

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

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

Loading…
Cancel
Save