jiuyiUniapp/jiuyi2/unpackage/dist/dev/mp-weixin/pages/mine/set-up/index.js

92 lines
3.1 KiB
JavaScript
Raw Normal View History

2024-12-18 15:46:27 +08:00
"use strict";
const common_vendor = require("../../../common/vendor.js");
const components_public_Mixins = require("../../../components/public/Mixins.js");
if (!Array) {
const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section");
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
(_easycom_uni_section2 + _easycom_uni_icons2)();
}
const _easycom_uni_section = () => "../../../uni_modules/uni-section/components/uni-section/uni-section.js";
const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
if (!Math) {
(_easycom_uni_section + _easycom_uni_icons)();
}
const _sfc_main = {
__name: "index",
setup(__props) {
const { userinfo } = common_vendor.useStore().state;
const { checkLink, alert, logout } = common_vendor.inject("util");
const section = common_vendor.ref([{
label: "收获地址",
right: false,
icon: "right",
value: null,
path: "pages/mine/delivery-address/index"
}, {
label: "已绑定手机号",
right: true,
icon: "right",
value: userinfo.userPhone,
path: ""
}, {
label: "实名认证",
right: false,
icon: "right",
value: null,
path: "pages/mine/real-name-authentication/index"
}, {
label: "先付后用",
right: false,
icon: "right",
value: null,
path: "pages/mine/pay-use/index"
}]);
const logOff = () => {
alert({
title: "提示",
content: "确定退出登录?"
}).then((res) => {
if (res.confirm) {
logout(() => {
checkLink("pages/login/loginPhone", "reLaunch");
});
}
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.unref(userinfo).userPortrait,
b: common_vendor.o$1(($event) => common_vendor.unref(checkLink)("pages/mine/userinfo")),
c: common_vendor.p({
title: common_vendor.unref(userinfo).userNickname,
["sub-title"]: "账号:" + common_vendor.unref(userinfo).userAccount
}),
d: common_vendor.f(section.value, (item, index, i0) => {
return common_vendor.e({
a: !item.right
}, !item.right ? {
b: "b70079ba-2-" + i0 + "," + ("b70079ba-1-" + i0),
c: common_vendor.p({
type: "right"
})
} : {
d: common_vendor.t(item.value)
}, {
e: common_vendor.o$1(($event) => common_vendor.unref(checkLink)(item.path), index),
f: index,
g: "b70079ba-1-" + i0,
h: common_vendor.p({
title: item.label
})
});
}),
e: common_vendor.o$1(($event) => common_vendor.unref(checkLink)("pages/mine/switch-accounts/index")),
f: common_vendor.o$1(logOff),
g: common_vendor.unref(components_public_Mixins.bottomSafeAreaHeight)()
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b70079ba"]]);
wx.createPage(MiniProgramPage);