|
|
@ -151,13 +151,13 @@ const addBefore = () => { |
|
|
|
if (selectedRate) { |
|
|
|
recharge.value.rateId = selectedRate.rateId |
|
|
|
} |
|
|
|
ElMessageBox.confirm('确认添加?') |
|
|
|
ElMessageBox.confirm('确认充值?') |
|
|
|
.then(() => { |
|
|
|
add() |
|
|
|
console.log('添加成功') |
|
|
|
console.log('充值成功') |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
console.log('取消添加') |
|
|
|
console.log('取消充值') |
|
|
|
}) |
|
|
|
} else { |
|
|
|
//提示 |
|
|
@ -329,7 +329,7 @@ const getUser = async function (jwcode) { |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.log("请求失败", error); |
|
|
|
ElMessage.error("查询失败,请检查精网号是否正确"); |
|
|
|
ElMessage.error("精网号错误"); |
|
|
|
recharge.value.jwcode = '' |
|
|
|
} |
|
|
|
} |
|
|
@ -528,7 +528,7 @@ onMounted(() => { |
|
|
|
<el-input v-model="recharge.jwcode" style="width: 220px" @blur="getUser(recharge.jwcode)" /> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
@click="getUser(recharge.jwcode)" |
|
|
|
|
|
|
|
style="margin-left: 20px" |
|
|
|
|
|
|
|
>查询</el-button |
|
|
|