Showing
4 changed files
with
35 additions
and
4 deletions
@@ -2,11 +2,12 @@ | @@ -2,11 +2,12 @@ | ||
2 | width: 100%; | 2 | width: 100%; |
3 | background: #f0f0f0; | 3 | background: #f0f0f0; |
4 | 4 | ||
5 | - .page-wrap:first-child { | ||
6 | - padding-bottom: pxToRem(10px); | ||
7 | - } | 5 | + // .page-wrap:first-child { |
6 | + // padding-bottom: pxToRem(10px); | ||
7 | + // } | ||
8 | 8 | ||
9 | .address-item { | 9 | .address-item { |
10 | + display: block; | ||
10 | padding: pxToRem(20px) pxToRem(30px); | 11 | padding: pxToRem(20px) pxToRem(30px); |
11 | color: #b0b0b0; | 12 | color: #b0b0b0; |
12 | background: #fff; | 13 | background: #fff; |
1 | {{> layout/header}} | 1 | {{> layout/header}} |
2 | <div class="order-ensure-page yoho-page"> | 2 | <div class="order-ensure-page yoho-page"> |
3 | {{# orderEnsure}} | 3 | {{# orderEnsure}} |
4 | - <a class="address-wrap block"> | 4 | + <a class="address-wrap block" href="/shoppingCart/selectAddress"> |
5 | <p class="infos"> | 5 | <p class="infos"> |
6 | 收货地址 | 6 | 收货地址 |
7 | <span class="per-info">{{name}} {{phoneNum}}</span> | 7 | <span class="per-info">{{name}} {{phoneNum}}</span> |
1 | +{{> layout/header}} | ||
2 | +<div class="my-address-page select-address-page yoho-page"> | ||
3 | + <div class="page-wrap"> | ||
4 | + {{# address}} | ||
5 | + <a class="address-item" href="/shoppingCart/orderEnsure?address_id={{address_id}}"> | ||
6 | + <span class="name">{{consignee}}</span> | ||
7 | + <span class="tel">{{mobile}}</span> | ||
8 | + <p class="address-info">{{area}} {{address}}</p> | ||
9 | + </a> | ||
10 | + {{/ address}} | ||
11 | + </div> | ||
12 | +</div> | ||
13 | +{{> layout/footer}} |
@@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
2 | 2 | ||
3 | use Action\AbstractAction; | 3 | use Action\AbstractAction; |
4 | use Index\CartModel; | 4 | use Index\CartModel; |
5 | +use Index\UserModel; | ||
5 | use Plugin\Helpers; | 6 | use Plugin\Helpers; |
6 | 7 | ||
7 | /** | 8 | /** |
@@ -217,6 +218,22 @@ class ShoppingCartController extends AbstractAction | @@ -217,6 +218,22 @@ class ShoppingCartController extends AbstractAction | ||
217 | $this->_view->display('order-ensure', $data); | 218 | $this->_view->display('order-ensure', $data); |
218 | } | 219 | } |
219 | 220 | ||
221 | + public function selectAddressAction() { | ||
222 | + // 设置网站标题 | ||
223 | + $this->setTitle('选择地址'); | ||
224 | + $this->setNavHeader('选择地址', Helpers::url('/shoppingCart/orderEnsure')); | ||
225 | + | ||
226 | + $uid = $this->_uid; | ||
227 | + $address = UserModel::getAddressData($uid); | ||
228 | + | ||
229 | + $this->_view->display('select-address', array( | ||
230 | + 'selectAddressPage' => true, | ||
231 | + 'pageFooter' => true, | ||
232 | + 'address' => $address | ||
233 | + )); | ||
234 | + | ||
235 | + } | ||
236 | + | ||
220 | /** | 237 | /** |
221 | * 读取chose-panel内容 | 238 | * 读取chose-panel内容 |
222 | */ | 239 | */ |
-
Please register or login to post a comment