细节优化

This commit is contained in:
devil 2020-08-19 23:38:47 +08:00
parent 908f9f54e6
commit fdd54a668d
4 changed files with 16 additions and 2 deletions

View File

@ -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>

View File

@ -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']);

View File

@ -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']);

View File

@ -1054,7 +1054,7 @@ class NavigationService
[
'name' => '商品收藏',
'value' => $user_goods_favor_count,
'url' => MyUrl('index/userfavor/goods'),
'url' => MyUrl('index/usergoodsfavor/index'),
],
[
'name' => '我的足迹',