Browse Source

edit

ctt_dev
chutingting 1 year ago
parent
commit
fd520ba2dc
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      src/views/createVideo/index.vue

+ 3
- 4
src/views/createVideo/index.vue View File

@@ -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!',


Loading…
Cancel
Save