- 您好!页面栈问题求解答
您好!页面栈最多10个 但 如果我有 1 2 3 4 5 6 7 8 9 10 11 个页面, 用 wx.navigateTo 方法实现跳转,到第10页面再想跳到11 页面,提示错误 navigateTo:fail webview count limit exceed 此时 如何跳到11页,还能让用户返回时能看到 10 9 8 7 6 这几个页面 12345 如何从页面栈中去除?
2019-02-18 - getCurrentPages().length到10后一般怎么解决?
页面栈到10层后还想继续的有什么比较好的方法?
2019-02-12 - 小程序告警群提示,能看到是请求哪个api接口出错吗?
Appid: wx2911548a18ed7d95 昵称: 车客生鲜 时间: 2018-11-12 11:34:12 次数: 5分钟 47次 类型:脚本错误 错误样例: undefined is not an object (evaluating 'a.data.code');at App get function;at api request complete callback function 登录公众平台小程序运维中心可查看更多错误信息 您好,a.data.code不知道是请求哪个接口报的错误,有方法可以查看吗?谢谢。
2018-11-12 - 小程序前端无法显示
- 当前 Bug 的表现(可附上截图) VM528:1 基础库切换到 2.2.0+ ,才能使用 Audits 功能 console.error @ VM528:1 e.exports.init @ appservice?t=1543067587191:1 i @ appservice?t=1543067587191:1 app.js? [sm]:25 undefined e {data: {…}, onLoad: ƒ, onReady: ƒ, …} WAService.js:18 Sat Nov 24 2018 21:53:29 GMT+0800 (中国标准时间) Page setData warning VM528:1 Setting data field "color" to undefined is invalid. console.error @ VM528:1 t.error @ WAService.js:18 value @ WAService.js:18 setNavigationBarColor @ app.js? [sm]:28 (anonymous) @ WAService.js:19 onLoad @ Liar.js? [sm]:19 (anonymous) @ WAService.js:18 D @ WAService.js:18 q @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 app.js? [sm]:12 undefined e {data: {…}, onLoad: ƒ, onReady: ƒ, …} WAService.js:18 Sat Nov 24 2018 21:53:30 GMT+0800 (中国标准时间) Page setData warning VM528:1 Setting data field "url" to undefined is invalid. console.error @ VM528:1 t.error @ WAService.js:18 value @ WAService.js:18 getUrl @ app.js? [sm]:12 (anonymous) @ WAService.js:19 onLoad @ Liar.js? [sm]:19 (anonymous) @ WAService.js:18 D @ WAService.js:18 q @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=System&&m=zh_tcwq&sign=d8cf1ac480a4344778f9917d779e0930". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 setNavigationBarColor @ app.js? [sm]:32 (anonymous) @ WAService.js:19 onLoad @ Liar.js? [sm]:19 (anonymous) @ WAService.js:18 D @ WAService.js:18 q @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=Url&&m=zh_tcwq&sign=7e1247aaffde4721a34147a1cc7365a3". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 getUrl @ app.js? [sm]:16 (anonymous) @ WAService.js:19 onLoad @ Liar.js? [sm]:19 (anonymous) @ WAService.js:18 D @ WAService.js:18 q @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=system&&m=zh_tcwq&sign=d6a02c801a8e2f12de16a25226a61707". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 onLoad @ Liar.js? [sm]:19 (anonymous) @ WAService.js:18 D @ WAService.js:18 q @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 app.js? [sm]:35 {data: {…}, header: {…}, statusCode: 200, errMsg: "request:ok"} app.js? [sm]:25 #ED414A e {data: {…}, onLoad: ƒ, onReady: ƒ, …} app.js? [sm]:19 {data: "https://www.420ji.cn/attachment/", header: {…}, statusCode: 200, errMsg: "request:ok"} app.js? [sm]:12 https://www.420ji.cn/attachment/ e {data: {…}, onLoad: ƒ, onReady: ƒ, …} Liar.js? [sm]:23 {data: {…}, header: {…}, statusCode: 200, errMsg: "request:ok"} app.js? [sm]:25 #ED414A e {data: {…}, onLoad: ƒ, onReady: ƒ, …} app.js? [sm]:158 ----setPageNavbar---- app.js? [sm]:158 e {data: {…}, onLoad: ƒ, onReady: ƒ, …} app.js? [sm]:163 undefined index.js? [sm]:181 onLoad index.js? [sm]:181 {} index.js? [sm]:183 scene undefined index.js? [sm]:188 fxzuid undefined WAService.js:18 Sat Nov 24 2018 21:53:57 GMT+0800 (中国标准时间) Page setData warning VM528:1 Setting data field "fxzuid" to undefined is invalid. console.error @ VM528:1 t.error @ WAService.js:18 value @ WAService.js:18 onLoad @ index.js? [sm]:188 (anonymous) @ WAService.js:18 D @ WAService.js:18 G @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 index.js? [sm]:205 {errMsg: "getSystemInfo:ok", model: "iPhone 5", pixelRatio: 2, windowWidth: 320, windowHeight: 504, …} app.js? [sm]:12 https://www.420ji.cn/attachment/ e {data: {…}, onLoad: ƒ, onReady: ƒ, …} index.js? [sm]:229 undefined appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=GetBottom&&m=zh_tcwq&sign=e438f7850dee67067b9f2852bd9adf73". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 pageOnLoad @ app.js? [sm]:163 (anonymous) @ WAService.js:19 onLoad @ index.js? [sm]:181 (anonymous) @ WAService.js:18 D @ WAService.js:18 G @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=System&&m=zh_tcwq&sign=d8cf1ac480a4344778f9917d779e0930". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 onLoad @ index.js? [sm]:192 (anonymous) @ WAService.js:18 D @ WAService.js:18 G @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=Url2&&m=zh_tcwq&sign=ca2bcca4a834e4924f02ce6a029728bd". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 onLoad @ index.js? [sm]:207 (anonymous) @ WAService.js:18 D @ WAService.js:18 G @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 app.js? [sm]:166 {data: Array(0), header: {…}, statusCode: 200, errMsg: "request:ok"} app.js? [sm]:151 {background_image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEA…IAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==", border_color: "rgba(0,0,0,.1)", navs: Array(5)}background_image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEX///+nxBvIAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg=="border_color: "rgba(0,0,0,.1)"navs: (5) [{…}, {…}, {…}, {…}, {…}]__proto__: Object index.js? [sm]:196 {data: {…}, header: {…}, statusCode: 200, errMsg: "request:ok"} appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=Llz&m=zh_tcwq&sign=d0f28a0b960fe8b70cad35533c38c77a&cityname=&type=2". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 onLoad @ index.js? [sm]:213 (anonymous) @ WAService.js:18 D @ WAService.js:18 G @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=Views&&m=zh_tcwq&sign=53e2c39fc7270499c9241e19a07ddff4". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 reload @ index.js? [sm]:440 (anonymous) @ WAService.js:18 onLoad @ index.js? [sm]:225 (anonymous) @ WAService.js:18 D @ WAService.js:18 G @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=Num&&m=zh_tcwq&sign=d6423e9726ac6c9f3f0dba4618cc7b49". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 reload @ index.js? [sm]:450 (anonymous) @ WAService.js:18 onLoad @ index.js? [sm]:225 (anonymous) @ WAService.js:18 D @ WAService.js:18 G @ WAService.js:18 K @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 n.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 VM741:1 Sat Nov 24 2018 21:54:04 GMT+0800 (中国标准时间) WXML Runtime warning VM741:2 ./zh_tcwq/pages/car/navbar.wxml (anonymous) @ VM741:2 VM741:3 Now you can provide attr "wx:key" for a "wx:for" to improve performance. 1 | <view class="navbar flex-row" style="background-image: url({{_navbar.background_image}});border:1rpx solid {{_navbar.border_color}}" wx:if="{{_navbar&&_navbar.navs&&_navbar.navs.length>0}}"> > 2 | <block wx:for="{{_navbar.navs}}"> | ^ 3 | <navigator class="flex-grow-1 flex-y-center" openType="redirect" url="{{item.url}}" wx:if="{{item.item=='1'||item.item==null}}"> 4 | <view> 5 | <image class="navbar-icon" src="{{item.active?item.logo:item.logo2}}"></image> (anonymous) @ VM741:3 VM743:1 Sat Nov 24 2018 21:54:05 GMT+0800 (中国标准时间) WXML Runtime warning VM743:2 ./zh_tcwq/pages/index/index.wxml (anonymous) @ VM743:2 VM743:3 Now you can provide attr "wx:key" for a "wx:for" to improve performance. 73 | </view> 74 | <view class="plate"> > 75 | <view wx:if="{{index<6}}" wx:for="{{zjggbk}}"> | ^ 76 | <view bindtap="jumps" class="rel" data-appid="{{item.appid}}" data-id="{{item.id}}" data-name="{{item.xcx_name}}" data-src="{{item.src}}" data-type="{{item.state}}" data-wb_src="{{item.wb_src}}" style="width:100%;height:100%;"> 77 | <image class="ab ud" mode="aspectFill" src="{{url}}{{item.logo}}" style="width:100%;height:100%;border-radius:10rpx;"></image> 78 | <form bindreset="formReset" bindsubmit="formid_one" class="plate_form" reportSubmit="true"> (anonymous) @ VM743:3 VM744:1 Sat Nov 24 2018 21:54:05 GMT+0800 (中国标准时间) WXML Runtime warning VM744:2 ./zh_tcwq/pages/index/index.wxml (anonymous) @ VM744:2 VM744:3 Now you can provide attr "wx:key" for a "wx:for" to improve performance. 93 | </view> 94 | </view> > 95 | <ad unitId="{{item.src}}" wx:for="{{unitid}}"></ad> | ^ 96 | <view class="market" wx:if="{{System.is_pzsj=='1'}}"> 97 | <view bindtap="more" class="markettitle"> 98 | <view class="fl rel"> (anonymous) @ VM744:3 VM745:1 Sat Nov 24 2018 21:54:05 GMT+0800 (中国标准时间) WXML Runtime warning VM745:2 ./zh_tcwq/pages/index/index.wxml (anonymous) @ VM745:2 VM745:3 Now you can provide attr "wx:key" for a "wx:for" to improve performance. 247 | </view> 248 | <view class="yelist" hidden="{{bkname!='3'}}"> > 249 | <view bindtap="yellow_info" class="yellow_list" data-id="{{item.id}}" data-user_id="{{item.user_id}}" wx:for="{{yellow_list}}"> | ^ 250 | <view class="list_head"> 251 | <view> 252 | <image class="yellow_logo" mode="aspectFill" src="{{url}}{{item.logo}}"></image> (anonymous) @ VM745:3 index.js? [sm]:444 {data: "", header: {…}, statusCode: 200, errMsg: "request:ok"} index.js? [sm]:221 {data: Array(0), header: {…}, statusCode: 200, errMsg: "request:ok"} index.js? [sm]:234 {errMsg: "getSetting:ok", authSetting: {…}} appservice?t=1543067587191:13259 Sat Nov 24 2018 21:54:12 GMT+0800 (中国标准时间) 接口调整 VM528:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级 参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01 console.warn @ VM528:1 operateWXData @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 i @ WAService.js:7 t.timeout @ WAService.js:14 Ke.(anonymous function) @ WAService.js:4 (anonymous) @ WAService.js:4 success @ index.js? [sm]:234 (anonymous) @ WAService.js:3 u @ WAService.js:4 (anonymous) @ WAService.js:4 function.setTimeout @ appservice?t=1543067587191:13259 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 m @ appservice?t=1543067587191:13259 r.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 index.js? [sm]:293 {data: {…}, header: {…}, statusCode: 200, errMsg: "request:ok"} appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=map&m=zh_tcwq&sign=325c48872c948a00f8f2b18ea48e30e6&op=30.5702%2C104.06476". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 success @ index.js? [sm]:286 (anonymous) @ WAService.js:3 u @ WAService.js:4 (anonymous) @ WAService.js:4 function.setTimeout @ appservice?t=1543067587191:13259 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 m @ appservice?t=1543067587191:13259 r.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 index.js? [sm]:297 {data: {…}, expire: 1543067668000} VM528:1 thirdScriptError Cannot read property 'address_component' of undefined;at zh_tcwq/pages/index/index onReady function;at api request success callback function TypeError: Cannot read property 'address_component' of undefined at Object.success (http://127.0.0.1:24829/appservice/zh_tcwq/pages/index/index.js:311:58) at Object.util.request (http://127.0.0.1:24829/appservice/we7/resource/js/util.js:84:151) at Object.success (http://127.0.0.1:24829/appservice/zh_tcwq/pages/index/index.js:302:50) at Function.<anonymous> (http://127.0.0.1:24829/appservice/we7/resource/js/util.js:104:69) at Object.success (http://127.0.0.1:24829/appservice/__dev__/WAService.js:3:14159) at c.<anonymous> (http://127.0.0.1:24829/appservice/__dev__/WAService.js:10:15121) at c.emit (http://127.0.0.1:24829/appservice/__dev__/WAService.js:4:28151) at Function.<anonymous> (http://127.0.0.1:24829/appservice/__dev__/WAService.js:10:16447) at http://127.0.0.1:24829/appservice/__dev__/WAService.js:4:9966 at e (http://127.0.0.1:24829/appservice/appservice?t=1543067587191:13259:2624) console.error @ VM528:1 errorReport @ WAService.js:3 thirdErrorReport @ WAService.js:3 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:10 c.emit @ WAService.js:4 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 t.emit @ appservice?t=1543067587191:13259 callback @ appservice?t=1543067587191:13259 setTimeout @ appservice?t=1543067587191:13259 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 d @ appservice?t=1543067587191:13259 o @ appservice?t=1543067587191:13259 y.onreadystatechange @ appservice?t=1543067587191:13259 XMLHttpRequest.send (async) h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 success @ index.js? [sm]:286 (anonymous) @ WAService.js:3 u @ WAService.js:4 (anonymous) @ WAService.js:4 function.setTimeout @ appservice?t=1543067587191:13259 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 m @ appservice?t=1543067587191:13259 r.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 app.js? [sm]:8 thirdScriptError Cannot read property 'address_component' of undefined;at zh_tcwq/pages/index/index onReady function;at api request success callback function TypeError: Cannot read property 'address_component' of undefined at Object.success (http://127.0.0.1:24829/appservice/zh_tcwq/pages/index/index.js:311:58) at Object.util.request (http://127.0.0.1:24829/appservice/we7/resource/js/util.js:84:151) at Object.success (http://127.0.0.1:24829/appservice/zh_tcwq/pages/index/index.js:302:50) at Function.<anonymous> (http://127.0.0.1:24829/appservice/we7/resource/js/util.js:104:69) at Object.success (http://127.0.0.1:24829/appservice/__dev__/WAService.js:3:14159) at c.<anonymous> (http://127.0.0.1:24829/appservice/__dev__/WAService.js:10:15121) at c.emit (http://127.0.0.1:24829/appservice/__dev__/WAService.js:4:28151) at Function.<anonymous> (http://127.0.0.1:24829/appservice/__dev__/WAService.js:10:16447) at http://127.0.0.1:24829/appservice/__dev__/WAService.js:4:9966 at e (http://127.0.0.1:24829/appservice/appservice?t=1543067587191:13259:2624) index.js? [sm]:236 {errMsg: "getUserInfo:ok", rawData: "{"nickName":"汽车拆解配件、收事故单残值","gender":2,"language":…e0j8wABdkGLpk55C4q56RfcdIPpnHP4aCaG9x0X25nQ/132"}", userInfo: {…}, signature: "80e04fd93991d963ceaf93babf45a87b601e8e5f", encryptedData: "MnDX8uMMmeenQpucLxas9dcMU4jg3pnesAK96VsHxfciRlK/Y9…WoTgZwLEg04h05Vd6a24938mN5aIt2AqbZJEMD+XFnqBcdg==", …} appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=openid&m=zh_tcwq&sign=a6b421675c8b163789a4601bcb37978f&code=023aWWBN15n7w31ou1AN1AfHBN1aWWBp". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 success @ index.js? [sm]:238 (anonymous) @ WAService.js:3 u @ WAService.js:4 (anonymous) @ WAService.js:4 function.setTimeout @ appservice?t=1543067587191:13259 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 m @ appservice?t=1543067587191:13259 r.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 index.js? [sm]:245 {data: {…}, header: {…}, statusCode: 200, errMsg: "request:ok"} index.js? [sm]:256 {data: {…}, header: {…}, statusCode: 200, errMsg: "request:ok"} appservice?t=1543067587191:13259 XHR finished loading: GET "https://www.420ji.cn/app/index.php?i=2&t=0&v=1&from=wxapp&c=entry&a=wxapp&do=Login&m=zh_tcwq&sign=60467576c4736eae5fd208f2172f65cc&openid=oRW715cVahh9Xzp-_k4mGNX4I4wY&img=https%3A%2F%2Fwx.qlogo.cn%2Fmmopen%2Fvi_32%2F1G2rlRgNalXNJpJzHPNA0nNOVycYicEs310lsWgmvBiaPe0j8wABdkGLpk55C4q56RfcdIPpnHP4aCaG9x0X25nQ%2F132&name=%E6%B1%BD%E8%BD%A6%E6%8B%86%E8%A7%A3%E9%85%8D%E4%BB%B6%E3%80%81%E6%94%B6%E4%BA%8B%E6%95%85%E5%8D%95%E6%AE%8B%E5%80%BC". h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 success @ index.js? [sm]:247 (anonymous) @ util.js? [sm]:92 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:10 c.emit @ WAService.js:4 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 e @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 t.emit @ appservice?t=1543067587191:13259 callback @ appservice?t=1543067587191:13259 setTimeout @ appservice?t=1543067587191:13259 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 d @ appservice?t=1543067587191:13259 o @ appservice?t=1543067587191:13259 y.onreadystatechange @ appservice?t=1543067587191:13259 XMLHttpRequest.send (async) h @ appservice?t=1543067587191:13259 createRequestTask @ appservice?t=1543067587191:13259 invoke @ appservice?t=1543067587191:13259 o @ WAService.js:4 u @ WAService.js:4 r @ WAService.js:10 e @ WAService.js:10 (anonymous) @ WAService.js:10 (anonymous) @ WAService.js:4 util.request @ util.js? [sm]:76 success @ index.js? [sm]:238 (anonymous) @ WAService.js:3 u @ WAService.js:4 (anonymous) @ WAService.js:4 function.setTimeout @ appservice?t=1543067587191:13259 (anonymous) @ WAService.js:3 (anonymous) @ WAService.js:8 setTimeout (async) setTimeout @ WAService.js:8 m @ appservice?t=1543067587191:13259 r.registerCallback.t @ appservice?t=1543067587191:13259 l.forEach.t @ appservice?t=1543067587191:13259 (anonymous) @ appservice?t=1543067587191:13259 s.onmessage @ appservice?t=1543067587191:13259 app.js? [sm]:5 [e] - 预期表现 - 复现路径 - 提供一个最简复现 Demo
2018-11-24 - 管理运维中心错误日志无法准确定位 好嗨哦!~
[图片] 日志中指出的函数中并无相关错误关键字,以致于无法排查实际错误原因。 甚至我的page中都未曾自定义过onReady函数(page中删除了onReady),何来的replace相关错误代码。 新版本出现的几处关于height未定义的错误(at SelectorQuery callback function)也是之前没发生过的,关键是我没有相关代码逻辑。 以第一条错误日志举个例子: [代码]onPageScroll: [代码][代码]function[代码][代码](e) {[代码][代码] [代码][代码]if[代码] [代码](e.scrollTop > 1000 && [代码][代码]this[代码][代码].data.backTop === [代码][代码]false[代码][代码]) {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]backTop: [代码][代码]true[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]if[代码] [代码](e.scrollTop <= 1000 && [代码][代码]this[代码][代码].data.backTop === [代码][代码]true[代码][代码]) {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]backTop: [代码][代码]false[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码]}[代码]请问"height"属性是在哪发生的错误?
2018-11-28 - APP-SERVICE-SDK:setStorageSync:fail writ
问题: 微信公众平台的运营中心错误查询 有很多次报错 APP-SERVICE-SDK:setStorageSync:fail,请问这是什么原因呢? 错误: APP-SERVICE-SDK:setStorageSync:fail write DB data fail;at App getUserSystemInfo function construct@[native code] rt@https://lib/WAService.js:1:281340 n@https://lib/WAService.js:1:281702 n@https://lib/WAService.js:1:493361 setStorageSync@https://lib/WAService.js:1:494351 https://lib/WAService.js:1:495735 https://lib/WAService.js:1:496335 https://lib/WAService.js:1:323260 https://lib/WAService.js:1:712493 https://lib/WAService.js:1:712589 https://lib/WAService.js:1:281981 getUserSystemInfo@https://app.js:183:8 https://lib/WAService.js:1:942569 wxFirst@https://app.js:194:10 https://lib/WAService.js:1:942569 success@https://app.js:144:16 https://lib/WAService.js:1:712307 https://lib/WAService.js:1:101845 g@https://lib/WAService.js:1:276440 We@https://lib/WAService.js:1:276615 https://lib/WAService.js:1:278067 y@https://lib/WAService.js:1:1377 https://lib/WAService.js:1:1121 _@https://lib/WAService.js:1:1287 invoke@https://lib/WAService.js:1:117378 X@https://lib/WAService.js:1:270517 https://lib/WAService.js:1:278048 Fr@https://lib/WAService.js:1:362044 https://lib/WAService.js:1:323260 https://lib/WAService.js:1:712493 https://lib/WAService.js:1:712589 https://lib/WAService.js:1:281981 handleVersion@https://app.js:133:8 https://lib/WAService.js:1:942569 onLaunch@https://app.js:88:10 https://lib/WAService.js:1:942010 e@https://lib/WAService.js:1:942896 https://lib/WAService.js:1:943086 https://lib/WAService.js:1:931969 https://app.js:8:1 require@https://lib/WAService.js:1:971779 global code@https://usr/app-service.js:3311:17 所涉及到的代码: [代码]// 获取用户设备信息[代码][代码] [代码][代码]getUserSystemInfo() {[代码][代码] [代码][代码]let ISIPHONEX_ETC = [代码][代码]false[代码][代码];[代码][代码] [代码][代码]let deviceBrand = [代码][代码]''[代码][代码];[代码][代码] [代码][代码]try[代码] [代码]{[代码][代码] [代码][代码]let res = wx.getSystemInfoSync();[代码][代码] [代码][代码]let brand = res.brand;[代码][代码] [代码][代码]let model = res.model;[代码] [代码] [代码][代码]deviceBrand = brand;[代码][代码] [代码][代码]// iPhone X 及以上机型兼容[代码][代码] [代码][代码]if[代码] [代码](brand == [代码][代码]'iPhone'[代码] [代码]|| brand == [代码][代码]'devtools'[代码][代码]) {[代码][代码] [代码][代码]if[代码] [代码](brand == [代码][代码]'devtools'[代码] [代码]&& model == [代码][代码]'iPhone X'[代码][代码]) {[代码][代码] [代码][代码]model = [代码][代码]'unknown<iPhone10,6>'[代码][代码];[代码][代码] [代码][代码]}[代码][代码] [代码][代码]if[代码] [代码](model.search([代码][代码]'unknown'[代码][代码]) != -1) {[代码][代码] [代码][代码]let strStart = model.indexOf([代码][代码]'<'[代码][代码]);[代码][代码] [代码][代码]let strEnd = model.indexOf([代码][代码]','[代码][代码]);[代码][代码] [代码][代码]model = model.substring(strStart, strEnd).split([代码][代码]'<iPhone'[代码][代码])[1] * 1;[代码][代码] [代码][代码]ISIPHONEX_ETC = model > 9 ? [代码][代码]true[代码] [代码]: [代码][代码]false[代码][代码];[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]ISIPHONEX_ETC = model.search([代码][代码]'iPhone X'[代码][代码]) != -1 ? [代码][代码]true[代码] [代码]: [代码][代码]false[代码][代码];[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]} [代码][代码]catch[代码] [代码](e) {[代码][代码] [代码][代码]console.log(e);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]wx.setStorageSync([代码][代码]'systemInfo'[代码][代码], {[代码][代码] [代码][代码]ISIPHONEX_ETC,[代码][代码] [代码][代码]ISIPHONEX_NUM: 53,[代码][代码] [代码][代码]brand: deviceBrand[代码][代码] [代码][代码]});[代码][代码] [代码][代码]}[代码]
2019-03-11