优化页面

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);

View File

@@ -1,4 +1,6 @@
{
"navigationBarTitleText": "PK信息处理",
"usingComponents": {}
"usingComponents": {
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -180,3 +180,56 @@
font-size: 28.63rpx;
line-height: 77.29rpx;
}
.popup-Hintcontent.data-v-cadadfe7{
width: 600rpx;
height: 500rpx;
background-repeat: no-repeat;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
background-position: center;
}
.popup-text.data-v-cadadfe7 {
color: #161616;
font-size: 36.26rpx;
font-weight: bold;
margin-bottom: 30rpx;
}
.popup-texts.data-v-cadadfe7{
margin-left: 50rpx;
color: #7e7e7e;
font-size: 26rpx;
margin-right: 50rpx;
margin-top: 70rpx;
margin-bottom: 70rpx;
}
.popup-btn.data-v-cadadfe7 {
display: flex;
justify-content: space-around;
margin-top: 50rpx;
}
.invite.data-v-cadadfe7 {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
}
.cancel.data-v-cadadfe7 {
width: 225.19rpx;
height: 78.24rpx;
font-size: 28.63rpx;
line-height: 80rpx;
margin-left: 30rpx;
color: #03aba8;
border-top-left-radius: 50rpx;
border-bottom-left-radius: 50rpx;
border-bottom-right-radius: 50rpx;
border: 1rpx solid #03aba8;
}