Authored by zhangxiaoru

bug

... ... @@ -12,7 +12,7 @@ var $confim = $('.confim-mask'),
require('../common');
$('.address-item').on('touchend', function() {
$('.address-item').on('click', function() {
var $this = $(this);
var addressId = $this.data('address-id');
var address = {
... ... @@ -26,14 +26,15 @@ $('.address-item').on('touchend', function() {
orderInfo('addressId', addressId);
orderInfo('address', address);
window.location.href = $this.data('href') + (orderInfo('limitUrlSufix') || '');
}).on('touchend', '.edit', function() {
}).on('click', '.edit', function() {
window.location.href = $(this).data('href');
return false;
}).on('touchstart', '.del', function() {
}).on('click', '.del', function() {
deleteId = $(this).data('id');
});
$confim.on('touchend', '.confim', function() {
$confim.on('click', '.confim', function() {
if (orderInfo('addressId') === deleteId) {
orderInfo('addressId', null);
orderInfo('address', null);
... ...
... ... @@ -473,6 +473,14 @@
}
.title {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
word-break: break-all;
overflow: hidden;
}
.publish-time {
font-size: 18px;
margin-top: 0;
... ...
... ... @@ -89,6 +89,7 @@ class IndexModel
}
$data['guang']['infos'][] = $build;
}
print_r($data['guang']['infos']);
// 分页需要参数
$data['guang']['gender'] = $gender;
... ... @@ -212,6 +213,8 @@ class IndexModel
$category = array();
$article = array();
return $data;
}
... ...
... ... @@ -24,9 +24,12 @@ class IndexController extends AbstractAction
$this->setTitle('逛');
$this->setNavHeader('逛', true, SITE_MAIN);
$uid = $this->getUid();
// $uid = $this->getUid();
$udid = $this->getUdid();
$uid = 8039759;
//$udid = P_YDoclyC4l9GWC9gScyTpbMiWnQpaYA;
$type = $this->get('id', 0);
$gender = $this->get('gender');
if (is_string($gender)) {
... ...
... ... @@ -19,7 +19,8 @@ class InfoController extends AbstractAction
*/
public function indexAction()
{
$id = $this->get('id');
//$id = $this->get('id');
$id= 34282;
// 判断参数是否有效, 无效会跳转到错误页面
if (!is_numeric($id)) {
... ...
... ... @@ -17,11 +17,11 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关
#dev环境
define('API_URL', 'http://dev-api.yohops.com:9999/');
define('SERVICE_URL', 'http://dev-service.yohops.com:9999/');
define('API_URL', 'http://api-test3.yohops.com:9999/');
define('SERVICE_URL', 'http://service-test3.yohops.com:9999/');
define('YOHOBUY_URL', 'http://www.yohobuy.com/');
define('SERVICE_NOTIFY', 'http://test2.open.yohobuy.com/');
define('API_OLD', 'http://devservice.yoho.cn:58077/');
define('SERVICE_NOTIFY', 'http://service-test3.yohops.com:9999/');
$application = new Application(APPLICATION_PATH . '/configs/application.developer.ini');
$application->bootstrap()->run();
... ...