优化页面

This commit is contained in:
pengxiaolong
2025-06-09 19:18:38 +08:00
parent d30589fd05
commit c5042d08c3
811 changed files with 2799 additions and 503 deletions

View File

@@ -29,7 +29,7 @@
@blur="blur"
/>
<view v-if="nameAnchor === '' && Hint === true" class="Hint"
>填写主播名称</view
>检查主播名称是否正确</view
>
</view>
@@ -207,21 +207,37 @@ export default {
blur(event){
if(this.nameAnchor !== event.target.value){
this.nameAnchor = event.target.value;
uni.showLoading({
title: "正在验证主播",
mask: true,
});
uni.request({
url: "http://47.79.98.113:6600/"+this.nameAnchor,
success:(res)=>{
if (res.data.code === 200) {
uni.hideLoading();
uni.showToast({
title: "查询成功",
icon: "none",
duration: 3000,
})
this.AnchorProfilePicture = res.data.data;
}else {
uni.hideLoading();
uni.showToast({
title: "主播不存在请确认主播名称",
title: "未查询到该主播",
icon: "none",
duration: 2000,
duration: 3000,
})
}
},
fail: function (res) {
console.log("请求失败", res.data);
uni.hideLoading();
uni.showToast({
title: "网络请求失败",
icon: "none",
duration: 3000,
})
},
});
}else{
@@ -236,7 +252,8 @@ export default {
this.numberCoins === "" ||
this.countrys === "" ||
this.datetimesingle === "" ||
this.session === ""
this.session === ""||
this.AnchorProfilePicture === ""
) {
this.Hint = true;
return;
@@ -288,6 +305,7 @@ export default {
this.remarks = "";
this.datetimesingle = "";
this.session = "";
this.AnchorProfilePicture = "";
uni.hideLoading();
uni.showToast({
title: "发布成功",