diff --git a/application/index/controller/Buy.php b/application/index/controller/Buy.php index 31c73af81..24bd1a8ea 100755 --- a/application/index/controller/Buy.php +++ b/application/index/controller/Buy.php @@ -71,7 +71,7 @@ class Buy extends Common } // 参数 - $params = array_merge(input(), $data); + $params = array_merge($this->data_request, $data); $params['user'] = $this->user; $buy_ret = BuyService::BuyTypeGoodsList($params); @@ -82,7 +82,7 @@ class Buy extends Common $buy_base = $buy_ret['data']['base']; $buy_goods = $buy_ret['data']['goods']; $buy_extension_data = $buy_ret['data']['extension_data']; -print_r($buy_goods);die; + // 用户地址 $address = UserService::UserAddressList(['user'=>$this->user]); $this->assign('user_address_list', $address['data']); @@ -103,7 +103,7 @@ print_r($buy_goods);die; // 页面数据 $this->assign('base', $buy_base); - $this->assign('goods_list', $buy_goods); + $this->assign('buy_goods', $buy_goods); $this->assign('extension_data', $buy_extension_data); $this->assign('params', $params); diff --git a/application/index/view/default/buy/index.html b/application/index/view/default/buy/index.html index abb890a7d..c47ea739c 100755 --- a/application/index/view/default/buy/index.html +++ b/application/index/view/default/buy/index.html @@ -58,7 +58,7 @@
{{if !empty($base['address']['alias'])}} - {{$base.address.alias}} + {{$base.address.alias}} {{/if}} {{$base.address.name}} {{$base.address.tel}} @@ -172,7 +172,7 @@
{{if !empty($address['alias'])}} - {{$address.alias}} + {{$address.alias}} {{/if}} {{$address.name}} {{$address.tel}} @@ -183,7 +183,7 @@ {{$address.county_name}} {{$address.address}} {{if isset($address['lng']) and $address['lng'] gt 0 and isset($address['lat']) and $address['lat'] gt 0}} - 查看地图 + 查看地图 {{/if}}
{{if (isset($params['address_id']) and $params['address_id'] eq $key) or (!empty($base['address']) and $base.address.id eq $key)}} @@ -195,12 +195,9 @@ {{/foreach}} -| 商品信息 | - - - -
|---|
|
-
-
-
- {{$goods.title}}
- {{if !empty($goods.spec)}}
-
+
+
+ 订单信息+ {{if !empty($buy_goods)}} +
+ {{foreach $buy_goods as $v}}
+
+
+ {{$v.name}}{{if !empty($v['alias'])}}{{$v.alias}}{{/if}}
+ {{if isset($v['lng']) and isset($v['lat']) and $v['lng'] gt 0 and $v['lat'] gt 0}}
+
+ 查看地图
-
- {{if $goods['original_price'] gt 0}}
- {{$price_symbol}}{{$goods.original_price}}
- {{/if}}
- {{$price_symbol}}{{$goods.price}}
- x{{$goods.stock}}
-
- |
-
-
-
-
| 商品信息 | + + + +
|---|
|
+
+
+
+
+ {{$goods.title}}
+ {{if !empty($goods.spec)}}
+
+
+ {{if $goods['original_price'] gt 0}}
+ {{$price_symbol}}{{$goods.original_price}}
+ {{/if}}
+ {{$price_symbol}}{{$goods.price}}
+ x{{$goods.stock}}
+
+ |
+
+
+
+
- 合计 {{$price_symbol}}{{$base.total_price}} -
+ ++ 合计 {{$price_symbol}}{{$v.items_total_price}} +
+