收藏
回答

请教下导航?

请问怎么直接把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 = 45this.busPos.y = e.globalData.hh - 80this.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直接赋值上去,不用判断

最后一次编辑于  2020-04-23
回答关注问题邀请回答
收藏

5 个回答

  • Admin ²º²⁴
    Admin ²º²⁴
    2020-04-22

    pagePath而不是pagesPath

    2020-04-22
    有用 1
    回复 2
    • 阿逹
      阿逹
      2020-04-22
      还是一样出错
      2020-04-22
      回复
    • Admin ²º²⁴
      Admin ²º²⁴
      2020-04-22回复阿逹
      出错的提示信息变了吧,应该是说不能包含?吧。这个你去掉后面的参数?id=2就好了。
      2020-04-22
      回复
  • Candyland丶
    Candyland丶
    2020-04-22

    tab 地址不能有参数

    2020-04-22
    有用 1
    回复
  • 阿逹
    阿逹
    2020-04-22

    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直接赋值上去,不用判断

    2020-04-22
    有用
    回复
  • lily
    lily
    2020-04-22

    小程序客服聊天工具,出现无法分配客服什么情况

    2020-04-22
    有用
    回复
  • 林子
    林子
    2020-04-22

    你是不是带?id=2 参数 你去掉试试

    2020-04-22
    有用
    回复 2
登录 后发表内容
问题标签