Showing
2 changed files
with
17 additions
and
2 deletions
1 | <div class="shopping-cart-good clearfix" data-id={{id}}> | 1 | <div class="shopping-cart-good clearfix" data-id={{id}}> |
2 | <span class="checkbox icon-cb-checked iconfont"></span> | 2 | <span class="checkbox icon-cb-checked iconfont"></span> |
3 | <div class="info"> | 3 | <div class="info"> |
4 | - <img class="thumb lazy" data-original={{thumb}}> | 4 | + |
5 | + <div class=""> | ||
6 | + <a class="" href="{{url}}"> | ||
7 | + <img class="thumb lazy" data-original="{{thumb}}"> | ||
8 | + </a> | ||
9 | + {{#if isGift}} | ||
10 | + <p class="few-tag">赠品</p> | ||
11 | + {{/if}} | ||
12 | + {{#if isAdvanceBuy}} | ||
13 | + <p class="few-tag">加价购</p> | ||
14 | + {{/if}} | ||
15 | + {{#if isSoldOut}} | ||
16 | + <p class="few-tag">失效</p> | ||
17 | + {{/if}} | ||
18 | + </div> | ||
19 | + | ||
5 | <div class="deps"> | 20 | <div class="deps"> |
6 | <p class="name row">{{name}}</p> | 21 | <p class="name row">{{name}}</p> |
7 | <p class="row"> | 22 | <p class="row"> |
@@ -25,7 +25,7 @@ class ShoppingCartController extends AbstractAction | @@ -25,7 +25,7 @@ class ShoppingCartController extends AbstractAction | ||
25 | 'shoppingCartPage' => true, | 25 | 'shoppingCartPage' => true, |
26 | 'shoppingCart' => CartModel::getCartData($uid, $shoppingKey) | 26 | 'shoppingCart' => CartModel::getCartData($uid, $shoppingKey) |
27 | ); | 27 | ); |
28 | - | 28 | + print_r($data); |
29 | // 渲染模板 | 29 | // 渲染模板 |
30 | $this->_view->display('index', $data); | 30 | $this->_view->display('index', $data); |
31 | } | 31 | } |
-
Please register or login to post a comment