wangzhibo
2025-10-23 cad64c1de2c45856b0774933c5801b05b64984e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
"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