Authored by 郝肖肖

店铺品牌一览UI

... ... @@ -245,7 +245,12 @@ class ShopProcess
if (!empty(self::$appVersion)) {
$brand['url'] .= '?' . $appSuffix;
}
$brand['img'] = Images::getImageUrl($val['brandIco'], 640, 400);
if (strpos($val['brandIco'], 'imageView/') === false) {
$val['brandIco'] = $val['brandIco'] . '?imageView/2/w/{width}/h/{height}';
}
$brand['img'] = Images::getImageUrl($val['brandIco'], 140, 120);
$brand['brandName'] = $val['brandName'];
self::$shopData['brandList']['list'][] = $brand;
}
... ...
... ... @@ -158,14 +158,14 @@
.brand-img {
margin-left: 30px;
width: 30%;
width: 140px;
height: 150px;
overflow: hidden;
padding-bottom: 20px;
float: left;
p {
font-size: 25px;
font-size: 18px;
color: #b0b0b0;
padding-top: 10px;
height: 30px;
... ... @@ -175,7 +175,7 @@
}
img {
height: 70%;
height: 120px;
}
}
... ...