优化页面

This commit is contained in:
pengxiaolong
2025-06-20 21:55:09 +08:00
parent 2afc95d531
commit acc81963e9
405 changed files with 1362 additions and 1284 deletions

View File

@@ -20,6 +20,7 @@ const _sfc_main = {
}
});
this.customData = JSON.parse(options.customData);
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:189", "customData", this.customData);
this.getPkyourInfo();
this.getPkmineInfo();
this.getPkIDInfo();
@@ -48,6 +49,7 @@ const _sfc_main = {
},
userInfo: true
}).then((res) => {
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:218", res.data);
this.SenderData = res.data;
});
},
@@ -61,6 +63,7 @@ const _sfc_main = {
},
userInfo: true
}).then((res) => {
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:232", res.data);
this.ReceiverData = res.data;
});
},
@@ -71,6 +74,21 @@ const _sfc_main = {
});
},
formatDate: components_formatDate.formatDate,
//接受邀请提示
AcceptHint() {
this.$refs.popups.open("center");
},
closeHint() {
this.$refs.popups.close();
},
//拒绝邀请提示
RefuseHint() {
this.$refs.Refusepopup.open("center");
},
RefuseHintcloseHint() {
this.$refs.Refusepopup.close();
},
//操作
async operation(status) {
await components_request.request({
url: "pk/updatePkStatus",
@@ -84,6 +102,8 @@ const _sfc_main = {
const Hinttext = status === 1 ? "接受邀请成功" : "拒绝邀请成功";
if (res.code === 200) {
this.getPkIDInfo();
this.$refs.popups.close();
this.$refs.Refusepopup.close();
common_vendor.wx$1.showToast({
title: Hinttext,
icon: "success",
@@ -103,6 +123,14 @@ const _sfc_main = {
}
}
};
if (!Array) {
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
_easycom_uni_popup2();
}
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
_easycom_uni_popup();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.o$1((...args) => $options.goBack && $options.goBack(...args)),
@@ -132,15 +160,30 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
s: common_vendor.t($data.ReceiverData.pkNumber),
t: $data.PkIDInfodata.pkStatus === 0 && $data.ReceiverData.senderId !== $data.id
}, $data.PkIDInfodata.pkStatus === 0 && $data.ReceiverData.senderId !== $data.id ? {
v: common_vendor.o$1(($event) => $options.operation(1)),
w: common_vendor.o$1(($event) => $options.operation(2))
v: common_vendor.o$1(($event) => $options.AcceptHint()),
w: common_vendor.o$1(($event) => $options.RefuseHint())
} : {}, {
x: $data.ReceiverData.senderId === $data.id && $data.PkIDInfodata.pkStatus === 0
}, $data.ReceiverData.senderId === $data.id && $data.PkIDInfodata.pkStatus === 0 ? {} : {}, {
y: $data.PkIDInfodata.pkStatus === 1
}, $data.PkIDInfodata.pkStatus === 1 ? {} : {}, {
z: $data.PkIDInfodata.pkStatus === 2
}, $data.PkIDInfodata.pkStatus === 2 ? {} : {});
}, $data.PkIDInfodata.pkStatus === 2 ? {} : {}, {
A: common_vendor.o$1(($event) => $options.operation(1)),
B: common_vendor.o$1(($event) => $options.closeHint()),
C: common_vendor.sr("popups", "cadadfe7-0"),
D: common_vendor.p({
type: "center",
["border-radius"]: "10px 10px 0 0"
}),
E: common_vendor.o$1(($event) => $options.operation(2)),
F: common_vendor.o$1(($event) => $options.RefuseHintcloseHint()),
G: common_vendor.sr("Refusepopup", "cadadfe7-1"),
H: common_vendor.p({
type: "center",
["border-radius"]: "10px 10px 0 0"
})
});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-cadadfe7"]]);
wx.createPage(MiniProgramPage);