110 lines
3.9 KiB
JavaScript
110 lines
3.9 KiB
JavaScript
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "components/bootNav/bootNav" ], {
|
|
"027b": function(t, n, e) {
|
|
"use strict";
|
|
var a = e("5c05"), i = e.n(a);
|
|
i.a;
|
|
},
|
|
"0641": function(t, n, e) {
|
|
"use strict";
|
|
e.d(n, "b", function() {
|
|
return i;
|
|
}), e.d(n, "c", function() {
|
|
return o;
|
|
}), e.d(n, "a", function() {
|
|
return a;
|
|
});
|
|
var a = {
|
|
uniIcons: function() {
|
|
return Promise.all([ e.e("common/vendor"), e.e("uni_modules/uni-icons/components/uni-icons/uni-icons") ]).then(e.bind(null, "8be1"));
|
|
}
|
|
}, i = function() {
|
|
var t = this.$createElement;
|
|
this._self._c;
|
|
}, o = [];
|
|
},
|
|
"0d0a": function(t, n, e) {
|
|
"use strict";
|
|
var a = e("4ea4");
|
|
Object.defineProperty(n, "__esModule", {
|
|
value: !0
|
|
}), n.default = void 0;
|
|
a(e("5c77"));
|
|
var i = {
|
|
name: "bootNav",
|
|
data: function() {
|
|
return {
|
|
navTextClass: "xuni-tabbar_normal",
|
|
navTextActiveClass: "xuni-tabbar_active",
|
|
navList: [ {
|
|
name: "home",
|
|
text: "首页",
|
|
img: "home",
|
|
path: "/pages/index/index",
|
|
appId: ""
|
|
}, {
|
|
name: "category",
|
|
text: "分类",
|
|
img: "list",
|
|
path: "/pages/category/category",
|
|
appId: ""
|
|
}, {
|
|
name: "my",
|
|
text: "我的收藏",
|
|
img: "heart-filled",
|
|
path: "/pages/result/result?isMy=1",
|
|
appId: ""
|
|
} ]
|
|
};
|
|
},
|
|
mounted: function() {
|
|
this.getNav();
|
|
},
|
|
methods: {
|
|
getNav: function() {
|
|
this.x_request("api/nav/index", {}, function(t, n) {
|
|
1 === n.code && (t.navList = n.data), t.initNav();
|
|
});
|
|
},
|
|
initNav: function() {
|
|
for (var t in this.navList) this.navList[t]["name"] == this.nav ? this.navList[t].textColor = "#a67d41;" : this.navList[t].textColor = "rgb(122, 126, 131)";
|
|
},
|
|
goTo: function(t) {
|
|
console.log(t.currentTarget.dataset.app_id), this.x_redirect(t.currentTarget.dataset.path, t.currentTarget.dataset.app_id);
|
|
}
|
|
},
|
|
props: [ "nav" ]
|
|
};
|
|
n.default = i;
|
|
},
|
|
"5c05": function(t, n, e) {},
|
|
"6e7d": function(t, n, e) {
|
|
"use strict";
|
|
e.r(n);
|
|
var a = e("0d0a"), i = e.n(a);
|
|
for (var o in a) [ "default" ].indexOf(o) < 0 && function(t) {
|
|
e.d(n, t, function() {
|
|
return a[t];
|
|
});
|
|
}(o);
|
|
n["default"] = i.a;
|
|
},
|
|
dc0f: function(t, n, e) {
|
|
"use strict";
|
|
e.r(n);
|
|
var a = e("0641"), i = e("6e7d");
|
|
for (var o in i) [ "default" ].indexOf(o) < 0 && function(t) {
|
|
e.d(n, t, function() {
|
|
return i[t];
|
|
});
|
|
}(o);
|
|
e("027b");
|
|
var r = e("f0c5"), u = Object(r["a"])(i["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], void 0);
|
|
n["default"] = u.exports;
|
|
}
|
|
} ]);
|
|
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ "components/bootNav/bootNav-create-component", {
|
|
"components/bootNav/bootNav-create-component": function(module, exports, __webpack_require__) {
|
|
__webpack_require__("543d")["createComponent"](__webpack_require__("dc0f"));
|
|
}
|
|
}, [ [ "components/bootNav/bootNav-create-component" ] ] ]); |