12.12 页面风格改版,增加事件详情相关概念网页跳转,增加绑定手机号功能
This commit is contained in:
64
unpackage/dist/dev/mp-weixin/pages/mine/mine.js
vendored
64
unpackage/dist/dev/mp-weixin/pages/mine/mine.js
vendored
@@ -9,6 +9,9 @@ const _sfc_main = {
|
||||
menuH: common_vendor.inject("menuHeight"),
|
||||
infoTop: "",
|
||||
userInfo: null,
|
||||
//用户信息
|
||||
memberInfo: null,
|
||||
//会员信息
|
||||
menuList: [
|
||||
{
|
||||
icon: "/static/icon/mine/aboutUs.png",
|
||||
@@ -46,6 +49,7 @@ const _sfc_main = {
|
||||
},
|
||||
onShow() {
|
||||
this.getUserInfoData();
|
||||
this.getMemberStatus();
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
@@ -82,6 +86,11 @@ const _sfc_main = {
|
||||
url: "/pages/mine/myLike/myLike"
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 点击菜单
|
||||
* @param {Object} url
|
||||
* @param {Object} index
|
||||
*/
|
||||
clickMenuItem(url, index) {
|
||||
if (url) {
|
||||
common_vendor.index.navigateTo({
|
||||
@@ -116,6 +125,21 @@ const _sfc_main = {
|
||||
});
|
||||
}).catch((error) => {
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 获取会员状态
|
||||
*/
|
||||
getMemberStatus() {
|
||||
request_api.membershipStatus().then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.memberInfo = res.data;
|
||||
} else
|
||||
common_vendor.index.showToast({
|
||||
title: res.message,
|
||||
icon: "none"
|
||||
});
|
||||
}).catch((error) => {
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -132,26 +156,30 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
a: common_assets._imports_0,
|
||||
b: common_vendor.s("top:" + $data.menuTop + "px;line-height:" + $data.menuH + "px;"),
|
||||
c: $data.userInfo
|
||||
}, $data.userInfo ? {
|
||||
}, $data.userInfo ? common_vendor.e({
|
||||
d: $data.userInfo.basic_info.avatar_url,
|
||||
e: common_vendor.t($data.userInfo.basic_info.username),
|
||||
f: common_vendor.t($data.userInfo.basic_info.phone),
|
||||
g: common_assets._imports_1$2,
|
||||
h: common_vendor.s("margin-top:" + $data.infoTop + "px;"),
|
||||
i: common_vendor.o(($event) => $options.clickPersonalInfo())
|
||||
g: $data.memberInfo && $data.memberInfo.is_member
|
||||
}, $data.memberInfo && $data.memberInfo.is_member ? {
|
||||
h: common_vendor.t($data.memberInfo.subscription_type)
|
||||
} : {}, {
|
||||
j: $data.userInfo
|
||||
i: common_assets._imports_1$4,
|
||||
j: common_vendor.s("margin-top:" + $data.infoTop + "px;"),
|
||||
k: common_vendor.o(($event) => $options.clickPersonalInfo())
|
||||
}) : {}, {
|
||||
l: $data.userInfo
|
||||
}, $data.userInfo ? {
|
||||
k: common_vendor.t($data.userInfo.statistics.total_comments),
|
||||
l: common_vendor.o(($event) => $options.clickNumItem(0)),
|
||||
m: common_vendor.t($data.userInfo.statistics.follows_count),
|
||||
n: common_vendor.o(($event) => $options.clickNumItem(1)),
|
||||
o: common_vendor.t($data.userInfo.statistics.likes_count),
|
||||
p: common_vendor.o(($event) => $options.clickNumItem(2))
|
||||
m: common_vendor.t($data.userInfo.statistics.total_comments),
|
||||
n: common_vendor.o(($event) => $options.clickNumItem(0)),
|
||||
o: common_vendor.t($data.userInfo.statistics.follows_count),
|
||||
p: common_vendor.o(($event) => $options.clickNumItem(1)),
|
||||
q: common_vendor.t($data.userInfo.statistics.likes_count),
|
||||
r: common_vendor.o(($event) => $options.clickNumItem(2))
|
||||
} : {}, {
|
||||
q: common_assets._imports_2$4,
|
||||
r: common_vendor.o(($event) => $options.clickVip()),
|
||||
s: common_vendor.f($data.menuList, (item, index, i0) => {
|
||||
s: common_assets._imports_2$4,
|
||||
t: common_vendor.o(($event) => $options.clickVip()),
|
||||
v: common_vendor.f($data.menuList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.icon,
|
||||
b: common_vendor.t(item.title),
|
||||
@@ -159,10 +187,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
d: common_vendor.o(($event) => $options.clickMenuItem(item.url, index), index)
|
||||
};
|
||||
}),
|
||||
t: common_assets._imports_3$3,
|
||||
v: common_assets._imports_4$2,
|
||||
w: common_vendor.sr("popup", "dd5840e4-0"),
|
||||
x: common_vendor.p({
|
||||
w: common_assets._imports_3$3,
|
||||
x: common_assets._imports_4$4,
|
||||
y: common_vendor.sr("popup", "dd5840e4-0"),
|
||||
z: common_vendor.p({
|
||||
type: "center"
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user