"use strict";
|
const common_vendor = require("../../common/vendor.js");
|
const stores_user = require("../../stores/user.js");
|
if (!Array) {
|
const _easycom_uni_list_item2 = common_vendor.resolveComponent("uni-list-item");
|
const _easycom_uni_list2 = common_vendor.resolveComponent("uni-list");
|
(_easycom_uni_list_item2 + _easycom_uni_list2)();
|
}
|
const _easycom_uni_list_item = () => "../../uni_modules/uni-list/components/uni-list-item/uni-list-item.js";
|
const _easycom_uni_list = () => "../../uni_modules/uni-list/components/uni-list/uni-list.js";
|
if (!Math) {
|
(_easycom_uni_list_item + _easycom_uni_list)();
|
}
|
const defaultAvatar = "https://farm.evcc.top/Uploads/yuanboyuan/avatars/user.png";
|
const _sfc_main = {
|
__name: "ucenter",
|
setup(__props) {
|
const userStore = stores_user.useUserStore();
|
const ucenterList = [
|
{
|
"title": "我的预约",
|
"to": "/pages/ucenter/my-booking",
|
"icon": "compose"
|
},
|
{
|
"title": "我的投诉建议",
|
"to": "/pages/ucenter/my-advice",
|
"icon": "compose"
|
},
|
{
|
"title": "WIFI服务",
|
"to": "/pages/index/wifi",
|
"icon": "star"
|
},
|
{
|
"title": "咨询电话",
|
"event": "callServiceNumber",
|
"icon": "flag"
|
},
|
{
|
"title": "设置",
|
"to": "/pages/ucenter/settings",
|
"icon": "settings"
|
}
|
];
|
function callServiceNumber() {
|
common_vendor.index.makePhoneCall({
|
phoneNumber: "0724-6033555"
|
});
|
}
|
function gotoSetting() {
|
common_vendor.index.navigateTo({
|
url: "/pages/ucenter/settings"
|
});
|
}
|
return (_ctx, _cache) => {
|
return common_vendor.e({
|
a: common_vendor.unref(userStore).username
|
}, common_vendor.unref(userStore).username ? {
|
b: common_vendor.unref(userStore).avatarUrl,
|
c: common_vendor.t(common_vendor.unref(userStore).username)
|
} : {
|
d: defaultAvatar
|
}, {
|
e: common_vendor.o(gotoSetting),
|
f: common_vendor.p({
|
title: ucenterList[0].title,
|
link: true,
|
clickable: "true",
|
to: ucenterList[0].to,
|
["show-extra-icon"]: "true",
|
extraIcon: {
|
type: ucenterList[0].icon,
|
color: "#999"
|
}
|
}),
|
g: common_vendor.p({
|
title: ucenterList[1].title,
|
link: true,
|
clickable: "true",
|
to: ucenterList[1].to,
|
["show-extra-icon"]: "true",
|
extraIcon: {
|
type: ucenterList[1].icon,
|
color: "#999"
|
}
|
}),
|
h: common_vendor.p({
|
title: ucenterList[2].title,
|
link: true,
|
clickable: "true",
|
to: ucenterList[2].to,
|
["show-extra-icon"]: "true",
|
extraIcon: {
|
type: ucenterList[2].icon,
|
color: "#999"
|
}
|
}),
|
i: common_vendor.o(callServiceNumber),
|
j: common_vendor.p({
|
title: ucenterList[3].title,
|
link: true,
|
clickable: "true",
|
["show-extra-icon"]: "true",
|
extraIcon: {
|
type: ucenterList[3].icon,
|
color: "#999"
|
}
|
}),
|
k: common_vendor.o(gotoSetting),
|
l: common_vendor.p({
|
title: ucenterList[4].title,
|
link: true,
|
clickable: "true",
|
["show-extra-icon"]: "true",
|
extraIcon: {
|
type: ucenterList[4].icon,
|
color: "#999"
|
}
|
})
|
});
|
};
|
}
|
};
|
wx.createPage(_sfc_main);
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/ucenter/ucenter.js.map
|