Commit 7c9dbd47 by member

链接小工具修改类型

parent 374d5925
......@@ -1036,7 +1036,9 @@ export default {
// threeSingleValueChange
threeSingleValueChange(e) {
// 是那个类型的
console.log(this.threeLevelOptions);
this.giftType = e;
this.visibleType = this.giftType == 'coup' ? 8 : 9;
var that = this
var selThreeItem = '';
that.threeLevelOptions.forEach(function(ele,index){
......@@ -1050,10 +1052,10 @@ export default {
that.selectLinkObj.name = selThreeItem.name;
// #sy 三级下拉
// 卡券
if (e === 'coup') {
if (this.visibleType == 8) {
this.cardLinksVisible = true;
this.cardType = true;
} else if (e === 'gift') {
} else if (this.visibleType == 9) {
// 礼品
this.cardLinksVisible = true;
this.cardType = false;
......@@ -1510,12 +1512,14 @@ export default {
// 确定是会员功能 然后看是那个类型的
if (this.linkId == 27) {
if (this.giftType == 'coup') {
if (this.visibleType == 8) {
// 优惠券
if (this.chooseFlag) {
this.selectLinkObj.name = '积分商城/' + this.cardName;
this.selectLinkObj.id = this.cardUrl;
this.selectLinkObj.url += `?integralMallProId=${this.cardUrl}`;
this.selectLinkObj.id = this.giftType;
this.selectLinkObj.params = {
integralMallProId: this.cardUrl
};
this.transData();
return;
} else {
......@@ -1525,12 +1529,14 @@ export default {
})
return false;
}
} else if (this.giftType == 'gift') {
} else if (this.visibleType == 9) {
// 礼品
if (this.giftFlag) {
this.selectLinkObj.name = this.giftName;
this.selectLinkObj.id = this.giftUrl;
this.selectLinkObj.url += `?integralMallProId=${this.giftUrl}`;
this.selectLinkObj.id = this.giftType;
this.selectLinkObj.params = {
integralMallProId: this.cardUrl
};
this.transData();
return;
} else {
......@@ -3090,4 +3096,3 @@ export default {
}
}
</style>
......@@ -1005,7 +1005,9 @@ export default {
// threeSingleValueChange
threeSingleValueChange(e) {
// 是那个类型的
console.log(this.threeLevelOptions);
this.giftType = e;
this.visibleType = this.giftType == 'coup' ? 8 : 9;
var that = this
var selThreeItem = '';
that.threeLevelOptions.forEach(function(ele,index){
......@@ -1019,10 +1021,10 @@ export default {
that.selectLinkObj.name = selThreeItem.name;
// #sy 三级下拉
// 卡券
if (e === 'coup') {
if (this.visibleType == 8) {
this.cardLinksVisible = true;
this.cardType = true;
} else if (e === 'gift') {
} else if (this.visibleType == 9) {
// 礼品
this.cardLinksVisible = true;
this.cardType = false;
......@@ -1479,12 +1481,14 @@ export default {
// 确定是会员功能 然后看是那个类型的
if (this.linkId == 27) {
if (this.giftType == 'coup') {
if (this.visibleType == 8) {
// 优惠券
if (this.chooseFlag) {
this.selectLinkObj.name = '积分商城/' + this.cardName;
this.selectLinkObj.id = this.cardUrl;
this.selectLinkObj.url += `?integralMallProId=${this.cardUrl}`;
this.selectLinkObj.id = this.giftType;
this.selectLinkObj.params = {
integralMallProId: this.cardUrl
};
this.transData();
return;
} else {
......@@ -1494,12 +1498,14 @@ export default {
})
return false;
}
} else if (this.giftType == 'gift') {
} else if (this.visibleType == 9) {
// 礼品
if (this.giftFlag) {
this.selectLinkObj.name = this.giftName;
this.selectLinkObj.id = this.giftUrl;
this.selectLinkObj.url += `?integralMallProId=${this.giftUrl}`;
this.selectLinkObj.id = this.giftType;
this.selectLinkObj.params = {
integralMallProId: this.cardUrl
};
this.transData();
return;
} else {
......@@ -3059,4 +3065,3 @@ export default {
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment