Authored by 周少峰

modify yohocoin

... ... @@ -829,74 +829,11 @@ class HomeController extends AbstractAction
$this->setNavHeader('YOHO币', true, false);
$page = $this->get('page', 1);
$size = $this->get('size', 10);
//$currency = UserModel::getYohoCoinLists($this->_uid,$page,$size);
$currency = UserModel::getYohoCoinLists(3965746,$page,$size);
print_r($currency);exit;
$currency = array(
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋运动鞋运动鞋运动鞋运动鞋运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
),
array(
'title' => '购买商品 Nike XXXXXX 运动鞋',
'time' => '2015.11.23 12:45:33',
'count' => '+943'
)
);
//$data = UserModel::getYohoCoinLists($this->_uid,$page,$size);
$data = UserModel::getYohoCoinLists(3965746,$page,$size);
$this->_view->display('currency-detail', array(
'currency' => $currency,
'currency' => $data['list'],
'money' => $data['money'],
'pageFooter' => true,
'currencyDetailPage' => true
));
... ...
... ... @@ -369,7 +369,7 @@ class UserModel
$yohoCoin = UserData::yohoCoinData($uid, $page, $limit, 'post');
// 处理YOHO币数据
$coinList = $yohoCoin['data']['coinlist'];
$result['many'] = $yohoCoin['data']['total'];
$data['money'] = $yohoCoin['data']['total'];
foreach($coinList as $key => $val){
$result[$key]['title'] = $val['message'];
$result[$key]['time'] = $val['date'];
... ... @@ -378,7 +378,8 @@ class UserModel
}
$result[$key]['count'] = $val['num'];
}
return $result;
$data['list'] = $result;
return $data;
}
/**
... ...