新增页面导航更多列表
parent
24d865c60d
commit
966cb859e2
|
|
@ -46,16 +46,16 @@
|
|||
</div>
|
||||
|
||||
<div class="am-form-group">
|
||||
<label class="block">{{$data.home_site_desktop_icon.name}}<span class="am-form-group-label-tips">{{$data.home_site_desktop_icon.describe}}</span></label>
|
||||
<ul class="plug-file-upload-view home_site_desktop_icon-images-view" data-form-name="home_site_desktop_icon" data-max-number="1" data-delete="0" data-dialog-type="images">
|
||||
{{if !empty($data['home_site_desktop_icon']['value'])}}
|
||||
<label class="block">{{$data.home_site_logo_square.name}}<span class="am-form-group-label-tips">{{$data.home_site_logo_square.describe}}</span></label>
|
||||
<ul class="plug-file-upload-view home_site_logo_square-images-view" data-form-name="home_site_logo_square" data-max-number="1" data-delete="0" data-dialog-type="images">
|
||||
{{if !empty($data['home_site_logo_square']['value'])}}
|
||||
<li>
|
||||
<input type="text" name="home_site_desktop_icon" value="{{$data.home_site_desktop_icon.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_desktop_icon.value)}}" />
|
||||
<input type="text" name="home_site_logo_square" value="{{$data.home_site_logo_square.value}}" />
|
||||
<img src="{{:AttachmentPathViewHandle($data.home_site_logo_square.value)}}" />
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
<div class="plug-file-upload-submit" data-view-tag="ul.home_site_desktop_icon-images-view">+选择logo</div>
|
||||
<div class="plug-file-upload-submit" data-view-tag="ul.home_site_logo_square-images-view">+选择logo</div>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group">
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ use app\service\GoodsCommentsService;
|
|||
use app\service\ResourcesService;
|
||||
use app\service\GoodsFavorService;
|
||||
use app\service\GoodsBrowseService;
|
||||
use app\service\NavigationService;
|
||||
|
||||
/**
|
||||
* 商品
|
||||
|
|
@ -112,6 +113,9 @@ class Goods extends Common
|
|||
// 中间tabs导航
|
||||
$middle_tabs_nav = GoodsService::GoodsDetailMiddleTabsNavList($goods);
|
||||
|
||||
// 导航更多列表
|
||||
$nav_more_list = NavigationService::PageNavMoreList(['page'=>'goods']);
|
||||
|
||||
// 商品购买按钮列表
|
||||
$buy_button = GoodsService::GoodsBuyButtonList($goods);
|
||||
|
||||
|
|
@ -121,6 +125,7 @@ class Goods extends Common
|
|||
'common_cart_total' => BuyService::UserCartTotal(['user'=>$this->user]),
|
||||
'buy_button' => $buy_button,
|
||||
'middle_tabs_nav' => $middle_tabs_nav,
|
||||
'nav_more_list' => $nav_more_list,
|
||||
];
|
||||
$ret = SystemBaseService::DataReturn($result);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="{{:MyC('home_site_name')}}">
|
||||
<link rel="apple-touch-icon" href="{{:AttachmentPathViewHandle(MyC('home_site_desktop_icon'))}}">
|
||||
<link rel="apple-touch-icon-precomposed" href="{{:AttachmentPathViewHandle(MyC('home_site_desktop_icon'))}}">
|
||||
<link rel="apple-touch-icon" href="{{:AttachmentPathViewHandle(MyC('home_site_logo_square'))}}">
|
||||
<link rel="apple-touch-icon-precomposed" href="{{:AttachmentPathViewHandle(MyC('home_site_logo_square'))}}">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/lib/assets/css/amazeui.css?v={{:MyC('home_static_cache_version')}}" />
|
||||
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/lib/amazeui-switch/amazeui.switch.css?v={{:MyC('home_static_cache_version')}}" />
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class ConfigService
|
|||
public static $attachment_field_list = [
|
||||
'home_site_logo',
|
||||
'home_site_logo_wap',
|
||||
'home_site_desktop_icon',
|
||||
'home_site_logo_square',
|
||||
'common_customer_store_qrcode',
|
||||
'home_site_user_register_bg_images',
|
||||
'home_site_user_login_ad1_images',
|
||||
|
|
|
|||
|
|
@ -1085,5 +1085,59 @@ class NavigationService
|
|||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导航更多列表
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 1.0.0
|
||||
* @date 2019-03-15
|
||||
* @desc description
|
||||
* @param [array] $params [输入信息]
|
||||
*/
|
||||
public static function PageNavMoreList($params = [])
|
||||
{
|
||||
$data = [];
|
||||
if(!empty($params['page']))
|
||||
{
|
||||
switch($params['page'])
|
||||
{
|
||||
// 商品页面
|
||||
// icon 参考各终端
|
||||
// web http://amazeui.shopxo.net/css/icon
|
||||
// uniapp https://hellouniapp.dcloud.net.cn/pages/extUI/icons/icons
|
||||
case 'goods' :
|
||||
$data = [
|
||||
[
|
||||
'name' => '我的收藏',
|
||||
'url' => '/pages/user-favor/user-favor',
|
||||
'icon' => 'heart'
|
||||
],
|
||||
[
|
||||
'name' => '我浏览过',
|
||||
'url' => '/pages/user-goods-browse/user-goods-browse',
|
||||
'icon' => 'eye'
|
||||
],
|
||||
[
|
||||
'name' => '回到首页',
|
||||
'url' => '/pages/index/index',
|
||||
'icon' => 'home'
|
||||
]
|
||||
];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 导航更多信息钩子
|
||||
$hook_name = 'plugins_service_page_navigation_more_list_handle';
|
||||
MyEventTrigger($hook_name, [
|
||||
'hook_name' => $hook_name,
|
||||
'is_backend' => true,
|
||||
'params' => &$params,
|
||||
'data' => &$data,
|
||||
]);
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -96,7 +96,7 @@ class SystemBaseService
|
|||
'home_site_name' => MyC('home_site_name', null, true),
|
||||
'home_site_logo' => ResourcesService::AttachmentPathViewHandle(MyC('home_site_logo')),
|
||||
'home_site_logo_wap' => ResourcesService::AttachmentPathViewHandle(MyC('home_site_logo_wap')),
|
||||
'home_site_desktop_icon' => ResourcesService::AttachmentPathViewHandle(MyC('home_site_desktop_icon')),
|
||||
'home_site_logo_square' => ResourcesService::AttachmentPathViewHandle(MyC('home_site_logo_square')),
|
||||
'home_site_state' => (int) MyC('home_site_state', 0, true),
|
||||
'home_site_close_reason' => MyC('home_site_close_reason', null, true),
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue