优化页面

This commit is contained in:
pengxiaolong
2025-06-11 22:16:44 +08:00
parent 3c2d7e5959
commit 931d867c09
806 changed files with 87462 additions and 331 deletions

View File

@@ -92,7 +92,11 @@
<view class="goldCoin">
<view class="number-box">
<view class="number-box-title">金币数量:</view>
<uni-number-box :max="9999999999" background="#03ABA8" v-model="numberCoins"></uni-number-box>
<uni-number-box
:max="9999999999"
background="#03ABA8"
v-model="numberCoins"
></uni-number-box>
<view class="number-box-title">单位:</view>
<view class="number-box-unit">K</view>
</view>
@@ -126,6 +130,7 @@
type="textarea"
v-model="remarks"
placeholder="备注"
maxlength="-1"
></uni-easyinput>
</view>
@@ -204,43 +209,43 @@ export default {
}
},
//获取主播名称以及头像地址
blur(event){
if(this.nameAnchor !== event.target.value){
blur(event) {
if (this.nameAnchor !== event.target.value) {
this.nameAnchor = event.target.value;
uni.showLoading({
title: "正在验证主播",
mask: true,
});
title: "正在验证主播",
mask: true,
});
uni.request({
url: "https://api.tkpage.yolozs.com/api/"+this.nameAnchor,
success:(res)=>{
if (res.data.code === 200) {
url: "https://python.yolojt.com/api/" + 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: "未查询到该主播",
icon: "none",
duration: 3000,
});
}
},
fail: function (res) {
uni.hideLoading();
uni.showToast({
title: "查询成功",
icon: "none",
duration: 3000,
})
this.AnchorProfilePicture = res.data.data;
}else {
uni.hideLoading();
uni.showToast({
title: "未查询到该主播",
icon: "none",
duration: 3000,
})
}
},
fail: function (res) {
uni.hideLoading();
uni.showToast({
uni.showToast({
title: "网络请求失败",
icon: "none",
duration: 3000,
})
},
});
}else{
});
},
});
} else {
return;
}
},
@@ -252,12 +257,21 @@ export default {
this.numberCoins === "" ||
this.countrys === "" ||
this.datetimesingle === "" ||
this.session === ""||
this.session === "" ||
this.AnchorProfilePicture === ""
) {
this.Hint = true;
return;
}
//判断备注中是否有特殊字符
if (this.remarks.includes(this.nameAnchor)) {
uni.showToast({
title: "备注中不能包含主播昵称",
icon: "none",
duration: 2000,
});
return;
}
//格式化日期
const isoString = this.datetimesingle.replace(" ", "T");
const timestamp = Date.parse(isoString);