From d33960859ed1b3cdbb00a1925b84e584516d9ea9 Mon Sep 17 00:00:00 2001 From: laurier Date: Fri, 26 Oct 2018 16:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E7=89=87=E5=BC=8F=E5=95=86=E5=BA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/theme/material/css/base.min.css | 48 ++++++++++++++++++++++++++ resources/views/material/user/shop.tpl | 33 +++++++++++++++--- 2 files changed, 76 insertions(+), 5 deletions(-) mode change 100644 => 100755 public/theme/material/css/base.min.css mode change 100644 => 100755 resources/views/material/user/shop.tpl diff --git a/public/theme/material/css/base.min.css b/public/theme/material/css/base.min.css old mode 100644 new mode 100755 index 4817cbb5..7a32d7f2 --- a/public/theme/material/css/base.min.css +++ b/public/theme/material/css/base.min.css @@ -6185,4 +6185,52 @@ html.no-touchevents .tile-action-show,html.no-touchevents .tile:hover .tile-acti transform: none; width: 240px } +} + +/* 卡片式商店样式 */ + +.shop-flex { + display: flex; + justify-content: space-between; + flex-wrap: wrap; +} + +.shop-flex .card { + width: 24%; + text-align: center; + min-height: 330px; +} + +.shop-btn,.shop-price,.shop-content { + margin-top: 2em; +} + +.shop-content { + font-size: 13px; +} + +.shop-name { + font-size: 20px; +} + +.shop-btn { + padding: 10px 2em; +} + +@media screen and (max-width: 1600px) { + .shop-flex .card { + width: 32%; + } +} + +@media screen and (max-width: 1440px) { + .shop-flex .card { + width: 48%; + } +} + +@media screen and (max-width: 715px) { + .shop-flex .card { + width: 100%; + } } \ No newline at end of file diff --git a/resources/views/material/user/shop.tpl b/resources/views/material/user/shop.tpl old mode 100644 new mode 100755 index 1ab7d3d8..e2b63d39 --- a/resources/views/material/user/shop.tpl +++ b/resources/views/material/user/shop.tpl @@ -29,10 +29,33 @@ - - - -
+ +
+ {$shops->render()} + {foreach $shops as $shop} +
+
+
+
{$shop->name}
+
{$shop->price} 元
+
+
添加流量 {$shop->bandwidth()} G
+
账号等级 {$shop->user_class()} 级
+
账号有效期 {$shop->expire()} 天
+
在 {$shop->reset_exp()} 天内,每 {$shop->reset()} 天重置流量为 {$shop->reset_value()} G
+
端口限速 {$shop->speedlimit()} Mbps
+
客户端限制 {$shop->connector()} 个
+
+ 购买 +
+
+
+ {/foreach} + {$shops->render()} +
+ + +