Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
6f5ccb71144229a6c60d5fbc184c42dd2d8389b2
2 parents
090f2c41
2b8893a9
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into fix/issue
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
18 deletions
library/Action/AbstractAction.php
static/js/cart/chose-panel.js
static/js/cart/order-ensure.js
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Reg.php
library/Action/AbstractAction.php
View file @
6f5ccb7
...
...
@@ -376,8 +376,8 @@ class AbstractAction extends Controller_Abstract
* 设置网站SEO的描述内容
*
* @param string $description 描述内容
* @param string $sign 连接的字符串
* @param bool $showMore 是否显示更多内容
* @param string $sign 连接的字符串
* @return void
*/
protected
function
setDescription
(
$description
,
$showMore
=
true
,
$sign
=
' '
)
...
...
static/js/cart/chose-panel.js
View file @
6f5ccb7
...
...
@@ -119,7 +119,7 @@ function resetColorZeroStock($siblingBlock) {
// 选择了颜色切换商品图片
function
changeGoodImgWhenClickColor
()
{
if
(
hasChooseColor
&&
curColorIndex
)
{
if
(
hasChooseColor
&&
curColorIndex
>=
0
)
{
$imgsThumb
.
addClass
(
'hide'
).
eq
(
curColorIndex
).
removeClass
(
'hide'
);
}
}
...
...
static/js/cart/order-ensure.js
View file @
6f5ccb7
...
...
@@ -93,8 +93,7 @@ function orderCompute() {
}).
then
(
function
(
res
)
{
var
priceHtml
;
if
(
!
res
)
{
tip
.
show
(
'网络出错'
);
if
(
!
res
.
length
)
{
window
.
location
.
reload
();
}
else
{
/*if (res.order_amount) {
...
...
@@ -106,8 +105,12 @@ function orderCompute() {
if
(
res
.
last_order_amount
)
{
res
.
last_order_amount
=
(
+
res
.
last_order_amount
).
toFixed
(
2
);
}
$coinCheck
.
find
(
'em'
).
html
(
'- ¥ '
+
res
.
use_yoho_coin
);
$coinUsed
.
html
(
'已抵¥'
+
res
.
use_yoho_coin
);
if
(
res
.
use_yoho_coin
)
{
$coinCheck
.
find
(
'em'
).
html
(
'- ¥ '
+
res
.
use_yoho_coin
);
$coinUsed
.
html
(
'已抵¥'
+
res
.
use_yoho_coin
);
$coinCheck
.
find
(
'em'
).
show
();
$coinUsed
.
show
();
}
priceHtml
=
priceTmpl
({
cartPayData
:
res
.
promotion_formula_list
,
price
:
res
.
last_order_amount
...
...
@@ -116,7 +119,6 @@ function orderCompute() {
$price
.
html
(
priceHtml
);
}
}).
fail
(
function
()
{
tip
.
show
(
'网络出错'
);
window
.
location
.
reload
();
});
}
...
...
@@ -163,7 +165,6 @@ function submitOrder() {
var
url
;
if
(
!
res
)
{
loading
.
hideLoadingMask
();
tip
.
show
(
'网络出错'
);
return
;
}
...
...
@@ -177,13 +178,13 @@ function submitOrder() {
}
window
.
setCookie
(
'order-info'
,
''
);
window
.
location
.
href
=
url
;
}
else
{
loading
.
hideLoadingMask
();
tip
.
show
(
res
.
message
||
'网络出错'
);
}
else
if
(
res
.
message
)
{
tip
.
show
(
res
.
message
);
}
}).
fail
(
function
()
{
loading
.
hideLoadingMask
();
tip
.
show
(
'网络出错'
);
}).
always
(
function
()
{
loading
.
hideLoadingMask
();
});
}
...
...
@@ -215,9 +216,7 @@ $('.coin').on('touchend', function() {
if
(
$this
.
find
(
'.checkbox'
).
hasClass
(
'icon-cb-checked'
))
{
orderInfo
(
'yohoCoin'
,
$this
.
data
(
'yoho-coin'
));
$this
.
find
(
'.coin-check em'
).
show
();
$this
.
find
(
'.can-use'
).
hide
();
$this
.
find
(
'.used'
).
show
();
}
else
{
orderInfo
(
'yohoCoin'
,
0
);
$this
.
find
(
'.coin-check em'
).
hide
();
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
View file @
6f5ccb7
...
...
@@ -26,7 +26,7 @@ class LoginController extends AbstractAction
$data
=
array
(
'loginIndex'
=>
true
,
// 模板中使用JS的标识
'backUrl'
=>
'
/
'
,
// 返回的URL链接
'backUrl'
=>
'
javascript:history.go(-1)
'
,
// 返回的URL链接
'showHeaderImg'
=>
true
,
// 控制显示头部图片
'isPassportPage'
=>
true
,
// 模板中模块标识
'registerUrl'
=>
'/reg.html'
,
// 注册的URL链接
...
...
@@ -56,7 +56,7 @@ class LoginController extends AbstractAction
$data
=
array
();
$data
[
'loginInternational'
]
=
true
;
// 模板中使用JS的标识
$data
[
'backUrl'
]
=
'
/
'
;
// 返回的URL链接
$data
[
'backUrl'
]
=
'
javascript:history.go(-1)
'
;
// 返回的URL链接
$data
[
'headerText'
]
=
'登录'
;
// 头部信息
$data
[
'isPassportPage'
]
=
true
;
// 模板中模块标识
$data
[
'areaCode'
]
=
'+86'
;
// 默认区号
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Reg.php
View file @
6f5ccb7
...
...
@@ -19,7 +19,7 @@ class RegController extends AbstractAction
$data
=
array
();
$data
[
'regIndex'
]
=
true
;
// 模板中使用JS的标识
$data
[
'backUrl'
]
=
'
/
'
;
// 返回的URL链接
$data
[
'backUrl'
]
=
'
javascript:history.go(-1)
'
;
// 返回的URL链接
$data
[
'headerText'
]
=
'注册'
;
// 头部信息
$data
[
'isPassportPage'
]
=
true
;
// 模板中模块标识
$data
[
'areaCode'
]
=
'+86'
;
// 默认的区号
...
...
@@ -56,7 +56,7 @@ class RegController extends AbstractAction
$data
=
array
(
'regCode'
=>
true
,
// 模板中使用JS的标识
'backUrl'
=>
'/
'
,
// 返回的URL链接
'backUrl'
=>
SITE_MAIN
.
'/?go=1
'
,
// 返回的URL链接
'headerText'
=>
'注册'
,
// 头部信息
'isPassportPage'
=>
true
,
// 模板中模块标识
'areaCode'
=>
'+'
.
$area
,
// 地区编号
...
...
Please
register
or
login
to post a comment