优化页面
This commit is contained in:
163
unpackage/dist/dev/mp-weixin/recompose.js
vendored
163
unpackage/dist/dev/mp-weixin/recompose.js
vendored
@@ -37,8 +37,12 @@ const _sfc_main = {
|
||||
//主播列表
|
||||
selectedId: null,
|
||||
//选择的主播
|
||||
selectedIddata: null
|
||||
selectedIddata: null,
|
||||
//选择的主播数据
|
||||
AnchorProfilePicture: "",
|
||||
//选择的主播头像
|
||||
senderId: ""
|
||||
//发送者id
|
||||
};
|
||||
},
|
||||
props: {
|
||||
@@ -52,20 +56,14 @@ const _sfc_main = {
|
||||
this.session = newQuestion.pkNumber;
|
||||
this.remarks = newQuestion.remark;
|
||||
this.datetimesingle = components_formatDate.formatDate(newQuestion.pkTime);
|
||||
this.id = newQuestion.senderId;
|
||||
this.id = newQuestion.id;
|
||||
this.nameAnchor = newQuestion.anchorId;
|
||||
this.countrys = newQuestion.country;
|
||||
this.genders = newQuestion.sex === "1" ? 1 : 2;
|
||||
this.AnchorProfilePicture = newQuestion.anchorIcon.split("/").pop();
|
||||
this.senderId = newQuestion.senderId;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
common_vendor.index.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.id = res.data.id;
|
||||
}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
//关闭弹窗
|
||||
close() {
|
||||
@@ -109,7 +107,7 @@ const _sfc_main = {
|
||||
if (res.code == 200) {
|
||||
this.AnchorList = res.data;
|
||||
} else {
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:297", res.msg);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:300", res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -121,12 +119,12 @@ const _sfc_main = {
|
||||
//性别
|
||||
gender(item) {
|
||||
this.genders = item.value;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:309", item);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:312", item);
|
||||
},
|
||||
//日期
|
||||
country(item) {
|
||||
this.countrys = item.value;
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:314", item);
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:317", item);
|
||||
},
|
||||
// //主播名称
|
||||
// handleOverlayClick(event) {
|
||||
@@ -139,20 +137,50 @@ const _sfc_main = {
|
||||
if (this.Display) {
|
||||
this.Display = false;
|
||||
this.Hint = false;
|
||||
this.nameAnchor = "";
|
||||
this.genders = 0;
|
||||
this.numberCoins = "";
|
||||
this.remarks = "";
|
||||
this.datetimesingle = "";
|
||||
this.countrys = "";
|
||||
this.session = "";
|
||||
} else {
|
||||
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.showLoading({
|
||||
title: "正在验证主播",
|
||||
mask: true
|
||||
});
|
||||
common_vendor.index.request({
|
||||
url: "https://python.yolojt.com/api/" + this.nameAnchor,
|
||||
success: (res) => {
|
||||
if (res.data.code === 200) {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "查询成功",
|
||||
icon: "none",
|
||||
duration: 3e3
|
||||
});
|
||||
this.AnchorProfilePicture = res.data.data;
|
||||
} else {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "未查询到该主播",
|
||||
icon: "none",
|
||||
duration: 3e3
|
||||
});
|
||||
}
|
||||
},
|
||||
fail: function(res) {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "网络请求失败",
|
||||
icon: "none",
|
||||
duration: 3e3
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
},
|
||||
async Publish() {
|
||||
if (this.nameAnchor == "" && this.nameAnchor == null || this.genders == 0 && 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) {
|
||||
@@ -183,22 +211,23 @@ const _sfc_main = {
|
||||
return;
|
||||
}
|
||||
common_vendor.index.showLoading({
|
||||
title: "发布中...",
|
||||
title: "修改中...",
|
||||
mask: true
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/Mine/minecomponents/recompose/recompose.vue:420", this.senderId, this.sendingTime, this.nameAnchor, this.genders, this.numberCoins, this.remarks, this.id, this.AnchorProfilePicture, this.session);
|
||||
const res = await components_request.request({
|
||||
url: "pk/addPkData",
|
||||
url: "pk/updatePkInfoById",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.id,
|
||||
anchorId: this.nameAnchor,
|
||||
pkTime: this.sendingTime,
|
||||
sex: this.genders,
|
||||
country: this.countrys,
|
||||
coin: this.numberCoins,
|
||||
remark: this.remarks,
|
||||
status: 0,
|
||||
senderId: this.id,
|
||||
anchorIcon: "",
|
||||
senderId: this.senderId,
|
||||
anchorIcon: this.AnchorProfilePicture,
|
||||
pkNumber: this.session
|
||||
},
|
||||
userInfo: true
|
||||
@@ -213,15 +242,16 @@ const _sfc_main = {
|
||||
this.datetimesingle = "";
|
||||
this.session = "";
|
||||
common_vendor.index.hideLoading();
|
||||
this.$emit("Refresh");
|
||||
common_vendor.index.showToast({
|
||||
title: "发布成功",
|
||||
title: "修改成功",
|
||||
icon: "success",
|
||||
duration: 2e3
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: "发布失败",
|
||||
title: "修改失败",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
@@ -250,14 +280,15 @@ 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_vendor.o$1((...args) => $options.NameAnchor && $options.NameAnchor(...args)),
|
||||
d: common_vendor.o$1((...args) => _ctx.blur && _ctx.blur(...args)),
|
||||
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,
|
||||
f: $data.nameAnchor === "" && $data.Hint === true
|
||||
}, $data.nameAnchor === "" && $data.Hint === true ? {} : {}, {
|
||||
g: common_vendor.o$1((...args) => $options.chooseMyStreamer && $options.chooseMyStreamer(...args)),
|
||||
h: common_vendor.o$1($options.country),
|
||||
i: common_vendor.p({
|
||||
i: common_vendor.o$1($options.blur),
|
||||
j: common_vendor.p({
|
||||
backgroundColor: "#ffffff",
|
||||
placeholderColor: "#666666",
|
||||
textColor: "#666666",
|
||||
@@ -267,64 +298,64 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
placeholder: "请选择国家",
|
||||
value: $data.countrys
|
||||
}),
|
||||
j: $data.countrys === "" || $data.countrys === null && $data.Hint === true
|
||||
k: $data.countrys === "" || $data.countrys === null && $data.Hint === true
|
||||
}, $data.countrys === "" || $data.countrys === null && $data.Hint === true ? {} : {}, {
|
||||
k: common_vendor.o$1($options.gender),
|
||||
l: common_vendor.p({
|
||||
l: common_vendor.o$1($options.gender),
|
||||
m: common_vendor.p({
|
||||
backgroundColor: "#ffffff",
|
||||
placeholderColor: "#666666",
|
||||
textColor: "#666666",
|
||||
borderColor: "#ffffff",
|
||||
options: $data.Gender,
|
||||
placeholder: "性别",
|
||||
value: $props.message.sex === "1" ? 1 : 2
|
||||
value: $data.genders
|
||||
}),
|
||||
m: $data.genders === 0 || $props.message.sex === "0"
|
||||
}, $data.genders === 0 || $props.message.sex === "0" ? {} : {}, {
|
||||
n: $data.genders === 1 || $props.message.sex === "1"
|
||||
}, $data.genders === 1 || $props.message.sex === "1" ? {} : {}, {
|
||||
o: $data.genders === 2 || $props.message.sex === "2"
|
||||
}, $data.genders === 2 || $props.message.sex === "2" ? {} : {}, {
|
||||
p: $data.genders === 0 || $data.genders === null && $data.Hint === true
|
||||
n: $data.genders === 0
|
||||
}, $data.genders === 0 ? {} : {}, {
|
||||
o: $data.genders === 1
|
||||
}, $data.genders === 1 ? {} : {}, {
|
||||
p: $data.genders === 2
|
||||
}, $data.genders === 2 ? {} : {}, {
|
||||
q: $data.genders === 0 || $data.genders === null && $data.Hint === true
|
||||
}, $data.genders === 0 || $data.genders === null && $data.Hint === true ? {} : {}, {
|
||||
q: common_vendor.o$1(($event) => $data.numberCoins = $event),
|
||||
r: common_vendor.p({
|
||||
r: common_vendor.o$1(($event) => $data.numberCoins = $event),
|
||||
s: common_vendor.p({
|
||||
max: 9999999999,
|
||||
background: "#03ABA8",
|
||||
modelValue: $data.numberCoins
|
||||
}),
|
||||
s: $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true
|
||||
t: $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true
|
||||
}, $data.numberCoins === "" || $data.numberCoins === null && $data.Hint === true ? {} : {}, {
|
||||
t: common_vendor.o$1(($event) => $data.datetimesingle = $event),
|
||||
v: common_vendor.p({
|
||||
v: common_vendor.o$1(($event) => $data.datetimesingle = $event),
|
||||
w: common_vendor.p({
|
||||
type: "datetime",
|
||||
["hide-second"]: "true",
|
||||
modelValue: $data.datetimesingle
|
||||
}),
|
||||
w: $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true
|
||||
x: $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true
|
||||
}, $data.datetimesingle === "" || $data.datetimesingle === null && $data.Hint === true ? {} : {}, {
|
||||
x: common_vendor.o$1(($event) => $data.session = $event),
|
||||
y: common_vendor.p({
|
||||
y: common_vendor.o$1(($event) => $data.session = $event),
|
||||
z: common_vendor.p({
|
||||
background: "#03ABA8",
|
||||
modelValue: $data.session
|
||||
}),
|
||||
z: $data.session === "" || $data.session === null && $data.Hint === true
|
||||
A: $data.session === "" || $data.session === null && $data.Hint === true
|
||||
}, $data.session === "" || $data.session === null && $data.Hint === true ? {} : {}, {
|
||||
A: common_vendor.o$1(($event) => $data.remarks = $event),
|
||||
B: common_vendor.p({
|
||||
B: common_vendor.o$1(($event) => $data.remarks = $event),
|
||||
C: common_vendor.p({
|
||||
type: "textarea",
|
||||
placeholder: "备注",
|
||||
modelValue: $data.remarks
|
||||
}),
|
||||
C: common_vendor.o$1(($event) => $options.Publish()),
|
||||
D: common_vendor.o$1(() => {
|
||||
D: common_vendor.o$1(($event) => $options.Publish()),
|
||||
E: common_vendor.o$1(() => {
|
||||
}),
|
||||
E: common_vendor.n($data.Display ? "create-module" : "close-animation "),
|
||||
F: common_vendor.o$1(($event) => $options.open())
|
||||
F: common_vendor.n($data.Display ? "create-module" : "close-animation "),
|
||||
G: common_vendor.o$1(($event) => $options.open())
|
||||
}) : {}, {
|
||||
G: $data.AnchorList.length !== 0
|
||||
H: $data.AnchorList.length !== 0
|
||||
}, $data.AnchorList.length !== 0 ? {
|
||||
H: common_vendor.f($data.AnchorList, (item, index, i0) => {
|
||||
I: common_vendor.f($data.AnchorList, (item, index, i0) => {
|
||||
return {
|
||||
a: item.headerIcon,
|
||||
b: common_vendor.t(item.anchorId),
|
||||
@@ -335,12 +366,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
};
|
||||
})
|
||||
} : {}, {
|
||||
I: $data.AnchorList.length === 0
|
||||
J: $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", "4e606fe0-6"),
|
||||
M: common_vendor.p({
|
||||
K: common_vendor.o$1(($event) => $options.invite()),
|
||||
L: common_vendor.o$1(($event) => $options.close()),
|
||||
M: common_vendor.sr("popup", "4e606fe0-6"),
|
||||
N: common_vendor.p({
|
||||
type: "center",
|
||||
["border-radius"]: "10px 10px 0 0"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user