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
c2f2ed52
Commit
c2f2ed52
authored
May 11, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
5af884a1
d5fb7a2b
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 @
c2f2ed52
...
...
@@ -9,10 +9,10 @@
<view
class=
"msg-view"
>
<view
class=
"msg-title"
>
最新消息
</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=
"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>
</view>
<image
class=
"right-icon"
:src=
"shouyeyouImage"
></image>
...
...
@@ -123,8 +123,8 @@
msgStyleImage
()
{
return
{
'1'
:
process
.
uniEnv
.
qn_base_url
+
"zhiding.png"
,
// 置顶
'
2
'
:
process
.
uniEnv
.
qn_base_url
+
"tongzhi.png"
,
// 通知
'3'
:
process
.
uniEnv
.
qn_base_url
+
"xiaoxi.png"
,
// 消息
'
0
'
:
process
.
uniEnv
.
qn_base_url
+
"tongzhi.png"
,
// 通知
//
'3': process.uniEnv.qn_base_url + "xiaoxi.png", // 消息
}
},
bannerImage
()
{
...
...
@@ -398,7 +398,15 @@
fail
:
function
(
err
)
{
}
});
},
},
toNewsDetail
(
item
)
{
wx
.
navigateTo
({
url
:
'/pages/learn/news-details'
,
success
:
function
(
res
)
{
res
.
eventChannel
.
emit
(
'acceptDataFromLearn'
,
item
)
}
});
}
},
};
</
script
>
...
...
src/pages/index/learn.vue
View file @
c2f2ed52
...
...
@@ -744,7 +744,7 @@
.notice
{
/* border: #808080 solid 2rpx; */
width
:
100%
;
height
:
370
rpx
;
min-
height
:
370
rpx
;
margin-top
:
36
rpx
;
overflow
:
hidden
;
background-color
:
#ffffff
;
...
...
@@ -868,7 +868,7 @@
}
swiper
{
height
:
920
rpx
;
height
:
65vh
;
}
.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