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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
e626df5a1430f77b6b769dc4ccd4fd9cbf9d4e5b
2 parents
5c5d0c66
cff8614f
Merge branch 'develop/wap' into beta/wap
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
96 additions
and
12 deletions
static/js/home/home.js
static/js/me/address-act.js
static/js/me/logistic.js
static/sass/home/_side-nav.scss
static/sass/layout/_footer.scss
template/m.yohobuy.com/actions/index/home/currency-detail.phtml
yohobuy/m.yohobuy.com/application/controllers/Hf.php
static/js/home/home.js
View file @
e626df5
...
...
@@ -62,6 +62,10 @@ $sideNav.on('touchstart', 'li', function(e) {
}
});
$sideNav
.
on
(
'touchmove'
,
function
(
e
)
{
e
.
stopPropagation
();
});
//返回一级导航,收起二级导航
$subNav
.
each
(
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'touchstart'
,
function
()
{
...
...
static/js/me/address-act.js
View file @
e626df5
...
...
@@ -80,6 +80,7 @@ $addressForm.on('submit', function() {
isSubmiting
=
true
;
loading
.
showLoadingMask
();
$submit
.
css
(
'background'
,
'#777'
);
$
.
ajax
({
method
:
'POST'
,
url
:
'/home/saveAddress'
,
...
...
@@ -102,6 +103,8 @@ $addressForm.on('submit', function() {
}).
fail
(
function
()
{
tip
.
show
(
'网络出了点问题~'
);
isSubmiting
=
false
;
loading
.
hideLoadingMask
();
$submit
.
css
(
'background'
,
'#444'
);
});
return
false
;
});
...
...
static/js/me/logistic.js
View file @
e626df5
...
...
@@ -27,7 +27,8 @@ function getGender() {
require
(
'../home/maybe-like'
)(
getGender
());
//提前触发lazyload
$
(
window
).
scrollTop
(
1
).
scrollTop
(
0
);
...
...
static/sass/home/_side-nav.scss
View file @
e626df5
...
...
@@ -64,11 +64,11 @@
.nav-icon
,
.nav-img
{
position
:
absolute
;
width
:
48rem
/
$pxConvertRem
;
height
:
48rem
/
$pxConvertRem
;
width
:
38rem
/
$pxConvertRem
;
height
:
38rem
/
$pxConvertRem
;
top
:
50%
;
margin-top
:
-24rem
/
$pxConvertRem
;
left
:
30rem
/
$pxConvertRem
;
margin-top
:
-19rem
/
$pxConvertRem
;
left
:
35rem
/
$pxConvertRem
;
background
:
no-repeat
left
center
;
background-size
:
100%
100%
;
}
...
...
@@ -108,6 +108,13 @@
font-size
:
36rem
/
$pxConvertRem
;
}
.nav-img
,
.nav-icon
{
width
:
48rem
/
$pxConvertRem
;
height
:
48rem
/
$pxConvertRem
;
margin-top
:
-24rem
/
$pxConvertRem
;
left
:
30rem
/
$pxConvertRem
;
}
}
.sub-nav
{
...
...
@@ -234,8 +241,8 @@
}
li
:first-child
{
height
:
88rem
/
$pxConvertRem
;
line-height
:
88rem
/
$pxConvertRem
;
height
:
90rem
/
$pxConvertRem
!
important
;
line-height
:
90rem
/
$pxConvertRem
!
important
;
background
:
#3e3e3e
;
a
{
...
...
static/sass/layout/_footer.scss
View file @
e626df5
.yoho-footer
{
font-size
:
12px
;
background-color
:
#fff
;
position
:
relative
;
.op-row
{
position
:
relative
;
padding
:
0
15px
;
height
:
60px
;
line-height
:
60px
;
...
...
@@ -20,8 +20,8 @@
margin-left
:
.3em
;
margin-right
:
1em
;
max-width
:
200rem
/
$pxConvertRem
;
text-overflow
:ellipsis
;
white-space
:nowrap
;
text-overflow
:ellipsis
;
white-space
:nowrap
;
}
.back-to-top
{
...
...
@@ -49,4 +49,4 @@
bottom
:
0
;
}
}
\ No newline at end of file
}
...
...
template/m.yohobuy.com/actions/index/home/currency-detail.phtml
View file @
e626df5
{
{>
layout/header
}
}
<div
class=
"yoho-coin-detail-page yoho-page"
>
{
{#unless
currenc
y
}
}
{
{#unless
mone
y
}
}
<div
class=
"money"
>你拥有的有货币:<span>
0
</span></div>
{
{/unless
}
}
<ul
class=
"coin-detail"
></ul>
...
...
yohobuy/m.yohobuy.com/application/controllers/Hf.php
0 → 100644
View file @
e626df5
<?php
use
Action\AbstractAction
;
/**
* 专为APP客户端调用的 hf(hotfix) Api
*
* @name HfController
* @package
* @copyright yoho.inc
* @version 1.0 (2016-2-3 11:34:40)
* @author fei.hong <fei.hong@yoho.cn>
*/
class
HfController
extends
AbstractAction
{
/* 私钥 */
const
PRIVATE_KEY
=
'fd4ad5fcsa0de589af23234ks1923ks'
;
/**
* V1版本
*
* 参数列表
* -------------------------------------------------------------------------
* 字段 描述 类型 示例
* app_version 当前版本号 string 3.8.0
* uid 用户ID string 13423331
* client_type 用户手机系统:Android,IOS string Android
* screen_size 屏幕尺寸 string 1080x1920
* udid 设备唯一码 string 1d123sadao3
* os_version 设备版本号 string 1d123sadao3
* patchv 补丁版本号,如果本地没有补丁,传空 string 100
*
* 返回列表
* -------------------------------------------------------------------------
* 字段 描述 类型 示例
* code 返回的code,200,304等,具体的服务器定义 int 200
* message 信息 string "Config Success"
* md5 当前请求的唯一码 string "1234567890123456"
* data 配置参数数据,参考data列表 object
* [
* url 补丁url地址,没有传空 string http://yohocdn.com/fpath/fpkk.js
* patchv 当前补丁的版本号,没有就传空 string "100"
* filecode md5(md5(文件内容) + "yohopatch2016") string "1233321121212332"
* ]
*/
public
function
v1Action
()
{
$result
=
array
(
'code'
=>
200
,
'message'
=>
'Config Success'
,
'md5'
=>
''
,
'data'
=>
array
());
// 根据版本号返回补丁文件信息
$version
=
$this
->
post
(
'app_version'
);
switch
(
$version
)
{
case
'4.0.0'
:
// 版本号
case
'3.8.0'
:
$result
[
'data'
][
'url'
]
=
'http://cdn.yoho.cn/analysis/v1/js/om_code.js'
;
$result
[
'data'
][
'patchv'
]
=
'100'
;
$result
[
'data'
][
'filecode'
]
=
md5
(
'496c71eb82ce76410d5e0b3a74c02b43'
.
'yohopatch2016'
);
$result
[
'md5'
]
=
md5
(
self
::
PRIVATE_KEY
.
':'
.
json_encode
(
$result
[
'data'
]));
break
;
default
:
// 默认
$result
[
'data'
][
'url'
]
=
''
;
$result
[
'data'
][
'patchv'
]
=
''
;
$result
[
'data'
][
'filecode'
]
=
''
;
$result
[
'md5'
]
=
md5
(
self
::
PRIVATE_KEY
.
':'
.
json_encode
(
$result
[
'data'
]));
}
$this
->
echoJson
(
$result
);
}
}
...
...
Please
register
or
login
to post a comment