greenPro/unpackage/dist/dev/mp-weixin/pages/tabBar/component/component.js

116 lines
2.7 KiB
JavaScript

"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
props: {
hasLeftWin: {
type: Boolean
},
leftWinActive: {
type: String
}
},
data() {
return {
changeValue: ""
};
},
onShareAppMessage() {
return {
title: "欢迎体验uni-app",
path: "/pages/tabBar/component/component"
};
},
onNavigationBarButtonTap(e) {
common_vendor.index.navigateTo({
url: "/pages/about/about"
});
},
methods: {
triggerCollapse(e, id) {
if (!this.list[e].pages) {
this.goDetailPage("", this.list[e].url);
return;
}
for (var i = 0; i < this.list.length; ++i) {
if (e === i) {
this.list[i].open = !this.list[i].open;
} else {
this.list[i].open = false;
}
}
},
goDetailPage(panel, e) {
if (typeof e === "string") {
const url = "/pages/component/" + e + "/" + e;
if (this.hasLeftWin) {
common_vendor.index.reLaunch({
url
});
} else {
common_vendor.index.navigateTo({
url
});
}
} else {
if (this.hasLeftWin) {
common_vendor.index.reLaunch({
url: e.url
});
} else {
common_vendor.index.navigateTo({
url: e.url
});
}
}
}
}
};
if (!Array) {
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
_easycom_uni_icons2();
}
const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
if (!Math) {
_easycom_uni_icons();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
type: "person",
size: "30",
color: "#fff"
}),
b: $data.changeValue,
c: common_vendor.o(($event) => $data.changeValue = $event.detail.value),
d: common_vendor.p({
type: "heart-filled",
size: "30",
color: "#fd0505"
}),
e: common_vendor.p({
type: "chatboxes-filled",
size: "30"
}),
f: common_vendor.p({
type: "images-filled",
size: "30"
}),
g: common_vendor.p({
type: "heart-filled",
size: "30",
color: "#fd0505"
}),
h: common_vendor.p({
type: "chatboxes-filled",
size: "30"
}),
i: common_vendor.p({
type: "images-filled",
size: "30"
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/xianyu/app/greenPro/pages/tabBar/component/component.nvue"]]);
_sfc_main.__runtimeHooks = 2;
wx.createPage(MiniProgramPage);