Compare commits
No commits in common. "8486c2da1178d95895227c290bcfbeaa0552e014" and "bc9a51c5dd5fa12a7d1e545356d4b4a7d3aa3f0f" have entirely different histories.
8486c2da11
...
bc9a51c5dd
@ -86,7 +86,7 @@ const goLogin = async() => {
|
||||
if (res.status === 0) {
|
||||
showToast ('登录成功')
|
||||
localStorage.setItem('token', res.data.token)
|
||||
localStorage.setItem('accountInfo', JSON.stringify(res.data.accountInfo))
|
||||
localStorage.setItem('accountInfo', res.data.accountInfo)
|
||||
setTimeout(() => {
|
||||
router.push('/home')
|
||||
}, 1000)
|
||||
|
@ -73,13 +73,9 @@
|
||||
|
||||
|
||||
</div>
|
||||
<div style="color: #959595; font-size: 14px; margin-bottom: 10px;">
|
||||
餐券余额:{{ balance || 0 }}元
|
||||
<!-- .toLocaleString() -->
|
||||
</div>
|
||||
<van-button v-if="userName && appointDate && num" @click="confirmYuyue" style="width: 92%;min-height: 40px;"
|
||||
<van-button v-if="userName && appointDate && num" @click="confirmYuyue" style="width: 92%;margin-top: 30px;min-height: 40px;"
|
||||
color="#1936C9">确认预约</van-button>
|
||||
<van-button v-else color="#464646" style="width: 92%;min-height: 40px;">确认预约</van-button>
|
||||
<van-button v-else color="#464646" style="width: 92%;margin-top: 30px;min-height: 40px;">确认预约</van-button>
|
||||
<div style="margin-top: 20px;color: #959595; font-size: 14px;">
|
||||
到预约时间未消费则餐券作废
|
||||
</div>
|
||||
@ -144,10 +140,6 @@ const columns = ref([
|
||||
value: 600
|
||||
}
|
||||
])
|
||||
let userInfo = JSON.parse(localStorage.getItem('accountInfo'))
|
||||
const balance = ref('')
|
||||
balance.value = userInfo ? userInfo.balance : '';
|
||||
|
||||
const onYSConfirm = (value) => {
|
||||
console.log(value)
|
||||
standard.value = value.selectedValues[0]
|
||||
@ -231,7 +223,6 @@ const geYYtUserInfo = async () => {
|
||||
remark.value = res.data.remark
|
||||
userName.value = res.data.userName
|
||||
standard.value = res.data.standard
|
||||
|
||||
} else {
|
||||
if (res.data.isOver) {
|
||||
showfail.value = true
|
||||
|
Loading…
Reference in New Issue
Block a user