Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
d5fb7a2b
Commit
d5fb7a2b
authored
May 11, 2021
by
林文清
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:自营-首页消息,学习-培训通知 高度自适应
parent
de5ffc80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
index.vue
src/pages/index/index.vue
+13
-5
learn.vue
src/pages/index/learn.vue
+2
-2
No files found.
src/pages/index/index.vue
View file @
d5fb7a2b
...
@@ -9,10 +9,10 @@
...
@@ -9,10 +9,10 @@
<view
class=
"msg-view"
>
<view
class=
"msg-view"
>
<view
class=
"msg-title"
>
最新消息
</view>
<view
class=
"msg-title"
>
最新消息
</view>
<view
class=
"msg-list-view"
>
<view
class=
"msg-list-view"
>
<view
class=
"msg-content"
v-for=
"(item, index) in messageList"
:key=
"index"
>
<view
class=
"msg-content"
v-for=
"(item, index) in messageList"
:key=
"index"
@
click=
"toNewsDetail(item)"
>
<view
class=
"msg-content-view"
>
<view
class=
"msg-content-view"
>
<view
class=
"left-view"
>
<view
class=
"left-view"
>
<image
class=
"msg-icon"
:src=
"msgStyleImage[item.
content_type
]"
></image>
<image
class=
"msg-icon"
:src=
"msgStyleImage[item.
is_top
]"
></image>
<text
class=
"msg-text"
>
{{
item
.
title
}}
</text>
<text
class=
"msg-text"
>
{{
item
.
title
}}
</text>
</view>
</view>
<image
class=
"right-icon"
:src=
"shouyeyouImage"
></image>
<image
class=
"right-icon"
:src=
"shouyeyouImage"
></image>
...
@@ -123,8 +123,8 @@
...
@@ -123,8 +123,8 @@
msgStyleImage
()
{
msgStyleImage
()
{
return
{
return
{
'1'
:
process
.
uniEnv
.
qn_base_url
+
"zhiding.png"
,
// 置顶
'1'
:
process
.
uniEnv
.
qn_base_url
+
"zhiding.png"
,
// 置顶
'
2
'
:
process
.
uniEnv
.
qn_base_url
+
"tongzhi.png"
,
// 通知
'
0
'
:
process
.
uniEnv
.
qn_base_url
+
"tongzhi.png"
,
// 通知
'3'
:
process
.
uniEnv
.
qn_base_url
+
"xiaoxi.png"
,
// 消息
//
'3': process.uniEnv.qn_base_url + "xiaoxi.png", // 消息
}
}
},
},
bannerImage
()
{
bannerImage
()
{
...
@@ -398,7 +398,15 @@
...
@@ -398,7 +398,15 @@
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
}
}
});
});
},
},
toNewsDetail
(
item
)
{
wx
.
navigateTo
({
url
:
'/pages/learn/news-details'
,
success
:
function
(
res
)
{
res
.
eventChannel
.
emit
(
'acceptDataFromLearn'
,
item
)
}
});
}
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/index/learn.vue
View file @
d5fb7a2b
...
@@ -744,7 +744,7 @@
...
@@ -744,7 +744,7 @@
.notice
{
.notice
{
/* border: #808080 solid 2rpx; */
/* border: #808080 solid 2rpx; */
width
:
100%
;
width
:
100%
;
height
:
370
rpx
;
min-
height
:
370
rpx
;
margin-top
:
36
rpx
;
margin-top
:
36
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
...
@@ -868,7 +868,7 @@
...
@@ -868,7 +868,7 @@
}
}
swiper
{
swiper
{
height
:
920
rpx
;
height
:
65vh
;
}
}
.line-percent
{
.line-percent
{
...
...
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