请教下导航?
请问怎么直接把ID=2直接赋值上去,不用判断 function t(t, a, e) { return a in t ? Object.defineProperty(t, a, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[a] = e, t; } var a, e = getApp(), r = e.requirejs("core"), i = e.requirejs("biz/goodspicker"), s = e.requirejs("foxui"), o = e.requirejs("biz/diyform"); Page({ data: (a = { arrLabel: [], num: [], clickCar: !1 }, t(a, "num", 0), t(a, "change", !1), t(a, "div", !1), t(a, "numtotal", []), t(a, "clearcart", !0), t(a, "canBuy", ""), t(a, "specs", []), t(a, "options", []), t(a, "diyform", {}), t(a, "specsTitle", ""), t(a, "total", 1), t(a, "active", ""), t(a, "slider", ""), t(a, "tempname", ""), t(a, "buyType", ""), t(a, "areas", []), t(a, "closeBtn", !1), t(a, "soundpic", !0), t(a, "closespecs", !1), t(a, "buyType", "cart"), t(a, "quickbuy", !0), t(a, "formdataval", {}), t(a, "showPicker", !1), a), onLoad: function(t) { wx.showLoading({ title: "加载中..." }); var a = t.id, i = this, s = wx.getStorageSync("systemInfo"); this.busPos = {}, this.busPos.x = 45, this.busPos.y = e.globalData.hh - 80, this.setData({ goodsH: s.windowHeight - 245 - 48, pageid: a }); for (var o = [ 1 ], n = 1; n < i.data.arrLabel.length; n++) o.push(0); i.setData({ arrLab: o }), r.get("quick/index/main", { id: this.data.pageid }, function(t) { console.log(t); var a = [], e = ""; e = 1 == t.style.shopstyle ? "changeCss2" : 2 == t.style.shopstyle ? "changeCss3" : "", e += " " + t.style.logostyle, i.setData({ main: t, group: t.group, goodsArr: t.goodsArr, arrCart: a, style: e }); 请问怎么直接把ID=2直接赋值上去,不用判断