优化页面

This commit is contained in:
pengxiaolong
2025-06-10 23:06:51 +08:00
parent 8c70c2c850
commit 3c2d7e5959
974 changed files with 353 additions and 87597 deletions

View File

@@ -1,154 +0,0 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const components_request = require("../../components/request.js");
const components_formatDate = require("../../components/formatDate.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
customData: {},
SenderData: {},
ReceiverData: {},
PkIDInfodata: {}
};
},
onLoad(options) {
this.customData = JSON.parse(options.customData);
this.getPkyourInfo();
this.getPkmineInfo();
this.getPkIDInfo();
},
methods: {
//根据当前消息ID查询pk信息
async getPkIDInfo() {
await components_request.request({
url: "pk/singleRecord",
method: "POST",
data: {
id: this.customData.id
},
userInfo: true
}).then((res) => {
this.PkIDInfodata = res.data;
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:177", this.PkIDInfodata);
});
},
//发布者
async getPkyourInfo() {
await components_request.request({
url: "pk/pkInfoDetail",
method: "POST",
data: {
id: this.customData.pkIdA
},
userInfo: true
}).then((res) => {
this.SenderData = res.data;
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:191", this.SenderData);
});
},
//被邀请者
async getPkmineInfo() {
await components_request.request({
url: "pk/pkInfoDetail",
method: "POST",
data: {
id: this.customData.pkIdB
},
userInfo: true
}).then((res) => {
this.ReceiverData = res.data;
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:205", this.ReceiverData);
});
},
goBack() {
common_vendor.wx$1.navigateBack({
delta: 1
});
},
formatDate: components_formatDate.formatDate,
async operation(status) {
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:216", "``````", this.customData);
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:217", status);
await components_request.request({
url: "pk/updatePkStatus",
method: "POST",
data: {
id: this.customData.id,
pkStatus: status
},
userInfo: true
}).then((res) => {
common_vendor.index.__f__("log", "at pages/PKMessageprocessing/PKMessageprocessing.vue:228", res.data);
const Hinttext = status === 1 ? "接受邀请成功" : "拒绝邀请成功";
if (res.code === 200) {
this.getPkIDInfo();
common_vendor.wx$1.showToast({
title: Hinttext,
icon: "success",
duration: 2e3
});
common_vendor.wx$1.navigateBack({
delta: 1
});
} else {
common_vendor.wx$1.showToast({
title: "操作失败",
icon: "none",
duration: 2e3
});
}
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_assets._imports_0$1,
b: common_assets._imports_1,
c: common_vendor.o$1((...args) => $options.goBack && $options.goBack(...args)),
d: $data.SenderData.anchorIcon,
e: common_vendor.t($data.SenderData.anchorId),
f: $data.SenderData.sex === "1"
}, $data.SenderData.sex === "1" ? {
g: common_assets._imports_2,
h: common_vendor.t($data.SenderData.sex == 1 ? "男" : "女")
} : {
i: common_assets._imports_3,
j: common_vendor.t($data.SenderData.sex == 1 ? "男" : "女")
}, {
k: common_vendor.t($data.SenderData.country),
l: common_vendor.t($options.formatDate($data.SenderData.pkTime)),
m: common_assets._imports_4$2,
n: common_vendor.t($data.SenderData.coin),
o: common_assets._imports_5$2,
p: common_vendor.t($data.SenderData.pkNumber),
q: $data.ReceiverData.anchorIcon,
r: common_vendor.t($data.ReceiverData.anchorId),
s: $data.ReceiverData.sex === "1"
}, $data.ReceiverData.sex === "1" ? {
t: common_assets._imports_2,
v: common_vendor.t($data.ReceiverData.sex == 1 ? "男" : "女")
} : {
w: common_assets._imports_3,
x: common_vendor.t($data.ReceiverData.sex == 1 ? "男" : "女")
}, {
y: common_vendor.t($data.ReceiverData.country),
z: common_vendor.t($options.formatDate($data.ReceiverData.pkTime)),
A: common_assets._imports_4$2,
B: common_vendor.t($data.ReceiverData.coin),
C: common_assets._imports_5$2,
D: common_vendor.t($data.ReceiverData.pkNumber),
E: $data.PkIDInfodata.pkStatus === 0
}, $data.PkIDInfodata.pkStatus === 0 ? {
F: common_vendor.o$1(($event) => $options.operation(1)),
G: common_vendor.o$1(($event) => $options.operation(2))
} : {}, {
H: $data.PkIDInfodata.pkStatus === 1
}, $data.PkIDInfodata.pkStatus === 1 ? {} : {}, {
I: $data.PkIDInfodata.pkStatus === 2
}, $data.PkIDInfodata.pkStatus === 2 ? {} : {});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-cadadfe7"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/PKMessageprocessing/PKMessageprocessing.js.map

View File

@@ -1,4 +0,0 @@
{
"navigationBarTitleText": "PK信息处理",
"usingComponents": {}
}

View File

@@ -1 +0,0 @@
<view class="container data-v-cadadfe7"><view class="background data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:100%;height:100%" src="{{a}}" mode="scaleToFill"/></view><view class="Navigation data-v-cadadfe7"><view class="Return data-v-cadadfe7" bindtap="{{c}}"><image class="Return data-v-cadadfe7" src="{{b}}" mode="scaleToFill"/></view></view><view class="Content data-v-cadadfe7"><view class="sender data-v-cadadfe7"><view class="sengderIcon data-v-cadadfe7"><image class="Icon data-v-cadadfe7" src="{{d}}" mode="scaleToFill"/></view><view class="Individual data-v-cadadfe7"><view class="name data-v-cadadfe7">{{e}}</view><view class="GenderAndAge data-v-cadadfe7"><view wx:if="{{f}}" class="male data-v-cadadfe7"><view class="data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:20rpx;height:20rpx" src="{{g}}" mode="scaleToFill"/></view><view class="age data-v-cadadfe7">{{h}}</view></view><view wx:else class="female data-v-cadadfe7"><view class="data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:20rpx;height:20rpx" src="{{i}}" mode="scaleToFill"/></view><view class="age data-v-cadadfe7">{{j}}</view></view></view><view class="nation data-v-cadadfe7">{{k}}</view></view><view class="Time data-v-cadadfe7">PK时间:{{l}}</view><view class="SessionAndGoldCoin data-v-cadadfe7"><view class="goldCoin data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="{{m}}" mode="scaleToFill"/><view class="goldcard data-v-cadadfe7"><view class="goldnumber data-v-cadadfe7">{{n}}</view><view class="goldtext data-v-cadadfe7">金币</view></view></view><view class="Session data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="{{o}}" mode="scaleToFill"/><view class="goldcard data-v-cadadfe7"><view class="goldnumber data-v-cadadfe7">{{p}}</view><view class="goldtext data-v-cadadfe7">PK场数</view></view></view></view></view><view class="sender data-v-cadadfe7"><view class="sengderIcon data-v-cadadfe7"><image class="Icon data-v-cadadfe7" src="{{q}}" mode="scaleToFill"/></view><view class="Individual data-v-cadadfe7"><view class="name data-v-cadadfe7">{{r}}</view><view class="GenderAndAge data-v-cadadfe7"><view wx:if="{{s}}" class="male data-v-cadadfe7"><view class="data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:20rpx;height:20rpx" src="{{t}}" mode="scaleToFill"/></view><view class="age data-v-cadadfe7">{{v}}</view></view><view wx:else class="female data-v-cadadfe7"><view class="data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:20rpx;height:20rpx" src="{{w}}" mode="scaleToFill"/></view><view class="age data-v-cadadfe7">{{x}}</view></view></view><view class="nation data-v-cadadfe7">{{y}}</view></view><view class="Time data-v-cadadfe7">PK时间:{{z}}</view><view class="SessionAndGoldCoin data-v-cadadfe7"><view class="goldCoin data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="{{A}}" mode="scaleToFill"/><view class="data-v-cadadfe7"><view class="goldnumber data-v-cadadfe7">{{B}}</view><view class="goldtext data-v-cadadfe7">金币</view></view></view><view class="Session data-v-cadadfe7"><image class="data-v-cadadfe7" style="width:72rpx;height:72rpx;margin-left:36rpx;margin-right:32rpx" src="{{C}}" mode="scaleToFill"/><view class="data-v-cadadfe7"><view class="goldnumber data-v-cadadfe7">{{D}}</view><view class="goldtext data-v-cadadfe7">PK场数</view></view></view></view></view><view wx:if="{{E}}" class="button data-v-cadadfe7"><button class="accept data-v-cadadfe7" bindtap="{{F}}">接受邀请</button><button class="reject data-v-cadadfe7" bindtap="{{G}}">拒绝邀请</button></view><view wx:if="{{H}}" class="button buttontext data-v-cadadfe7">已接受邀请</view><view wx:if="{{I}}" class="button buttontext data-v-cadadfe7">已拒绝邀请</view></view></view>

File diff suppressed because one or more lines are too long