优化页面

This commit is contained in:
pengxiaolong
2025-06-05 23:50:08 +08:00
parent d766790f04
commit f4901f1312
49 changed files with 2391 additions and 912 deletions

View File

@@ -2,11 +2,12 @@
const common_vendor = require("./common/vendor.js");
const components_NationalDictionary = require("./components/NationalDictionary.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 {
genders: 0,
genders: "",
//性别
Gender: [
{ label: "男", value: 1 },
@@ -27,7 +28,7 @@ const _sfc_main = {
Hint: false,
datetimesingle: "",
//日期
id: null,
id: "",
//用户id
sendingTime: "",
//发送时间
@@ -37,8 +38,19 @@ const _sfc_main = {
},
props: {
message: {
type: Object,
required: true
type: Object
}
},
watch: {
message(newQuestion, oldQuestion) {
this.numberCoins = newQuestion.coin;
this.session = newQuestion.pkNumber;
this.remarks = newQuestion.remark;
this.datetimesingle = components_formatDate.formatDate(newQuestion.pkTime);
this.id = newQuestion.senderId;
this.nameAnchor = newQuestion.anchorId;
this.countrys = newQuestion.country;
this.genders = newQuestion.sex === "1" ? 1 : 2;
}
},
mounted() {
@@ -50,20 +62,23 @@ const _sfc_main = {
});
},
methods: {
//性别
gender(item) {
this.genders = item.value;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:181", item);
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:199", item);
},
//日期
country(item) {
this.countrys = item.value;
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:186", item);
},
handleOverlayClick(event) {
if (event.target === this.$el) {
this.Display = false;
this.Hint = false;
}
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:204", item);
},
// //主播名称
// handleOverlayClick(event) {
// if (event.target === this.$el) {
// this.Display = false;
// this.Hint = false;
// }
// },
open() {
if (this.Display) {
this.Display = false;
@@ -84,8 +99,7 @@ const _sfc_main = {
this.nameAnchor = event.target.value;
},
async Publish() {
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:216", "````````````````````````````````````````````", message);
if (this.nameAnchor === "" || this.genders === "" || this.numberCoins === "" || this.countrys === "" || this.datetimesingle === "" || this.session === "") {
if (this.nameAnchor == "" && this.nameAnchor == null || this.genders == "" && this.genders == null || this.numberCoins == "" && this.numberCoins == null || this.datetimesingle == "" && this.datetimesingle == null || this.countrys == "" && his.countrys == null || this.datetimesingle == "" && this.datetimesingle == null || this.session == "" && this.session == null) {
this.Hint = true;
return;
}
@@ -170,78 +184,81 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
a: $data.Display
}, $data.Display ? common_vendor.e({
b: common_vendor.o$1(($event) => $options.open()),
c: common_assets._imports_0$4,
c: common_assets._imports_0$2,
d: common_vendor.o$1((...args) => $options.NameAnchor && $options.NameAnchor(...args)),
e: $data.nameAnchor === "" && $data.Hint === true
}, $data.nameAnchor === "" && $data.Hint === true ? {} : {}, {
f: common_vendor.o$1($options.country),
g: common_vendor.p({
e: $data.nameAnchor,
f: $data.nameAnchor === "" || $data.nameAnchor === null && $data.Hint === true
}, $data.nameAnchor === "" || $data.nameAnchor === null && $data.Hint === true ? {} : {}, {
g: common_vendor.o$1($options.country),
h: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
borderColor: "#ffffff",
options: $data.Country,
filterable: $data.filterable,
placeholder: "请选择国家"
placeholder: "请选择国家",
value: $data.countrys
}),
h: $data.countrys === "" && $data.Hint === true
}, $data.countrys === "" && $data.Hint === true ? {} : {}, {
i: common_vendor.o$1($options.gender),
j: common_vendor.p({
i: $data.countrys === "" || $data.countrys === null && $data.Hint === true
}, $data.countrys === "" || $data.countrys === null && $data.Hint === true ? {} : {}, {
j: common_vendor.o$1($options.gender),
k: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
borderColor: "#ffffff",
options: $data.Gender,
placeholder: "性别"
placeholder: "性别",
value: $props.message.sex === "1" ? 1 : 2
}),
k: $data.genders === 0
}, $data.genders === 0 ? {
l: common_assets._imports_1$3
l: $data.genders === 0 || $props.message.sex === "0"
}, $data.genders === 0 || $props.message.sex === "0" ? {
m: common_assets._imports_1$2
} : {}, {
m: $data.genders === 1
}, $data.genders === 1 ? {
n: common_assets._imports_2$1
n: $data.genders === 1 || $props.message.sex === "1"
}, $data.genders === 1 || $props.message.sex === "1" ? {
o: common_assets._imports_2$3
} : {}, {
o: $data.genders === 2
}, $data.genders === 2 ? {
p: common_assets._imports_3$1
p: $data.genders === 2 || $props.message.sex === "2"
}, $data.genders === 2 || $props.message.sex === "2" ? {
q: common_assets._imports_3$2
} : {}, {
q: $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({
r: $data.genders === 0 || $data.genders === null && $data.Hint === true
}, $data.genders === 0 || $data.genders === null && $data.Hint === true ? {} : {}, {
s: common_vendor.o$1(($event) => $data.numberCoins = $event),
t: common_vendor.p({
background: "#03ABA8",
modelValue: $data.numberCoins
}),
t: $data.numberCoins === "" && $data.Hint === true
}, $data.numberCoins === "" && $data.Hint === true ? {} : {}, {
v: common_vendor.o$1(($event) => $data.datetimesingle = $event),
w: common_vendor.p({
v: $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true
}, $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true ? {} : {}, {
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
}, $data.datetimesingle === "" && $data.Hint === true ? {} : {}, {
y: common_vendor.o$1(($event) => $data.session = $event),
z: common_vendor.p({
y: $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true
}, $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true ? {} : {}, {
z: common_vendor.o$1(($event) => $data.session = $event),
A: common_vendor.p({
background: "#03ABA8",
modelValue: $data.session
}),
A: $data.session === "" && $data.Hint === true
}, $data.session === "" && $data.Hint === true ? {} : {}, {
B: common_vendor.o$1(($event) => $data.remarks = $event),
C: common_vendor.p({
B: $data.session === "" || $data.session === null && $data.Hint === true
}, $data.session === "" || $data.session === null && $data.Hint === true ? {} : {}, {
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-4e606fe0"]]);