关于for循环绑定跳转的问题?

小程序 文章 2022-04-27 14:40 269 0 全屏看文

AI助手支持GPT4.0

关于for循环绑定跳转的问题?Question about for loop binding jump?

关于for循环绑定跳转的问题?

这个是for循环出来的

大家也看到了,出第一个”已获课程”以外,其他的都跳转到非tabbar页面,所以我用,但是这个已获课程我需要跳到tabbar页面,该怎么做啊

This is a for loop. As you can see, except for the first "obtained course", others jump to the non tabbar page, so I use it, but I need to jump to the tabbar page for this obtained course. What should I do

回答:

困而学之:

再加一个配置项,用来区分link-type 类型

小黎:

添加点击事件自己判断下

destiny:

用js啊,if(已获课程){wx.switchTab}else{wx.navigateTo}

https://developers.weixin.qq.com/miniprogram/dev/framework/view/wxml/event.html

-EOF-

AI助手支持GPT4.0