基本功能都已完成
This commit is contained in:
@@ -1,70 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
__name: "my",
|
||||
setup(__props) {
|
||||
common_vendor.reactive({
|
||||
nickName: "",
|
||||
phonenumber: ""
|
||||
});
|
||||
common_vendor.onMounted(() => {
|
||||
getUserInfo();
|
||||
});
|
||||
const Helpcenter = () => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/personalcenter/helpcenter"
|
||||
});
|
||||
};
|
||||
const notification = () => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/personalcenter/notification"
|
||||
});
|
||||
};
|
||||
const Settings = () => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/personalcenter/settings"
|
||||
});
|
||||
};
|
||||
const Account = () => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/personalcenter/account"
|
||||
});
|
||||
};
|
||||
const handleLogout = () => {
|
||||
common_vendor.index.showModal({
|
||||
title: "提示",
|
||||
content: "确定要退出登录吗?",
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
console.log("用户点击确定");
|
||||
common_vendor.index.clearStorageSync();
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
console.log("用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_assets._imports_0$1,
|
||||
b: common_vendor.o(($event) => Helpcenter()),
|
||||
c: common_assets._imports_1,
|
||||
d: common_assets._imports_2,
|
||||
e: common_vendor.o(($event) => Account()),
|
||||
f: common_assets._imports_3,
|
||||
g: common_vendor.o(($event) => notification()),
|
||||
h: common_assets._imports_4,
|
||||
i: common_assets._imports_5,
|
||||
j: common_vendor.o(($event) => Settings()),
|
||||
k: common_assets._imports_0$1,
|
||||
l: common_vendor.o(($event) => handleLogout())
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-02345808"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
Reference in New Issue
Block a user