优化页面
This commit is contained in:
39
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
39
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
@@ -42,6 +42,24 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
//获取个人信息
|
||||
getUserInfo() {
|
||||
components_request.request({
|
||||
url: "user/getUserInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.userinfo.id
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.userinfo = res.data;
|
||||
common_vendor.index.setStorageSync("userinfo", res.data);
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:276", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取主播列表
|
||||
getAnchorList() {
|
||||
components_request.request({
|
||||
@@ -55,13 +73,13 @@ const _sfc_main = {
|
||||
if (res.code == 200) {
|
||||
this.AnchorList = res.data.slice(0, 4);
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:275", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:293", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取签到状态
|
||||
getSignStatus() {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:281", "getSignStatus", this.userinfo.id);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:299", "getSignStatus", this.userinfo.id);
|
||||
components_request.request({
|
||||
url: "user/checkSignStatus",
|
||||
method: "GET",
|
||||
@@ -73,7 +91,7 @@ const _sfc_main = {
|
||||
if (res.code == 200) {
|
||||
this.SignStatus = res.data;
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:294", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:312", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -94,8 +112,9 @@ const _sfc_main = {
|
||||
duration: 2e3
|
||||
});
|
||||
this.getSignStatus();
|
||||
this.getUserInfo();
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:316", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:335", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -115,9 +134,9 @@ const _sfc_main = {
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.pkInformationdata = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:336", this.pkInformationdata);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:355", this.pkInformationdata);
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:338", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:357", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -137,7 +156,7 @@ const _sfc_main = {
|
||||
if (res.code == 200) {
|
||||
this.myPkRecorddata = res.data;
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:358", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:377", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -264,9 +283,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
v: common_vendor.f($data.myPkRecorddata, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.anchorIconA,
|
||||
b: item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== ""
|
||||
}, item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== "" ? {} : item.winnerAnchorId === item.anchorIdA ? {} : {}, {
|
||||
c: item.winnerAnchorId === item.anchorIdA,
|
||||
b: item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== null
|
||||
}, item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== null ? {} : item.winnerAnchorId === item.anchorIdA && item.winnerAnchorId !== null ? {} : {}, {
|
||||
c: item.winnerAnchorId === item.anchorIdA && item.winnerAnchorId !== null,
|
||||
d: common_vendor.t(item.pkNumber),
|
||||
e: common_vendor.t($options.TimeFormatting(item.pkTime)),
|
||||
f: index,
|
||||
|
||||
Reference in New Issue
Block a user