提交 1242b1a4 authored 作者: lihuihui's avatar lihuihui

bug修改

上级 06a21345
...@@ -97,12 +97,22 @@ export default { ...@@ -97,12 +97,22 @@ export default {
this.appSource() this.appSource()
}, },
mounted() { mounted() {
this.getOrder()
// api.getOrderStatus().then(res => {
// this.expireDay = res.expire_day
// this.orderStatus = res.status
// })
},
methods: {
async getOrder() {
const isLogin = await this.$store.dispatch('checkLogin')
if (isLogin) {
api.getOrderStatus().then(res => { api.getOrderStatus().then(res => {
this.expireDay = res.expire_day this.expireDay = res.expire_day
this.orderStatus = res.status this.orderStatus = res.status
}) })
}
}, },
methods: {
goPayIos() {}, goPayIos() {},
appSource() { appSource() {
const u = navigator.userAgent const u = navigator.userAgent
......
...@@ -96,12 +96,22 @@ export default { ...@@ -96,12 +96,22 @@ export default {
this.appSource() this.appSource()
}, },
mounted() { mounted() {
this.getOrder()
// api.getOrderStatus().then(res => {
// this.expireDay = res.expire_day
// this.orderStatus = res.status
// })
},
methods: {
async getOrder() {
const isLogin = await this.$store.dispatch('checkLogin')
if (isLogin) {
api.getOrderStatus().then(res => { api.getOrderStatus().then(res => {
this.expireDay = res.expire_day this.expireDay = res.expire_day
this.orderStatus = res.status this.orderStatus = res.status
}) })
}
}, },
methods: {
goPayIos() {}, goPayIos() {},
appSource() { appSource() {
const u = navigator.userAgent const u = navigator.userAgent
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论