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
9e099188c7907d01ea772fee0a73d7bdd9cc2491
1 parent
2b8c6f03
接口
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
static/sass/guang/_detail.css
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
yohobuy/m.yohobuy.com/public/index-dev.php
static/sass/guang/_detail.css
View file @
9e09918
...
...
@@ -491,6 +491,13 @@
padding
:
0.2rem
0
0.2rem
0.4rem
;
background
:
#ededed
;
position
:
relative
;
height
:
3.8rem
;
overflow
:
hidden
;
.weixinImg
{
width
:
100%
;
height
:
100%
;
}
}
.wechat-name
{
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Info.php
View file @
9e09918
...
...
@@ -20,7 +20,7 @@ class InfoController extends AbstractAction
public
function
indexAction
()
{
$id
=
$this
->
get
(
'id'
);
//$id = 34
282
;
//$id = 34
368
;
// 判断参数是否有效, 无效会跳转到错误页面
if
(
!
is_numeric
(
$id
))
{
...
...
@@ -238,6 +238,7 @@ class InfoController extends AbstractAction
//获取公众号信息列表
$weixinPublic
=
DetailData
::
singleTemplate
(
'wechat'
,
'guang_detail_wechat'
);
//print_r($weixinPublic);
// $weixinPublic = array(
// array('wechat_name' => 'YOHOFamiliy', 'wechat_id' => 'yoho_familiy', 'src' => 'http://img11.static.yhbimg.com/goodsimg/2016/09/02/15/0129931eb19f03369bb069ef5c1a42de06.png?imageView2/2/w/640/h/640'),
// array('wechat_name' => 'YOHOFamiliy', 'wechat_id' => 'wechat_id', 'src' => 'http://img11.static.yhbimg.com/goodsimg/2016/09/02/15/0129931eb19f03369bb069ef5c1a42de06.png?imageView2/2/w/640/h/640')
...
...
@@ -249,11 +250,15 @@ class InfoController extends AbstractAction
$data
[
'detail'
][
'content'
][
$key
]
=
array
(
'weixinPublic'
=>
$weixinPublic
);
$data
[
'detail'
][
'content'
][]
=
$value
;
break
;
}
else
if
(
array_key_exists
(
'collocation'
,
$value
))
{
$data
[
'detail'
][
'content'
][
$key
]
=
array
(
'weixinPublic'
=>
$weixinPublic
);
$data
[
'detail'
][
'content'
][]
=
$value
;
break
;
}
}
}
//print_r($data);
exit;
//print_r($data);
$this
->
_view
->
display
(
'index'
,
$data
);
$detail
=
array
();
...
...
yohobuy/m.yohobuy.com/public/index-dev.php
View file @
9e09918
...
...
@@ -17,8 +17,8 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关
#dev环境
define
(
'API_URL'
,
'http://api-test2.yohops.com:9999/'
);
define
(
'SERVICE_URL'
,
'http://service-test2.yohops.com:9999/'
);
define
(
'API_URL'
,
'http://dev-api.yohops.com:9999/'
);
define
(
'SERVICE_URL'
,
'http://dev-service.yohops.com:9999/'
);
define
(
'YOHOBUY_URL'
,
'http://www.yohobuy.com/'
);
define
(
'SERVICE_NOTIFY'
,
'http://service-test2.yohops.com:9999/'
);
...
...
Please
register
or
login
to post a comment