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