Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
Lynnic
9 years ago
Commit
87e473800f3c1fae5113271cac129450314bc990
2 parents
ed26222f
2d8cf52e
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into feature/detailFix
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
15 deletions
library/Api/Yohobuy.php
library/Plugin/Helpers.php
static/js/me/entry.js
static/js/product/entry.js
static/sass/me/_vip-grade.scss
template/m.yohobuy.com/actions/index/home/index.phtml
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
library/Api/Yohobuy.php
View file @
87e4738
...
...
@@ -139,7 +139,7 @@ class Yohobuy
if
(
!
empty
(
$data
))
{
$url
=
self
::
httpBuildQuery
(
$url
,
$data
);
}
var_dump
(
$url
);
/* 开启缓存的情况 */
if
(
$cache
&&
USE_CACHE
)
{
// 先尝试获取一级缓存(master), 有数据则直接返回.
...
...
library/Plugin/Helpers.php
View file @
87e4738
...
...
@@ -555,7 +555,8 @@ class Helpers
*/
public
static
function
syncUserSession
(
$uid
,
$refer
=
''
,
$callback
=
'call'
)
{
return
'http://m1.yohobuy.com/Passport/session/index?callback='
.
$callback
.
'&uid='
.
$uid
.
'&go='
.
$refer
;
return
'http://m1.yohobuy.com/Passport/session/index?callback='
.
$callback
.
'&sign='
.
md5
(
$uid
.
'Js8Yn0!EwPM45-ws'
)
.
'&uid='
.
$uid
.
'&go='
.
$refer
;
}
}
...
...
static/js/me/entry.js
View file @
87e4738
...
...
@@ -17,3 +17,4 @@ require('./browse-record');
require
(
'./address-act'
);
require
(
'./logistic'
);
require
(
'./pay'
);
require
(
'./personal-details'
);
...
...
static/js/product/entry.js
View file @
87e4738
...
...
@@ -9,4 +9,5 @@ require('./newsale/discount');
require
(
'./list'
);
require
(
'./detail/detail'
);
require
(
'./detail/loadmore'
);
require
(
'./detail/consultform'
);
\ No newline at end of file
require
(
'./detail/consultform'
);
require
(
'./newsale/hot-rank'
);
\ No newline at end of file
...
...
static/sass/me/_vip-grade.scss
View file @
87e4738
...
...
@@ -13,10 +13,14 @@
.basic-info
{
padding-top
:
30rem
/
$pxConvertRem
;
padding-bottom
:
25rem
/
$pxConvertRem
;
.user-name
{
max-width
:
240rem
/
$pxConvertRem
;
text-overflow
:ellipsis
;
white-space
:nowrap
;
font-size
:
25rem
/
$pxConvertRem
;
margin-right
:
0
.5rem
;
display
:
inline-block
;
overflow
:
hidden
;
}
.vip-icon
{
...
...
template/m.yohobuy.com/actions/index/home/index.phtml
View file @
87e4738
...
...
@@ -44,22 +44,22 @@
<a
class=
"type-item"
href=
"/home/order?type=2"
>
<span
class=
"iconfont"
>
634
;</span>
<br>待付款
{
{#if
pendingPaymentCount
}
}
<span
class=
"num"
>
{
{pendingPaymentCount
}
}</span>
{
{#if
wait_pay_num
}
}
<span
class=
"num"
>
{
{wait_pay_num
}
}</span>
{
{/if
}
}
</a>
<a
class=
"type-item"
href=
"/home/order?type=3"
>
<span
class=
"iconfont"
>
63
b;</span>
<br>待发货
{
{#if
dueOutGoodsCount
}
}
<span
class=
"num"
>
{
{dueOutGoodsCount
}
}</span>
{
{#if
wait_cargo_num
}
}
<span
class=
"num"
>
{
{wait_cargo_num
}
}</span>
{
{/if
}
}
</a>
<a
class=
"type-item"
href=
"/home/order?type=4"
>
<span
class=
"iconfont"
>
633
;</span>
<br>待收货
{
{#if
dueInGoodsCount
}
}
<span
class=
"num"
>
{
{dueInGoodsCount
}
}</span>
{
{#if
send_cargo_num
}
}
<span
class=
"num"
>
{
{send_cargo_num
}
}</span>
{
{/if
}
}
</a>
</div>
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
87e4738
...
...
@@ -62,10 +62,9 @@ class UserModel
'brand_favorite_total'
,
'product_favorite_total'
,
'product_browse'
,
'dueInGoodsCount'
,
'dueOutGoodsCount'
,
'pendingPaymentCount'
,
'refundGoodsCount'
'send_cargo_num'
,
'wait_cargo_num'
,
'wait_pay_num'
,
);
foreach
(
$infoNumData
[
'data'
]
as
$key
=>
&
$val
)
{
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
View file @
87e4738
...
...
@@ -221,7 +221,7 @@ class LoginController extends AbstractAction
*/
public
function
sinacallbackAction
()
{
$sina
=
Factory
::
create
(
'sina'
);
$sina
=
Factory
::
create
(
'sina
weibo
'
);
$access
=
$sina
->
getAccessToken
();
/* 获取QQ腾讯用户的详细信息 */
$partnerInfo
=
$sina
->
getUserInfo
(
$access
);
...
...
Please
register
or
login
to post a comment