Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ycc-website
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Website
ycc-website
Commits
fdde44a9
Commit
fdde44a9
authored
Jul 08, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
链接替换
parent
f0e78e65
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
newsDetails.vue
src/views/mobile/newsDetails.vue
+1
-0
newsList.vue
src/views/mobile/newsList.vue
+3
-0
newsDetails.vue
src/views/pc/newsDetails.vue
+1
-0
newsList.vue
src/views/pc/newsList.vue
+4
-0
No files found.
src/views/mobile/newsDetails.vue
View file @
fdde44a9
...
...
@@ -62,6 +62,7 @@ export default Vue.extend({
const
language
=
window
.
sessionStorage
.
getItem
(
'language'
)
||
'zh-CN'
this
.
isLoading
=
true
getNewsDetails
(
this
.
id
,
language
).
then
(
res
=>
{
res
.
content
=
res
.
content
.
replace
(
/public.33.cn/g
,
'public.yuan.org'
)
this
.
details
=
res
const
{
published_time
}
=
res
const
_t
=
published_time
.
split
(
' '
)[
0
]
...
...
src/views/mobile/newsList.vue
View file @
fdde44a9
...
...
@@ -46,6 +46,9 @@ export default Vue.extend({
this
.
isLoading
=
true
getNews
(
language
).
then
(
res
=>
{
this
.
allLists
=
res
.
rows
this
.
allLists
.
forEach
((
item
:
{
cover
:
string
})
=>
{
item
.
cover
=
item
.
cover
.
replace
(
/public.33.cn/g
,
'public.yuan.org'
)
})
this
.
total
=
this
.
allLists
.
length
this
.
getLists
()
this
.
isLoading
=
false
...
...
src/views/pc/newsDetails.vue
View file @
fdde44a9
...
...
@@ -71,6 +71,7 @@ export default Vue.extend({
const
language
=
window
.
sessionStorage
.
getItem
(
'language'
)
||
'zh-CN'
this
.
isLoading
=
true
getNewsDetails
(
this
.
id
,
language
).
then
(
res
=>
{
res
.
content
=
res
.
content
.
replace
(
/public.33.cn/g
,
'public.yuan.org'
)
this
.
details
=
res
const
{
published_time
}
=
res
const
_t
=
published_time
.
split
(
' '
)[
0
]
...
...
src/views/pc/newsList.vue
View file @
fdde44a9
...
...
@@ -57,6 +57,10 @@ export default Vue.extend({
this
.
isLoading
=
true
getNews
(
language
).
then
(
res
=>
{
this
.
allLists
=
res
.
rows
this
.
allLists
.
forEach
((
item
:
{
cover
:
string
})
=>
{
item
.
cover
=
item
.
cover
.
replace
(
/public.33.cn/g
,
'public.yuan.org'
)
})
console
.
log
(
this
.
allLists
)
this
.
total
=
this
.
allLists
.
length
this
.
getLists
()
this
.
isLoading
=
false
...
...
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