You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.6 KiB
83 lines
2.6 KiB
"use strict"; |
|
const common_vendor = require("../../common/vendor.js"); |
|
const FooterNav = () => "../../components/FooterNav/Index.js"; |
|
const RightNav = () => "../../components/RightNav/Index.js"; |
|
const HeaderNav = () => "../../components/HeaderNav/Index.js"; |
|
const HomePage = () => "./components/HomePage/Index.js"; |
|
const OrderPage = () => "./components/OrderPage/Index.js"; |
|
const ChatPage = () => "./components/ChatPage/Index.js"; |
|
const UserPage = () => "./components/UserPage/Index.js"; |
|
const _sfc_main = { |
|
components: { |
|
FooterNav, |
|
RightNav, |
|
HeaderNav, |
|
HomePage, |
|
OrderPage, |
|
ChatPage, |
|
UserPage |
|
}, |
|
data() { |
|
return { |
|
title: "", |
|
footCheck: "home" |
|
}; |
|
}, |
|
onLoad() { |
|
}, |
|
methods: { |
|
// store. |
|
}, |
|
onPageScroll(res) { |
|
if (res.scrollTop <= 20) { |
|
common_vendor.index.$emit("isTop", true); |
|
} else { |
|
common_vendor.index.$emit("isTop", false); |
|
} |
|
}, |
|
created() { |
|
}, |
|
mounted() { |
|
this.title = this.$store.state.title; |
|
}, |
|
watch: { |
|
"$store.state.footCheck": { |
|
handler(newVal, oldVal) { |
|
this.footCheck = newVal; |
|
} |
|
}, |
|
"$store.state.title": { |
|
handler(newVal, oldVal) { |
|
this.title = newVal; |
|
} |
|
} |
|
} |
|
}; |
|
if (!Array) { |
|
const _component_HeaderNav = common_vendor.resolveComponent("HeaderNav"); |
|
const _component_HomePage = common_vendor.resolveComponent("HomePage"); |
|
const _component_OrderPage = common_vendor.resolveComponent("OrderPage"); |
|
const _component_ChatPage = common_vendor.resolveComponent("ChatPage"); |
|
const _component_UserPage = common_vendor.resolveComponent("UserPage"); |
|
const _component_RightNav = common_vendor.resolveComponent("RightNav"); |
|
const _component_FooterNav = common_vendor.resolveComponent("FooterNav"); |
|
(_component_HeaderNav + _component_HomePage + _component_OrderPage + _component_ChatPage + _component_UserPage + _component_RightNav + _component_FooterNav)(); |
|
} |
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { |
|
return { |
|
a: common_vendor.p({ |
|
title: $data.title |
|
}), |
|
b: $data.footCheck === "home", |
|
c: $data.footCheck === "home" ? 1 : "", |
|
d: $data.footCheck === "order", |
|
e: $data.footCheck === "order" ? 1 : "", |
|
f: $data.footCheck === "chat", |
|
g: $data.footCheck === "chat" ? 1 : "", |
|
h: $data.footCheck === "user", |
|
i: $data.footCheck === "user" ? 1 : "" |
|
}; |
|
} |
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/project/pet-uni/pages/Index/index.vue"]]); |
|
_sfc_main.__runtimeHooks = 1; |
|
wx.createPage(MiniProgramPage);
|
|
|