提交 e7091ec6 编写于 作者: guangjun.yang's avatar guangjun.yang

获取学习卡信息

上级 74c4ac3c
......@@ -21,12 +21,14 @@
<!-- <img @click="isBuy(1)" class="img" src="https://file.yunqueyi.com/h5/images/tinified/i-detail-8.png"> -->
<CardPopup :cardInfo="cardInfo" :isShow="isShowPopup" @cancle="jumpToCardList" @confirm="confirm"></CardPopup>
<Loading v-if="showLoading" />
</section>
</template>
<script>
import ExjumperButton from "@/components/cme/exjumper-button";
import CommonNavbar from "@/components/common/common-navbar";
import CardPopup from "@/components/cme/card-popup";
import Loading from "@/components/common/common-loading";
export default {
data() {
return {
......@@ -42,12 +44,14 @@ export default {
id: 0
},
cmeToken: '',
showLoading: false,
}
},
components: {
CommonNavbar,
CardPopup,
ExjumperButton
ExjumperButton,
Loading
},
created() {
let _this = this;
......@@ -66,6 +70,7 @@ export default {
methods: {
// 判断用户是否购买过I类学习卡
isBuy(cardType) {
this.showLoading = true;
let param = {
cardType: cardType,
token: this.cmeToken,
......@@ -110,6 +115,7 @@ export default {
}
this.POST("trade/goods/cardList", param).then(res => {
if (res.code == "000000") {
this.showLoading = false;
this.isShowPopup = true;
this.cardInfo = res.data && res.data[0] || {id: 0} ;
}
......
......@@ -336,6 +336,7 @@ export default {
// 判断用户是否购买过I类学习卡
isBuy(cardType) {
this.showLoading = true;
let param = {
cardType: cardType,
setEntry: true,
......@@ -410,6 +411,7 @@ export default {
}
this.POST("trade/goods/cardList", param).then(res => {
if (res.code == "000000") {
this.showLoading = false;
this.isShowPopup = true;
this.cardInfo = res.data && res.data[0] || {id: 0} ;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册