123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
-
- $doc_aid = $aid;
- $route_param = request()->route();
- $tid = $route_param['tid']?(int)$route_param['tid']:0;
- $aid = $route_param['aid']?(int)$route_param['aid']:0;
- $tagid = $route_param['tagid']?(int)$route_param['tagid']:0;
- $is_mobile = isMobile();
- $web_domain = request()->domain();
- $web_url = request()->url();
-
- //var_dump($eyou['field']);
- //var_dump($route_param);
-
- $area_id = 0;
- $area_name = '';
- $areaname = (int)$route_param['areaname'];
-
-
- $number = $aid;
-
- $tgid = $eyou['field']['product_tag_id'];
- ?>
-
-
- {eyou:sql sql="select id,aid,number from ey_seo_number where type=10 and aid=$tgid" cachetime='3600' empty=''}
- {eyou:php}
- $tag_number = $field['number'];
- {/eyou:php}
- {/eyou:sql}
-
-
- {eyou:if condition='($areaname === 0)'}
-
-
- <?php
- $area_domain = $route_param['areaname'];
- $area_id = 0;
- $sql = "SELECT id,name,domain FROM ey_citysite WHERE domain = '".$area_domain."'";
- //echo $sql;
- ?>
-
- {eyou:sql sql='$sql' cachetime='3600' id='area'}
- {eyou:php}
- $area_id = ''.$area['id'].'';
- $area_name = ''.$area['name'].'';
- {/eyou:php}
- {/eyou:sql}
-
-
- {/eyou:if}
|