优化页面
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
@@ -68,6 +68,21 @@ const _sfc_main = {
|
||||
this.userlist();
|
||||
},
|
||||
invite() {
|
||||
if (this.InvitingPartyEventindex === null) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请选择您要参与的PK信息",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.$refs.popups.open("center");
|
||||
},
|
||||
closeHint() {
|
||||
this.$refs.popups.close();
|
||||
},
|
||||
inviteHint() {
|
||||
this.$refs.popups.close();
|
||||
const conversationID = `C2C${this.item.senderId}`;
|
||||
const myitem = JSON.stringify(this.list[this.InvitingPartyEventindex]);
|
||||
const youritem = JSON.stringify(this.item);
|
||||
@@ -75,6 +90,7 @@ const _sfc_main = {
|
||||
url: `/TUIKit/components/TUIChat/index?conversationID=${conversationID}&myitem=${myitem}&youritem=${youritem}`
|
||||
});
|
||||
},
|
||||
// 打开邀请弹窗
|
||||
close() {
|
||||
this.$refs.popup.close();
|
||||
},
|
||||
@@ -184,7 +200,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
type: "center",
|
||||
["border-radius"]: "10px 10px 0 0"
|
||||
}),
|
||||
w: common_vendor.sr("createModule", "9639f721-2")
|
||||
w: common_vendor.sr("createModule", "9639f721-2"),
|
||||
x: common_vendor.o$1(($event) => $options.inviteHint()),
|
||||
y: common_vendor.o$1(($event) => $options.closeHint()),
|
||||
z: common_vendor.sr("popups", "9639f721-3"),
|
||||
A: 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-9639f721"]]);
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -11,6 +11,18 @@
|
||||
background-image: url(https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/chard1.png);
|
||||
background-position: center;
|
||||
}
|
||||
.popup-Hintcontent.data-v-9639f721{
|
||||
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-title.data-v-9639f721 {
|
||||
font-size: 30rpx;
|
||||
margin-top: 50rpx;
|
||||
@@ -55,6 +67,14 @@
|
||||
font-weight: bold;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.popup-texts.data-v-9639f721{
|
||||
margin-left: 50rpx;
|
||||
color: #7e7e7e;
|
||||
font-size: 26rpx;
|
||||
margin-right: 50rpx;
|
||||
margin-top: 70rpx;
|
||||
margin-bottom: 70rpx;
|
||||
}
|
||||
.card-content.data-v-9639f721 {
|
||||
/* width: 445rpx; */
|
||||
width: 100%;
|
||||
@@ -311,7 +331,7 @@
|
||||
font-size: 28.63rpx;
|
||||
line-height: 77.29rpx;
|
||||
}
|
||||
.noData.data-v-9639f721{
|
||||
.noData.data-v-9639f721 {
|
||||
width: 500rpx;
|
||||
height: 400rpx;
|
||||
border-radius: 10px;
|
||||
|
||||
Reference in New Issue
Block a user