Authored by 周少峰

app direct

... ... @@ -51,7 +51,8 @@ class ShopProcess
//店铺简介页地址
self::$shopData['shopIntroHref'] = Helpers::url('/product/index/intro', array('shop_id' => self::$shopId));
//全部商品链接
self::$shopData['allGoods'] = Helpers::url('', array('shop_id' => self::$shopId, 'title' => '全部商品'), 'search');
$appSuffix = '{"action":"go.list","params":{"title":"全部商品", "shop_id":"'.self::$shopId.'","page":"1"}}';
self::$shopData['allGoods'] = Helpers::url('', array('shop_id' => self::$shopId, 'title' => '全部商品', 'yohobuy' => $appSuffix), 'search');
//搜索链接
self::$shopData['url'] = Helpers::url('', array('shop_id' => self::$shopId), 'search');
//人气单品的链接
... ...
... ... @@ -463,13 +463,19 @@ class IndexController extends AbstractAction
private function shop($shopId)
{
$appVersion = $this->get('app_version');
$uid = $this->getUid(true);
$data = ListModel::shopData($shopId, $uid, $appVersion);
if (empty($appVersion)) {
$this->setNavHeader('', true, SITE_MAIN);
} else {
$uid = $this->getUid(true);
}
//app环境
else {
$data['appVersion'] = $appVersion;
$uid = $this->get('uid');
$this->setSession('appUid', $uid);
}
$data = ListModel::shopData($shopId, $uid, $appVersion);
$this->_view->display('shop', array(
'shopIndex' => $data,
'shopPage' => true
... ... @@ -486,7 +492,11 @@ class IndexController extends AbstractAction
$data = array();
$shopId = $this->post('shop_id', 0);
$appVersion = $this->post('app_version', 0);
$uid = $this->getUid();
if (!empty($appVersion)){
$uid = $this->getSession('appUid');
} else {
$uid = $this->getUid();
}
do {
if (!$this->isAjax()) {
break;
... ...