init
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<?php if ($crumbs && is_array($crumbs)) : ?>
|
||||
<div class="breadcrumbs">
|
||||
<ul class="items">
|
||||
<?php foreach ($crumbs as $crumbName => $crumbInfo) : ?>
|
||||
<li class="item <?= $block->escapeHtmlAttr($crumbName) ?>">
|
||||
<?php if ($crumbInfo['link']) : ?>
|
||||
<a href="<?= $block->escapeUrl($crumbInfo['link']) ?>"
|
||||
title="<?= $block->escapeHtml($crumbInfo['title']) ?>">
|
||||
<?= $block->escapeHtml($crumbInfo['label']) ?>
|
||||
</a>
|
||||
<?php elseif ($crumbInfo['last']) : ?>
|
||||
<strong><?= $block->escapeHtml($crumbInfo['label']) ?></strong>
|
||||
<?php else : ?>
|
||||
<?= $block->escapeHtml($crumbInfo['label']) ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
+205
@@ -0,0 +1,205 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
|
||||
$customerSession = $objectManager->create('Magento\Customer\Model\Session');
|
||||
|
||||
$name = '';
|
||||
$email = '';
|
||||
$phone = '';
|
||||
$company = '';
|
||||
if ($customerSession->isLoggedIn()) {
|
||||
$name = $customerSession->getCustomer()->getName();
|
||||
$email = $customerSession->getCustomer()->getEmail();
|
||||
$phone = $customerSession->getCustomer()->getMobile();
|
||||
$company = $customerSession->getCustomer()->getPrimaryBillingAddress()->getCompany();
|
||||
}
|
||||
?>
|
||||
<div id="webinar-modal">
|
||||
<div class="modal-body-content">
|
||||
<h2><span>网络研讨会:优化类器官模型以更好地预测临床结果</span></h2>
|
||||
<p>
|
||||
使用类器官模型进行研究最有前途的方面之一是可以筛选来自个体患者组织样本的培养物,以更好地预测临床结果。 在本次网络研讨会中,Sylvia Boj 博士(HUB Organoids)和 Martin Stahl 博士(STEMCELL Technologies)讨论了在药物发现研究中使用类器官模型的产品、方案和检测方法,重点关注肠道和肝脏类器官。 首先,Boj 博士概述了 HUB 策划的源自患者的类器官模型,以及如何使用它们来预测胃肠道和肝脏药物引起的毒性。 随后,Stahl 博士描述了 IntestiCult™ 细胞培养应用在药物开发中的功能优势以及对细胞活力、增殖、上皮完整性和屏障功能的影响。
|
||||
</p>
|
||||
<div class="form-box">
|
||||
<p class="note">要观看网络研讨会,请填写表格,或者 <a href="/customer/account/login">登录您的账号</a>。</p>
|
||||
<form id="custom-form" method="post" action="#">
|
||||
<input type="hidden" name="from" value="网络研讨会:优化类器官模型以更好地预测临床结果">
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<input type="text" placeholder="姓名" value="<?= $name?>" id="first_name" name="first_name" class="input-text required-entry" />
|
||||
</div>
|
||||
<div class="control">
|
||||
<input type="email" id="email" name="email" value="<?= $email?>" maxlength="50" class="input-text required-entry validate-email" placeholder="邮箱">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<input type="text" id="phone" name="phone" value="<?= $phone?>" maxlength="255" class="input-text required-entry" placeholder="电话">
|
||||
</div>
|
||||
<div class="control">
|
||||
<input type="text" id="company" name="company" value="<?= $company?>" maxlength="255" class="input-text required-entry" placeholder="公司/机构">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="controls">
|
||||
<input type="checkbox" value="1" id="optininput" name="optin" class="validate-optin">
|
||||
<label for="optininput" class="optin-label">我同意接收来自STEMCELL的邮件订阅并可以随时取消订阅。</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button type="button" class="action submit primary">
|
||||
<span>观看视频</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="msg-notic">
|
||||
<p>提交此表格即表示您同意 STEMCELL Technologies Canada Inc. 及其子公司和附属公司(“STEMCELL”)收集和使用您的信息,并根据我们的隐私向您发送新闻通讯和电子邮件政策。 如果您有任何疑问,请联系我们。 您可以随时取消订阅或更改您的电子邮件首选项。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
require([
|
||||
'jquery',
|
||||
'Magento_Ui/js/modal/modal'
|
||||
], function($, modal){
|
||||
var options = {
|
||||
type: 'popup',
|
||||
responsive: true,
|
||||
clickableOverlay: false
|
||||
};
|
||||
var popup = modal(options, $('#webinar-modal'));
|
||||
|
||||
const hasSubmitInfo = localStorage.getItem('submitInfo');
|
||||
if(!hasSubmitInfo){
|
||||
$('#webinar-modal').modal('openModal');
|
||||
}
|
||||
|
||||
$('.actions-toolbar .submit').click(function(){
|
||||
const name = $('#first_name').val();
|
||||
const email = $('#email').val();
|
||||
const phone = $('#phone').val();
|
||||
const company = $('#company').val();
|
||||
|
||||
if(!name){
|
||||
alert('请输入您的姓名!');
|
||||
return false;
|
||||
}
|
||||
if(!email){
|
||||
alert('请输入您的邮箱!');
|
||||
return false;
|
||||
}
|
||||
if(!phone){
|
||||
alert('请输入您的电话!');
|
||||
return false;
|
||||
}
|
||||
if(!company){
|
||||
alert('请输入您的公司或机构名称!');
|
||||
return false;
|
||||
}
|
||||
if(!$('#optininput').prop('checked')){
|
||||
alert('请勾选并同意接收来自STEMCELL的邮件订阅并可以随时取消订阅!');
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: window.checkout.baseUrl + 'webinar/index/save',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {'name': name, 'email': email, 'mobile': phone, 'company':company},
|
||||
success: function (data) {
|
||||
//console.log(data);
|
||||
if(data.error){
|
||||
alert('您的信息提交失败!');
|
||||
} else {
|
||||
alert('谢谢,您的信息提交成功!');
|
||||
localStorage.setItem('submitInfo', 1);
|
||||
$('#webinar-modal').modal('closeModal');
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
alert('暂时无法提交保存信息!');
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.modals-wrapper .modal-popup.modal-slide .modal-inner-wrap {
|
||||
margin: 5rem auto;
|
||||
}
|
||||
.modals-wrapper .modal-popup .modal-inner-wrap {
|
||||
width: 94%;
|
||||
}
|
||||
.modals-wrapper .modal-slide .modal-content{
|
||||
padding: 0 2rem;
|
||||
}
|
||||
}
|
||||
.form-box {
|
||||
background: #f0f0eb;
|
||||
padding: 3%;
|
||||
font-size: 14px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.form-box .field {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.form-box .field .control {
|
||||
width: 48%;
|
||||
}
|
||||
|
||||
.form-box .note a {
|
||||
color: #ef8200;
|
||||
}
|
||||
|
||||
.modal-body-content h2{margin-top: 0;}
|
||||
|
||||
.modal-popup .modal-inner-wrap {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.modal-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.modal-body-content h2 span {
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.msg-notic p {
|
||||
font-size: 10px;
|
||||
line-height: 14px;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.modal-body-content .actions-toolbar .primary {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.duration {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
background: rgba(0, 0, 0, .3);
|
||||
font-size: 12px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 3px;
|
||||
color: #fff;
|
||||
}
|
||||
.modals-wrapper .modal-popup .action-close{display:none;}
|
||||
</style>
|
||||
@@ -0,0 +1,300 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<small class="copyright">
|
||||
<span><?= $block->escapeHtml($block->getCopyright()) ?></span>
|
||||
<?php echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('copyright_bottom')->toHtml();?>
|
||||
</small>
|
||||
|
||||
<div class="back_to_top" style="display: none">
|
||||
<i class="fa fa-angle-up"></i>
|
||||
</div>
|
||||
|
||||
<div class="wechat-qrcode-popup" id="modal-wechat-qrcode-content" style="display:none">
|
||||
<?php echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('wechat_qrcode_content')->toHtml();?>
|
||||
</div>
|
||||
|
||||
<!-- 智齿客服集成 -->
|
||||
<div class="zhichi-customer">
|
||||
<?php echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('zhichi_customer')->toHtml();?>
|
||||
</div>
|
||||
<!-- 智齿客服集成 -->
|
||||
|
||||
<script>
|
||||
require([
|
||||
'jquery',
|
||||
'Magento_Ui/js/modal/modal',
|
||||
'js/swiper-bundle.min'
|
||||
], function($, modal, Swiper){
|
||||
//关注微信二维码内容弹窗
|
||||
var options = {
|
||||
type: 'popup',
|
||||
responsive: true,
|
||||
innerScroll: true,
|
||||
modalClass: 'wechat-qrcode-modal'
|
||||
};
|
||||
|
||||
modal(options, $('#modal-wechat-qrcode-content'));
|
||||
$(".footer-contact-us .social-links ul li .weixin").on('click',function(){
|
||||
$("#modal-wechat-qrcode-content").modal("openModal");
|
||||
});
|
||||
|
||||
//back to top
|
||||
$('.back_to_top').click(function () {
|
||||
$('html,body').animate({scrollTop: 0},500);
|
||||
});
|
||||
|
||||
// 静态页面产品列表滚动
|
||||
var cmsProductSwiper = new Swiper('.comparison-block .iso-slider-container', {
|
||||
slidesPerView: 2,
|
||||
slidesPerGroup: 2,
|
||||
spaceBetween: 10,
|
||||
navigation: {
|
||||
nextEl: '.iso-slider-container .next',
|
||||
prevEl: '.iso-slider-container .prev',
|
||||
},
|
||||
breakpoints: {
|
||||
993: {
|
||||
slidesPerView: 3,
|
||||
slidesPerGroup: 3,
|
||||
spaceBetween: 20,
|
||||
}
|
||||
},
|
||||
watchOverflow: true,
|
||||
observer: true,
|
||||
observeParents: true
|
||||
});
|
||||
|
||||
$('.cms-page-view .iso-slider-container').each(function(){
|
||||
// 内容标题高度对齐
|
||||
let info1HeightArr = [];
|
||||
let info2HeightArr = [];
|
||||
let info3HeightArr = [];
|
||||
let info4HeightArr = [];
|
||||
let info5HeightArr = [];
|
||||
let info6HeightArr = [];
|
||||
let info7HeightArr = [];
|
||||
let info8HeightArr = [];
|
||||
const productsNum = $(this).find('.comparison-detail').length;
|
||||
if(productsNum<3){
|
||||
$(this).addClass('less-products');
|
||||
} else {
|
||||
$(this).removeClass('less-products');
|
||||
}
|
||||
$(this).find('.comparison-detail').each(function(){
|
||||
const info1Height = $(this).find('.comparison-info-sect:eq(0)').height();
|
||||
info1HeightArr.push(info1Height);
|
||||
const info2Height = $(this).find('.comparison-info-sect:eq(1)').height();
|
||||
info2HeightArr.push(info2Height);
|
||||
const info3Height = $(this).find('.comparison-info-sect:eq(2)').height();
|
||||
info3HeightArr.push(info3Height);
|
||||
const info4Height = $(this).find('.comparison-info-sect:eq(3)').height();
|
||||
info4HeightArr.push(info4Height);
|
||||
const info5Height = $(this).find('.comparison-info-sect:eq(4)').height();
|
||||
info5HeightArr.push(info5Height);
|
||||
const info6Height = $(this).find('.comparison-info-sect:eq(5)').height();
|
||||
info6HeightArr.push(info6Height);
|
||||
const info7Height = $(this).find('.comparison-info-sect:eq(6)').height();
|
||||
info7HeightArr.push(info7Height);
|
||||
const info8Height = $(this).find('.comparison-info-sect:eq(7)').height();
|
||||
info8HeightArr.push(info8Height);
|
||||
});
|
||||
if(info1HeightArr.length == productsNum){
|
||||
const info1MaxHeight = Math.max(...info1HeightArr);
|
||||
const info2MaxHeight = Math.max(...info2HeightArr);
|
||||
const info3MaxHeight = Math.max(...info3HeightArr);
|
||||
const info4MaxHeight = Math.max(...info4HeightArr);
|
||||
const info5MaxHeight = Math.max(...info5HeightArr);
|
||||
const info6MaxHeight = Math.max(...info6HeightArr);
|
||||
const info7MaxHeight = Math.max(...info7HeightArr);
|
||||
const info8MaxHeight = Math.max(...info8HeightArr);
|
||||
$(this).find('.comparison-detail').each(function(){
|
||||
$(this).find('.comparison-info-sect:eq(0)').height(info1MaxHeight);
|
||||
});
|
||||
$(this).find('.comparison-detail').each(function(){
|
||||
$(this).find('.comparison-info-sect:eq(1)').height(info2MaxHeight);
|
||||
});
|
||||
$(this).find('.comparison-detail').each(function(){
|
||||
$(this).find('.comparison-info-sect:eq(2)').height(info3MaxHeight);
|
||||
});
|
||||
$(this).find('.comparison-detail').each(function(){
|
||||
$(this).find('.comparison-info-sect:eq(3)').height(info4MaxHeight);
|
||||
});
|
||||
$(this).find('.comparison-detail').each(function(){
|
||||
$(this).find('.comparison-info-sect:eq(4)').height(info5MaxHeight);
|
||||
});
|
||||
$(this).find('.comparison-detail').each(function(){
|
||||
$(this).find('.comparison-info-sect:eq(5)').height(info6MaxHeight);
|
||||
});
|
||||
$(this).find('.comparison-detail').each(function(){
|
||||
$(this).find('.comparison-info-sect:eq(6)').height(info7MaxHeight);
|
||||
});
|
||||
$(this).find('.comparison-detail').each(function(){
|
||||
$(this).find('.comparison-info-sect:eq(7)').height(info8MaxHeight);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// 静态页面内产品展开关闭
|
||||
$('.expand-comparison').click(function(){
|
||||
$(this).removeClass('active');
|
||||
$(this).next().addClass('active');
|
||||
$(this).prev().height('auto');
|
||||
});
|
||||
$('.collapse-comparison').click(function(){
|
||||
$(this).removeClass('active');
|
||||
$(this).prev().addClass('active');
|
||||
const windowWidth = $(window).width();
|
||||
let pHeight = 295;
|
||||
if(windowWidth > 1374){
|
||||
pHeight = 295;
|
||||
} else{
|
||||
pHeight = 255;
|
||||
}
|
||||
$(this).prev().prev().height(pHeight);
|
||||
});
|
||||
|
||||
// 静态页面内问答展开关闭
|
||||
$('.faq .question').click(function(){
|
||||
$(this).toggleClass('active');
|
||||
$(this).next().slideToggle();
|
||||
});
|
||||
|
||||
// 查看更多展开
|
||||
$('.expand-more').click(function(){
|
||||
$(this).hide();
|
||||
$('.expand-content').show();
|
||||
$('.expand-less').show();
|
||||
});
|
||||
// 查看更少
|
||||
$('.expand-less').click(function(){
|
||||
$(this).hide();
|
||||
$('.expand-content').hide();
|
||||
$('.expand-more').show();
|
||||
});
|
||||
|
||||
// 实验室tab切换
|
||||
$('.customer-cms-page .content-tab li').click(function(){
|
||||
const divId = $(this).children('a').attr('ref');
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
$('.description .tab-content>div').removeClass('active');
|
||||
$(divId).addClass('active');
|
||||
});
|
||||
|
||||
// 左侧内容锚点点击和页面滚动切换
|
||||
$('.customer-cms-page .anchor-bar.section.content-anchor a').click(function(){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
});
|
||||
// 页面滚动到产品详情对应tab选中
|
||||
$(window).scroll(function () {
|
||||
let scrolledTop = $(document).scrollTop();
|
||||
const lefttab2toTop = $('#award').html() ? $('#award').offset().top - 80 : '';
|
||||
const lefttab3toTop = $('#featuredproducts').html() ? $('#featuredproducts').offset().top - 80 : '';
|
||||
const lefttab4toTop = $('#wallchart').html() ? $('#wallchart').offset().top - 80 : '';
|
||||
const lefttab5toTop = $('#podcast').html() ? $('#podcast').offset().top - 80 : '';
|
||||
const lefttab6toTop = $('#showcases').html() ? $('#showcases').offset().top - 80 : '';
|
||||
const lefttab7toTop = $('#stemdiffexplorer').html() ? $('#stemdiffexplorer').offset().top - 80 : '';
|
||||
const lefttab8toTop = $('#cellquality').html() ? $('#cellquality').offset().top - 80 : '';
|
||||
const lefttab9toTop = $('#support').html() ? $('#support').offset().top - 80 : '';
|
||||
const lefttab10toTop = $('#models').html() ? $('#models').offset().top - 80 : '';
|
||||
const lefttab11toTop = $('#translate').html() ? $('#translate').offset().top - 80 : '';
|
||||
const lefttab12toTop = $('#organoidquiz').html() ? $('#organoidquiz').offset().top - 80 : '';
|
||||
const lefttab13toTop = $('#collateral').html() ? $('#collateral').offset().top - 80 : '';
|
||||
if(scrolledTop < lefttab2toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#schedule'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab2toTop && scrolledTop < lefttab3toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#award'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab3toTop && scrolledTop < lefttab4toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#featuredproducts'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab4toTop && scrolledTop < lefttab5toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#wallchart'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab5toTop && scrolledTop < lefttab6toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#podcast'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab6toTop && scrolledTop < lefttab7toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#showcases'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab7toTop && scrolledTop < lefttab8toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#stemdiffexplorer'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab8toTop && scrolledTop < lefttab9toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#cellquality'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab9toTop && scrolledTop < lefttab10toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#support'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab10toTop && scrolledTop < lefttab11toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#models'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab11toTop && scrolledTop < lefttab12toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#translate'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab12toTop && scrolledTop < lefttab13toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#organoidquiz'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
} else if(scrolledTop >= lefttab13toTop){
|
||||
$('.anchor-bar.section.content-anchor a').each(function(){
|
||||
const tabId = $(this).attr('href');
|
||||
if(tabId == '#collateral'){
|
||||
$(this).addClass('active').siblings().removeClass('active');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<div class="footer-container">
|
||||
<div class="footer">
|
||||
<?= $block->getChildHtml() ?>
|
||||
<p class="bugs"><?= $block->escapeHtml(__('Help Us Keep Magento Healthy')) ?> - <a
|
||||
href="http://www.magentocommerce.com/bug-tracking"
|
||||
target="_blank"><strong><?= $block->escapeHtml(__('Report All Bugs')) ?></strong></a>
|
||||
</p>
|
||||
<address><?= $block->escapeHtml($block->getCopyright()) ?></address>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var \Magento\Theme\Block\Html\Header $block
|
||||
* @var \Magento\Framework\Escaper $escaper
|
||||
*/
|
||||
$welcomeMessage = $block->getWelcome();
|
||||
?>
|
||||
<?php if ($block->getShowPart() == 'welcome'): ?>
|
||||
<li class="greet welcome" data-bind="scope: 'customer'">
|
||||
<!-- ko if: customer().fullname -->
|
||||
<span class="logged-in"
|
||||
data-bind="text: new String('<?= $escaper->escapeHtml(__('Welcome, %1!', '%1')) ?>').
|
||||
replace('%1', customer().fullname)">
|
||||
</span>
|
||||
<!-- /ko -->
|
||||
<!-- ko ifnot: customer().fullname -->
|
||||
<span class="not-logged-in"
|
||||
data-bind="text: '<?= $escaper->escapeHtml($welcomeMessage) ?>'"></span>
|
||||
<?= $block->getBlockHtml('header.additional') ?>
|
||||
<!-- /ko -->
|
||||
</li>
|
||||
<?php // phpcs:ignore Magento2.Legacy.PhtmlTemplate ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"*": {
|
||||
"Magento_Ui/js/core/app": {
|
||||
"components": {
|
||||
"customer": {
|
||||
"component": "Magento_Customer/js/view/customer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php elseif ($block->getShowPart() == 'other'): ?>
|
||||
<?= $block->getChildHtml() ?>
|
||||
<?php endif ?>
|
||||
<a href="/immunocult-xf.html">STEMCELL重磅推出可用于T细胞扩增的cGMP培养基,点击这里查看相关产品 ></a>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var \Magento\Theme\Block\Html\Header\Logo $block
|
||||
*/
|
||||
$storeName = $block->getThemeName() ? $block->getThemeName() : $block->getLogoAlt();
|
||||
/**
|
||||
* @var \Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolverInterface|null $logoSizeResolver
|
||||
*/
|
||||
$logoSizeResolver = $block->getLogoSizeResolver();
|
||||
$logoWidth = $logoSizeResolver !== null && $logoSizeResolver->getWidth()
|
||||
? $logoSizeResolver->getWidth()
|
||||
: $block->getLogoWidth();
|
||||
$logoHeight = $logoSizeResolver !== null && $logoSizeResolver->getHeight()
|
||||
? $logoSizeResolver->getHeight()
|
||||
: $block->getLogoHeight();
|
||||
?>
|
||||
<span data-action="toggle-nav" class="action nav-toggle"><span><?= $block->escapeHtml(__('Toggle Nav')) ?></span></span>
|
||||
<a
|
||||
class="logo"
|
||||
href="<?= $block->escapeUrl($block->getUrl('')) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($storeName) ?>"
|
||||
aria-label="store logo">
|
||||
<img src="<?= $block->escapeUrl($block->getLogoSrc()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($block->getLogoAlt()) ?>"
|
||||
alt="<?= $block->escapeHtmlAttr($block->getLogoAlt()) ?>"
|
||||
<?= $logoWidth ? 'width="' . $block->escapeHtmlAttr($logoWidth) . '"' : '' ?>
|
||||
<?= $logoHeight ? 'height="' . $block->escapeHtmlAttr($logoHeight) . '"' : '' ?>
|
||||
/>
|
||||
</a>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<div data-placeholder="messages"></div>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var $block \Magento\Theme\Block\Html\Notices
|
||||
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
|
||||
*/
|
||||
?>
|
||||
<?php if ($block->displayNoscriptNotice()): ?>
|
||||
<noscript>
|
||||
<div class="message global noscript">
|
||||
<div class="content">
|
||||
<p>
|
||||
<strong><?= $block->escapeHtml(__('JavaScript seems to be disabled in your browser.')) ?></strong>
|
||||
<span>
|
||||
<?= $block->escapeHtml(
|
||||
__('For the best experience on our site, be sure to turn on Javascript in your browser.')
|
||||
) ?>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
<?php endif; ?>
|
||||
<?php if ($block->displayNoLocalStorageNotice()): ?>
|
||||
<div class="notice global site local_storage">
|
||||
<div class="content">
|
||||
<p>
|
||||
<strong><?= $block->escapeHtml(__('Local Storage seems to be disabled in your browser.')) ?></strong>
|
||||
<br />
|
||||
<?= $block->escapeHtml(
|
||||
__('For the best experience on our site, be sure to turn on Local Storage in your browser.')
|
||||
) ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag('display: none;', 'div.notice.global.site.local_storage') ?>
|
||||
|
||||
<?php $scriptString = <<<script
|
||||
|
||||
require(['jquery'], function(jQuery){
|
||||
|
||||
// <![CDATA[
|
||||
(function($) {
|
||||
var test = 'test';
|
||||
try {
|
||||
localStorage.setItem(test, test);
|
||||
localStorage.removeItem(test);
|
||||
} catch(e) {
|
||||
$(".notice.global.site.local_storage").show();
|
||||
}
|
||||
})(jQuery);
|
||||
// ]]>
|
||||
|
||||
});
|
||||
|
||||
script;
|
||||
?>
|
||||
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($block->displayDemoNotice()): ?>
|
||||
<div class="message global demo">
|
||||
<div class="content">
|
||||
<p><?= $block->escapeHtml(__('This is a demo store. No orders will be fulfilled.')) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Pager template
|
||||
*
|
||||
* @var \Magento\Theme\Block\Html\Pager $block
|
||||
* @var \Magento\Framework\Escaper $escaper
|
||||
* @var \Magento\Framework\Locale\LocaleFormatter $localeFormatter
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php if ($block->getCollection()->getSize()): ?>
|
||||
|
||||
<?php if ($block->getUseContainer()): ?>
|
||||
<div class="pager">
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($block->getShowAmounts()): ?>
|
||||
<p class="toolbar-amount">
|
||||
<span class="toolbar-number">
|
||||
<?php if ($block->getLastPageNum()>1): ?>
|
||||
<?= $block->escapeHtml(
|
||||
__(
|
||||
'Items %1 to %2 of %3 total',
|
||||
$localeFormatter->formatNumber($block->getFirstNum()),
|
||||
$localeFormatter->formatNumber($block->getLastNum()),
|
||||
$localeFormatter->formatNumber($block->getTotalNum())
|
||||
)
|
||||
) ?>
|
||||
<?php elseif ($block->getTotalNum() == 1): ?>
|
||||
<?= $block->escapeHtml(__('%1 Item', $localeFormatter->formatNumber($block->getTotalNum()))) ?>
|
||||
<?php else: ?>
|
||||
<?= $block->escapeHtml(__('%1 Item(s)', $localeFormatter->formatNumber($block->getTotalNum()))) ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($block->getLastPageNum()>1): ?>
|
||||
<div class="pages">
|
||||
<strong class="label pages-label" id="paging-label"><?= $block->escapeHtml(__('Page')) ?></strong>
|
||||
<ul class="items pages-items" aria-labelledby="paging-label">
|
||||
<?php if (!$block->isFirstPage()): ?>
|
||||
<li class="pages-item-previous">
|
||||
<?php $text = $block->getAnchorTextForPrevious() ? $block->getAnchorTextForPrevious() : '';?>
|
||||
<a class="<?= $block->escapeHtmlAttr($text ? 'link ' : 'action ') ?> previous"
|
||||
href="<?= $block->escapeUrl($block->getPreviousPageUrl()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($text ? $text : __('Previous')) ?>">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($text ? $text : __('Previous')) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if ($block->canShowFirst()): ?>
|
||||
<li class="item">
|
||||
<a class="page first" href="<?= $block->escapeUrl($block->getFirstPageUrl()) ?>">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($localeFormatter->formatNumber(1)) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if ($block->canShowPreviousJump()): ?>
|
||||
<li class="item">
|
||||
<a class="page previous jump"
|
||||
title=""
|
||||
aria-label="<?= $escaper->escapeHtmlAttr(__(
|
||||
'Skip to page %1',
|
||||
$localeFormatter->formatNumber($block->getPreviousJumpPage())
|
||||
)) ?>"
|
||||
href="<?= $block->escapeUrl($block->getPreviousJumpUrl()) ?>">
|
||||
<span>...</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php foreach ($block->getFramePages() as $_page): ?>
|
||||
<?php if ($block->isPageCurrent($_page)): ?>
|
||||
<li class="item current">
|
||||
<strong class="page">
|
||||
<span class="label"><?= $block->escapeHtml(__('You\'re currently reading page')) ?></span>
|
||||
<span><?= $block->escapeHtml($localeFormatter->formatNumber($_page)) ?></span>
|
||||
</strong>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="item">
|
||||
<a href="<?= $block->escapeUrl($block->getPageUrl($_page)) ?>" class="page">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($localeFormatter->formatNumber($_page)) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
|
||||
<?php if ($block->canShowNextJump()): ?>
|
||||
<li class="item">
|
||||
<a class="page next jump"
|
||||
title=""
|
||||
aria-label="<?= $escaper->escapeHtmlAttr(__(
|
||||
'Skip to page %1',
|
||||
$localeFormatter->formatNumber($block->getNextJumpPage())
|
||||
)) ?>"
|
||||
href="<?= $block->escapeUrl($block->getNextJumpUrl()) ?>">
|
||||
<span>...</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if ($block->canShowLast()): ?>
|
||||
<li class="item">
|
||||
<a class="page last" href="<?= $block->escapeUrl($block->getLastPageUrl()) ?>">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($localeFormatter->formatNumber($block->getLastPageNum())) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if (!$block->isLastPage()): ?>
|
||||
<li class="pages-item-next">
|
||||
<?php $text = $block->getAnchorTextForNext() ? $block->getAnchorTextForNext() : '';?>
|
||||
<a class="<?= /* @noEscape */ $text ? 'link ' : 'action ' ?> next"
|
||||
href="<?= $block->escapeUrl($block->getNextPageUrl()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($text ? $text : __('Next')) ?>">
|
||||
<span class="label"><?= $block->escapeHtml(__('Page')) ?></span>
|
||||
<span><?= $block->escapeHtml($text ? $text : __('Next')) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($block->isShowPerPage()): ?>
|
||||
<div class="limiter">
|
||||
<strong class="limiter-label"><?= $block->escapeHtml(__('Show')) ?></strong>
|
||||
<select id="limiter" data-mage-init='{"redirectUrl": {"event":"change"}}' class="limiter-options">
|
||||
<?php foreach ($block->getAvailableLimit() as $_key => $_limit): ?>
|
||||
<option value="<?= $block->escapeUrl($block->getLimitUrl($_key)) ?>"
|
||||
<?php if ($block->isLimitCurrent($_key)): ?>
|
||||
selected="selected"<?php endif ?>>
|
||||
<?= $block->escapeHtml($localeFormatter->formatNumber((int) $_limit)) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<span class="limiter-text"><?= $block->escapeHtml(__('per page')) ?></span>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($block->getUseContainer()): ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* General template for displaying group of blocks divided into sections
|
||||
*/
|
||||
|
||||
$group = $block->getGroupName();
|
||||
$groupCss = $block->getGroupCss();
|
||||
?>
|
||||
|
||||
<?php if ($detailedInfoGroup = $block->getGroupChildNames($group)):?>
|
||||
<div class="sections <?= $block->escapeHtmlAttr($groupCss) ?>">
|
||||
<div class="navgation-mobile-menus">
|
||||
<?php echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('mobile-menus')->toHtml();?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<script>
|
||||
require([
|
||||
'jquery',
|
||||
'js/swiper-bundle.min'
|
||||
], function($, Swiper){
|
||||
// 手机版菜单导航一级点击展开
|
||||
$('.navgation-mobile-menus ul li a.level0').click(function(){
|
||||
$(this).parent().toggleClass('active');
|
||||
$(this).next().slideToggle();
|
||||
});
|
||||
// 手机版菜单导航二级点击展开
|
||||
$('.navgation-mobile-menus ul li a.level1').click(function(){
|
||||
$(this).parent().toggleClass('active');
|
||||
$(this).next().slideToggle();
|
||||
});
|
||||
|
||||
// 手机版首页关于我们内容滚动
|
||||
var homeAboutUsSwiper = new Swiper('.home-aboutus-slider', {
|
||||
slidesPerView: 1,
|
||||
grid: {
|
||||
fill: 'row',
|
||||
rows: 1,
|
||||
},
|
||||
breakpoints: {
|
||||
993: {
|
||||
slidesPerView: 2,
|
||||
grid: {
|
||||
rows: 2,
|
||||
},
|
||||
}
|
||||
},
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
clickable: true
|
||||
},
|
||||
watchOverflow: true,
|
||||
observer: true,
|
||||
observeParents: true
|
||||
});
|
||||
|
||||
// header滚动显示在顶部
|
||||
$(window).scroll(function () {
|
||||
let distanceY = window.pageYOffset || document.documentElement.scrollTop;
|
||||
|
||||
// header menu
|
||||
if($(this).scrollTop() > 150){
|
||||
$('.page-header,body').addClass('sticky');
|
||||
}else if($(this).scrollTop() < 40){
|
||||
$('.page-header,body').removeClass('sticky');
|
||||
}
|
||||
|
||||
// back to top
|
||||
if (distanceY > 500) {
|
||||
$(".back_to_top").fadeIn();
|
||||
} else {
|
||||
$(".back_to_top").fadeOut();
|
||||
}
|
||||
});
|
||||
|
||||
$('.navigation .level0.last a').attr('href','/about-us');
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @var $block \Magento\Theme\Block\Html\Title
|
||||
*/
|
||||
$cssClass = $block->getCssClass() ? ' ' . $block->getCssClass() : '';
|
||||
$titleHtml = '';
|
||||
if (trim($block->getPageHeading())) {
|
||||
$titleHtml = '<span class="base" data-ui-id="page-title-wrapper" '
|
||||
. $block->getAddBaseAttribute()
|
||||
. '>'
|
||||
. $block->escapeHtml($block->getPageHeading())
|
||||
. '</span>';
|
||||
}
|
||||
?>
|
||||
<?php if ($titleHtml) : ?>
|
||||
<div class="page-title-wrapper<?= $block->escapeHtmlAttr($cssClass) ?>">
|
||||
<h1 class="page-title"
|
||||
<?php if ($block->getId()) : ?> id="<?= $block->escapeHtmlAttr($block->getId()) ?>" <?php endif; ?>
|
||||
<?php if ($block->getAddBaseAttributeAria()) : ?>
|
||||
aria-labelledby="<?= $block->escapeHtmlAttr($block->getAddBaseAttributeAria()) ?>"
|
||||
<?php endif; ?>>
|
||||
<?= /* @noEscape */ $titleHtml ?>
|
||||
</h1>
|
||||
<?= $block->getChildHtml() ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Top menu for store
|
||||
*
|
||||
* @var $block \Magento\Theme\Block\Html\Topmenu
|
||||
*/
|
||||
|
||||
$columnsLimit = $block->getColumnsLimit() ?: 0;
|
||||
$_menuHtml = $block->getHtml('level-top', 'submenu', $columnsLimit)
|
||||
?>
|
||||
|
||||
<nav class="navigation" data-action="navigation">
|
||||
<ul data-mage-init='{"menu":{"responsive":true, "expanded":true, "position":{"my":"left top","at":"left bottom"}}}'>
|
||||
<?= /* @noEscape */ $_menuHtml?>
|
||||
<?= $block->getChildHtml() ?>
|
||||
</ul>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user