优化页面

This commit is contained in:
pengxiaolong
2025-06-18 16:01:55 +08:00
parent e464d99af5
commit ec9dcb486f
122 changed files with 349 additions and 251 deletions

View File

@@ -16,7 +16,9 @@ const _sfc_main = {
pickerArray: [],
index: 0,
topPinnedPersondata: {},
Topdate: 0
Topdate: 0,
popupOutdata: {},
popupExpurgatedata: {}
};
},
onLoad() {
@@ -24,7 +26,6 @@ const _sfc_main = {
key: "userinfo",
success: (res) => {
this.userinfo = res.data;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:145", this.userinfo);
this.getpkList();
}
});
@@ -67,10 +68,9 @@ const _sfc_main = {
}).then((res) => {
if (res.code == 200) {
this.pkList.push(...res.data);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:188", this.pkList);
this.triggered = false;
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:191", res.msg);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:214", res.msg);
}
});
},
@@ -100,7 +100,6 @@ const _sfc_main = {
} else {
this.Topdate = this.topPinnedPersondata.pkTime;
}
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:221", this.Topdate, this.topPinnedPersondata.id);
components_request.request({
url: "user/pinToTop",
method: "POST",
@@ -113,7 +112,7 @@ const _sfc_main = {
if (res.code == 200) {
this.onRefresherRefresh();
common_vendor.index.showToast({
title: res.msg,
title: res.data,
icon: "none",
duration: 3e3
});
@@ -129,15 +128,21 @@ const _sfc_main = {
},
//取消置顶
onOutTop(item) {
this.$refs.popupOut.open("center");
this.popupOutdata = item;
},
// 确认取消置顶
onOutTopConfirm() {
components_request.request({
url: "user/cancelPin",
method: "POST",
data: {
articleId: item.id
articleId: this.popupOutdata.id
},
userInfo: true
}).then((res) => {
if (res.code == 200) {
this.closePopupOut();
this.onRefresherRefresh();
common_vendor.index.showToast({
title: res.data,
@@ -145,32 +150,53 @@ const _sfc_main = {
duration: 3e3
});
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:267", res.msg);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:295", res.msg);
}
});
},
// 取消取消置顶
closePopupOut() {
this.$refs.popupOut.close();
this.popupOutdata = {};
},
// 删除pk
onExpurgate(item) {
this.$refs.popupExpurgate.open("center");
this.popupExpurgatedata = item;
},
// 确认删除pk
onExpurgateConfirm() {
components_request.request({
url: "pk/deletePkDataWithId",
method: "POST",
data: {
id: item.id
id: this.popupExpurgatedata.id
},
userInfo: true
}).then((res) => {
if (res.code == 200) {
this.onRefresherRefresh();
this.closePopupExpurgate();
common_vendor.index.showToast({
title: "删除成功",
title: res.msg,
icon: "none",
duration: 2e3
});
} else {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/pkInformation.vue:289", res.msg);
common_vendor.index.showToast({
title: res.msg,
icon: "none",
duration: 2e3
});
}
});
},
// 关闭删除弹窗
closePopupExpurgate() {
this.$refs.popupExpurgate.close();
this.popupExpurgatedata = {};
}
//
},
components: {
Recompose
@@ -236,6 +262,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
p: common_vendor.p({
type: "center",
["border-radius"]: "10px 10px 0 0"
}),
q: common_vendor.o$1((...args) => $options.onOutTopConfirm && $options.onOutTopConfirm(...args)),
r: common_vendor.o$1((...args) => $options.closePopupOut && $options.closePopupOut(...args)),
s: common_vendor.sr("popupOut", "36b7ee78-3"),
t: common_vendor.p({
type: "center",
["border-radius"]: "10px 10px 0 0"
}),
v: common_vendor.o$1((...args) => $options.onExpurgateConfirm && $options.onExpurgateConfirm(...args)),
w: common_vendor.o$1((...args) => $options.closePopupExpurgate && $options.closePopupExpurgate(...args)),
x: common_vendor.sr("popupExpurgate", "36b7ee78-4"),
y: common_vendor.p({
type: "center",
["border-radius"]: "10px 10px 0 0"
})
};
}