收藏
回答

小程序前端无法显示

框架类型 问题类型 操作系统 工具版本
小程序 Bug Windows 1.02.1811150

- 当前 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


回答关注问题邀请回答
收藏

1 个回答

  • 慢慢。
    慢慢。
    2018-11-26

    wx:for 和 wx:if 不能在同一个标签内使用吧。还有使用for的时候,最好加上wx:key。


    2018-11-26
    有用
    回复
登录 后发表内容