|
|
@@ -1793,9 +1793,8 @@ const problemContent = ref(""); //问题输入框内容 |
|
|
|
const answerContent = ref(""); //回答输入框内容 |
|
|
|
// 点击发送需求 |
|
|
|
async function sendRequirement(tag) { |
|
|
|
let userPoins = await getUserPoinsApi() |
|
|
|
if (tag === 'send') { |
|
|
|
let userPoins = await getUserPoinsApi() |
|
|
|
// let userPoinsVal = localStorage.getItem('userPoinsVal') // 当前币值 |
|
|
|
if (userPoins.code == 200 && Number(userPoins.data) <= 0){ |
|
|
|
ElMessageBox.confirm( |
|
|
|
'当前金币不足,是否去充值?', |
|
|
@@ -1842,8 +1841,8 @@ async function sendRequirement(tag) { |
|
|
|
type: 'warning', |
|
|
|
} |
|
|
|
).then(() => { |
|
|
|
let userPoinsVal = localStorage.getItem('userPoinsVal') // 当前币值 |
|
|
|
if (Number(userPoinsVal) <= 0){ |
|
|
|
// let userPoinsVal = localStorage.getItem('userPoinsVal') // 当前币值 |
|
|
|
if (userPoins.code == 200 && Number(userPoins.data) <= 0){ |
|
|
|
ElMessage({ |
|
|
|
type: 'error', |
|
|
|
message: lanChange.value == "zh-cn" ? '金币不足!' : 'Insufficient gold coins!', |
|
|
|