提交 fdd54a66 编写于 作者: D devil

细节优化

上级 908f9f54
......@@ -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' => '我的足迹',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册