提交 598cf073 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 8a2c6a36
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<template v-if="data.tag && data.tag.length"> <template v-if="data.tag && data.tag.length">
<ul class="message-tag-list" ref="content"> <ul class="message-tag-list" ref="content">
<template v-for="item in data.tag"> <template v-for="item in data.tag">
<li class="course-tag-item" :key="item.id" @click="onClick(item)">{{item.title}}</li> <li class="course-tag-item" :key="item.id" @click="onClick(item)">
<p>{{item.title}}</p>
</li>
</template> </template>
</ul> </ul>
</template> </template>
...@@ -109,18 +111,21 @@ export default { ...@@ -109,18 +111,21 @@ export default {
} }
.course-tag-item { .course-tag-item {
display: inline-block; display: inline-block;
max-width: 100%;
height: 24px; height: 24px;
margin: 0 10px 10px 0; margin: 0 10px 10px 0;
padding: 0 15px; padding: 0 15px;
background: #67a8ff;
border-radius: 12px;
cursor: pointer;
p {
font-size: 13px; font-size: 13px;
color: #fff; color: #fff;
line-height: 24px; line-height: 24px;
background: #67a8ff;
border-radius: 12px;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
cursor: pointer; }
} }
.more { .more {
padding-top: 10px; padding-top: 10px;
......
...@@ -37,6 +37,13 @@ export default { ...@@ -37,6 +37,13 @@ export default {
} }
}, },
methods: { methods: {
async init() {
const isLogin = await this.$store.dispatch('checkLogin')
if (isLogin) {
this.getOrderStatus()
this.orderStatusTime = setInterval(this.getOrderStatus, 1000)
}
},
// 已购买 // 已购买
goHome() { goHome() {
this.$toast('您已购买!') this.$toast('您已购买!')
...@@ -74,9 +81,7 @@ export default { ...@@ -74,9 +81,7 @@ export default {
} }
}, },
beforeMount() { beforeMount() {
this.getOrderStatus() this.init()
this.orderStatusTime && clearInterval(this.orderStatusTime)
this.orderStatusTime = setInterval(this.getOrderStatus, 1000)
}, },
destroyed() { destroyed() {
this.orderStatusTime && clearInterval(this.orderStatusTime) this.orderStatusTime && clearInterval(this.orderStatusTime)
......
...@@ -122,7 +122,6 @@ export default [ ...@@ -122,7 +122,6 @@ export default [
{ {
path: '/pay', path: '/pay',
name: 'pay', name: 'pay',
component: () => import('../pages/pay/index.vue'), component: () => import('../pages/pay/index.vue')
meta: { requiredLogin: true }
} }
] ]
...@@ -101,7 +101,6 @@ body { ...@@ -101,7 +101,6 @@ body {
.main-container { .main-container {
margin: 0 0.4rem; margin: 0 0.4rem;
padding-bottom: env(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);
overflow: hidden;
} }
.main-tabs .van-hairline--top-bottom::after { .main-tabs .van-hairline--top-bottom::after {
border-top: 0; border-top: 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论