Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chenquansheng
2024-08-22 16:40:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5cd59b85a90e3c41f7eb015ff7150b7959d7e05d
5cd59b85
1 parent
892a3c39
fix |> 修复进入文章详情页时关注按钮从已关注变成关注
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/resources/rawfile/apph5/index.html
sight_harmony/features/wdComponent/src/main/resources/rawfile/apph5/js/index.js
sight_harmony/features/wdComponent/src/main/resources/rawfile/apph5/index.html
View file @
5cd59b8
...
...
@@ -219,7 +219,7 @@
<div
class=
"cdescrip_text"
v-if=
"details.rmhDesc"
@
click=
"skipCustomerNumberPage"
>
{{details.rmhDesc}}
</div>
</div>
<!-- @click.stop阻止事件冒泡 -->
<template
v-if=
"!isOwer"
>
<template
v-if=
"!isOwer
&& showButton
"
>
<div
class=
"clook-btn clook"
@
click
.
stop=
"clookBtn"
v-if=
"clookStatusSee || showClook"
>
<template
v-if=
"clookBtnActive"
>
<img
class=
"clook-loading anticon-spin"
src=
"./image/loading_clock.svg"
alt=
""
>
...
...
sight_harmony/features/wdComponent/src/main/resources/rawfile/apph5/js/index.js
View file @
5cd59b8
...
...
@@ -50,6 +50,7 @@ const app = Vue.createApp({
const
isRmh
=
ref
(
null
)
const
isNewspaper
=
ref
(
null
)
const
browseStr
=
ref
(
''
)
const
showButton
=
ref
(
false
)
const
state
=
reactive
({
clientHeight
:
0
,
...
...
@@ -1051,11 +1052,13 @@ const app = Vue.createApp({
headers
:
state
.
appHeader
,
showError
:
false
})
showButton
.
value
=
true
if
(
response
.
success
)
{
clookStatusSee
.
value
=
response
.
data
[
0
].
status
==
'1'
?
false
:
true
// '1' 是已关注 '0'是未关注
}
}
else
{
if
(
state
.
creatorID
==
state
.
details
.
rmhId
)
{
showButton
.
value
=
true
isOwer
.
value
=
true
clookStatusSee
.
value
=
false
nextTick
(()
=>
{
...
...
@@ -1090,6 +1093,7 @@ const app = Vue.createApp({
const
code
=
statusResponseMap
.
code
const
data
=
statusResponseMap
.
data
if
([
200
,
'0'
].
includes
(
code
))
{
showButton
.
value
=
true
if
(
data
)
{
if
(
data
[
0
].
status
==
'1'
)
{
state
.
initClockStatus
=
!
initStatus
...
...
@@ -1949,6 +1953,7 @@ const app = Vue.createApp({
isNewspaper
.
value
=
false
voteInit
.
value
=
false
showClook
.
value
=
false
showButton
.
value
=
false
optionList
.
value
=
[]
subjectList
.
value
=
[]
channelList
.
value
=
[]
...
...
@@ -2074,6 +2079,7 @@ const app = Vue.createApp({
optionList
,
showClook
,
clookStatusSee
,
showButton
,
timeLine
,
shareOpen
,
hasReadCount
,
...
...
Please
register
or
login
to post a comment