stanley-king 8 gadi atpakaļ
vecāks
revīzija
dafdeda608

+ 34 - 0
helper/special_helper.php

@@ -42,6 +42,13 @@ class special_helper
                     array_push($ret['items'],$item);
                 }
             }
+            elseif($key == 'home4') {
+                $ret['item_title'] = $val['title'];
+                $items = self::filter_home4($val);
+                foreach($items as $item) {
+                    array_push($ret['items'],$item);
+                }
+            }
             elseif($key == 'goods')
             {
                 $ret['item_type'] = 'home_goods';
@@ -109,7 +116,26 @@ class special_helper
             $item['type'] = $val['rectangle1_type'];
             $item['data'] = $val['rectangle1_data'];
             array_push($items,$item);
+        }
+        {
+            $item = array();
+            $item['image'] = $val['rectangle2_image'];
+            $item['type'] = $val['rectangle2_type'];
+            $item['data'] = $val['rectangle2_data'];
+            array_push($items,$item);
+        }
 
+        return $items;
+    }
+    private static function filter_home4($val)
+    {
+        $items = array();
+        {
+            $item = array();
+            $item['image'] = $val['rectangle1_image'];
+            $item['type'] = $val['rectangle1_type'];
+            $item['data'] = $val['rectangle1_data'];
+            array_push($items,$item);
         }
         {
             $item = array();
@@ -118,7 +144,15 @@ class special_helper
             $item['data'] = $val['rectangle2_data'];
             array_push($items,$item);
         }
+        {
+            $item = array();
+            $item['image'] = $val['square_image'];
+            $item['type'] = $val['square_type'];
+            $item['data'] = $val['square_data'];
+            array_push($items,$item);
+        }
 
         return $items;
+
     }
 }

+ 1 - 3
mobile/control/index.php

@@ -27,12 +27,10 @@ class indexControl extends specialControl
     public function homeOp()
     {
         $ret = $this->get_special(self::HomeSpecialID);
-        $sale_list = $this->sale_list();
-        $ret['sale_list'] = $sale_list;
-
         return self::outsuccess($ret,"shop/home");
     }
 
+    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     public function indexOp()
     {
         $special_list = $this->mb_special->getMbSpecialItemUsableListByIDEx(self::HomeSpecialID);

+ 22 - 0
mobile/templates/default/pay/cmbret.php

@@ -4,6 +4,28 @@
     <meta charset="UTF-8">
     <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
     <title>支付信息</title>
+    <style type="text/css">
+        html,
+        body,
+        img {
+            margin: 0;
+            padding:0;
+        }
+        html,
+        body {
+            width: 100%;
+            height: 100%;
+            background: #F7F7F7;
+        }
+        .maincontent {
+            width: 100%;
+        }
+        img {
+            width: 100%;
+            min-width: 100%;
+            height: auto;
+        }
+    </style>
 </head>
 <body>