67 lines
1.8 KiB
JavaScript
67 lines
1.8 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
const tabBar = () => "../../components/tabBar/tabBar.js";
|
|
const _sfc_main = {
|
|
data() {
|
|
return {
|
|
userinfo: {}
|
|
};
|
|
},
|
|
onShow() {
|
|
common_vendor.index.getStorage({
|
|
key: "userinfo",
|
|
success: (res) => {
|
|
this.userinfo = res.data;
|
|
}
|
|
});
|
|
},
|
|
methods: {
|
|
goSetting() {
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/Setting/Setting"
|
|
});
|
|
},
|
|
logout() {
|
|
common_vendor.index.removeStorage({
|
|
key: "chatInfo"
|
|
});
|
|
common_vendor.index.removeStorage({
|
|
key: "userinfo"
|
|
});
|
|
common_vendor.index.removeStorage({
|
|
key: "userSig"
|
|
});
|
|
common_vendor.index.removeStorage({
|
|
key: "lastPage"
|
|
});
|
|
common_vendor.index.reLaunch({
|
|
url: "/pages/login/login"
|
|
});
|
|
}
|
|
},
|
|
components: {
|
|
tabBar
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _easycom_tabBar2 = common_vendor.resolveComponent("tabBar");
|
|
_easycom_tabBar2();
|
|
}
|
|
const _easycom_tabBar = () => "../../components/tabBar/tabBar.js";
|
|
if (!Math) {
|
|
_easycom_tabBar();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: $data.userinfo.headerIcon,
|
|
b: common_vendor.t($data.userinfo.nickName),
|
|
c: common_assets._imports_0$2,
|
|
d: common_vendor.o$1((...args) => $options.goSetting && $options.goSetting(...args)),
|
|
e: common_vendor.o$1((...args) => $options.logout && $options.logout(...args))
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-402ad917"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Mine/Mine.js.map
|