优化页面
This commit is contained in:
97
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
97
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
@@ -18,12 +18,26 @@ const _sfc_main = {
|
||||
common_vendor.index.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.userinfo = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:208", this.userinfo);
|
||||
this.getpkInformation();
|
||||
this.getmyPkRecord();
|
||||
this.getSignStatus();
|
||||
this.getAnchorList();
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:238", res.data);
|
||||
components_request.request({
|
||||
url: "user/getUserInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: res.data.id
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res2) => {
|
||||
if (res2.code == 200) {
|
||||
this.userinfo = res2.data;
|
||||
common_vendor.index.setStorageSync("userinfo", res2.data);
|
||||
this.getpkInformation();
|
||||
this.getmyPkRecord();
|
||||
this.getSignStatus();
|
||||
this.getAnchorList();
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:255", res2.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -41,24 +55,25 @@ 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:230", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:275", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取签到状态
|
||||
getSignStatus() {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:281", "getSignStatus", this.userinfo.id);
|
||||
components_request.request({
|
||||
url: "user/checkSignStatus",
|
||||
method: "GET",
|
||||
data: {
|
||||
userId: this.userinfo.id
|
||||
userId: Number(this.userinfo.id)
|
||||
},
|
||||
userInfo: true
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.SignStatus = res.data;
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:247", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:294", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -80,7 +95,7 @@ const _sfc_main = {
|
||||
});
|
||||
this.getSignStatus();
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:269", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:316", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -100,9 +115,9 @@ const _sfc_main = {
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.pkInformationdata = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:289", this.pkInformationdata);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:336", this.pkInformationdata);
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:291", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:338", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -122,10 +137,27 @@ const _sfc_main = {
|
||||
if (res.code == 200) {
|
||||
this.myPkRecorddata = res.data;
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:311", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/Mine.vue:358", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
// 跳转到PK记录详情页面
|
||||
onItemClick(item) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/Mine/minecomponents/DetailsPKRecords/DetailsPKRecords",
|
||||
success: (res) => {
|
||||
res.eventChannel.emit("itemDetail", {
|
||||
item
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
// 跳转到积分页面
|
||||
goPoints() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/Mine/minecomponents/points"
|
||||
});
|
||||
},
|
||||
// 跳转到主播库页面
|
||||
anchorLibrary() {
|
||||
common_vendor.index.navigateTo({
|
||||
@@ -194,10 +226,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
e: $data.SignStatus === false
|
||||
}, $data.SignStatus === false ? {} : {}, {
|
||||
f: common_vendor.o$1((...args) => $options.goSetting && $options.goSetting(...args)),
|
||||
g: common_vendor.o$1((...args) => $options.anchorLibrary && $options.anchorLibrary(...args)),
|
||||
h: $data.AnchorList.length !== 0
|
||||
g: common_vendor.t($data.userinfo.points),
|
||||
h: common_vendor.o$1((...args) => $options.goPoints && $options.goPoints(...args)),
|
||||
i: common_vendor.o$1((...args) => $options.anchorLibrary && $options.anchorLibrary(...args)),
|
||||
j: $data.AnchorList.length !== 0
|
||||
}, $data.AnchorList.length !== 0 ? {
|
||||
i: common_vendor.f($data.AnchorList, (item, index, i0) => {
|
||||
k: common_vendor.f($data.AnchorList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.headerIcon,
|
||||
b: common_vendor.t(item.anchorId),
|
||||
@@ -206,12 +240,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
j: $data.AnchorList.length === 0
|
||||
l: $data.AnchorList.length === 0
|
||||
}, $data.AnchorList.length === 0 ? {} : {}, {
|
||||
k: common_vendor.o$1((...args) => $options.pkInformation && $options.pkInformation(...args)),
|
||||
l: $data.pkInformationdata.length !== 0
|
||||
m: common_vendor.o$1((...args) => $options.anchorLibrary && $options.anchorLibrary(...args)),
|
||||
n: common_vendor.o$1((...args) => $options.pkInformation && $options.pkInformation(...args)),
|
||||
o: $data.pkInformationdata.length !== 0
|
||||
}, $data.pkInformationdata.length !== 0 ? {
|
||||
m: common_vendor.f($data.pkInformationdata, (item, index, i0) => {
|
||||
p: common_vendor.f($data.pkInformationdata, (item, index, i0) => {
|
||||
return {
|
||||
a: item.anchorIcon,
|
||||
b: common_vendor.t($options.formatDate(item.pkTime)),
|
||||
@@ -220,12 +255,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
n: $data.pkInformationdata.length === 0
|
||||
q: $data.pkInformationdata.length === 0
|
||||
}, $data.pkInformationdata.length === 0 ? {} : {}, {
|
||||
o: common_vendor.o$1((...args) => $options.pkRecord && $options.pkRecord(...args)),
|
||||
p: $data.myPkRecorddata.length !== 0
|
||||
r: common_vendor.o$1((...args) => $options.pkInformation && $options.pkInformation(...args)),
|
||||
s: common_vendor.o$1((...args) => $options.pkRecord && $options.pkRecord(...args)),
|
||||
t: $data.myPkRecorddata.length !== 0
|
||||
}, $data.myPkRecorddata.length !== 0 ? {
|
||||
q: common_vendor.f($data.myPkRecorddata, (item, index, i0) => {
|
||||
v: common_vendor.f($data.myPkRecorddata, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: item.anchorIconA,
|
||||
b: item.winnerAnchorId !== item.anchorIdA && item.winnerAnchorId !== ""
|
||||
@@ -233,16 +269,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
c: item.winnerAnchorId === item.anchorIdA,
|
||||
d: common_vendor.t(item.pkNumber),
|
||||
e: common_vendor.t($options.TimeFormatting(item.pkTime)),
|
||||
f: index
|
||||
f: index,
|
||||
g: common_vendor.o$1(($event) => $options.onItemClick(item), index)
|
||||
});
|
||||
})
|
||||
} : {}, {
|
||||
r: $data.myPkRecorddata.length === 0
|
||||
w: $data.myPkRecorddata.length === 0
|
||||
}, $data.myPkRecorddata.length === 0 ? {} : {}, {
|
||||
s: common_vendor.o$1((...args) => $options.contact && $options.contact(...args)),
|
||||
t: common_vendor.o$1((...args) => $options.serviceProtocol && $options.serviceProtocol(...args)),
|
||||
v: common_vendor.o$1((...args) => $options.logout && $options.logout(...args)),
|
||||
w: common_vendor.p({
|
||||
x: common_vendor.o$1((...args) => $options.contact && $options.contact(...args)),
|
||||
y: common_vendor.o$1((...args) => $options.serviceProtocol && $options.serviceProtocol(...args)),
|
||||
z: common_vendor.o$1((...args) => $options.logout && $options.logout(...args)),
|
||||
A: common_vendor.p({
|
||||
tabIndex: 4
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user