68 lines
1.8 KiB
JavaScript
68 lines
1.8 KiB
JavaScript
|
|
"use strict";
|
||
|
|
const common_vendor = require("../../../common/vendor.js");
|
||
|
|
const common_assets = require("../../../common/assets.js");
|
||
|
|
const _sfc_main = {
|
||
|
|
__name: "MePage",
|
||
|
|
setup(__props) {
|
||
|
|
const menuItems = common_vendor.ref([
|
||
|
|
{
|
||
|
|
icon: "/static/userui/icon/zhhanghu.png",
|
||
|
|
label: "账户明细",
|
||
|
|
link: "/pages/user/login/AccountDetails"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
icon: "/static/userui/icon/baoxiujilu.png",
|
||
|
|
label: "故障反馈",
|
||
|
|
link: "/pages/user/login/TroubleReportUser"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
icon: "/static/userui/icon/baoxiujilu.png",
|
||
|
|
label: "报修记录",
|
||
|
|
link: "/pages/user/login/RepairReport"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
icon: "/static/userui/icon/shiminrenzheng.png",
|
||
|
|
label: "微信登录",
|
||
|
|
link: "/pages/user/login/wx_login"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
icon: "/static/userui/icon/jilu.png",
|
||
|
|
label: "申请换车记录",
|
||
|
|
link: ""
|
||
|
|
},
|
||
|
|
{
|
||
|
|
icon: "/static/userui/icon/helpinfo.png",
|
||
|
|
label: "帮助中心",
|
||
|
|
link: "/pages/user/HelpPage/HelpPage"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
icon: "/static/userui/icon/loginout.png",
|
||
|
|
label: "账号注销",
|
||
|
|
link: "/pages/user/login/userLogout"
|
||
|
|
}
|
||
|
|
]);
|
||
|
|
const navigateTo = (link) => {
|
||
|
|
if (link == "")
|
||
|
|
return;
|
||
|
|
common_vendor.index.navigateTo({
|
||
|
|
url: link
|
||
|
|
});
|
||
|
|
};
|
||
|
|
return (_ctx, _cache) => {
|
||
|
|
return {
|
||
|
|
a: common_assets._imports_0,
|
||
|
|
b: common_vendor.f(menuItems.value, (item, index, i0) => {
|
||
|
|
return {
|
||
|
|
a: item.icon,
|
||
|
|
b: common_vendor.t(item.label),
|
||
|
|
c: index,
|
||
|
|
d: common_vendor.o(($event) => navigateTo(item.link), index)
|
||
|
|
};
|
||
|
|
})
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|
||
|
|
};
|
||
|
|
wx.createPage(_sfc_main);
|
||
|
|
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/user/mine/MePage.js.map
|