CT游船版块移动化优先

hotfix/paypal-note
赵鹏 3 years ago
parent d3788a40a0
commit a51c527f20

@ -1501,6 +1501,18 @@ class Information extends CI_Controller
}
//游船详细页
if ($meta_ct_page_type == "cruisedetails"){
$productType = $meta_ct_page_type;
$meta_ct_page_value = get_meta($information->ic_id, 'meta_ct_page_value');
if (!empty($meta_ct_page_value)) {
$productCode = $meta_ct_page_value;
}
$dataCruise["shipname"]=$productCode;
$template_curisedetails = $this->load->view($template_path . '-cruisedetails-form', $dataCruise, TRUE);
$data["template_curisedetails"] = $template_curisedetails;
}
//表单页
if (in_array($meta_ct_page_type, array("customize", "contactus", "pagewithform","tourdetail"))) {
$productType = $meta_ct_page_type;

@ -940,7 +940,7 @@
<a href="javascript:void(0);"
onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_ct_page_value', $('#meta_ct_page_value').val())"><i
class="text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd"></i></a>
<a href="javascript:void(0);" title="此属性用于对应上面那个页面类型的值。&#10 1.一日游首页录城市名称shanghai &#10 2.景点首页需要读取原子类录原信息ID &#10 3.产品详细页录对应的产品编码"><i
<a href="javascript:void(0);" title="此属性用于对应上面那个页面类型的值。&#10 1.一日游首页录城市名称shanghai &#10 2.景点首页需要读取原子类录原信息ID &#10 3.产品详细页录对应的产品编码 &#10 4.游船名称"><i
class="text-muted glyphicon glyphicon-question-sign"></i></a>
</label>
<input name="meta_ct_page_value" id="meta_ct_page_value" type="text"
@ -972,6 +972,32 @@
</div>
</div>
<div>
<div class="col-sm-12">
<label>游船前端数据生成
<a href="javascript:void(0);" title='1.所有游船总数据文件。2.单个游船生成对应数据文件。'><i class="text-muted glyphicon glyphicon-question-sign"></i></a>
</label>
<a href="https://www.chinatravel.com/guide.php/yangtze/createjs?allship=allship" target="_blank">1.点击生成游船总数据文件</a>&nbsp;&nbsp;<a href="javascript:;" id="js_creatSingeShip" onclick="creatSingeCruise()">2.点击生成当前页面游船数据文件</a>
<script>
function creatSingeCruise(){
let meta_ct_page_type = $("#meta_ct_page_type").val();
let meta_ct_page_value = $("#meta_ct_page_value").val();
if (meta_ct_page_type!="cruisedetails"){
alert("选择的页面类型不是游船详细页!");
return false;
}else if(meta_ct_page_value==""){
alert("游船名称不能为空!");
return false;
}else{
let cUrl = "http://202.103.68.104/guide.php/yangtze/createjs?shipname="+meta_ct_page_value;
window.open(cUrl,"生成游船数据文件");
}
}
</script>
</div>
</div>
<?php } ?>
<input type="hidden" name="ic_photo_width" id="ic_photo_width"

@ -0,0 +1,78 @@
<script id="curiseform" type="text/html">
<div class="topcruise-pice">price from <strong class="font30 orange" id="js_showprice">$0</strong> per person</div>
<div class="topcruise-list">
<span class="topcruise-type">Departures:</span>
<div id="get_form_cruiseinfo"></div>
</div>
<div class="topcruise-list">
<span class="topcruise-type">Room Types:</span>
<div id="get_form_RoomType"></div>
</div>
<div class="topcruise-list">
<span class="topcruise-type">Year:</span>
<div id="get_form_year"></div>
</div>
<div class="topcruise-list">
<span class="topcruise-type">Month:</span>
<div id="get_form_month"></div>
</div>
<div class="topcruise-list">
<span class="topcruise-type">Dates:</span>
<div id="get_form_days"></div>
</div>
<div class="topcruise-list">
<button class="btn btn-disabled" type="submit" id="btnCruise" data="">Inquiry <i aria-hidden="true" class="fa fa-angle-right"></i></button>
</div>
</script>
<script type="text/html" id="form_cruiseinfo">
{{ each CruiseInfo item }}
<div class="col-label">
<input name="cruiseinfo" type="radio" onchange="selectchange(this);" class="mgc" id="ci_{{item.CRI_SN}}" value="{{item.CRI_SN}}">
<label for="ci_{{item.CRI_SN}}">{{item.CRI_From}} - {{item.CRI_To}}</label>
</div>
{{ /each }}
</script>
<script type="text/html" id="form_RoomType">
{{ each RoomType item }}
<div class="col-label">
<input name="roomtype" type="radio" onchange="selectchange(this);" class="mgc" id="rt_{{item.CRT_SN}}" value="{{item.CRT2_RoomType}}">
<label for="rt_{{item.CRT_SN}}">{{item.CRT2_RoomType}}</label>
</div>
{{ /each }}
</script>
<script type="text/html" id="form_year">
{{ each yearList value i }}
<div class="col-label">
<input name="year" type="radio" onchange="selectchange(this);" class="mgc" id="y_{{value}}" value="{{value}}">
<label for="y_{{value}}">{{value}}</label>
</div>
{{ /each }}
</script>
<script type="text/html" id="form_month">
{{ each monthList item }}
<div class="col-label">
<input name="month" type="radio" onchange="selectchange(this);" class="mgc" id="m_{{ item.month}}" value="{{ item.month}}">
{{if item.show}}
<label for="m_{{item.month}}">{{item.monthEn}}</label>
{{else}}
<label for="" class="disable">{{item.monthEn}}</label>
{{/if}}
</div>
{{ /each }}
</script>
<script type="text/html" id="form_days">
{{ each DayList item }}
<div class="col-label">
<input name="days" type="radio" onchange="selectchange(this);" class="mgc" id="d_{{ item.StartDate }}" value="{{ item.StartDate }}">
<label for="d_{{ item.StartDate }}">{{ item.DateText }}</label>
</div>
{{ /each }}
</script>
<input type="hidden" name="jsShipName" id="jsShipName" value="<?php echo $shipname; ?>" />
<script type="text/javascript" src="/js/mobile-first/cruise-details.min.js" async defer></script>

@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta name="apple-mobile-web-app-title" content="<?php echo $TITLE ?>">
<?php if (in_array($productType,array("customize","contactus"))) { // 预订表单不显示 ?>
<?php if (in_array($productType,array("customize","contactus","cruiseform"))) { // 预订表单不显示 ?>
<meta name="robots" content="noindex,nofollow">
<?php } else { ?>
<meta name="keywords" content="<?php echo $KEYWORDS ?>">
@ -279,3 +279,5 @@ eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a
<!--@PASSPARAM@--><?php echo $passParam ?>
</body>
</html>
<?php if ($productType == "cruisedetails") { // 游船?>
<?php echo $template_curisedetails; } ?>

@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta name="apple-mobile-web-app-title" content="<?php echo $TITLE ?>">
<?php if (in_array($productType,array("customize","contactus"))) { // 预订表单不显示 ?>
<?php if (in_array($productType,array("customize","contactus","cruiseform"))) { // 预订表单不显示 ?>
<meta name="robots" content="noindex,nofollow">
<?php } else { ?>
<meta name="keywords" content="<?php echo $KEYWORDS ?>">
@ -274,3 +274,5 @@
<!--@PASSPARAM@--><?php echo $passParam ?>
</body>
</html>
<?php if ($productType == "cruisedetails") { // 游船?>
<?php echo $template_curisedetails; } ?>
Loading…
Cancel
Save