diff --git a/public/qrcode.png b/public/qrcode.png new file mode 100644 index 00000000..f3b361b4 Binary files /dev/null and b/public/qrcode.png differ diff --git a/themes/commerce/components/Footer.js b/themes/commerce/components/Footer.js index a8efec25..d6aa5908 100644 --- a/themes/commerce/components/Footer.js +++ b/themes/commerce/components/Footer.js @@ -1,121 +1,223 @@ import { siteConfig } from '@/lib/config' import Link from 'next/link' +import CONFIG from '../config' /** * 页脚 * @param {*} param0 * @returns */ -const Footer = (props) => { +const Footer = props => { const d = new Date() const currentYear = d.getFullYear() const since = siteConfig('SINCE') - const copyrightDate = parseInt(since) < currentYear ? since + '-' + currentYear : currentYear + const copyrightDate = + parseInt(since) < currentYear ? since + '-' + currentYear : currentYear const { categoryOptions, customMenu } = props - return + ) } export default Footer diff --git a/themes/commerce/config.js b/themes/commerce/config.js index 8315ac97..4c3e872a 100644 --- a/themes/commerce/config.js +++ b/themes/commerce/config.js @@ -9,6 +9,10 @@ const CONFIG = { COMMERCE_TEXT_FOOTER_TITLE: 'Contact US', // COMMERCE主题页脚文案标题;按Shift+Enter键可以换行 COMMERCE_TEXT_FOOTER_MENU_1: 'Product Center', // COMMERCE主题页脚左侧菜单标题1 COMMERCE_TEXT_FOOTER_MENU_2: 'About US', // COMMERCE主题页脚左侧菜单标题2 + + COMMERCE_FOOTER_RIGHT_IMG_URL: null, // 显示页脚右侧的图片,通常放二维码 + COMMERCE_FOOTER_RIGHT_TEXT: null, // 页脚右侧图片下的文字描述 + COMMERCE_HOME_POSTS_COUNT: 9, // 首页展示商品数 COMMERCE_CONTACT_WHATSAPP_SHOW: true, // 是否展示whatsapp联系按钮 请配置 CONTACT_WHATSAPP COMMERCE_CONTACT_TELEGRAM_SHOW: true // 联系栏展示telegram按钮 请配置 CONTACT_TELEGRAM