优化页面

This commit is contained in:
pengxiaolong
2025-06-06 22:36:41 +08:00
parent f4901f1312
commit d30589fd05
99 changed files with 1091 additions and 1310 deletions

View File

@@ -31,8 +31,10 @@ const _sfc_main = {
//用户id
sendingTime: "",
//发送时间
filterable: true
filterable: true,
//是否可搜索
AnchorProfilePicture: ""
//主播头像
};
},
mounted() {
@@ -46,11 +48,11 @@ const _sfc_main = {
methods: {
gender(item) {
this.genders = item.value;
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:175", item);
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:177", item);
},
country(item) {
this.countrys = item.value;
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:180", item);
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:182", item);
},
handleOverlayClick(event) {
if (event.target === this.$el) {
@@ -63,7 +65,7 @@ const _sfc_main = {
this.Display = false;
this.Hint = false;
this.nameAnchor = "";
this.genders = "";
this.genders = 0;
this.numberCoins = "";
this.remarks = "";
this.datetimesingle = "";
@@ -73,12 +75,33 @@ const _sfc_main = {
this.Display = true;
}
},
//获取主播名称
NameAnchor: function(event) {
this.nameAnchor = event.target.value;
//获取主播名称以及头像地址
blur(event) {
if (this.nameAnchor !== event.target.value) {
this.nameAnchor = event.target.value;
common_vendor.index.request({
url: "http://47.79.98.113:6600/" + this.nameAnchor,
success: (res) => {
if (res.data.code === 200) {
this.AnchorProfilePicture = res.data.data;
} else {
common_vendor.index.showToast({
title: "主播不存在请确认主播名称",
icon: "none",
duration: 2e3
});
}
},
fail: function(res) {
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:224", "请求失败", res.data);
}
});
} else {
return;
}
},
async Publish() {
if (this.nameAnchor === "" || this.genders === "" || this.numberCoins === "" || this.countrys === "" || this.datetimesingle === "" || this.session === "") {
if (this.nameAnchor === "" || this.genders === 0 || this.numberCoins === "" || this.countrys === "" || this.datetimesingle === "" || this.session === "") {
this.Hint = true;
return;
}
@@ -111,9 +134,8 @@ const _sfc_main = {
country: this.countrys,
coin: this.numberCoins,
remark: this.remarks,
status: 0,
senderId: this.id,
anchorIcon: "",
anchorIcon: this.AnchorProfilePicture,
pkNumber: this.session
},
userInfo: true
@@ -164,11 +186,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
}, $data.Display ? common_vendor.e({
b: common_vendor.o$1(($event) => $options.open()),
c: common_assets._imports_0$2,
d: common_vendor.o$1((...args) => $options.NameAnchor && $options.NameAnchor(...args)),
e: $data.nameAnchor === "" && $data.Hint === true
d: common_vendor.o$1((...args) => _ctx.NameAnchor && _ctx.NameAnchor(...args)),
e: common_vendor.o$1((...args) => $options.blur && $options.blur(...args)),
f: $data.nameAnchor === "" && $data.Hint === true
}, $data.nameAnchor === "" && $data.Hint === true ? {} : {}, {
f: common_vendor.o$1($options.country),
g: common_vendor.p({
g: common_vendor.o$1($options.country),
h: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
@@ -177,10 +200,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
filterable: $data.filterable,
placeholder: "请选择国家"
}),
h: $data.countrys === "" && $data.Hint === true
i: $data.countrys === "" && $data.Hint === true
}, $data.countrys === "" && $data.Hint === true ? {} : {}, {
i: common_vendor.o$1($options.gender),
j: common_vendor.p({
j: common_vendor.o$1($options.gender),
k: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
@@ -188,53 +211,53 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
options: $data.Gender,
placeholder: "性别"
}),
k: $data.genders === 0
l: $data.genders === 0
}, $data.genders === 0 ? {
l: common_assets._imports_1$2
m: common_assets._imports_1$2
} : {}, {
m: $data.genders === 1
n: $data.genders === 1
}, $data.genders === 1 ? {
n: common_assets._imports_2$3
o: common_assets._imports_2$3
} : {}, {
o: $data.genders === 2
p: $data.genders === 2
}, $data.genders === 2 ? {
p: common_assets._imports_3$2
q: common_assets._imports_3$2
} : {}, {
q: $data.genders === 0 && $data.Hint === true
r: $data.genders === 0 && $data.Hint === true
}, $data.genders === 0 && $data.Hint === true ? {} : {}, {
r: common_vendor.o$1(($event) => $data.numberCoins = $event),
s: common_vendor.p({
s: common_vendor.o$1(($event) => $data.numberCoins = $event),
t: common_vendor.p({
background: "#03ABA8",
modelValue: $data.numberCoins
}),
t: $data.numberCoins === "" && $data.Hint === true
v: $data.numberCoins === "" && $data.Hint === true
}, $data.numberCoins === "" && $data.Hint === true ? {} : {}, {
v: common_vendor.o$1(($event) => $data.datetimesingle = $event),
w: common_vendor.p({
w: common_vendor.o$1(($event) => $data.datetimesingle = $event),
x: common_vendor.p({
type: "datetime",
["hide-second"]: "true",
modelValue: $data.datetimesingle
}),
x: $data.datetimesingle === "" && $data.Hint === true
y: $data.datetimesingle === "" && $data.Hint === true
}, $data.datetimesingle === "" && $data.Hint === true ? {} : {}, {
y: common_vendor.o$1(($event) => $data.session = $event),
z: common_vendor.p({
z: common_vendor.o$1(($event) => $data.session = $event),
A: common_vendor.p({
background: "#03ABA8",
modelValue: $data.session
}),
A: $data.session === "" && $data.Hint === true
B: $data.session === "" && $data.Hint === true
}, $data.session === "" && $data.Hint === true ? {} : {}, {
B: common_vendor.o$1(($event) => $data.remarks = $event),
C: common_vendor.p({
C: common_vendor.o$1(($event) => $data.remarks = $event),
D: common_vendor.p({
type: "textarea",
placeholder: "备注",
modelValue: $data.remarks
}),
D: common_vendor.o$1(($event) => $options.Publish()),
E: common_vendor.o$1(() => {
E: common_vendor.o$1(($event) => $options.Publish()),
F: common_vendor.o$1(() => {
}),
F: common_vendor.n($data.Display ? "create-module" : "close-animation "),
G: common_vendor.o$1(($event) => $options.open())
G: common_vendor.n($data.Display ? "create-module" : "close-animation "),
H: common_vendor.o$1(($event) => $options.open())
}) : {});
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-96d38e2b"]]);