|
|
@@ -19,7 +19,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <TaskItem :type="5" :taskList="backlogList"></TaskItem>
|
|
|
+ <TaskItem :type="5" :taskList="backlogList" @heartBut="heartBut"></TaskItem>
|
|
|
<Tab class="tabs_height" :tab-index="0"></Tab>
|
|
|
</view>
|
|
|
|
|
|
@@ -81,33 +81,7 @@
|
|
|
lagDate: 0,
|
|
|
totalNum: 0,
|
|
|
},
|
|
|
- backlogList: [{
|
|
|
- img: 'https://copyright.bdstatic.com/vcg/creative/d6c6a351be227d5d3b3e8c1f96f56e50.jpg@h_1280',
|
|
|
- proportion: '37',
|
|
|
- name: 'Downtown Office Tower -Prime Location',
|
|
|
- live: false,
|
|
|
- percentage: '3.1',
|
|
|
- description: 'Metro Properties LLC',
|
|
|
- amount: '5.0',
|
|
|
- trend: '7.5',
|
|
|
- risk: 'LTV 37%',
|
|
|
- time: '2024-001',
|
|
|
- id: 1,
|
|
|
- },
|
|
|
- {
|
|
|
- img: 'https://pic.rmb.bdstatic.com/bjh/3ea195479f8a/250303/f53064611fee7c092312f3b6ea8e439d.jpeg',
|
|
|
- proportion: '71',
|
|
|
- name: 'Tower -Prime Location',
|
|
|
- live: true,
|
|
|
- percentage: '5.1',
|
|
|
- description: 'Healthcare Properties Inc',
|
|
|
- amount: '5.0',
|
|
|
- trend: '7.5',
|
|
|
- risk: 'LTV 37%',
|
|
|
- time: '2024-001',
|
|
|
- id: 2,
|
|
|
- }
|
|
|
- ],
|
|
|
+ backlogList: [],
|
|
|
weekData: [],
|
|
|
weekNum: 1,
|
|
|
dayNum: 0,
|
|
|
@@ -124,8 +98,57 @@
|
|
|
onPageScroll(res) {
|
|
|
this.scrollTop = res.scrollTop / 120
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ this.backlogListData()
|
|
|
+ },
|
|
|
onReachBottom() {},
|
|
|
- methods: {},
|
|
|
+ methods: {
|
|
|
+ heartBut(data) {
|
|
|
+ if(data){
|
|
|
+ this.backlogList.forEach((i,k)=>{
|
|
|
+ if(i.id === data.id){
|
|
|
+ i.live = !i.live
|
|
|
+ }
|
|
|
+ })
|
|
|
+ console.log(this.backlogList,'1111111111111');
|
|
|
+ }
|
|
|
+ },
|
|
|
+ backlogListData() {
|
|
|
+ let data = uni.getStorageSync('backlogList')
|
|
|
+ if (data) {
|
|
|
+ this.backlogList = data
|
|
|
+ } else {
|
|
|
+ this.backlogList = [{
|
|
|
+ img: 'https://copyright.bdstatic.com/vcg/creative/d6c6a351be227d5d3b3e8c1f96f56e50.jpg@h_1280',
|
|
|
+ proportion: '37',
|
|
|
+ name: 'Downtown Office Tower -Prime Location',
|
|
|
+ live: false,
|
|
|
+ percentage: '3.1',
|
|
|
+ description: 'Metro Properties LLC',
|
|
|
+ amount: '5.0',
|
|
|
+ trend: '7.5',
|
|
|
+ risk: 'LTV 37%',
|
|
|
+ time: '2024-001',
|
|
|
+ id: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ img: 'https://pic.rmb.bdstatic.com/bjh/3ea195479f8a/250303/f53064611fee7c092312f3b6ea8e439d.jpeg',
|
|
|
+ proportion: '71',
|
|
|
+ name: 'Tower -Prime Location',
|
|
|
+ live: false,
|
|
|
+ percentage: '5.1',
|
|
|
+ description: 'Healthcare Properties Inc',
|
|
|
+ amount: '5.0',
|
|
|
+ trend: '7.5',
|
|
|
+ risk: 'LTV 37%',
|
|
|
+ time: '2024-001',
|
|
|
+ id: 2,
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ uni.setStorageSync('backlogList', this.backlogList)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|