Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duiba-h5-frame
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
江思志
duiba-h5-frame
Commits
e00bb42f
Commit
e00bb42f
authored
Apr 11, 2019
by
jsz315
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉转发名片开关,内容页布局修改
parent
d74d30eb
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
160 additions
and
38 deletions
+160
-38
h5info.json
mock/kjy/mp/content/h5info.json
+33
-1
package.json
package.json
+1
-1
home.less
src/pages/kejiji/webview/content/page/home.less
+92
-19
home.vue
src/pages/kejiji/webview/content/page/home.vue
+27
-9
today.less
src/pages/kejiji/webview/daily/page/today.less
+6
-6
tsconfig.json
tsconfig.json
+1
-2
No files found.
mock/kjy/mp/content/h5info.json
View file @
e00bb42f
This diff is collapsed.
Click to expand it.
package.json
View file @
e00bb42f
...
...
@@ -11,7 +11,7 @@
"server"
:
"cross-env NODE_ENV=production node ./bin/www"
,
"lint"
:
"eslint --ext .js src/pages"
,
"fix"
:
"eslint --fix .js src/pages"
,
"build-dev"
:
"cross-env NODE_ENV=development node bin/build.js"
,
"build-dev
333333
"
:
"cross-env NODE_ENV=development node bin/build.js"
,
"build-prod"
:
"cross-env NODE_ENV=production node bin/build.js"
,
"pack"
:
"cross-env NODE_ENV=production node bin/pack.js"
,
"upload"
:
"cross-env NODE_ENV=development node bin/upload.js"
,
...
...
src/pages/kejiji/webview/content/page/home.less
View file @
e00bb42f
...
...
@@ -30,16 +30,21 @@
}
.home.nocolor{
// box-shadow: none;
margin-top:
96
px;
margin-top:
144
px;
}
.go-more{
position: absolute;
width:
99
px;
height: 1
00
px;
background: url("
http://yun.dui88.com/h5/miniprogram/kejiji/group-go
.png") no-repeat center;
width:
237
px;
height: 1
35
px;
background: url("
//yun.dui88.com/h5/miniprogram/kejiji/web/group-send
.png") no-repeat center;
background-size: contain;
right: 12px;
bottom: 12px;
bottom: 6px;
color: #fff;
font-size: 30px;
text-align: center;
line-height: 124px;
font-weight: 600;
}
.title{
font-size: 36px;
...
...
@@ -60,7 +65,7 @@
}
.no-bottom{
margin-bottom: 0;
margin-top:
4
0px;
margin-top:
2
0px;
}
.f-shadow{
position: relative;
...
...
@@ -103,7 +108,7 @@
}
.home{
border-radius: 20px;
width: 6
7
0px;
width: 6
9
0px;
margin: 30px auto 40px;
padding-top: 16px;
position: relative;
...
...
@@ -140,13 +145,13 @@
}
.bar{
border-radius: 20px;
width: 6
26
px;
width: 6
90
px;
margin: 10px auto;
height: 150px;
position: relative;
.pic{
width: 6
3
0px;
height: 2
3
6px;
width: 6
9
0px;
height: 2
9
6px;
position: absolute;
bottom: 0;
left: 0;
...
...
@@ -155,27 +160,48 @@
background-position: center;
background-size: cover;
border-radius: 12px;
overflow: hidden;
.pic-title{
width: 100%;
height: 159px;
position: absolute;
left: 0;
bottom: -1px;
background-image: linear-gradient(-180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.5) 60%);
}
.title-word{
color: #fff;
position: absolute;
left: 30px;
width: 630px;
bottom: 15px;
line-height: 44px;
font-size: 32px;
font-weight: 600;
}
}
}
.tip1{
font-size: 32px;
color: #333333;
padding: 8px 24px 8px 72px;
margin-top: 40px;
margin-bottom: 20px;
font-size: 28px;
color: #333333;
font-weight: 600;
// overflow:hidden;
// text-overflow:ellipsis;
// display:-webkit-box;
// -webkit-line-clamp:2;
// -webkit-box-orient:vertical;
font-weight: 600;
position: relative;
&::after{
width: 22px;
height: 32px;
background: url("//yun.dui88.com/h5
-mami/webgame/kejiji/webview/img/fire
.png") no-repeat center;
background: url("//yun.dui88.com/h5
/miniprogram/kejiji/web/fires
.png") no-repeat center;
background-size: contain;
position: absolute;
left: 32px;
top: 1
4
px;
top: 1
0
px;
display: block;
content: "";
}
...
...
@@ -223,9 +249,29 @@
}
.article-container{
padding: 0 40px;
.see-more-btn{
display: block;
height: 90px;
line-height: 90px;
text-align: center;
font-size: 28px;
color: #999999;
margin-bottom: 60px;
border-bottom: 1px solid #EDEDED;
display: flex;
justify-content: center;
align-items: center;
.more-ico{
width: 20px;
height: 20px;
background: url("//yun.dui88.com/h5/miniprogram/kejiji/web/icon_more.png") no-repeat center;
background-size: contain;
margin-left: 10px;
}
}
.content__wrap{
padding: 40px 0;
border-
top
: 1px solid #EDEDED;
border-
bottom
: 1px solid #EDEDED;
.content-info{
display: flex;
justify-content: space-between;
...
...
@@ -246,7 +292,7 @@
}
.share-info{
margin-top: 22px;
font-size: 2
4
px;
font-size: 2
6
px;
color: #999999;
align-items: flex-end
}
...
...
@@ -271,14 +317,13 @@
}
.dui-tag{
color: #999999;
font-size: 2
4
px;
font-size: 2
6
px;
display: inline-block;
}
.dui-tag--solid{
letter-spacing: 0.12px;
}
.header{
margin-bottom: 24px;
align-items: flex-end;
h3{
font-size: 40px;
...
...
@@ -298,6 +343,9 @@
}
.activity{
// margin-bottom: 50px;
.title{
margin-bottom: 30px;
}
.activity__img{
width: 170px;
height: 210px;
...
...
@@ -532,4 +580,29 @@
}
}
}
}
.date-time{
position: absolute;
left: 0;
top: 0;
background: url("//yun.dui88.com/h5/miniprogram/kejiji/web/tag-title.png") no-repeat center;
background-size: 100% 100%;
width: 222px;
height: 60px;
color: #fff;
padding-right: 20px;
font-size: 36px;
line-height: 60px;
text-align: center;
font-weight: 600;
.date{
display: flex;
justify-content: center;
align-items: center;
}
.week{
font-size: 28px;
margin-left: 8px;
}
}
\ No newline at end of file
src/pages/kejiji/webview/content/page/home.vue
View file @
e00bb42f
...
...
@@ -7,12 +7,22 @@
<a
class=
"home nocolor"
@
click=
"openShowToday"
>
<div
class=
"f-shadow"
>
<div
class=
"bar"
>
<div
class=
"pic"
:style=
"
{'background-image': 'url(' + src + ')'}" >
</div>
<div
class=
"pic"
:style=
"
{'background-image': 'url(' + src + ')'}" >
<div
class=
"pic-title"
>
<div
class=
"title-word"
>
{{
getText
(
title
,
80
)
}}
</div>
</div>
<div
class=
"date-time"
>
<div
class=
"date"
>
{{
today
.
month
>
9
?
today
.
month
:
'0'
+
today
.
month
}}
/
{{
today
.
date
>
9
?
today
.
date
:
'0'
+
today
.
date
}}
<span
class=
"week"
>
{{
today
.
week
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"tip1"
>
{{
getText
(
title
,
68
)
}}
</div>
<div
class=
"tip2"
><div
class=
"nums"
>
1
</div>
{{
subTitle1
}}
</div>
<div
class=
"tip2"
><div
class=
"nums"
>
2
</div>
{{
subTitle2
}}
</div>
<div
class=
"go-more"
></div>
<div
class=
"tip1"
>
{{
"每天分享早报,持续收获关注"
}}
</div>
<
!--
<
div
class=
"tip2"
><div
class=
"nums"
>
1
</div>
{{
subTitle1
}}
</div>
<div
class=
"tip2"
><div
class=
"nums"
>
2
</div>
{{
subTitle2
}}
</div>
-->
<div
class=
"go-more"
>
马上转发
</div>
</div>
<div
class=
"guider-bg"
v-if=
"hiding"
>
<div
class=
"guider-btn"
></div>
...
...
@@ -25,7 +35,7 @@
<!--
<h3>
热门文章
</h3>
-->
<div
class=
"title no-bottom"
>
获客爆文
<
a
@
click=
"openArticlList"
class=
"see-more__link"
hover-class=
"none"
><span
class=
"more"
>
查看更多
</span></a
>
<
!--
<a
@
click=
"openArticlList"
class=
"see-more__link"
hover-class=
"none"
><span
class=
"more"
>
查看更多
</span></a>
--
>
</div>
</div>
...
...
@@ -43,6 +53,7 @@
</div>
</div>
</div>
<a
@
click=
"openArticlList"
class=
"see-more-btn"
>
查看更多爆文
<div
class=
"more-ico"
></div></a>
</section>
<section
class=
"activity"
>
...
...
@@ -61,7 +72,7 @@
</div>
</section>
<div
class=
"intercept__modal"
v-if=
"showInterceptModal"
>
<div
class=
"modal_main"
>
<div
class=
"J_close close"
@
click=
"closeModal"
></div>
...
...
@@ -95,6 +106,9 @@ const API = {
userInfo
:
'/kjy/mp/user/info'
}
const
tdate
=
new
Date
();
function
getParam
(){
var
param
=
getUrlParameter
(
"param"
);
try
{
...
...
@@ -126,8 +140,12 @@ export default {
weixinQrcode
:
''
,
showInterceptModal
:
false
,
sellerId
:
""
,
loading
:
false
loading
:
false
,
today
:
{
date
:
tdate
.
getDate
(),
month
:
tdate
.
getMonth
()
+
1
,
week
:
"星期"
+
"日一二三四五六"
.
split
(
""
)[
tdate
.
getDay
()]
}
};
},
props
:
{
...
...
src/pages/kejiji/webview/daily/page/today.less
View file @
e00bb42f
...
...
@@ -302,9 +302,9 @@
}
}
.tip1{
font-size:
28
px;
font-size:
32
px;
color: #55565C;
line-height:
52
px;
line-height:
60
px;
position: relative;
}
.commet{
...
...
@@ -359,11 +359,11 @@
position: absolute;
right: 4px;
bottom: 0px;
font-size: 2
4
px;
font-size: 2
8
px;
color: #A0A0A0;
padding-right: 28px;
height:
5
0px;
line-height:
5
0px;
height:
6
0px;
line-height:
6
0px;
padding-left: 80px;
background: -webkit-gradient(linear, 0 0, 40% 0, from(rgba(255, 255, 255, 0)), to(rgb(255, 255, 255)));
z-index: 1;
...
...
@@ -372,7 +372,7 @@
right: 0;
bottom: 0;
width: 24px;
height:
54
px;
height:
60
px;
display: block;
content: "";
background: url("//yun.dui88.com/h5-mami/webgame/kejiji/img/more.png") no-repeat center;
...
...
tsconfig.json
View file @
e00bb42f
...
...
@@ -7,7 +7,6 @@
},
"exclude"
:
[
"./src/pages/game/core/ts/core.d.ts"
,
"./src/pages/game/farm/"
,
]
}
\ No newline at end of file
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