mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 03:48:47 +08:00
细节优化
This commit is contained in:
parent
908f9f54e6
commit
fdd54a668d
@ -116,7 +116,7 @@
|
||||
<ul>
|
||||
<li>
|
||||
<span>看看</span>
|
||||
<a href="{{if empty($user)}}javascript:;{{else /}}{{:MyUrl('index/userfavor/goods')}}{{/if}}" class="{{if empty($user)}}login-event{{/if}}">我的收藏夹</a>
|
||||
<a href="{{if empty($user)}}javascript:;{{else /}}{{:MyUrl('index/usergoodsfavor/index')}}{{/if}}" class="{{if empty($user)}}login-event{{/if}}">我的收藏夹</a>
|
||||
</li>
|
||||
<li>
|
||||
<span>看看</span>
|
||||
|
@ -13,6 +13,7 @@ namespace app\service;
|
||||
use think\Db;
|
||||
use app\service\ResourcesService;
|
||||
use app\service\UserService;
|
||||
use app\service\GoodsService;
|
||||
|
||||
/**
|
||||
* 商品浏览服务层
|
||||
@ -151,6 +152,12 @@ class GoodsBrowseService
|
||||
}
|
||||
}
|
||||
|
||||
// 无封面图片
|
||||
if(empty($v['images']))
|
||||
{
|
||||
$v['images'] = ResourcesService::AttachmentPathHandle(GoodsService::GoodsImagesCoverHandle($v['goods_id']));
|
||||
}
|
||||
|
||||
// 商品信息
|
||||
$v['images_old'] = $v['images'];
|
||||
$v['images'] = ResourcesService::AttachmentPathViewHandle($v['images']);
|
||||
|
@ -13,6 +13,7 @@ namespace app\service;
|
||||
use think\Db;
|
||||
use app\service\ResourcesService;
|
||||
use app\service\UserService;
|
||||
use app\service\GoodsService;
|
||||
|
||||
/**
|
||||
* 商品收藏服务层
|
||||
@ -214,6 +215,12 @@ class GoodsFavorService
|
||||
}
|
||||
}
|
||||
|
||||
// 无封面图片
|
||||
if(empty($v['images']))
|
||||
{
|
||||
$v['images'] = ResourcesService::AttachmentPathHandle(GoodsService::GoodsImagesCoverHandle($v['goods_id']));
|
||||
}
|
||||
|
||||
// 商品信息
|
||||
$v['images_old'] = $v['images'];
|
||||
$v['images'] = ResourcesService::AttachmentPathViewHandle($v['images']);
|
||||
|
@ -1054,7 +1054,7 @@ class NavigationService
|
||||
[
|
||||
'name' => '商品收藏',
|
||||
'value' => $user_goods_favor_count,
|
||||
'url' => MyUrl('index/userfavor/goods'),
|
||||
'url' => MyUrl('index/usergoodsfavor/index'),
|
||||
],
|
||||
[
|
||||
'name' => '我的足迹',
|
||||
|
Loading…
Reference in New Issue
Block a user