stanley-king 7 năm trước cách đây
mục cha
commit
e9c3addb9e
3 tập tin đã thay đổi với 15 bổ sung3 xóa
  1. 10 0
      helper/room/bargain_room.php
  2. 4 2
      helper/special_helper.php
  3. 1 1
      mobile/control/bargain.php

+ 10 - 0
helper/room/bargain_room.php

@@ -19,6 +19,16 @@ class bargain
 
     public function format() {
         $result = [];
+        $result['bargain_id'] = $this->bargain_id();
+        $result['goods_id']   = $this->goods_id();
+        $result['discount']   = $this->discount();
+        $result['lowest_price'] = $this->lowest_price();
+        $result['add_time'] = $this->add_time();
+        $result['over_time'] = $this->over_time();
+        $result['user_num'] = $this->user_num();
+        $result['closed'] = $this->closed();
+        $result['has_over'] = $this->has_over();
+
         return $result;
     }
     public function bargain_id() {

+ 4 - 2
helper/special_helper.php

@@ -325,11 +325,13 @@ class special_formater
         $result = [];
 
         $result['item_title'] = $title;
-        $result['item_type'] = 'home_bargain';
+        $result['item_type'] = 'home1';
 
         foreach ($bargains as $bargain_id) {
             $item['image'] = "";
-            $item['type'] = 'bargain_type';
+            $item['show_type'] = 'bargain_mine';
+            $item['show_data'] = $bargain_id;
+            $item['type'] = 'web';
             $item['data'] = $bargain_id;
             $item['title'] = '';
 

+ 1 - 1
mobile/control/bargain.php

@@ -149,7 +149,7 @@ class bargainControl extends mobileControl
                 'limitime' => $ret['limitime'],
                 'bundling' => $ret['bundling'],
                 'bargain'  => $ret['bargain'],
-                'bargain_detail' => null,
+                'bargain_detail' => $details,
                 'mobile_page' => mobile_page($page_count)]);
         }
     }