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

hasNoUsedCard与函数有冲突

上级 714f17e6
......@@ -287,6 +287,7 @@ export default {
orderId: 0,
},
subContent: "",
hasNoUsedCard: false,
};
},
components: {
......@@ -390,7 +391,7 @@ export default {
},
// 查询是否买过类似的卡,但还没有绑定
hasNoUsedCard() {
hasNoUsedCardAction() {
let param = {
setEntry: true
};
......@@ -912,7 +913,7 @@ export default {
// 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡
if (!_this.hasBindCard) {
_this.preJumper();
_this.hasNoUsedCard();
_this.hasNoUsedCardAction();
}
}
......
......@@ -105,6 +105,7 @@ export default {
showBindCardTips: false,
showChangeCard: false,
changeCardErrorMsg: "",
hasNoUsedCard: false,
showLoading: false
}
},
......@@ -183,7 +184,7 @@ export default {
if (!this.bindStatus) {
this.preJumper();
// 查询有无已买未激活的卡
this.hasNoUsedCard();
this.hasNoUsedCardAction();
}
} else {
this.$toast(res.message);
......@@ -261,7 +262,7 @@ export default {
);
},
// 查询是否买过类似的卡,但还没有绑定激活
hasNoUsedCard() {
hasNoUsedCardAction() {
let param = {
setEntry: true
};
......
......@@ -402,23 +402,6 @@ export default {
});
},
// 查询是否买过类似的卡,但还没有绑定
hasNoUsedCard() {
let param = {
setEntry: true
};
this.GET(
`cme/projectCard/queryNoUsedCard/${this.goodsType}/${this.cardType}`,
param
).then(({ data }) => {
this.hasNoUsedCard = data.hasNoUsedCard;
if (data.hasNoUsedCard == 1) {
this.cmeCardModels = data.cmeCardModels[0] || {};
this.showBindCardTips = true;
}
});
},
// 根据位置信息获取省ID
getProvinceIdByPosition(param) {
param.setEntry = true;
......
......@@ -308,6 +308,7 @@ export default {
orderId: 0
},
subContent: "",
hasNoUsedCard: false,
};
},
components: {
......@@ -462,7 +463,7 @@ export default {
},
// 查询是否买过类似的卡,但还没有绑定
hasNoUsedCard() {
hasNoUsedCardAction() {
let param = {
setEntry: true
};
......@@ -818,7 +819,7 @@ export default {
// 如果 hasBindCard 为false,则获取卡信息 0:未绑卡 1:已绑卡
if (!_this.hasBindCard) {
_this.preJumper();
_this.logged && _this.hasNoUsedCard();
_this.logged && _this.hasNoUsedCardAction();
}
} else {
_this.showLoading = false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册