实名制首页收藏
This commit is contained in:
parent
61704274ec
commit
8cf11e0818
|
|
@ -508,8 +508,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
console.log('?? ~ mounted ~ mounted-index:')
|
// console.log('?? ~ mounted ~ mounted-index:')
|
||||||
this.getLogin()
|
// this.getLogin()
|
||||||
this.getHomePageListData()
|
this.getHomePageListData()
|
||||||
if (this.type.indexOf('4') > -1) {
|
if (this.type.indexOf('4') > -1) {
|
||||||
//监督端
|
//监督端
|
||||||
|
|
|
||||||
|
|
@ -494,7 +494,7 @@ export default {
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
||||||
this.getWorkPlantData()
|
this.getListData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: err => {}
|
fail: err => {}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
<view class="item-1">
|
<view class="item-1">
|
||||||
<view>{{ index + 1 }}</view>
|
<view>{{ index + 1 }}</view>
|
||||||
<view>{{ item.proName }}</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>
|
||||||
|
|
||||||
<view class="item-2">
|
<view class="item-2">
|
||||||
|
|
@ -388,7 +388,7 @@ export default {
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
||||||
this.getWorkPlantData()
|
this.getListData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: err => {}
|
fail: err => {}
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,7 @@ export default {
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
||||||
this.getWorkPlantData()
|
this.getListData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: err => {}
|
fail: err => {}
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@ export default {
|
||||||
success: res => {
|
success: res => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
uni.showToast({ icon: 'none', title: ` ${row.isCollect == 0 ? '收藏成功' : '已取消收藏'}` })
|
||||||
this.getWorkPlantData()
|
this.getListData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: err => {}
|
fail: err => {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue