|
@@ -412,10 +412,26 @@ const getMatchEnroll = async (hash) =>{
|
|
}
|
|
}
|
|
|
|
|
|
const changeWGT = async () => {
|
|
const changeWGT = async () => {
|
|
|
|
+ if(WGTbalance.value < wgt_price.value){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '余额不足',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 5000
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
await handleTokenSignUp(WGTForToken, wgt_price.value);
|
|
await handleTokenSignUp(WGTForToken, wgt_price.value);
|
|
};
|
|
};
|
|
|
|
|
|
const changeSTT = async () => {
|
|
const changeSTT = async () => {
|
|
|
|
+ if(STTbalance.value < entry_fee.value){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '余额不足',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 5000
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
await handleTokenSignUp(STTForToken, entry_fee.value);
|
|
await handleTokenSignUp(STTForToken, entry_fee.value);
|
|
};
|
|
};
|
|
|
|
|