Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
be2d74be
Commit
be2d74be
authored
Sep 04, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页待开课
parent
488d66ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
38 deletions
+47
-38
extensionV1Shop.vue
src/components/activity/extensionV1Shop.vue
+47
-38
No files found.
src/components/activity/extensionV1Shop.vue
View file @
be2d74be
<
template
>
<div
class=
"activity"
>
<img
v-lazy=
"img1"
alt
/>
<div
class=
"title"
>
注册领取课程
</div>
<div
class=
"form-block"
>
<div
class=
"input-block"
>
<input
placeholder=
"手机(用于接收课程信息)"
autofocus=
"autofocus"
type=
"number"
pattern=
"[0-9]*"
v-model=
"mobile"
/>
</div>
<div
class=
"box"
>
<div
class=
"form-block"
>
<div
class=
"title"
>
注册领取课程
</div>
<div
class=
"input-block"
>
<input
placeholder=
"手机(用于接收课程信息)"
autofocus=
"autofocus"
type=
"number"
pattern=
"[0-9]*"
v-model=
"mobile"
/>
</div>
<div
class=
"input-block"
>
<input
placeholder=
"验证码(请输入短信验证码)"
oninput=
"if(value.length>4)value=value.slice(0,4)"
type=
"number"
maxlength=
"4"
pattern=
"[0-9]*"
v-model=
"msgCode"
/>
<button
class=
"codeMsg right-btn"
@
click=
"sendMobileCode"
v-if=
"time===0"
>
发送验证码
</button>
<button
class=
"codeMsg disabled right-btn"
v-if=
"time>0"
>
{{
time
}}
s后重新发送
</button>
</div>
<div
class=
"btn-block"
>
<div
class=
"btn"
ref=
"btn"
@
click=
"bindMobile"
>
领取99元特惠课
</div>
</div>
<div
class=
"tip"
>
<img
:src=
"lock"
alt
/>
唱唱会保护您的隐私 请放心输入
<div
class=
"input-block"
>
<input
placeholder=
"验证码(请输入短信验证码)"
oninput=
"if(value.length>4)value=value.slice(0,4)"
type=
"number"
maxlength=
"4"
pattern=
"[0-9]*"
v-model=
"msgCode"
/>
<button
class=
"codeMsg right-btn"
@
click=
"sendMobileCode"
v-if=
"time===0"
>
发送验证码
</button>
<button
class=
"codeMsg disabled right-btn"
v-if=
"time>0"
>
{{
time
}}
s后重新发送
</button>
</div>
<div
class=
"btn-block"
>
<div
class=
"btn"
ref=
"btn"
@
click=
"bindMobile"
>
领取99元特惠课
</div>
</div>
<div
class=
"tip"
>
<img
:src=
"lock"
alt
/>
唱唱会保护您的隐私 请放心输入
</div>
</div>
</div>
<img
v-lazy=
"img2"
alt
/>
...
...
@@ -127,7 +129,8 @@ export default {
query
.
cct_user_id
=
comment
.
getParamhref
().
cct_user_id
;
}
console
.
log
(
json
);
bindMobileApi
(
json
).
then
(
data
=>
{
bindMobileApi
(
json
)
.
then
(
data
=>
{
getUserDetailApi
().
then
(
res
=>
{
localStorage
.
setItem
(
"userDesc"
,
JSON
.
stringify
(
res
));
this
.
$router
.
push
({
...
...
@@ -135,7 +138,8 @@ export default {
query
:
query
});
});
}).
catch
(
res
=>
{});
})
.
catch
(
res
=>
{});
},
refImgCode
()
{
this
.
$refs
.
imgCode
.
src
=
"/api/public/img/verify?flag="
+
Math
.
random
();
...
...
@@ -189,13 +193,13 @@ video {
@borderRadius: 8px;
.activity {
background-color: #f9d048;
padding-bottom: 63* @toVw;
.title{
padding-bottom: 63
* @toVw;
.title
{
font-size: 16 * @toVw;
font-weight: bold;
color: #952700;
text-align: center;
margin
-top:
13 * @toVw;
margin
: 4 * @toVw 0
13 * @toVw;
}
.codeMsg {
border-radius: 4 * @toVw;
...
...
@@ -209,22 +213,27 @@ video {
opacity: 0.5;
}
}
.box{
padding: 0 12 * @toVw 10 * @toVw;
margin-top: 10 * @toVw;
}
.form-block {
// position: relative;
z-index: 10;
background: #f9d048;
// top: -42*@toVw;
padding: 20 * @toVw;
// border-radius:20*@toVw;
background: white;
border-radius:5*@toVw;
padding: 10*@toVw;
.tip {
font-size: 12 * @toVw;
color: #952700;
text-align: center;
margin-top: 16px;
img{
width: 11* @toVw;
img
{
width: 11
* @toVw;
position: relative;
top: 2* @toVw;
top: 2
* @toVw;
}
}
.input-block {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment