You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.4 KiB
77 lines
1.4 KiB
4 years ago
|
// pages/topics/attract/index.js
|
||
|
Component({
|
||
|
/**
|
||
|
* 组件的属性列表
|
||
|
*/
|
||
|
properties: {
|
||
|
list:{
|
||
|
type:Array,
|
||
|
value:[],
|
||
|
},
|
||
|
spaceList:{
|
||
|
type:Array,
|
||
|
value:[],
|
||
|
},
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 组件的初始数据
|
||
|
*/
|
||
|
data: {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 组件的方法列表
|
||
|
*/
|
||
|
methods: {
|
||
|
//海洋人才赋能中心详情
|
||
|
clickListItem(e) {
|
||
|
//console.log(e.detail)
|
||
|
const {
|
||
|
id,
|
||
|
index
|
||
|
} = e.detail
|
||
|
this.setData({
|
||
|
[`list[${index}].readed`]: true
|
||
|
})
|
||
|
this.goOceanDetail(id)
|
||
|
},
|
||
|
goOceanDetail(id) {
|
||
|
wx.navigateTo({
|
||
|
url: `/pages/topics/attract/oceanDetail/index?id=${id}`,
|
||
|
})
|
||
|
},
|
||
|
//海洋人才赋能中心更多
|
||
|
goOceanMore(){
|
||
|
wx.navigateTo({
|
||
|
url: `/pages/topics/attract/ocean/index`,
|
||
|
|
||
|
})
|
||
|
},
|
||
|
//折腾空间中心详情
|
||
|
clickListItemSpace(e) {
|
||
|
//console.log(e.detail)
|
||
|
const {
|
||
|
id,
|
||
|
index
|
||
|
} = e.detail
|
||
|
this.setData({
|
||
|
[`spaceList[${index}].readed`]: true
|
||
|
})
|
||
|
this.goSpacenDetail(id)
|
||
|
},
|
||
|
goSpacenDetail(id) {
|
||
|
wx.navigateTo({
|
||
|
url: `/pages/topics/attract/spaceDetail/index?id=${id}`,
|
||
|
})
|
||
|
},
|
||
|
//折腾空间中心更多
|
||
|
goSpaceMore(){
|
||
|
wx.navigateTo({
|
||
|
url: `/pages/topics/attract/space/index`,
|
||
|
})
|
||
|
},
|
||
|
}
|
||
|
})
|