From be84a8f6651e9aa46be7fd857a4074cd865c8b7d Mon Sep 17 00:00:00 2001 From: ycc Date: Mon, 19 Apr 2021 14:42:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E7=BA=BF=E4=BF=A1=E6=81=AF=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 3 + application/views/mobile_first/ah-next.php | 24 +- application/views/mobile_first/ah-pc.php | 13 +- application/views/mobile_first/ah.php | 599 +++++++++------------ 4 files changed, 288 insertions(+), 351 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 6d5f4426..acf648ed 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1110,6 +1110,9 @@ class Information extends CI_Controller $exclude_ids[] = $data->is_id; //读取附加移动端图片 $data->mobile_photo=get_meta($data->ic_id, 'meta_addon_picture_mobile'); + if(empty($data->mobile_photo)){ + $data->mobile_photo='https://data.asiahighlights.com/image/travel-guide/thailand/info-template-recommended.jpg'; + } } return array($recommand->ir_name => $data); } diff --git a/application/views/mobile_first/ah-next.php b/application/views/mobile_first/ah-next.php index 3dd24a89..eaeae07c 100644 --- a/application/views/mobile_first/ah-next.php +++ b/application/views/mobile_first/ah-next.php @@ -7,7 +7,8 @@
- <?php echo $recommands['Tour A']->ic_title; ?>
@@ -19,7 +20,8 @@
- <?php echo $recommands['Tour B']->ic_title; ?>
@@ -31,7 +33,8 @@
- <?php echo $recommands['Tour C']->ic_title; ?>
@@ -43,7 +46,8 @@
- <?php echo $recommands['Tour D']->ic_title; ?>
@@ -60,7 +64,8 @@