|
@@ -62,17 +62,38 @@ class indexControl extends specialControl
|
|
|
return parent::indexOp();
|
|
|
}
|
|
|
|
|
|
+ public function wap_indexOp()
|
|
|
+ {
|
|
|
+ global $config;
|
|
|
+ $setting = $config['client_setting'];
|
|
|
+ if(empty($setting)) {
|
|
|
+ $spid = 0;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ $version = session_helper::version_code();
|
|
|
+ $running = $setting['running'];
|
|
|
+ $spid = $setting['home'];
|
|
|
+
|
|
|
+ if($version <= $running) {
|
|
|
+ $spid = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return self::outsuccess(['special_id' => $spid]);
|
|
|
+ }
|
|
|
+
|
|
|
public function tabsOp()
|
|
|
{
|
|
|
$client_tpe = session_helper::client_type();
|
|
|
if($client_tpe == session_helper::device_mini || $client_tpe == session_helper::device_wap) {
|
|
|
$tabs = [];
|
|
|
- $tabs[] = ['special_id' => 1045,'name' => '推荐'];
|
|
|
-// $tabs[] = ['special_id' => 1122,'name' => '品牌'];
|
|
|
-// $tabs[] = ['special_id' => 1025,'name' => '护肤'];
|
|
|
-// $tabs[] = ['special_id' => 1035,'name' => '彩妆'];
|
|
|
-// $tabs[] = ['special_id' => 1036,'name' => '洗护'];
|
|
|
-// $tabs[] = ['special_id' => 886,'name' => '男士'];
|
|
|
+ $tabs[] = ['special_id' => 1039,'name' => '推荐'];
|
|
|
+ $tabs[] = ['special_id' => 1122,'name' => '品牌'];
|
|
|
+ $tabs[] = ['special_id' => 1025,'name' => '护肤'];
|
|
|
+ $tabs[] = ['special_id' => 1035,'name' => '彩妆'];
|
|
|
+ $tabs[] = ['special_id' => 1036,'name' => '洗护'];
|
|
|
+ $tabs[] = ['special_id' => 886,'name' => '男士'];
|
|
|
}
|
|
|
else {
|
|
|
$tabs = index_tab::instance()->tabs();
|