Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
0c3a51881236e61f11c6793cb46a151ee3043e52
1 parent
a1d6669b
修复限购商品分享闲情页显示的bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
0c3a518
...
...
@@ -4,6 +4,7 @@ namespace Product;
use
LibModels\Wap\Product\DetailData
;
use
Plugin\Helpers
;
use
Plugin\Images
;
/**
* 商品详情页模板相关的数据模型
...
...
@@ -771,7 +772,7 @@ class DetailModel
// 发售日期
$result
[
'releaseDate'
]
=
$product
[
'saleTime'
]
.
'发售'
;
// baner
$result
[
'banner'
]
=
$product
[
'defaultUrl'
]
;
$result
[
'banner'
]
=
Helpers
::
getImageUrl
(
$product
[
'defaultUrl'
],
750
,
''
)
;
$result
[
'description'
]
=
$product
[
'description'
];
// 附件
...
...
@@ -799,7 +800,7 @@ class DetailModel
switch
(
intval
(
$attachment
[
'attachType'
]))
{
case
1
:
// 大图文字
$result
[
'img'
]
=
array
(
'attachUrl'
=>
Helpers
::
getImageUrl
(
$attachment
[
'attachUrl'
],
290
,
200
),
'attachUrl'
=>
Helpers
::
getImageUrl
(
$attachment
[
'attachUrl'
],
750
,
''
),
'attachName'
=>
$attachment
[
'attachName'
],
'intro'
=>
$attachment
[
'intro'
],
'orderBy'
=>
$attachment
[
'orderBy'
]
...
...
@@ -809,7 +810,7 @@ class DetailModel
$result
[
'video'
]
=
array
(
'attachUrl'
=>
$attachment
[
'attachUrl'
],
'orderBy'
=>
$attachment
[
'orderBy'
],
'img'
=>
Helpers
::
getImageUrl
(
$attachment
[
'intro'
],
290
,
200
)
'img'
=>
Helpers
::
getImageUrl
(
$attachment
[
'intro'
],
750
,
''
)
);
break
;
case
3
:
// 文本类型
...
...
@@ -823,7 +824,7 @@ class DetailModel
}
if
(
count
(
$result
)
>
1
)
{
Helpers
::
sortArrByField
(
$result
,
'orderBy'
);
Helpers
::
sortArrByField
(
$result
,
'orderBy'
,
true
);
}
return
$result
;
...
...
Please
register
or
login
to post a comment