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

hasNoUsedCard与函数有冲突

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