Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
poolin_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0dbdc493
authored
Jan 11, 2018
by
zhanghui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zhanghui' into 'develop'
0111 合并到develop分支 See merge request
!1
parents
8fae1780
91ddd4e4
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
136 additions
and
28 deletions
+136
-28
config/index.js
+1
-1
index.html
+1
-0
package.json
+1
-1
src/App.vue
+19
-3
src/assets/img/logo.png
+0
-0
src/assets/img/logo2.png
+0
-0
src/assets/less/style.less
+46
-11
src/components/Home.vue
+5
-5
src/components/Login.vue
+47
-5
src/components/Reg.vue
+16
-2
No files found.
config/index.js
View file @
0dbdc493
...
...
@@ -13,7 +13,7 @@ module.exports = {
proxyTable
:
{},
// Various Dev Server settings
host
:
'
172.16.4.38
'
,
// can be overwritten by process.env.HOST
host
:
'
localhost
'
,
// can be overwritten by process.env.HOST
port
:
8081
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser
:
false
,
errorOverlay
:
true
,
...
...
index.html
View file @
0dbdc493
...
...
@@ -7,6 +7,7 @@
<meta
content=
"telephone=no"
name=
"format-detection"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
http-equiv=
"Cache-Control"
content=
"no-siteapp"
/>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_538501_3ahpprkf1ug14i.css"
/>
<script
src=
"https://cdn.bootcss.com/underscore.js/1.8.3/underscore-min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/tween.js@16.3.4"
></script>
<title>
poolin_app
</title>
...
...
package.json
View file @
0dbdc493
...
...
@@ -5,7 +5,7 @@
"author"
:
"xin3w <xin3w@126.com>"
,
"private"
:
true
,
"scripts"
:
{
"dev"
:
"webpack-dev-server --inline --progress --config build/webpack.dev.conf.js"
,
"dev"
:
"webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
--host 172.16.4.38
"
,
"start"
:
"npm run dev"
,
"build"
:
"node build/build.js"
},
...
...
src/App.vue
View file @
0dbdc493
<
template
>
<div
id=
"app"
>
<transition
name=
"fade"
mode=
"out-in"
>
<div
id=
"app"
:class=
"gradeClass"
>
<!--
<transition
name=
"fade"
mode=
"out-in"
>
<router-view/>
</transition>
-->
<router-view/>
</transition>
</div>
</
template
>
<
script
>
...
...
@@ -12,7 +13,22 @@ export default {
return
{
}
},
created
()
{
if
(
/iPad|iPhone|iPod/
.
test
(
navigator
.
userAgent
))
{
this
.
gradeClass
=
'mobile-ios'
}
else
{
this
.
gradeClass
=
'mobile-android'
}
}
}
</
script
>
<
style
scoped
lang=
'less'
>
#app
{
width
:
100%
;
height
:
100%
;
position
:
relative
;
}
</
style
>
src/assets/img/logo.png
View file @
0dbdc493
4.66 KB
|
W:
|
H:
4.83 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/img/logo2.png
0 → 100644
View file @
0dbdc493
12.2 KB
src/assets/less/style.less
View file @
0dbdc493
...
...
@@ -68,14 +68,30 @@ html,body {-webkit-tap-highlight-color: rgba(0, 0, 0,0); font-size: 0.28rem; bac
/*样式修正*/
.mint-header {background:@blue;}
.button-primary {background:@blue;border-color:@blue; box-shadow: 0 0.2rem 0.3rem rgba(16,63,115,0.2);}
.swiper-home {.pos(r);
.page {width:100%;height:100%; overflow: hidden;.pos(a);
.page-header {background:@blue;color:#fff;.pos(f); left:0; top:0; right:0; height:44px;
.back {width:44px;height:44px; vertical-align: middle;.tc;
i {font-size:30px;.txt-ver(44px);}
}
.title {font-size:0.36rem;.pos(a); left:44px; right:44px; .tc;}
.btns {font-size:0.36rem; padding:0 15px;}
}
.page-content {position:absolute;top:44px;width:100%;height:auto;left:0;right:0;bottom:0;overflow-x:hidden;overflow-y:auto;}
}
.home{
.header {height:2.9rem; background:@blue;
.logo {width:2.8rem; height:auto;.d-b;}
&.ios { height:2.7rem; padding-top: 0.2rem;}
}
.swiper {.pos(r);
&:after {.line.xb;}
.swiper-button-next, .swiper-button-prev {width:0.18rem; height:0.32rem;background-size:0.18rem 0.32rem; margin-top: -0.16rem;}
/*
.swiper-button-prev {left: 0;}
.swiper-button-next {right: 0;}
*/
.swiper-slide {.tc;}
span {color:#999;.d-ib;font-size:0.28rem;.txt-ver(0.9rem); background-size:0.5rem 0.5rem; background-repeat: no-repeat; background-position: left center; padding-left: 0.6rem;
&.ltc {background-image:url(../img/index-tab1.png);}
...
...
@@ -97,17 +113,27 @@ html,body {-webkit-tap-highlight-color: rgba(0, 0, 0,0); font-size: 0.28rem; bac
&.zcash {background-image:url(../img/index-tab7-active.png);}
&.doge {background-image:url(../img/index-tab8-active.png);}
}
}
}
.header-home {height:2.9rem; background:@blue;
.logo {width:2.8rem; height:auto;.d-b;}
&.ios { height:2.7rem; padding-top: 0.2rem;}
.login {
.logo{padding:0.85rem;.tc;
img {width:3rem; height:auto;}
}
.form-content {padding:0 1rem;
.el-input__inner {height:0.9rem;border-radius: 0.45rem;font-size:0.32rem;}
.el-form-item__content {line-height: 0.9rem;}
.el-input__prefix {left:0.3rem;}
.el-input--prefix .el-input__inner{padding-left: 0.88rem;}
.iconfont {font-size:0.4rem;}
}
}
.btn-group { .ohz;
&.full {
button {width: 100%; margin-bottom: 0.4rem;}
.el-button+.el-button {margin:0}
.el-button.is-round{border-radius: 0.5rem;padding: 0.25rem 0.25rem;}
.el-button {font-size: 0.36rem;}
}
}
.v {font-size: 0.4rem; color: #252525}
.k {font-size:0.26rem; color: #252525; margin-left: 0.1rem;}
...
...
@@ -125,3 +151,11 @@ html,body {-webkit-tap-highlight-color: rgba(0, 0, 0,0); font-size: 0.28rem; bac
.title {margin-top: 0.1rem;}
}
.c-charts {width:100%;height:220px;}
.main {margin-top: 50px; min-height: 120vh;}
.mobile-android{
}
.mobile-ios {
.mint-header {padding-top: 20px; box-sizing: content-box;}
}
\ No newline at end of file
src/components/Home.vue
View file @
0dbdc493
<
template
>
<div
class=
"
warp
"
>
<div
class=
"header
-home
"
flex=
"main:center cross:center"
><img
class=
"logo"
src=
"../assets/img/logo.png"
alt=
""
/></div>
<div
class=
"swiper
-home
"
>
<div
class=
"
home
"
>
<div
class=
"header"
flex=
"main:center cross:center"
><img
class=
"logo"
src=
"../assets/img/logo.png"
alt=
""
/></div>
<div
class=
"swiper"
>
<swiper
:options=
"swiperOption"
ref=
"mySwiper"
>
<!-- slides -->
<swiper-slide
flex=
"main:center cross:center"
v-for=
"(coin,coinIdx) in $store.state.cur_coins"
:key=
"coin"
><span
:class=
"coinIdx==active?coin+' active':coin+''"
@
click=
"changeCoin(coin,coinIdx)"
>
{{
coin
|
uppercase
}}
</span></swiper-slide>
...
...
@@ -11,7 +11,7 @@
</swiper>
</div>
<indexChart
:params_coin=
coin
></indexChart>
<div
class=
"btn-group mt40 pb40 pl100 pr100"
>
<div
class=
"btn-group
full
mt40 pb40 pl100 pr100"
>
<el-button
type=
"primary"
round
@
click=
"login"
class=
"button-primary"
>
登录
</el-button>
<el-button
round
@
click=
"reg"
>
注册
</el-button>
</div>
...
...
@@ -43,7 +43,7 @@ export default {
nextButton
:
'.swiper-button-next'
,
observeParents
:
true
,
debugger
:
true
,
slidesPerView
:
2
,
slidesPerView
:
3
,
},
coin
:
$store
.
state
.
cur_coins
[
0
],
active
:
0
...
...
src/components/Login.vue
View file @
0dbdc493
<
template
>
<div
class=
""
>
{{
msg
}}
<button
@
click=
"loginOk"
>
登录成功后!
</button>
<div
class=
"page login"
>
<div
class=
"page-header"
flex=
"main:justify cross:center"
>
<div
class=
"back"
@
click=
"goBack"
><i
class=
"iconfont icon-fanhui"
></i></div>
<div
class=
"title"
>
登录
</div>
<div
class=
"btns"
@
click=
"goReg"
>
注册
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"logo"
><img
src=
"../assets/img/logo2.png"
alt=
""
/></div>
<div
class=
"form-content"
>
<el-form
:model=
"loginForm"
ref=
"loginForm"
label-width=
"0px"
>
<el-form-item
prop=
"email"
label=
""
:rules=
"[
{ required: true, message: '请输入邮箱地址', trigger: 'blur' },{ type: 'email', message: '请输入正确的邮箱地址', trigger: 'blur,change' }]">
<el-input
v-model=
"loginForm.email"
placeholder=
"输入邮箱"
><i
slot=
"prefix"
class=
"iconfont icon-email"
></i></el-input>
</el-form-item>
<el-form-item
prop=
"password"
label=
""
:rules=
"[
{ required: true, message: '请输入密码', trigger: 'blur' }]">
<el-input
v-model=
"loginForm.password"
type=
"password"
placeholder=
"输入密码"
><i
slot=
"prefix"
class=
"iconfont icon-password"
></i></el-input>
</el-form-item>
<el-form-item>
<div
class=
"btn-group full mt100"
>
<el-button
type=
"primary"
round
@
click=
"submitForm('loginForm')"
class=
"button-primary"
>
提交
</el-button>
</div>
</el-form-item>
</el-form>
</div>
<div
class=
""
></div>
<!--
<button
@
click=
"loginOk"
>
登录成功后!
</button>
-->
</div>
</div>
</
template
>
<
script
>
...
...
@@ -9,17 +33,35 @@ export default {
data
()
{
return
{
msg
:
'用户登录页'
,
loginForm
:
{
email
:
''
,
password
:
''
}
}
},
mounted
()
{
},
methods
:
{
loginOk
(){
console
.
log
(
"login ok"
);
// loginOk() {
// this.$router.replace('/jump')
// },
goBack
()
{
this
.
$router
.
go
(
-
1
)
},
goReg
()
{
this
.
$router
.
replace
(
"/reg"
)
},
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$router
.
replace
(
'/jump'
)
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
}
});
},
}
}
...
...
src/components/Reg.vue
View file @
0dbdc493
<
template
>
<div
class=
""
>
{{
msg
}}
<button
@
click=
"loginOk"
>
注册成功后?重新登录:直接跳jump!
</button>
<div
class=
"page"
>
<div
class=
"page-header"
flex=
"main:justify cross:center"
>
<div
class=
"back"
@
click=
"goBack"
><i
class=
"iconfont icon-fanhui"
></i></div>
<div
class=
"title"
>
注册
</div>
<div
class=
"btns"
@
click=
"goLogin"
>
登录
</div>
</div>
<div
class=
"page-content"
>
{{
msg
}}
<button
@
click=
"loginOk"
>
注册成功后?重新登录:直接跳jump!
</button>
</div>
</div>
</
template
>
<
script
>
...
...
@@ -15,6 +23,12 @@ export default {
},
methods
:
{
goBack
()
{
this
.
$router
.
go
(
-
1
)
},
goLogin
()
{
this
.
$router
.
replace
(
"/login"
)
}
}
}
...
...
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