Skip to content
切换导航面板
P
项目
G
群组
S
代码片段
帮助
成立
/
weiduh5
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
代码片段
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9229b923
authored
Dec 08, 2017
by
颜景龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加主页
parent
63cb98af
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
56 行增加
和
0 行删除
gift/giftindex.html
归档.zip
gift/giftindex.html
查看文件 @
9229b923
...
...
@@ -38,9 +38,64 @@
display
:
block
;
width
:
100%
;
}
.submit-btn
{
background
:
#EE504F
;
border
:
#EE504F
;
color
:
#FFF
;
outline
:
none
!important
;
position
:
fixed
;
left
:
0
;
right
:
0
;
bottom
:
0
;
}
.return-img
{
background
:
#ccc
;
border-radius
:
2rem
;
position
:
fixed
;
z-index
:
11
;
height
:
2rem
;
width
:
2rem
;
margin
:
0.5rem
;
}
</style>
</head>
<body>
<img
id=
"return-img"
class=
"return-img"
src=
"./left_white.png"
/>
<img
class=
"img"
src=
"./giftindex.jpg"
>
<button
type=
"submit"
id=
"submitBtn"
class=
"zbtn zbtn-full zbtn-lg submit-btn"
>
参加活动
</button>
<script
src=
"https://cdn.bootcss.com/zepto/1.2.0/zepto.min.js"
></script>
<script
type=
"text/javascript"
>
function
getUrlParam
(
name
)
{
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
);
//构造一个含有目标参数的正则表达式对象
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
//匹配目标参数
if
(
r
!=
null
)
return
unescape
(
r
[
2
]);
return
null
;
//返回参数值
}
$
(
document
).
ready
(
function
()
{
$
(
window
).
ready
(
function
(){
$
(
'html'
).
css
({
'font-size'
:
$
(
window
).
width
()
/
375
*
16
});
});
$
(
window
).
resize
(
function
(){
$
(
'html'
).
css
({
'font-size'
:
$
(
window
).
width
()
/
375
*
16
});
});
$
(
"#submitBtn"
).
on
(
'click'
,
function
(
e
){
var
id
=
getUrlParam
(
'id'
);
var
customerUserId
=
getUrlParam
(
'customerUserId'
);
if
(
id
&&
customerUserId
)
{
location
.
href
=
'./gift.html?id='
+
id
+
"&customerUserId="
+
customerUserId
;
}
});
$
(
"#return-img"
).
on
(
'click'
,
function
(
e
){
location
.
href
=
"ydl://goback"
;
});
});
</script>
</body>
</html>
\ No newline at end of file
归档.zip
0 → 100644
查看文件 @
9229b923
此文件类型无法预览
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论