浏览记录字段问题及代码优化

This commit is contained in:
clay
2023-01-17 23:19:52 +08:00
parent 2d08416f5e
commit 4b10b9486d
9 changed files with 64 additions and 29 deletions

View File

@@ -120,15 +120,15 @@
//收藏按钮
starTap() {
this.detailList.type = !this.detailList.type
this.$apiServe.collect(this.id).then(res => {
console.log('收藏成功', res.data)
if (res.data.code == 1) {
this.detailList.type = 1
this.$toast.warn('收藏成功')
} else {
this.$toast.warn('收藏失败')
}
}).finally(_ => {})
// this.$apiServe.collect(this.id).then(res => {
// console.log('收藏成功', res.data)
// if (res.data.code == 1) {
// this.detailList.type = 1
// this.$toast.warn('收藏成功')
// } else {
// this.$toast.warn('收藏失败')
// }
// }).finally(_ => {})
},
//点赞按钮
heartTap() {

View File

@@ -28,7 +28,7 @@
</u--image>
<text class="xpfb_text text">新品发布</text>
</view>
<productsByThumb></productsByThumb>
<productsByTime></productsByTime>
</view>
<!-- 认证厂家 -->
@@ -69,7 +69,11 @@
//点击行内新闻时
if (listIndex == 0) {
uni.navigateTo({
url: '../../packageReport/news/news'
url: '../../packageReport/newsList/newsList'
})
} else if (listIndex == 1) {
uni.navigateTo({
url: '../../packageReport/newProductRelease/newProductRelease'
})
} else if (listIndex == 2) {
uni.navigateTo({