Commit 3fbac29a by member

连接小工具

parent 9173fe90
...@@ -662,13 +662,15 @@ export default { ...@@ -662,13 +662,15 @@ export default {
handlePaddGift(list) { handlePaddGift(list) {
// 拼接id // 拼接id
this.giftFlag = true; this.giftFlag = true;
this.giftName = list.proName;
this.giftUrl = list.integralMallProId; this.giftUrl = list.integralMallProId;
}, },
handlePassId(id) { handlePassId(row) {
this.chooseFlag = true; this.chooseFlag = true;
// 先保存下来 // 先保存下来
this.cardUrl = id; this.cardName = row.cardName;
this.cardUrl = row.coupCardId;
}, },
// -------------------------------------------------- // --------------------------------------------------
// 选择类型改变 (一级选择,保存选择类型) // 选择类型改变 (一级选择,保存选择类型)
...@@ -1511,7 +1513,7 @@ export default { ...@@ -1511,7 +1513,7 @@ export default {
if (this.giftType == 'coup') { if (this.giftType == 'coup') {
// 优惠券 // 优惠券
if (this.chooseFlag) { if (this.chooseFlag) {
this.selectLinkObj.name = 'coup'; this.selectLinkObj.name = '积分商城/' + this.cardName;
this.selectLinkObj.id = this.cardUrl; this.selectLinkObj.id = this.cardUrl;
this.selectLinkObj.url += `/${this.cardUrl}`; this.selectLinkObj.url += `/${this.cardUrl}`;
this.transData(); this.transData();
...@@ -1526,7 +1528,7 @@ export default { ...@@ -1526,7 +1528,7 @@ export default {
} else if (this.giftType == 'gift') { } else if (this.giftType == 'gift') {
// 礼品 // 礼品
if (this.giftFlag) { if (this.giftFlag) {
this.selectLinkObj.name = 'gift'; this.selectLinkObj.name = this.giftName;
this.selectLinkObj.id = this.giftUrl; this.selectLinkObj.id = this.giftUrl;
this.selectLinkObj.url += `/${this.giftUrl}`; this.selectLinkObj.url += `/${this.giftUrl}`;
this.transData(); this.transData();
...@@ -1559,7 +1561,6 @@ export default { ...@@ -1559,7 +1561,6 @@ export default {
} }
return false; return false;
} }
alert(JSON.stringify(this.selectLinkObj));
if (!!that.selectLinkObj.name && !!that.selectLinkObj.id) { if (!!that.selectLinkObj.name && !!that.selectLinkObj.id) {
// 触发父组件方法,传递参数 // 触发父组件方法,传递参数
that.transData(); that.transData();
...@@ -1593,6 +1594,7 @@ export default { ...@@ -1593,6 +1594,7 @@ export default {
// 重置所有组件 // 重置所有组件
resetAll() { resetAll() {
var that = this var that = this
this.cardLinksVisible = false;
that.h5linkVisible = false; that.h5linkVisible = false;
that.thirdlinkVisible = false; // 第三方小程序 that.thirdlinkVisible = false; // 第三方小程序
that.linksType = ''; that.linksType = '';
...@@ -1912,13 +1914,10 @@ export default { ...@@ -1912,13 +1914,10 @@ export default {
}, },
mounted(){ mounted(){
var that = this; this.repProjectName = this.projectName || 'gic-web';
that.repProjectName = that.projectName || 'gic-web';
// 获取 showType // 获取 showType
that.linkShowType = that.showType || 0; this.linkShowType = this.showType || 0;
this.getLinksList(0,1)
that.getLinksList(0,1)
}, },
components: { components: {
...@@ -3091,3 +3090,4 @@ export default { ...@@ -3091,3 +3090,4 @@ 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