实名制首页收藏

This commit is contained in:
zzyuan 2024-10-23 10:28:08 +08:00
parent 61704274ec
commit 8cf11e0818
5 changed files with 7 additions and 7 deletions

View File

@ -508,8 +508,8 @@ export default {
}
},
onLoad() {
console.log('?? ~ mounted ~ mounted-index:')
this.getLogin()
// console.log('?? ~ mounted ~ mounted-index:')
// this.getLogin()
this.getHomePageListData()
if (this.type.indexOf('4') > -1) {
//

View File

@ -494,7 +494,7 @@ export default {
success: res => {
if (res.data.code === 200) {
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
this.getWorkPlantData()
this.getListData()
}
},
fail: err => {}

View File

@ -31,7 +31,7 @@
<view class="item-1">
<view>{{ index + 1 }}</view>
<view>{{ item.proName }}</view>
<uni-icons :type="item.isCollect == 1 ? 'star-filled' : 'star'" size="20" @catchtap="onCollection($event, item)" :style="{ color: item.isCollect == 1 ? '#f9971e' : '' }" style="position: absolute;right: 1%;"></uni-icons>
<uni-icons :type="item.isCollect == 1 ? 'star-filled' : 'star'" size="20" @click="onCollection($event, item)" :style="{ color: item.isCollect == 1 ? '#f9971e' : '' }" style="position: absolute;right: 1%;"></uni-icons>
</view>
<view class="item-2">
@ -388,7 +388,7 @@ export default {
success: res => {
if (res.data.code === 200) {
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
this.getWorkPlantData()
this.getListData()
}
},
fail: err => {}

View File

@ -321,7 +321,7 @@ export default {
success: res => {
if (res.data.code === 200) {
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
this.getWorkPlantData()
this.getListData()
}
},
fail: err => {}

View File

@ -242,7 +242,7 @@ export default {
success: res => {
if (res.data.code === 200) {
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
this.getWorkPlantData()
this.getListData()
}
},
fail: err => {}