This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="empty" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<title>车辆线索进线</title>
</head>
<body>
<referenceContainer name="content">
<block class="Magento\Framework\View\Element\Template" cacheable="false" template="Stemcell_Customer::avatr/index.phtml"/>
<referenceContainer name="page.messages"/>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,24 @@
<?php /* @var $block \Magento\Framework\View\Element\Template */ ?>
<form action="<?= $block->escapeUrl($block->getUrl('commerce_customer/avatr/post')) ?>" method="post" enctype="multipart/form-data">
<?= $block->getBlockHtml('formkey') ?>
<div class="fields-group">
<label for="avatr">请上传:</label>
<input type="file" name="avatr" id="avatr" required accept=".xls,.xlsx" />
</div>
<div class="fields-group" style="display: none">
<label for="evn">环境:</label>
<select name="env" id="env">
<option value="prod">正式</option>
<!-- <option value="dev">测试</option>-->
</select>
</div>
<input type="submit" value="提交">
</form>
<style>
.fields-group{
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.fields-group select{width: auto}
</style>
@@ -0,0 +1,168 @@
<?php
use Magento\Framework\App\Action\Action;
/**
* @var $block \Stemcell\Customer\Block\Widget\Product\ProductsList
* @var $ajaxViewModel Amasty\JetTheme\ViewModel\Catalog\Ajax
* @var $escaper Magento\Framework\Escaper
*/
// phpcs:disable
$compareHelper = $this->helper(\Magento\Catalog\Helper\Product\Compare::class);
$wishlistHelper = $this->helper(\Magento\Wishlist\Helper\Data::class);
// phpcs:enable
$ajaxViewModel = $block->getAjaxViewModel();
$isAjaxAddToCartEnabled = $ajaxViewModel && $ajaxViewModel->isEnabledAjaxAddToCart();
?>
<?php if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())): ?>
<?php
$type = 'widget-product-grid';
$mode = 'grid';
$image = 'new_products_content_widget_grid';
$items = $block->getProductCollection()->getItems();
$showWishlist = true;
$showCompare = true;
$showCart = true;
$templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
$description = false;
?>
<div class="block am-widget <?= /* @noEscape */ $type ?>">
<div class="block-product-link amtheme-item-text">
<?php if ($block->getTitle()): ?>
<span class="block-title" style="margin-bottom:0px">
<?= $escaper->escapeHtml(__($block->getTitle())) ?>
</span>
<?php endif ?>
<?php if ($block->getLinkAttributes()): ?>
<span class="widget block block-product-link-inline">
<a href="<?= /* @noEscape */ $block->getLinkAttributes() ?>"><span><?= __('More') ?></span></a>
</span>
<?php endif ?>
</div>
<div class="block-content content">
<div class="products wrapper <?= /* @noEscape */ $mode ?> products-<?= /* @noEscape */ $mode ?>">
<ol class="products list items product-items amtheme-products-secondary -col-xl-4 -full-width">
<?php $iterator = 1; ?>
<?php foreach ($items as $_item): ?>
<?= /* @noEscape */ ($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?>
<div class="product-item-info ">
<div class="product-photo-wrapper">
<a href="<?= $escaper->escapeUrl($block->getProductUrl($_item)) ?>"
class="product photo product-item-photo"
title="<?= $escaper->escapeHtmlAttr($_item->getName()) ?>"
aria-label="<?= $escaper->escapeHtmlAttr($_item->getName()) ?>">
<?= /* @noEscape */ $block->getImage($_item, $image)->toHtml() ?>
</a>
</div>
<div class="product details product-item-details">
<span class="product name product-item-name">
<a title="<?= $escaper->escapeHtmlAttr($_item->getName()) ?>"
aria-label="<?= $escaper->escapeHtmlAttr($_item->getName()) ?>"
href="<?= $escaper->escapeUrl($block->getProductUrl($_item)) ?>"
class="product-item-link">
<?= $escaper->escapeHtml($_item->getName()) ?>
</a>
</span>
<?php if ($templateType): ?>
<?= /* @noEscape */ $block->getReviewsSummaryHtml($_item, $templateType) ?>
<?php endif; ?>
<div class="product-details-action">
<?= /* @noEscape */ $block->getProductPriceHtml($_item, $type) ?>
<?php if ($showWishlist || $showCompare): ?>
<div class="amtheme-icon-wrapper">
<?php if ($wishlistHelper->isAllow() && $showWishlist): ?>
<a href="#"
data-post='<?= /* @noEscape */ $block->getAddToWishlistParams($_item) ?>'
class="action towishlist amtheme-circle-icon"
title="<?= $escaper->escapeHtmlAttr(__('Add to Wishlist')) ?>"
aria-label="<?= $escaper->escapeHtmlAttr(__('Add to Wishlist')) ?>"
data-action="add-to-wishlist"
role="button">
<svg class="amtheme-icon -hover-bg">
<use xlink:href="#icon-wishlist" />
</svg>
</a>
<?php endif; ?>
<?php if ($block->getAddToCompareUrl() && $showCompare): ?>
<a href="#"
data-post='<?= /* @noEscape */ $compareHelper->getPostDataParams($_item) ?>'
class="action tocompare amtheme-circle-icon"
title="<?= $escaper->escapeHtmlAttr(__('Add to Compare')) ?>"
aria-label="<?= $escaper->escapeHtmlAttr(__('Add to Compare')) ?>"
data-action="add-to-compare"
role="button">
<svg class="amtheme-icon -hover-bg">
<use xlink:href="#icon-compare" />
</svg>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?= /* @noEscape */ $block->getProductDetailsHtml($_item) ?>
<?php if ($showCart): ?>
<div class="product actions product-item-actions">
<?php if ($_item->isSaleable()): ?>
<?php $postParams = $block->getAddToCartPostParams($_item); ?>
<?php
// phpcs:ignore
$postDataHelper = $this->helper(\Magento\Framework\Data\Helper\PostHelper::class);
$postData = $postDataHelper->getPostData($block->getAddToCartUrl($_item), ['product' => $_item->getEntityId()]);
?>
<form data-role="tocart-form"
data-product-sku="<?= $escaper->escapeHtmlAttr($_item->getSku()) ?>"
action="<?= isset($postParams['action']) ? $escaper->escapeUrl($postParams['action']) : $escaper->escapeUrl($block->getAddToCartUrl($_item)) ?>"
<?php if ($isAjaxAddToCartEnabled): ?>
data-amtheme-js="ajax-tocart"
<?php endif; ?>
method="post">
<input type="hidden" name="product" value="<?= $escaper->escapeHtmlAttr($postParams['data']['product']) ?>">
<input type="hidden" name="<?= /* @noEscape */ Action::PARAM_NAME_URL_ENCODED ?>" value="<?= /* @noEscape */ $postParams['data'][Action::PARAM_NAME_URL_ENCODED] ?>">
<?= $block->getBlockHtml('formkey') ?>
<button type="submit"
title="<?= $escaper->escapeHtmlAttr(__('Add to Cart')) ?>"
aria-label="<?= $escaper->escapeHtmlAttr(__('Add to Cart')) ?>"
class="action tocart primary">
<?= $escaper->escapeHtml(__('Add to Cart')) ?>
</button>
</form>
<?php else: ?>
<?php if ($_item->getIsSalable()): ?>
<div class="stock available"><?= $escaper->escapeHtml(__('In stock')) ?></div>
<?php else: ?>
<div class="stock unavailable"><?= $escaper->escapeHtml(__('Out of stock')) ?></div>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
<?= ($iterator == count($items) + 1) ? '</li>' : '' ?>
<?php endforeach ?>
</ol>
</div>
<?= $block->getPagerHtml() ?>
</div>
</div>
<?php endif;?>
<?php if ($isAjaxAddToCartEnabled): ?>
<script type="text/x-magento-init">
{
"[data-amtheme-js=ajax-tocart]": {
"amAjaxCart": {
"actionUrl": "<?= /* @noEscape */ $ajaxViewModel->getAjaxAddToCartUrl() ?>",
"classes":{
"addToCartButtonDisable": "disabled"
}
}
}
}
</script>
<?php endif;?>