小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载
2019-04-03 15:15:29
如何看待微信公开课小程序热门讨论「小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载」
摘要:小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载
展开:公司名称xxxMP帐号(邮箱)xxx开发者微信号yawn2011机型(如iPhone6splus)iphone6操作系统(如iOS9.3)iOS9.2.1是否必现是出现时间操作路径(即如何操作可以复现该问题)问题描述(具体问题介绍)三方开发文档说明模板小程序开发配置替换时,app.json中的pages会被替换。经测试,能过模板小程序生成的小程序和tabs确实被替换,但是pages的顺序还是模板小程序的顺序。比如模板小程序的pages为:{pages/comm/storePage0/storePage0}生成小程序的pages为:{pages/comm/classify/classify,pages/comm/storePage1/storePage1,pages/comm/personal/personal,pages/comm/bookshelf/bookshelf}生成小程的tabs.list为:{{list:[{text:图书,iconPath:images/tabicons/ic_my_default.png,selectedIconPath:images/tabicons/ic_my.png,pagePath:pages/comm/classify/classify},{text:课程,iconPath:images/tabicons/ic_bookshelf_default.png,selectedIconPath:images/tabicons/ic_bookshelf.png,pagePath:pages/comm/storePage1/storePage1},{text:我,iconPath:images/tabicons/ic_my_default.png,selectedIconPath:images/tabicons/ic_my.png,pagePath:pages/comm/personal/personal},{text:书架,iconPath:images/tabicons/ic_bookshelf_default.png,selectedIconPath:images/tabicons/ic_bookshelf.png,pagePath:pages/comm/bookshelf/bookshelf}]}如上生成小程序的pages顺序和tab.list的顺序是一致的,tab上也没有classify,通过预览二维码体验小程序的时候通过Log查看onReady的是pages/comm/classify/classify,但是第一个tab实际执行的是pages/comm/storePage0/storePage0的代码逻辑,即按照了模板小程序的pages渲染了,我生成的小程序的tabs里面并没有storePage0,如下图问题截图(客户端问题界面截图)代码片段截图生成小程序的代码为配置为:{extAppid:wx3e8d9bd805eae3e7,pages:[pages/comm/classify/classify,pages/comm/storePage1/storePage1,pages/comm/personal/personal,pages/comm/bookshelf/bookshelf,pages/comm/storePage0/storePage0,pages/index/index,pages/logs/logs,pages/swiperpage/swiperpage,pages/gird/gird,pages/pay/pay,pages/comm/qrscan/qrscan,pages/comm/bookdetail/bookdetail,pages/comm/editInformation/editInformation,pages/comm/resview/videoplay/videoplay,pages/comm/resview/soundplay/soundplay,pages/comm/booklist/booklist,pages/comm/courseDetail/courseDetail,pages/comm/resourceList/resourceList,pages/comm/resview/reslist/reslist,pages/comm/resview/reslive/reslive,pages/comm/bookdetailIntro/bookdetailIntro,pages/comm/myAccount/myAccount,pages/comm/jourlist/jourlist,pages/comm/bought/bought,pages/comm/myCourse/myCourse,pages/comm/empty/empty,pages/comm/storePage/storePage,pages/comm/storePage2/storePage2,pages/comm/storePage3/storePage,pages/comm/storePage4/storePage4],tabBar:{list:[{text:图书,iconPath:images/tabicons/ic_my_default.png,selectedIconPath:images/tabicons/ic_my.png,pagePath:pages/comm/classify/classify},{text:课程,iconPath:images/tabicons/ic_bookshelf_default.png,selectedIconPath:images/tabicons/ic_bookshelf.png,pagePath:pages/comm/storePage1/storePage1},{text:我,iconPath:images/tabicons/ic_my_default.png,selectedIconPath:images/tabicons/ic_my.png,pagePath:pages/comm/personal/personal},{text:书架,iconPath:images/tabicons/ic_bookshelf_default.png,selectedIconPath:images/tabicons/ic_bookshelf.png,pagePath:pages/comm/bookshelf/bookshelf}]},ext:{templateId:17,appv:123,miniAppVersion:2017082612:19:04,baseHost:https://wxminiprepub.bookln.cn,bizAppId:3,showLogo:show,channel:wxMinApp}}
摘要:小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载
展开:公司名称xxxMP帐号(邮箱)xxx开发者微信号yawn2011机型(如iPhone6splus)iphone6操作系统(如iOS9.3)iOS9.2.1是否必现是出现时间操作路径(即如何操作可以复现该问题)问题描述(具体问题介绍)三方开发文档说明模板小程序开发配置替换时,app.json中的pages会被替换。经测试,能过模板小程序生成的小程序和tabs确实被替换,但是pages的顺序还是模板小程序的顺序。比如模板小程序的pages为:{pages/comm/storePage0/storePage0}生成小程序的pages为:{pages/comm/classify/classify,pages/comm/storePage1/storePage1,pages/comm/personal/personal,pages/comm/bookshelf/bookshelf}生成小程的tabs.list为:{{list:[{text:图书,iconPath:images/tabicons/ic_my_default.png,selectedIconPath:images/tabicons/ic_my.png,pagePath:pages/comm/classify/classify},{text:课程,iconPath:images/tabicons/ic_bookshelf_default.png,selectedIconPath:images/tabicons/ic_bookshelf.png,pagePath:pages/comm/storePage1/storePage1},{text:我,iconPath:images/tabicons/ic_my_default.png,selectedIconPath:images/tabicons/ic_my.png,pagePath:pages/comm/personal/personal},{text:书架,iconPath:images/tabicons/ic_bookshelf_default.png,selectedIconPath:images/tabicons/ic_bookshelf.png,pagePath:pages/comm/bookshelf/bookshelf}]}如上生成小程序的pages顺序和tab.list的顺序是一致的,tab上也没有classify,通过预览二维码体验小程序的时候通过Log查看onReady的是pages/comm/classify/classify,但是第一个tab实际执行的是pages/comm/storePage0/storePage0的代码逻辑,即按照了模板小程序的pages渲染了,我生成的小程序的tabs里面并没有storePage0,如下图问题截图(客户端问题界面截图)代码片段截图生成小程序的代码为配置为:{extAppid:wx3e8d9bd805eae3e7,pages:[pages/comm/classify/classify,pages/comm/storePage1/storePage1,pages/comm/personal/personal,pages/comm/bookshelf/bookshelf,pages/comm/storePage0/storePage0,pages/index/index,pages/logs/logs,pages/swiperpage/swiperpage,pages/gird/gird,pages/pay/pay,pages/comm/qrscan/qrscan,pages/comm/bookdetail/bookdetail,pages/comm/editInformation/editInformation,pages/comm/resview/videoplay/videoplay,pages/comm/resview/soundplay/soundplay,pages/comm/booklist/booklist,pages/comm/courseDetail/courseDetail,pages/comm/resourceList/resourceList,pages/comm/resview/reslist/reslist,pages/comm/resview/reslive/reslive,pages/comm/bookdetailIntro/bookdetailIntro,pages/comm/myAccount/myAccount,pages/comm/jourlist/jourlist,pages/comm/bought/bought,pages/comm/myCourse/myCourse,pages/comm/empty/empty,pages/comm/storePage/storePage,pages/comm/storePage2/storePage2,pages/comm/storePage3/storePage,pages/comm/storePage4/storePage4],tabBar:{list:[{text:图书,iconPath:images/tabicons/ic_my_default.png,selectedIconPath:images/tabicons/ic_my.png,pagePath:pages/comm/classify/classify},{text:课程,iconPath:images/tabicons/ic_bookshelf_default.png,selectedIconPath:images/tabicons/ic_bookshelf.png,pagePath:pages/comm/storePage1/storePage1},{text:我,iconPath:images/tabicons/ic_my_default.png,selectedIconPath:images/tabicons/ic_my.png,pagePath:pages/comm/personal/personal},{text:书架,iconPath:images/tabicons/ic_bookshelf_default.png,selectedIconPath:images/tabicons/ic_bookshelf.png,pagePath:pages/comm/bookshelf/bookshelf}]},ext:{templateId:17,appv:123,miniAppVersion:2017082612:19:04,baseHost:https://wxminiprepub.bookln.cn,bizAppId:3,showLogo:show,channel:wxMinApp}}
标签:小程序
「小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载」热门讨论订阅
方法1:微信扫描微信公开课小程序码即可订阅热门讨论「小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载」
方法2:微信搜索微信公开课小程序名称进入,即可订阅热门讨论「小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载」
方法3:微信网页访问即速商店,长按识别微信公开课小程序码即可订阅热门讨论「小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载」
微信公开课小程序热门讨论「小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载」由微信公开课原创摘录于微信小程序商店shop.jisuapp.cn,转载请注明出处。
微信公开课热门讨论「小程序第三方模板开发系统BUG:tab会以模板小程序的pages顺序加载」由微信公开课开发者向微信用户提供,并对本服务内容、数据资料及其运营行为等真实性、合法性及有效性承担全部责任。
微信公开课小程序
更新时间:2019-04-03 15:15:29
>
__methodCallerx27;ofundefined
>-404011cloudfunctionexecutionerror
>,请补充选择商家自营-预付卡销售-发行方类目,并在基础信息处申请该类目,通过
>:host在模拟器中显示无效
>:请在小程序服务页面上架正式(非测试)内容或商品后重新提交审核
>.net 微信小程序 上传图片
>'setTimeout'的问题
>‘三朵里熙SPA主题减压空间’为什么搜索关键词‘三朵里‘搜不到
>‘扫普通链接二维码打开小程序‘中设置为体验版,扫码打开是线上版本
>“cloudfunctions**indexjs”gitignore
>“NO ULINK DEVICE FOUND”是怎么回事
>“万马掌上校园”的类目审核
>“上线了”公司开发的微信小程序怎么样?
>“产品是否一定需要条形码”
>