
// 跳转所属专区
clickToTab(item) {this.$common._jumpToUrl('./modularDetail', 0, { curModular: JSON.stringify(item) })
}
onLoad(data) {this.curModular = data.curModular ? JSON.parse(data.curModular) : {},
}
现在代码:
// 跳转所属专区
clickToTab(item) {// #ifndef MP-WEIXINthis.$common._jumpToUrl('./modularDetail', 0, { curModular: JSON.stringify(item) })// #endif// #ifdef MP-WEIXINthis.$common._jumpToUrl('./modularDetail', 0, { curModular: encodeURIComponent(JSON.stringify(item)) })// #endif
}
onLoad(data) {// #ifndef MP-WEIXINthis.curModular = data.curModular ? JSON.parse(data.curModular) : {}// #endif// #ifdef MP-WEIXINthis.curModular = data.curModular ? JSON.parse(decodeURIComponent(data.curModular)) : {}// #endif
}