Commit 7c9dbd47 by member

链接小工具修改类型

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