2024-09-19 07:20:14 +08:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
|
const common_vendor = require("./common/vendor.js");
|
|
|
|
const service_notificationService = require("./service/notificationService.js");
|
|
|
|
const store_index = require("./store/index.js");
|
2024-10-01 09:15:35 +08:00
|
|
|
const utils_commUtils = require("./utils/commUtils.js");
|
|
|
|
const store_user = require("./store/user.js");
|
2024-09-19 07:20:14 +08:00
|
|
|
const interceptors_route = require("./interceptors/route.js");
|
|
|
|
const interceptors_request = require("./interceptors/request.js");
|
|
|
|
const interceptors_prototype = require("./interceptors/prototype.js");
|
|
|
|
if (!Math) {
|
|
|
|
"./pages/index/index.js";
|
2024-10-01 09:15:35 +08:00
|
|
|
"./pages/index/404.js";
|
|
|
|
"./modules/pet/address/index.js";
|
|
|
|
"./modules/pet/ai/ai-interactive-space.js";
|
|
|
|
"./modules/pet/certification/index.js";
|
|
|
|
"./modules/pet/certification/pet-sitter.js";
|
|
|
|
"./modules/pet/extended/index.js";
|
|
|
|
"./modules/pet/h5mall/index.js";
|
|
|
|
"./modules/pet/login/index.js";
|
|
|
|
"./modules/pet/login/phone.js";
|
|
|
|
"./modules/pet/map/index.js";
|
|
|
|
"./modules/pet/message/chat.js";
|
|
|
|
"./modules/pet/message/index.js";
|
|
|
|
"./modules/pet/message/message-list.js";
|
|
|
|
"./modules/pet/message/privatechat.js";
|
|
|
|
"./modules/pet/my/index.js";
|
|
|
|
"./modules/pet/order/index.js";
|
|
|
|
"./modules/pet/order/order-detail.js";
|
|
|
|
"./modules/pet/order/take.js";
|
|
|
|
"./modules/pet/others/agreement.js";
|
|
|
|
"./modules/pet/others/null.js";
|
|
|
|
"./modules/pet/others/official-account.js";
|
|
|
|
"./modules/pet/permission/bind-phone.js";
|
|
|
|
"./modules/pet/permission/real-name-auth.js";
|
|
|
|
"./modules/pet/pet/index.js";
|
|
|
|
"./modules/pet/pet/pet-add-page.js";
|
|
|
|
"./modules/pet/pet/pet-detail-page.js";
|
|
|
|
"./modules/pet/push/door.js";
|
|
|
|
"./modules/pet/push/goods.js";
|
|
|
|
"./modules/pet/push/index.js";
|
|
|
|
"./modules/pet/push/share.js";
|
|
|
|
"./modules/pet/service/accompany.js";
|
|
|
|
"./modules/pet/service/detail.js";
|
|
|
|
"./modules/pet/service/door.js";
|
|
|
|
"./modules/pet/service/index.js";
|
|
|
|
"./modules/pet/service/knowledge.js";
|
|
|
|
"./modules/pet/service/my-service.js";
|
|
|
|
"./modules/pet/service/search.js";
|
|
|
|
"./modules/pet/service/shop.js";
|
|
|
|
"./modules/pet/service/slippery.js";
|
|
|
|
"./modules/pet/service/store.js";
|
|
|
|
"./modules/pet/settings/index.js";
|
|
|
|
"./modules/pet/space/index.js";
|
|
|
|
"./modules/pet/webview/webview.js";
|
2024-09-19 07:20:14 +08:00
|
|
|
"./modules/mall/index/index.js";
|
|
|
|
"./modules/mall/index/user.js";
|
|
|
|
"./modules/mall/index/category.js";
|
|
|
|
"./modules/mall/index/cart.js";
|
|
|
|
"./modules/mall/index/login.js";
|
|
|
|
"./modules/mall/index/search.js";
|
|
|
|
"./modules/mall/index/page.js";
|
|
|
|
"./modules/mall/goods/index.js";
|
|
|
|
"./modules/mall/goods/groupon.js";
|
|
|
|
"./modules/mall/goods/seckill.js";
|
|
|
|
"./modules/mall/goods/list.js";
|
|
|
|
"./modules/mall/goods/comment/add.js";
|
|
|
|
"./modules/mall/goods/comment/list.js";
|
|
|
|
"./modules/mall/order/detail.js";
|
|
|
|
"./modules/mall/order/confirm.js";
|
|
|
|
"./modules/mall/order/list.js";
|
|
|
|
"./modules/mall/order/aftersale/apply.js";
|
|
|
|
"./modules/mall/order/aftersale/return-delivery.js";
|
|
|
|
"./modules/mall/order/aftersale/list.js";
|
|
|
|
"./modules/mall/order/aftersale/detail.js";
|
|
|
|
"./modules/mall/order/aftersale/log.js";
|
|
|
|
"./modules/mall/order/express/log.js";
|
|
|
|
"./modules/mall/user/info.js";
|
|
|
|
"./modules/mall/user/goods-collect.js";
|
|
|
|
"./modules/mall/user/goods-log.js";
|
|
|
|
"./modules/mall/user/address/list.js";
|
|
|
|
"./modules/mall/user/address/edit.js";
|
|
|
|
"./modules/mall/user/goods_details_store/index.js";
|
|
|
|
"./modules/mall/user/wallet/money.js";
|
|
|
|
"./modules/mall/user/wallet/score.js";
|
|
|
|
"./modules/mall/commission/index.js";
|
|
|
|
"./modules/mall/commission/wallet.js";
|
|
|
|
"./modules/mall/commission/goods.js";
|
|
|
|
"./modules/mall/commission/order.js";
|
|
|
|
"./modules/mall/commission/team.js";
|
|
|
|
"./modules/mall/commission/promoter.js";
|
|
|
|
"./modules/mall/commission/commission-ranking.js";
|
|
|
|
"./modules/mall/commission/withdraw.js";
|
|
|
|
"./modules/mall/app/sign.js";
|
|
|
|
"./modules/mall/public/setting.js";
|
|
|
|
"./modules/mall/public/richtext.js";
|
|
|
|
"./modules/mall/public/faq.js";
|
|
|
|
"./modules/mall/public/error.js";
|
|
|
|
"./modules/mall/public/webview.js";
|
|
|
|
"./modules/mall/coupon/list.js";
|
|
|
|
"./modules/mall/coupon/detail.js";
|
|
|
|
"./modules/mall/chat/index.js";
|
|
|
|
"./modules/mall/pay/index.js";
|
|
|
|
"./modules/mall/pay/result.js";
|
|
|
|
"./modules/mall/pay/recharge.js";
|
|
|
|
"./modules/mall/pay/recharge-log.js";
|
|
|
|
"./modules/mall/activity/groupon/detail.js";
|
|
|
|
"./modules/mall/activity/groupon/order.js";
|
|
|
|
"./modules/mall/activity/index.js";
|
|
|
|
"./modules/mall/activity/groupon/list.js";
|
|
|
|
"./modules/mall/activity/seckill/list.js";
|
|
|
|
}
|
|
|
|
const _sfc_main = {
|
|
|
|
__name: "App",
|
|
|
|
setup(__props) {
|
|
|
|
common_vendor.onLoad(() => {
|
|
|
|
common_vendor.index.hideTabBar();
|
|
|
|
});
|
|
|
|
common_vendor.onLaunch(() => {
|
|
|
|
console.log("应用正在运行...");
|
|
|
|
common_vendor.index.hideTabBar();
|
2024-10-01 09:15:35 +08:00
|
|
|
const userInfo = store_user.useUserStore();
|
2024-09-19 07:20:14 +08:00
|
|
|
service_notificationService.notificationService.startPollingUnreadMessages();
|
2024-10-01 09:15:35 +08:00
|
|
|
if (userInfo.userInfo.token == "" || !userInfo.userInfo.token) {
|
|
|
|
utils_commUtils.toPath("/modules/pet/login/index");
|
|
|
|
return;
|
|
|
|
}
|
2024-09-19 07:20:14 +08:00
|
|
|
});
|
|
|
|
common_vendor.onShow(() => {
|
|
|
|
console.log("应用显示出来了...");
|
|
|
|
service_notificationService.notificationService.startPollingUnreadMessages();
|
|
|
|
console.log(options, "options");
|
|
|
|
});
|
|
|
|
common_vendor.onHide(() => {
|
|
|
|
console.log("App Hide");
|
|
|
|
service_notificationService.notificationService.stopPollingUnreadMessages();
|
|
|
|
});
|
|
|
|
return () => {
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
function createApp() {
|
|
|
|
const app = common_vendor.createSSRApp(_sfc_main);
|
|
|
|
app.use(store_index.store);
|
|
|
|
app.use(interceptors_route.routeInterceptor);
|
|
|
|
app.use(interceptors_request.requestInterceptor);
|
|
|
|
app.use(interceptors_prototype.prototypeInterceptor);
|
|
|
|
app.component("layout-default-uni", Layout_Default_Uni);
|
|
|
|
app.component("layout-demo-uni", Layout_Demo_Uni);
|
|
|
|
return {
|
|
|
|
app
|
|
|
|
};
|
|
|
|
}
|
|
|
|
const Layout_Default_Uni = () => "./layouts/default.js";
|
|
|
|
const Layout_Demo_Uni = () => "./layouts/demo.js";
|
|
|
|
createApp().app.mount("#app");
|
|
|
|
exports.createApp = createApp;
|