Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangxiaoru
9 years ago
Commit
37778a7428628f04d2eda6aaf9acf904d874d6cb
1 parent
9b509002
bug
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
10 deletions
static/js/cart/select-address.js
static/sass/guang/_detail.css
yohobuy/m.yohobuy.com/application/models/Guang/Index.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
yohobuy/m.yohobuy.com/public/index-dev.php
static/js/cart/select-address.js
View file @
37778a7
...
...
@@ -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
);
...
...
static/sass/guang/_detail.css
View file @
37778a7
...
...
@@ -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
;
...
...
yohobuy/m.yohobuy.com/application/models/Guang/Index.php
View file @
37778a7
...
...
@@ -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
;
}
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Index.php
View file @
37778a7
...
...
@@ -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
))
{
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
View file @
37778a7
...
...
@@ -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
))
{
...
...
yohobuy/m.yohobuy.com/public/index-dev.php
View file @
37778a7
...
...
@@ -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
();
...
...
Please
register
or
login
to post a comment