mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 11:58:41 +08:00
增加联系方式开启开关
This commit is contained in:
parent
9815f98ff9
commit
ee6b90d18f
@ -6,6 +6,13 @@
|
|||||||
<fieldset class="layui-elem-field layui-field-title">
|
<fieldset class="layui-elem-field layui-field-title">
|
||||||
<legend>联系方式</legend>
|
<legend>联系方式</legend>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">开启服务</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="radio" name="enabled" value="1" title="是" {% if contact.enabled == 1 %}checked="checked"{% endif %}>
|
||||||
|
<input type="radio" name="enabled" value="0" title="否" {% if contact.enabled == 0 %}checked="checked"{% endif %}>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">微信二维码</label>
|
<label class="layui-form-label">微信二维码</label>
|
||||||
<div class="layui-inline" style="width:40%;">
|
<div class="layui-inline" style="width:40%;">
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
<a href="{{ site_info.police_link }}" target="_blank">{{ site_info.police_sn }}</a>
|
<a href="{{ site_info.police_link }}" target="_blank">{{ site_info.police_sn }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
{% if contact_info.enabled == 1 %}
|
||||||
<div class="row contact">
|
<div class="row contact">
|
||||||
{% if contact_info.qq %}
|
{% if contact_info.qq %}
|
||||||
{% set link_url = 'https://wpa.qq.com/msgrd?v=3&uin=%s&site=qq&menu=yes'|format(contact_info.qq) %}
|
{% set link_url = 'https://wpa.qq.com/msgrd?v=3&uin=%s&site=qq&menu=yes'|format(contact_info.qq) %}
|
||||||
@ -47,4 +48,5 @@
|
|||||||
<a class="location" href="{{ link_url }}" title="联系地址:{{ contact_info.address }}"><span class="iconfont icon-location"></span></a>
|
<a class="location" href="{{ link_url }}" title="联系地址:{{ contact_info.address }}"><span class="iconfont icon-location"></span></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
@ -9,6 +9,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
window.contact = {
|
window.contact = {
|
||||||
|
enabled: '{{ contact_info.enabled }}',
|
||||||
qq: '{{ contact_info.qq }}',
|
qq: '{{ contact_info.qq }}',
|
||||||
wechat: '{{ contact_info.wechat }}',
|
wechat: '{{ contact_info.wechat }}',
|
||||||
toutiao: '{{ contact_info.toutiao }}',
|
toutiao: '{{ contact_info.toutiao }}',
|
||||||
|
@ -18,6 +18,11 @@ final class V20210820064755 extends AbstractMigration
|
|||||||
protected function handleContactSetting()
|
protected function handleContactSetting()
|
||||||
{
|
{
|
||||||
$rows = [
|
$rows = [
|
||||||
|
[
|
||||||
|
'section' => 'contact',
|
||||||
|
'item_key' => 'enabled',
|
||||||
|
'item_value' => '0',
|
||||||
|
],
|
||||||
[
|
[
|
||||||
'section' => 'contact',
|
'section' => 'contact',
|
||||||
'item_key' => 'qq',
|
'item_key' => 'qq',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user