Fix:4731 【旅居商城小程序】千县资讯已点赞的情况下,资讯详情页的点赞按钮颜色与列表的不一致
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
</view>
|
||||
<view class="flex">
|
||||
<image
|
||||
v-if="!item.zanVo"
|
||||
v-if="!item.hasZan"
|
||||
:src="webUrl + '/page/hotel/zan-off-2.png'"
|
||||
class="zan-off-icon"
|
||||
@click="likeInfo"
|
||||
@@ -195,7 +195,7 @@
|
||||
|
||||
<script>
|
||||
import { getCommentList, addComment } from "@/api/inn"
|
||||
import { getCityNewsDetail, postCountyFamousShopZan } from "@/api/qianxian"
|
||||
import { getCityNewsDetail, postCountyFamousNewsZan } from "@/api/qianxian"
|
||||
import imgBox from '@/components/imageTypeSet/imagebox.vue'
|
||||
export default {
|
||||
components: {
|
||||
@@ -341,7 +341,7 @@ export default {
|
||||
uni.showLoading({
|
||||
mask: true
|
||||
})
|
||||
postCountyFamousShopZan({ countyFamousDataId: this.id }).then((res) => {
|
||||
postCountyFamousNewsZan({ countyFamousNewsId: this.id }).then((res) => {
|
||||
uni.hideLoading()
|
||||
getCityNewsDetail(this.id).then(({ data }) => (this.item = data))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user