更新小程序首页精选推荐逻辑,调整展示的章节数据源为排名接口,优化展开功能以支持动态加载更多章节。修复图标组件的SVG映射,确保图标显示一致性。更新开发环境配置为本地地址,提升开发体验。
This commit is contained in:
@@ -54,6 +54,12 @@ Page({
|
||||
this.loadMentors()
|
||||
},
|
||||
|
||||
onAvatarError(e) {
|
||||
const id = e.currentTarget.dataset.id
|
||||
const mentors = this.data.mentors.map(m => (m.id === id ? { ...m, avatarError: true } : m))
|
||||
this.setData({ mentors })
|
||||
},
|
||||
|
||||
goDetail(e) {
|
||||
const id = e.currentTarget.dataset.id
|
||||
wx.navigateTo({ url: `/pages/mentor-detail/mentor-detail?id=${id}` })
|
||||
|
||||
Reference in New Issue
Block a user