107 lines
3.0 KiB
JavaScript
107 lines
3.0 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
const _sfc_main = {
|
|
data() {
|
|
return {
|
|
menuTop: common_vendor.inject("menuTop"),
|
|
menuH: common_vendor.inject("menuHeight"),
|
|
infoTop: "",
|
|
menuList: [
|
|
{
|
|
icon: "/static/icon/mine/aboutUs.png",
|
|
title: "关于我们"
|
|
},
|
|
{
|
|
icon: "/static/icon/mine/serviceTerm.png",
|
|
title: "服务条款"
|
|
},
|
|
{
|
|
icon: "/static/icon/mine/privacyProtocol.png",
|
|
title: "隐私协议"
|
|
},
|
|
{
|
|
icon: "/static/icon/mine/feedback.png",
|
|
title: "意见反馈",
|
|
url: "/pages/mine/feedback/feedback"
|
|
},
|
|
{
|
|
icon: "/static/icon/mine/accountSetting.png",
|
|
title: "账户设置"
|
|
},
|
|
{
|
|
icon: "/static/icon/mine/customerService.png",
|
|
title: "联系客服"
|
|
}
|
|
]
|
|
};
|
|
},
|
|
onLoad() {
|
|
this.infoTop = common_vendor.inject("navHeight") + 32 / 750 * common_vendor.inject("windowWidth");
|
|
},
|
|
methods: {
|
|
/**
|
|
* 点击查看个人信息
|
|
*/
|
|
clickPersonalInfo() {
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/mine/basicInfo/basicInfo"
|
|
});
|
|
},
|
|
/**
|
|
* 点击vip
|
|
*/
|
|
clickVip() {
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/mine/vip/vip"
|
|
});
|
|
},
|
|
/**
|
|
* 查看评论收藏点赞
|
|
* @param {Object} index
|
|
*/
|
|
clickNumItem(index) {
|
|
if (index == 0) {
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages/mine/commentReply/commentReply"
|
|
});
|
|
}
|
|
},
|
|
clickMenuItem(url) {
|
|
if (url) {
|
|
common_vendor.index.navigateTo({
|
|
url
|
|
});
|
|
}
|
|
}
|
|
}
|
|
};
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_assets._imports_0,
|
|
b: common_vendor.s("top:" + $data.menuTop + "px;line-height:" + $data.menuH + "px;"),
|
|
c: common_assets._imports_1$2,
|
|
d: common_vendor.s("margin-top:" + $data.infoTop + "px;"),
|
|
e: common_vendor.o(($event) => $options.clickPersonalInfo()),
|
|
f: common_vendor.o(($event) => $options.clickNumItem(0)),
|
|
g: common_vendor.o(($event) => $options.clickNumItem(1)),
|
|
h: common_vendor.o(($event) => $options.clickNumItem(2)),
|
|
i: common_assets._imports_2$4,
|
|
j: common_vendor.o(($event) => $options.clickVip()),
|
|
k: common_vendor.f($data.menuList, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
a: item.icon,
|
|
b: common_vendor.t(item.title),
|
|
c: index == $data.menuList.length - 1
|
|
}, index == $data.menuList.length - 1 ? {} : {}, {
|
|
d: index,
|
|
e: common_vendor.o(($event) => $options.clickMenuItem(item.url), index)
|
|
});
|
|
}),
|
|
l: common_assets._imports_3$3
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/mine.js.map
|