diff --git a/service/Application/Home/Controller/OrderController.class.php b/service/Application/Home/Controller/OrderController.class.php index ca322f5b6..b272d1b89 100755 --- a/service/Application/Home/Controller/OrderController.class.php +++ b/service/Application/Home/Controller/OrderController.class.php @@ -71,9 +71,6 @@ class OrderController extends CommonController ); $data = OrderService::OrderList($data_params); $this->assign('data_list', $data['data']); - - // 发起支付 - 支付方式 - $this->assign('buy_payment_list', ResourcesService::BuyPaymentList(['is_enable'=>1, 'is_open_user'=>1])); // 支付方式 $this->assign('payment_list', ResourcesService::PaymentList()); @@ -122,6 +119,9 @@ class OrderController extends CommonController $this->assign('buy_payment_list', ResourcesService::BuyPaymentList(['is_enable'=>1, 'is_open_user'=>1])); $this->assign('data', $data['data'][0]); + + // 参数 + $this->assign('params', $params); $this->display('Detail'); } else { $this->assign('msg', L('common_not_data_tips')); diff --git a/service/Application/Home/Controller/UserController.class.php b/service/Application/Home/Controller/UserController.class.php index 0dd8cfed2..0fec3e50c 100755 --- a/service/Application/Home/Controller/UserController.class.php +++ b/service/Application/Home/Controller/UserController.class.php @@ -5,6 +5,7 @@ namespace Home\Controller; use Service\OrderService; use Service\GoodsService; use Service\UserService; +use Service\BuyService; /** * 用户 @@ -77,11 +78,12 @@ class UserController extends CommonController $user_order_status = OrderService::OrderStatusStepTotal(['user_type'=>'user', 'user'=>$this->user, 'is_comments'=>1]); $this->assign('user_order_status', $user_order_status['data']); - // 获取列表 + // 获取进行中的订单列表 $params = array_merge($_POST, $_GET); $params['user'] = $this->user; $params['is_more'] = 1; - $params['status'] = [1,2,3]; + $params['status'] = [1,2,3,4]; + $params['is_comments'] = 0; $where = OrderService::UserOrderListWhere($params); $order_params = array( 'limit_start' => 0, @@ -91,6 +93,10 @@ class UserController extends CommonController $order = OrderService::OrderList($order_params); $this->assign('order_list', $order['data']); + // 获取购物车 + $cart_list = BuyService::CartList(['user'=>$this->user]); + $this->assign('cart_list', $cart_list['data']); + $this->display('Index'); } diff --git a/service/Application/Home/View/Default/Order/Detail.html b/service/Application/Home/View/Default/Order/Detail.html index 04db864de..db8c59a39 100755 --- a/service/Application/Home/View/Default/Order/Detail.html +++ b/service/Application/Home/View/Default/Order/Detail.html @@ -164,7 +164,7 @@ - + diff --git a/service/Application/Home/View/Default/Order/Index.html b/service/Application/Home/View/Default/Order/Index.html index 1660f9d4f..50938e046 100755 --- a/service/Application/Home/View/Default/Order/Index.html +++ b/service/Application/Home/View/Default/Order/Index.html @@ -193,7 +193,7 @@ - + 支付 @@ -217,45 +217,6 @@
{{:L('common_not_data_tips')}}
- - -
-
-
-

支付

- × -
-
-
- -
-

选择支付

- -
    - -
  • - - - - {{$payment.name}} - -
  • -
    -
-
- -
{{:L('order_payment_not_data_tips')}}
-
-
-
- - - -
-
-
-
-
diff --git a/service/Application/Home/View/Default/User/Index.html b/service/Application/Home/View/Default/User/Index.html index 0148827ba..dbdcd7fe7 100755 --- a/service/Application/Home/View/Default/User/Index.html +++ b/service/Application/Home/View/Default/User/Index.html @@ -35,7 +35,7 @@
修改头像 - 修改资料 + 修改资料 我的地址
@@ -105,32 +105,52 @@ +
+
-
交易提醒
-
+
+ 交易提醒 - - + + 更多 + + +
+
+ + +
- +
- {{$goods.title}} + {{$goods.title}}
  • - {{$v.add_time_time}} - ¥{{$v.price}} - - {{$v.items_count}}中商品 + {{$order.add_time_time}} + ¥{{$order.price}} +
  • +
  • + {{$order.status_name}} + + 等{{$order.items_count}}种商品
  • -
  • {{$v.status_name}}
+ + 支付 + + + + + + 评价 +
@@ -146,10 +166,39 @@
+ +
-
购物车
+
+ 购物车 + + + 更多 + + +
+ + + +
+ + + +
+ {{$goods.title}} +
    +
  • + ¥{{$goods.price}} + x{{$goods.stock}} +
  • +
+
+
+
+
+
@@ -160,6 +209,8 @@
+ +
商品收藏
@@ -174,6 +225,8 @@
+ +
我的足迹
@@ -189,8 +242,6 @@
- -
diff --git a/service/Public/Home/Default/Css/Order.css b/service/Public/Home/Default/Css/Order.css index 11d39d956..5b3986eb8 100755 --- a/service/Public/Home/Default/Css/Order.css +++ b/service/Public/Home/Default/Css/Order.css @@ -108,23 +108,4 @@ strong.total-price-content { color: #d2364c; font-size: 16px; } .goods-base { margin-left: 45px; } table.data-list td.row-status { border-left: 1px solid #eee; } table.data-ongoing td.row-status { border-left: 1px solid #fff1f5; } -} - - -/** - * 支付弹窗 - */ -.business-item h3 { border-bottom: 3px solid #e3e3e3; margin-top:5px; font-size: 14px;font-weight: 700; } -.business-item ul { padding: 10px 3px 5px 5px; overflow: hidden; } -.business-item ul li { border:1px solid transparent ;overflow: hidden; float: left; cursor: pointer; padding: 5px; border: 1px solid #eee; margin: 0 10px 10px 0; } -.business-item ul li img { width: 36px; height: 36px; } -.business-item ul li.selected { border-color: #d2364c ; position: relative; } -.business-item ul li.selected i.icon-active { position: absolute; width: 10px; height: 10px; font-size: 0; line-height: 0; right: 0px; bottom: 0px; background: url(../Images/sys_item_selected.gif) no-repeat right bottom; } -@media only screen and (min-width:640px) { - .business-item ul li {width:calc(33% - 5px); } - .business-item ul li:nth-child(3n) { margin-right: 0; } -} -@media only screen and (max-width:640px) { - .business-item ul li { width: calc(50% - 5px); } - .business-item ul li:nth-child(2n) { margin-right: 0; } -} +} \ No newline at end of file diff --git a/service/Public/Home/Default/Css/User.Index.css b/service/Public/Home/Default/Css/User.Index.css index 9e30fb073..158ee1d67 100755 --- a/service/Public/Home/Default/Css/User.Index.css +++ b/service/Public/Home/Default/Css/User.Index.css @@ -86,10 +86,13 @@ ul.order-base li span.am-badge{position: absolute; top: -7px; left: 55%;} } .various .am-panel-bd { - min-height: 212px; - max-height: 212px; + min-height: 210px; + max-height: 210px; padding: 0 5px; } +.various .am-panel .more-tips { + color: #666; +} /** @@ -129,12 +132,17 @@ ul.order-base li span.am-badge{position: absolute; top: -7px; left: 55%;} /** * 商品列表 */ -.goods-detail { position: relative; padding: 5px 0; } -.goods-detail:not(:last-child) { border-bottom: 1px solid #eee; } +.goods-detail { position: relative; padding: 5px 0; height: 70px; } +.goods-detail:not(:last-child) { border-bottom: 1px solid #f5f5f5; } .goods-detail img { width: 60px; height: 60px; } .goods-title { display: block; max-height: 36px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; } .goods-title:hover { text-decoration: underline; } -.goods-base { position: absolute; top: 5px; left: 65px; width: calc(100% - 70px); } +.goods-base { position: absolute; top: 5px; left: 65px; width: calc(100% - 65px); } .goods-base ul li span:not(:first-child) { margin-left: 10px; } -.goods-base .order-price { color: #d2364c; font-weight: 700; } -.goods-base ul li { color: #777; } \ No newline at end of file +.goods-base .line-price { color: #d2364c; font-weight: 700; } +.goods-base ul li { color: #777; } +.goods-detail .order-submit { margin-top: 16px; } +.order-list .goods-base { width: calc(100% - 120px); } +@media only screen and (max-width:640px) { + +} \ No newline at end of file diff --git a/service/Public/Home/Default/Js/Order.js b/service/Public/Home/Default/Js/Order.js index f07bba911..859439029 100755 --- a/service/Public/Home/Default/Js/Order.js +++ b/service/Public/Home/Default/Js/Order.js @@ -45,7 +45,6 @@ $(function() } }); - /** * 评价打分 */ @@ -60,4 +59,10 @@ $(function() $(this).parents('td').find('input.input-rating').val(index+1); }); + // 是否自动开启支付窗口 + if($('.submit-pay').length > 0 && $('.submit-pay').data('is-auto') == 1) + { + $('.submit-pay').trigger('click'); + } + }); \ No newline at end of file