收藏
回答

Setting data field "ts" to undefined is invalid. ?

Setting data field "ts" to undefined is invalid.

出现这样的提示,怎么解决??

var n = t.come,

o = t.ts

if (a.setData({

come: n,

ts: o

}), "续费" == n && (wx.setNavigationBarTitle({

title: "续费中心"

}), "sj" == o ? a.getSjrzsj() : a.getJsrzsj()), "充值" == n) {

wx.setNavigationBarTitle({

title: "充值中心"

});

var i = t.h_id;

a.getHuiyuanxq(i)

}

if ("服务" == n) {

wx.setNavigationBarTitle({

title: "服务订单中心"

});

var s = t.o_id,

r = t.dd;

a.setData({

dd: r

}), a.getOrderfuxq(s)

}

if ("jsyyorder" == n) {

wx.setNavigationBarTitle({

title: "收银台"

});

s = t.o_id;

a.getOrderishiyuyuexq(s)

}


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

1 个回答

  • _人世间
    _人世间
    2019-12-08

    是因为ts没定义还是t的引用错误?可以的话,看下你的t的数据结构

    2019-12-08
    赞同
    回复
登录 后发表内容
问题标签