提交 98ad55e3 authored 作者: lihuihui's avatar lihuihui

updata

上级 9621eae6
......@@ -126,7 +126,7 @@ export default {
}
},
wechatLogin() {
if (this.$route.query.type) { return false }
if (this.$route.query.t) { return false }
const appId = 'wx451c01d40d090d7a'
// 回调地址
const redirectURI = `https://passport.ezijing.com/rest/wechat/oauth-callback?needCheck=false&identity=transport&redirectUrl=${this.redirectUrl}`
......@@ -146,10 +146,8 @@ export default {
},
created() {
if (this.isWechat) {
this.redirectUrl = `${window.location.origin}/login?type=1`
if (!this.$route.query.type) {
this.wechatLogin()
}
this.redirectUrl = `${window.location.origin}/login?t=1`
this.wechatLogin()
}
}
}
......
......@@ -10,13 +10,37 @@
程标题道路旅客运输企业
</div>
</div>
<div class="deti">
<div class="tit">课程状态:</div>
<div class="val">已付款/未付款</div>
</div>
<div class="deti">
<div class="tit">共计:</div>
<div class="val">$199.00</div>
</div>
<div class="deti">
<div class="val col">
继续购买
</div>
</div>
</li>
</ul>
</div>
</div>
</template>
<script>
import * as api from '@/api/pay.js'
export default {
mounted() {
this.getMyOrder()
},
methods: {
getMyOrder() {
api.getMyOrder().then(res => {
console.log(res)
})
}
}
}
</script>
<style lang="scss" scoped>
......@@ -30,6 +54,7 @@ export default {
img{
width: 2.4rem;
height: 2.4rem;
display: block;
}
.txt{
margin-left: .2rem;
......@@ -38,5 +63,22 @@ export default {
word-wrap: break-word;
}
}
.deti{
display: flex;
margin-bottom: .4rem;
.tit{
font-size: .26rem;
color: #222;
}
.val{
font-size: .26rem;
color: #222;
margin-left: auto;
}
.col{
color: #FF6767;
font-size: .3rem;
}
}
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论