update
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
import { getConfig, getExtra } from "../../../utils/config";
|
import { getConfig, getExtra } from "../../../utils/config";
|
||||||
import BaijiahaoLogo from '../../../public/template_2/baijiahao.svg'
|
import BaijiahaoLogo from '../../../public/template_2/baijiahao.svg'
|
||||||
import Toutiaohao from '../../../public/template_2/toutiaohao.svg'
|
import Toutiaohao from '../../../public/template_2/toutiaohao.svg'
|
||||||
|
import Douyin from '../../../public/template_2/douyin.svg'
|
||||||
import {
|
import {
|
||||||
TP2_COLUMN_NEWS,
|
TP2_COLUMN_NEWS,
|
||||||
TP2_COLUMN_NEWS_URL,
|
TP2_COLUMN_NEWS_URL,
|
||||||
@ -15,7 +16,7 @@ import {
|
|||||||
TP2_COLUMN_REFUND_URL
|
TP2_COLUMN_REFUND_URL
|
||||||
} from "../../../utils/const";
|
} from "../../../utils/const";
|
||||||
const config = getConfig(Astro)
|
const config = getConfig(Astro)
|
||||||
const extra = getExtra('')
|
const extra = getExtra(config.app_extra_tag)
|
||||||
const { path = [] } = Astro.props
|
const { path = [] } = Astro.props
|
||||||
---
|
---
|
||||||
<footer class="v4 n09-footer footer" data-component="n09-footer">
|
<footer class="v4 n09-footer footer" data-component="n09-footer">
|
||||||
@ -125,7 +126,7 @@ const { path = [] } = Astro.props
|
|||||||
|
|
||||||
<p class="contact__text">
|
<p class="contact__text">
|
||||||
<span>7*24小时服务热线</span>
|
<span>7*24小时服务热线</span>
|
||||||
<div style="font-size: 1.5rem;font-weight: bold;">
|
<div style="font-size: 1.5rem;font-weight: bold">
|
||||||
<a title="24小时服务热线" href="tel:8988888">888888</a>
|
<a title="24小时服务热线" href="tel:8988888">888888</a>
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
@ -147,6 +148,8 @@ const { path = [] } = Astro.props
|
|||||||
{
|
{
|
||||||
extra.gongzhonghao_offical.address ?
|
extra.gongzhonghao_offical.address ?
|
||||||
<li class="contact__social-item">
|
<li class="contact__social-item">
|
||||||
|
{extra.gongzhonghao_offical.name}
|
||||||
|
{extra.gongzhonghao_offical.address}
|
||||||
<a title={extra.gongzhonghao_offical.name} class="contact__social-link" href={extra.gongzhonghao_offical.address} target="_blank" rel="noreferrer">
|
<a title={extra.gongzhonghao_offical.name} class="contact__social-link" href={extra.gongzhonghao_offical.address} target="_blank" rel="noreferrer">
|
||||||
<span class="icon-lazy font-ico-weixin" data-name="font-ico-weixin"></span>
|
<span class="icon-lazy font-ico-weixin" data-name="font-ico-weixin"></span>
|
||||||
<span class="contact__social-qrcode"></span>
|
<span class="contact__social-qrcode"></span>
|
||||||
@ -154,7 +157,7 @@ const { path = [] } = Astro.props
|
|||||||
</li> : ''
|
</li> : ''
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
extra.baijiahao_offical.address ?
|
extra.baijiahao_offical.address.trim() ?
|
||||||
<li class="contact__social-item">
|
<li class="contact__social-item">
|
||||||
<a title={extra.baijiahao_offical.name} class="contact__social-link" href={extra.baijiahao_offical.address} target="_blank" rel="noreferrer">
|
<a title={extra.baijiahao_offical.name} class="contact__social-link" href={extra.baijiahao_offical.address} target="_blank" rel="noreferrer">
|
||||||
<BaijiahaoLogo class="icon-lazy" />
|
<BaijiahaoLogo class="icon-lazy" />
|
||||||
@ -172,8 +175,8 @@ const { path = [] } = Astro.props
|
|||||||
{
|
{
|
||||||
extra.douyin_offical.address ?
|
extra.douyin_offical.address ?
|
||||||
<li class="contact__social-item">
|
<li class="contact__social-item">
|
||||||
<a title={extra.toutiaohao_offical.name} class="contact__social-link" href={extra.toutiaohao_offical.address} target="_blank" rel="noreferrer">
|
<a title={extra.douyin_offical.name} class="contact__social-link" href={extra.douyin_offical.address} target="_blank" rel="noreferrer">
|
||||||
<Toutiaohao class="icon-lazy" />
|
<Douyin class="icon-lazy" />
|
||||||
</a>
|
</a>
|
||||||
</li> : ''
|
</li> : ''
|
||||||
}
|
}
|
||||||
@ -185,7 +188,7 @@ const { path = [] } = Astro.props
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="copyright col-xl-4 col-md-8">
|
<div class="copyright col-xl-4 col-md-8">
|
||||||
<small class="copyright__text">版权所有 © {config.app_company}
|
<small class="copyright__text">版权所有 © {config.app_company}
|
||||||
。保留一切权利。{config.app_biling}</small>
|
。保留一切权利。<a href={config.app_filing_url}>{config.app_filing}</a></small>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="bottom-links col-xl-5">
|
<!-- <div class="bottom-links col-xl-5">
|
||||||
<ul class="bottom-links__list">
|
<ul class="bottom-links__list">
|
||||||
@ -220,6 +223,11 @@ const { path = [] } = Astro.props
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #7f7f7f !important;
|
||||||
|
}
|
||||||
|
|
||||||
.footer-legals .row {
|
.footer-legals .row {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ export function getConfig(Astro: any):IWebsiteConfig
|
|||||||
// 取默认的配置
|
// 取默认的配置
|
||||||
export function getExtra(extraTag: string = '')
|
export function getExtra(extraTag: string = '')
|
||||||
{
|
{
|
||||||
|
console.log(extraTag)
|
||||||
if (extraTag == 'HONGTIXIANYUE') {
|
if (extraTag == 'HONGTIXIANYUE') {
|
||||||
return EXTRA_HONGTIXIANYUE;
|
return EXTRA_HONGTIXIANYUE;
|
||||||
} else if (extraTag == 'ZHISHIHUISHENG') {
|
} else if (extraTag == 'ZHISHIHUISHENG') {
|
||||||
|
@ -129,11 +129,11 @@ export const EXTRA_HONGTIXIANYUE = {
|
|||||||
name: '微博'
|
name: '微博'
|
||||||
},
|
},
|
||||||
gongzhonghao_offical: {
|
gongzhonghao_offical: {
|
||||||
address: 'https://www.weibo.com',
|
address: '',
|
||||||
name: '公众号'
|
name: '公众号'
|
||||||
},
|
},
|
||||||
baijiahao_offical: {
|
baijiahao_offical: {
|
||||||
address: 'https://www.weibo.com',
|
address: '',
|
||||||
name: '百家号'
|
name: '百家号'
|
||||||
},
|
},
|
||||||
toutiaohao_offical: {
|
toutiaohao_offical: {
|
||||||
@ -247,7 +247,7 @@ export const EXTRA_ZHISHIHUISHENG = {
|
|||||||
// app 下载地址
|
// app 下载地址
|
||||||
app_download: 'https://appgallery.huawei.com/app/C113905377',
|
app_download: 'https://appgallery.huawei.com/app/C113905377',
|
||||||
weibo_offical: {
|
weibo_offical: {
|
||||||
address: 'https://www.weibo.com',
|
address: '',
|
||||||
name: '微博'
|
name: '微博'
|
||||||
},
|
},
|
||||||
gongzhonghao_offical: {
|
gongzhonghao_offical: {
|
||||||
@ -349,8 +349,7 @@ export const EXTRA_ZHISHIHUISHENG = {
|
|||||||
contact_us: {
|
contact_us: {
|
||||||
title: '联系我们',
|
title: '联系我们',
|
||||||
telephone: [
|
telephone: [
|
||||||
{number: 888888, desc: '7*24小时 | 普通话全国热线'},
|
{number: 400-136-3116, desc: '7*24小时 | 普通话全国热线'},
|
||||||
{number: 666666, desc: '7*24小时 | 普通话全国热线'},
|
|
||||||
],
|
],
|
||||||
email: [
|
email: [
|
||||||
{address: 'admin@gmail.com'},
|
{address: 'admin@gmail.com'},
|
||||||
|
@ -33,7 +33,7 @@ export class JsonRpcClient {
|
|||||||
params,
|
params,
|
||||||
id: Date.now(),
|
id: Date.now(),
|
||||||
}
|
}
|
||||||
|
console.log(req)
|
||||||
|
|
||||||
const message = JSON.stringify(req) + '\n'
|
const message = JSON.stringify(req) + '\n'
|
||||||
|
|
||||||
|
@ -85,7 +85,8 @@ export interface IWebsiteConfig {
|
|||||||
app_favicon: string
|
app_favicon: string
|
||||||
app_copyright: string
|
app_copyright: string
|
||||||
app_icp: string
|
app_icp: string
|
||||||
app_biling: string
|
app_filing: string
|
||||||
|
app_filing_url: string
|
||||||
}
|
}
|
||||||
export async function websiteConfig(host:string):Promise<result<IWebsiteConfig>>{
|
export async function websiteConfig(host:string):Promise<result<IWebsiteConfig>>{
|
||||||
const client = getRpcClient()
|
const client = getRpcClient()
|
||||||
|
Reference in New Issue
Block a user