优化页面

This commit is contained in:
pengxiaolong
2025-06-13 22:13:15 +08:00
parent de99d32c01
commit 0f2a48b450
86 changed files with 4383 additions and 671 deletions

View File

@@ -32,8 +32,14 @@ const _sfc_main = {
//发送时间
filterable: true,
//是否可搜索
AnchorProfilePicture: ""
AnchorProfilePicture: "",
//主播头像
AnchorList: [],
//主播列表
selectedId: null,
//选择的主播
selectedIddata: null
//选择的主播数据
};
},
mounted() {
@@ -45,15 +51,66 @@ const _sfc_main = {
});
},
methods: {
//关闭弹窗
close() {
this.$refs.popup.close();
},
//确认选择
invite() {
if (this.selectedId) {
this.nameAnchor = this.selectedIddata.anchorId;
this.AnchorProfilePicture = this.selectedIddata.headerIcon;
this.close();
} else {
common_vendor.index.showToast({
title: "请选择主播",
icon: "none",
duration: 2e3
});
}
},
//选中的主播
Select(id, item) {
if (this.selectedId !== id) {
this.selectedId = id;
this.selectedIddata = item;
} else {
this.selectedId = null;
this.selectedIddata = null;
}
},
//获取主播列表
getAnchorList() {
components_request.request({
url: "anchor/list",
method: "POST",
data: {
id: this.id
},
userInfo: true
}).then((res) => {
this.triggered = false;
if (res.code == 200) {
this.AnchorList = res.data;
} else {
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:265", res.msg);
}
});
},
//选择我的主播
chooseMyStreamer() {
this.$refs.popup.open("center");
this.getAnchorList();
},
//性别
gender(item) {
this.genders = item.value;
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:183", item);
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:277", item);
},
//国家
country(item) {
this.countrys = item.value;
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:188", item);
common_vendor.index.__f__("log", "at pages/NewAddedPk/NewAddedPk.vue:282", item);
},
handleOverlayClick(event) {
if (event.target === this.$el) {
@@ -197,14 +254,16 @@ if (!Array) {
const _easycom_uni_number_box2 = common_vendor.resolveComponent("uni-number-box");
const _easycom_uni_datetime_picker2 = common_vendor.resolveComponent("uni-datetime-picker");
const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
(_easycom_wht_select2 + _easycom_uni_number_box2 + _easycom_uni_datetime_picker2 + _easycom_uni_easyinput2)();
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_easycom_wht_select2 + _easycom_uni_number_box2 + _easycom_uni_datetime_picker2 + _easycom_uni_easyinput2 + _easycom_uni_popup2)();
}
const _easycom_wht_select = () => "./uni_modules/wht-select/components/wht-select/wht-select.js";
const _easycom_uni_number_box = () => "./uni_modules/uni-number-box/components/uni-number-box/uni-number-box.js";
const _easycom_uni_datetime_picker = () => "./uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js";
const _easycom_uni_easyinput = () => "./uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
const _easycom_uni_popup = () => "./uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_wht_select + _easycom_uni_number_box + _easycom_uni_datetime_picker + _easycom_uni_easyinput)();
(_easycom_wht_select + _easycom_uni_number_box + _easycom_uni_datetime_picker + _easycom_uni_easyinput + _easycom_uni_popup)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
@@ -213,10 +272,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
b: common_vendor.o$1(($event) => $options.open()),
c: common_vendor.o$1((...args) => _ctx.NameAnchor && _ctx.NameAnchor(...args)),
d: common_vendor.o$1((...args) => $options.blur && $options.blur(...args)),
e: $data.nameAnchor === "" && $data.Hint === true
e: $data.nameAnchor,
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((...args) => $options.chooseMyStreamer && $options.chooseMyStreamer(...args)),
h: common_vendor.o$1($options.country),
i: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
@@ -225,10 +286,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
filterable: $data.filterable,
placeholder: "请选择国家"
}),
h: $data.countrys === "" && $data.Hint === true
j: $data.countrys === "" && $data.Hint === true
}, $data.countrys === "" && $data.Hint === true ? {} : {}, {
i: common_vendor.o$1($options.gender),
j: common_vendor.p({
k: common_vendor.o$1($options.gender),
l: common_vendor.p({
backgroundColor: "#ffffff",
placeholderColor: "#666666",
textColor: "#666666",
@@ -236,50 +297,73 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
options: $data.Gender,
placeholder: "性别"
}),
k: $data.genders === 0
m: $data.genders === 0
}, $data.genders === 0 ? {} : {}, {
l: $data.genders === 1
n: $data.genders === 1
}, $data.genders === 1 ? {} : {}, {
m: $data.genders === 2
o: $data.genders === 2
}, $data.genders === 2 ? {} : {}, {
n: $data.genders === 0 && $data.Hint === true
p: $data.genders === 0 && $data.Hint === true
}, $data.genders === 0 && $data.Hint === true ? {} : {}, {
o: common_vendor.o$1(($event) => $data.numberCoins = $event),
p: common_vendor.p({
q: common_vendor.o$1(($event) => $data.numberCoins = $event),
r: common_vendor.p({
max: 9999999999,
background: "#03ABA8",
modelValue: $data.numberCoins
}),
q: $data.numberCoins === "" && $data.Hint === true
s: $data.numberCoins === "" && $data.Hint === true
}, $data.numberCoins === "" && $data.Hint === true ? {} : {}, {
r: common_vendor.o$1(($event) => $data.datetimesingle = $event),
s: common_vendor.p({
t: common_vendor.o$1(($event) => $data.datetimesingle = $event),
v: common_vendor.p({
type: "datetime",
["hide-second"]: "true",
modelValue: $data.datetimesingle
}),
t: $data.datetimesingle === "" && $data.Hint === true
w: $data.datetimesingle === "" && $data.Hint === true
}, $data.datetimesingle === "" && $data.Hint === true ? {} : {}, {
v: common_vendor.o$1(($event) => $data.session = $event),
w: common_vendor.p({
x: common_vendor.o$1(($event) => $data.session = $event),
y: common_vendor.p({
background: "#03ABA8",
modelValue: $data.session
}),
x: $data.session === "" && $data.Hint === true
z: $data.session === "" && $data.Hint === true
}, $data.session === "" && $data.Hint === true ? {} : {}, {
y: common_vendor.o$1(($event) => $data.remarks = $event),
z: common_vendor.p({
A: common_vendor.o$1(($event) => $data.remarks = $event),
B: common_vendor.p({
type: "textarea",
placeholder: "备注",
maxlength: "-1",
modelValue: $data.remarks
}),
A: common_vendor.o$1(($event) => $options.Publish()),
B: common_vendor.o$1(() => {
C: common_vendor.o$1(($event) => $options.Publish()),
D: common_vendor.o$1(() => {
}),
C: common_vendor.n($data.Display ? "create-module" : "close-animation "),
D: common_vendor.o$1(($event) => $options.open())
}) : {});
E: common_vendor.n($data.Display ? "create-module" : "close-animation "),
F: common_vendor.o$1(($event) => $options.open())
}) : {}, {
G: $data.AnchorList.length !== 0
}, $data.AnchorList.length !== 0 ? {
H: common_vendor.f($data.AnchorList, (item, index, i0) => {
return {
a: item.headerIcon,
b: common_vendor.t(item.anchorId),
c: common_vendor.t(item.country),
d: common_vendor.o$1(($event) => $options.Select(item.id, item), index),
e: $data.selectedId === item.id ? "#f6f6f6" : "#ffffff",
f: index
};
})
} : {}, {
I: $data.AnchorList.length === 0
}, $data.AnchorList.length === 0 ? {} : {}, {
J: common_vendor.o$1(($event) => $options.invite()),
K: common_vendor.o$1(($event) => $options.close()),
L: common_vendor.sr("popup", "96d38e2b-6"),
M: 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-96d38e2b"]]);
exports.MiniProgramPage = MiniProgramPage;