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)
}
您的问题解决了吗
是因为ts没定义还是t的引用错误?可以的话,看下你的t的数据结构