chenquansheng

fix |> 修复进入文章详情页时关注按钮从已关注变成关注

@@ -219,7 +219,7 @@ @@ -219,7 +219,7 @@
219 <div class="cdescrip_text" v-if="details.rmhDesc" @click="skipCustomerNumberPage">{{details.rmhDesc}}</div> 219 <div class="cdescrip_text" v-if="details.rmhDesc" @click="skipCustomerNumberPage">{{details.rmhDesc}}</div>
220 </div> 220 </div>
221 <!-- @click.stop阻止事件冒泡 --> 221 <!-- @click.stop阻止事件冒泡 -->
222 - <template v-if="!isOwer"> 222 + <template v-if="!isOwer && showButton">
223 <div class="clook-btn clook" @click.stop="clookBtn" v-if="clookStatusSee || showClook"> 223 <div class="clook-btn clook" @click.stop="clookBtn" v-if="clookStatusSee || showClook">
224 <template v-if="clookBtnActive"> 224 <template v-if="clookBtnActive">
225 <img class="clook-loading anticon-spin" src="./image/loading_clock.svg" alt=""> 225 <img class="clook-loading anticon-spin" src="./image/loading_clock.svg" alt="">
@@ -50,6 +50,7 @@ const app = Vue.createApp({ @@ -50,6 +50,7 @@ const app = Vue.createApp({
50 const isRmh = ref(null) 50 const isRmh = ref(null)
51 const isNewspaper = ref(null) 51 const isNewspaper = ref(null)
52 const browseStr = ref('') 52 const browseStr = ref('')
  53 + const showButton = ref(false)
53 54
54 const state = reactive({ 55 const state = reactive({
55 clientHeight: 0, 56 clientHeight: 0,
@@ -1051,11 +1052,13 @@ const app = Vue.createApp({ @@ -1051,11 +1052,13 @@ const app = Vue.createApp({
1051 headers: state.appHeader, 1052 headers: state.appHeader,
1052 showError: false 1053 showError: false
1053 }) 1054 })
  1055 + showButton.value = true
1054 if (response.success) { 1056 if (response.success) {
1055 clookStatusSee.value = response.data[0].status == '1' ? false : true // '1' 是已关注 '0'是未关注 1057 clookStatusSee.value = response.data[0].status == '1' ? false : true // '1' 是已关注 '0'是未关注
1056 } 1058 }
1057 } else { 1059 } else {
1058 if (state.creatorID == state.details.rmhId) { 1060 if (state.creatorID == state.details.rmhId) {
  1061 + showButton.value = true
1059 isOwer.value = true 1062 isOwer.value = true
1060 clookStatusSee.value = false 1063 clookStatusSee.value = false
1061 nextTick(() => { 1064 nextTick(() => {
@@ -1090,6 +1093,7 @@ const app = Vue.createApp({ @@ -1090,6 +1093,7 @@ const app = Vue.createApp({
1090 const code = statusResponseMap.code 1093 const code = statusResponseMap.code
1091 const data = statusResponseMap.data 1094 const data = statusResponseMap.data
1092 if ([ 200, '0' ].includes(code)) { 1095 if ([ 200, '0' ].includes(code)) {
  1096 + showButton.value = true
1093 if (data) { 1097 if (data) {
1094 if (data[0].status == '1') { 1098 if (data[0].status == '1') {
1095 state.initClockStatus = !initStatus 1099 state.initClockStatus = !initStatus
@@ -1949,6 +1953,7 @@ const app = Vue.createApp({ @@ -1949,6 +1953,7 @@ const app = Vue.createApp({
1949 isNewspaper.value = false 1953 isNewspaper.value = false
1950 voteInit.value = false 1954 voteInit.value = false
1951 showClook.value = false 1955 showClook.value = false
  1956 + showButton.value = false
1952 optionList.value = [] 1957 optionList.value = []
1953 subjectList.value = [] 1958 subjectList.value = []
1954 channelList.value = [] 1959 channelList.value = []
@@ -2074,6 +2079,7 @@ const app = Vue.createApp({ @@ -2074,6 +2079,7 @@ const app = Vue.createApp({
2074 optionList, 2079 optionList,
2075 showClook, 2080 showClook,
2076 clookStatusSee, 2081 clookStatusSee,
  2082 + showButton,
2077 timeLine, 2083 timeLine,
2078 shareOpen, 2084 shareOpen,
2079 hasReadCount, 2085 hasReadCount,