修改小程序bug
This commit is contained in:
@@ -48,18 +48,18 @@
|
||||
</view>
|
||||
<!-- thumb无值,显示‘点赞’二字 ,用户进行一次点赞之后,显示1赞-->
|
||||
<view v-else class="heart">
|
||||
<view v-if="detailList.is_thumb==0">
|
||||
<view v-if="detailList.is_thumb==0" style="display: flex;">
|
||||
<u-image src="/static/detail/xp_icon_heart.png" width="34rpx" height="32rpx"
|
||||
@click="heartTap">
|
||||
</u-image>
|
||||
<text class="thumb" @click="heartTap">点赞</text>
|
||||
</view>
|
||||
<view v-if="detailList.is_thumb==1">
|
||||
<view v-if="detailList.is_thumb==1" style="display: flex;">
|
||||
<!-- 用户是否点赞字段 showHeart -->
|
||||
<u-image src="/static/detail/xp_icon_ysc.png" width="34rpx" height="32rpx"
|
||||
@click="cancelHeartTap(detailList.thumb_id)">
|
||||
</u-image>
|
||||
<text class="thumb">{{detailList.thumb}} 赞</text>
|
||||
<text class="thumb">{{detailList.thumb==NaN?1:detailList.thumb}} 赞</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -151,12 +151,16 @@
|
||||
this.showUpdate = true
|
||||
}
|
||||
//升级VIP正在审核中
|
||||
if (dataCode == 0 && detail.mytpe == 99) {
|
||||
if (dataCode == 0 && detail.mytpe == 3) {
|
||||
this.showUpdating = true
|
||||
}
|
||||
|
||||
|
||||
if (detail) {
|
||||
detail.pub_time = dateFormatDetail(detail.pub_time)
|
||||
detail.tags = detail.tags.split(',')
|
||||
if (detail.tags) {
|
||||
detail.tags = detail.tags.split(',')
|
||||
}
|
||||
//点赞数
|
||||
if (detail.thumbcount !== 0 && detail.is_thumb == 0) {
|
||||
detail.thumb = parseInt(detail.thumb) + parseInt(detail.thumbcount)
|
||||
|
||||
@@ -214,7 +214,6 @@
|
||||
},
|
||||
getFormData() {
|
||||
this.$apiServe.getIdeasAndNeedsFormdata().then(res => {
|
||||
console.log(res.data)
|
||||
const formData = res.data.data
|
||||
this.productPickerColumn[0] = formData.product
|
||||
this.positionPickerColumn[0] = formData.loc
|
||||
|
||||
@@ -141,10 +141,12 @@
|
||||
getBanner() {
|
||||
this.$apiServe.getBanner().then(res => {
|
||||
let banner = res.data.data
|
||||
for (const item of banner) {
|
||||
item.img = this.imgUrl + item.img
|
||||
if (banner) {
|
||||
for (const item of banner) {
|
||||
item.img = this.imgUrl + item.img
|
||||
}
|
||||
this.swiperList = res.data.data
|
||||
}
|
||||
this.swiperList = res.data.data
|
||||
}).finally(_ => {})
|
||||
},
|
||||
//点击轮播图
|
||||
|
||||
Reference in New Issue
Block a user