|
@@ -130,8 +130,8 @@ export default class extends Vue {
|
|
|
|
|
|
this.getListDetail({ B: true }).then((res: any) => {
|
|
|
console.log(res)
|
|
|
- if (res.error_code === 0) {
|
|
|
- this.response.balance = res.points.balance
|
|
|
+ if (res.data.error_code === 0) {
|
|
|
+ this.response.balance = res.data.points.balance
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -142,7 +142,7 @@ export default class extends Vue {
|
|
|
console.log(res)
|
|
|
if (res.error_code === 0) {
|
|
|
sessionStorage.setItem('paydata', JSON.stringify(res.data))
|
|
|
- this.$router.push('/purchasesuccess')
|
|
|
+ this.$router.push('/purchasesuccess/' + this.response.balance)
|
|
|
}
|
|
|
})
|
|
|
}
|