Files
tk-mini-program/unpackage/dist/dev/mp-weixin/app.js
pengxiaolong 8ec7365e7c 优化页面
2025-06-16 22:09:12 +08:00

83 lines
2.4 KiB
JavaScript

"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
if (!Math) {
"./pages/Home/Home.js";
"./pages/Mine/Mine.js";
"./pages/Mine/minecomponents/pkRecord.js";
"./pages/Mine/minecomponents/contact.js";
"./pages/Mine/minecomponents/points.js";
"./pages/Mine/minecomponents/anchorLibrary.js";
"./pages/Mine/minecomponents/pkInformation.js";
"./pages/Mine/minecomponents/recompose/recompose.js";
"./pages/Mine/minecomponents/serviceProtocol.js";
"./pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords.js";
"./pages/PKMessageprocessing/PKMessageprocessing.js";
"./pages/index/index.js";
"./pages/login/login.js";
"./pages/Forum/Forum.js";
"./pages/UserInformation/UserInformation.js";
"./pages/Setting/Setting.js";
"./pages/NewAddedPk/NewAddedPk.js";
"./pages/pkDetail/pkDetail.js";
"./TUIKit/components/TUIConversation/index.js";
"./TUIKit/components/TUIChat/index.js";
"./TUIKit/components/TUIChat/video-play.js";
"./TUIKit/components/TUIChat/web-view.js";
"./TUIKit/components/TUIContact/index.js";
"./TUIKit/components/TUIGroup/index.js";
"./TUIKit/components/TUISearch/index2.js";
"./TUIKit/components/TUIConversation/conversation-list/index2.js";
}
const _sfc_main = {
data() {
return {
info: {},
userSig: "",
chatInfo: {}
};
},
onLoad(option) {
this.AutomaticCleaning();
common_vendor.index.getStorage({
key: "userinfo",
success: (res) => {
this.info = res.data;
counter.$patch({ myitem: this.info });
},
fail: () => {
}
});
},
methods: {
//自动清理缓存
AutomaticCleaning() {
const lastCleanTime = common_vendor.index.getStorageSync("last_clean_time") || 0;
const now = Date.now();
if (now - lastCleanTime < 7 * 24 * 3600 * 1e3)
return;
common_vendor.index.clearStorage();
common_vendor.index.setStorageSync("last_clean_time", now);
}
},
provide() {
return {
$global: {
lastPage: null
}
};
}
};
function createApp() {
const app = common_vendor.createSSRApp(_sfc_main);
app.use(common_vendor.createPinia());
return {
app,
Pinia: common_vendor.Pinia
// 此处必须将 Pinia 返回
};
}
createApp().app.mount("#app");
exports.createApp = createApp;
//# sourceMappingURL=../.sourcemap/mp-weixin/app.js.map