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
09f2a502
Commit
09f2a502
authored
Apr 08, 2019
by
聂春风
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updata:引导new
parent
5c9429ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
7 deletions
+42
-7
home.less
src/pages/kejiji/webview/content/page/home.less
+32
-0
home.vue
src/pages/kejiji/webview/content/page/home.vue
+10
-7
No files found.
src/pages/kejiji/webview/content/page/home.less
View file @
09f2a502
...
...
@@ -90,6 +90,38 @@
padding-bottom: 32px;
border-radius: 12px;
}
.home .guider-bg {
position: absolute;
width: 100%;
height: 100%;
top: -80px;
left: -20px;
padding: 20px;
padding-top: 80px;
background-color: #fff;
border-radius: 20px;
.guider-btn{
pointer-events: all;
position: absolute;
left: 0;
top: 0;
width: 750px;
height: 300px;
z-index: 1;
&::after{
display: block;
content: '';
width: 383px;
height: 216px;
background: url("//yun.duiba.com.cn/h5/miniprogram/kejiji/web/dianji-tip-2.png") no-repeat center;
background-size: 100% 100%;
position: absolute;
z-index: 2;
right: 75px;
top: 350px;
}
}
}
.home{
border-radius: 20px;
width: 670px;
...
...
src/pages/kejiji/webview/content/page/home.vue
View file @
09f2a502
<
template
>
<div
class=
"page"
:class=
"
{hiding:hiding}">
<!--
<div
class=
"tip"
>
{{
tip
}}
</div>
-->
<section
class=
"today-news"
:class=
"
{hiding:hiding}"
>
<section
class=
"today-news"
>
<div
class=
"title"
>
今日早报
</div>
<a
class=
"home nocolor"
@
click=
"showToday"
>
<div
class=
"f-shadow"
>
...
...
@@ -13,12 +13,15 @@
<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>
</div>
</a>
</section>
<section
class=
"activity"
>
<div
class=
"title"
:class=
"
{hiding:hiding}">展业活动
</div>
<div
class=
"act-shadow"
v-for=
"(item, index) in activitLyist"
:key=
"index"
:class=
"
{'hiding':hiding
&&
index>0
}">
<div
class=
"act-shadow"
v-for=
"(item, index) in activitLyist"
:key=
"index"
:class=
"
{'hiding':hiding}">
<div
class=
"act-img"
:style=
"
{'background-image': 'url(' + item.pic + ')'}">
</div>
<div
class=
"act-info"
>
<div
class=
"act-title"
>
{{
item
.
title
}}
</div>
...
...
@@ -156,12 +159,15 @@ export default {
// src: this.src
// })
// })
let
url
=
formatUrl
(
'/pages/news/news_today/main'
,
{
let
params
=
{
scid
:
id
,
n
:
Math
.
random
(),
title
:
this
.
title
,
src
:
this
.
src
})
};
if
(
step
)
params
.
shareGuide
=
true
;
let
url
=
formatUrl
(
'/pages/news/news_today/main'
,
params
);
wx
.
miniProgram
.
navigateTo
({
url
:
url
...
...
@@ -356,9 +362,6 @@ export default {
}
else
{
let
url
=
`/pages/share/main?scid=
${
id
}
`
;
if
(
step
){
url
=
url
+
"&shareGuide=true"
;
}
wx
.
miniProgram
.
navigateTo
({
url
:
url
});
}
}
...
...
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