Commit 7111cceb by member

fix: 树形选择链接修改无法传值

parent 827a236d
......@@ -794,14 +794,14 @@ export default {
this.goodsTreeVisible = true;
this.cardUrl = null;
} else if (e == 'mall_customize_page') { // 自定义页面
this.goodType = 11;
this.middleGoodId = e;
this.goodType = 11;
this.threeLevelVisible = true;
this.threeLeveloneVisible = true;
this.goodsTreeVisible = false;
this.pageId = null;
} else {
this.threeLevelVisible = true;
this.threeLevelVisible = false;
this.threeLeveloneVisible = true;
this.goodsTreeVisible = false;
}
......@@ -1645,8 +1645,8 @@ export default {
this.selectLinkObj.name = '商品分类链接/' + this.tagName;
this.selectLinkObj.id = this.middleGoodId;
this.selectLinkObj.params = {
mallProTagId: this.cardUrl,
name: this.tagName
tagid: this.cardUrl,
title: this.tagName
};
if (this.cardUrl) {
this.transData();
......@@ -1662,7 +1662,7 @@ export default {
this.selectLinkObj.id = this.middleGoodId;
this.selectLinkObj.params = {
pageId: this.pageId,
name: this.pageName
title: this.pageName
};
if (this.pageId) {
this.transData();
......
<!--
/**
* 链接小工具组件(弹窗) by fairyly on 2018/06/15
* 组件调用
*/
<linktools :showType="showType" :linkToolsVisible="linkToolsVisible" @linkSelect="linkSelect"/>
import Linktools from 'components/linktools/linktools.vue'
// 链接小工具参数
linkToolsVisible: false, //显示参数
showType: 0, // 显示类型,插件默认0:显示全部 ,1: (底部导航);2: (公众号菜单:只有小程序的,没有h5)
// methods
// linktools
showLinkDialog() {
this.linkToolsVisible = true;
},
linkSelect(val) {
console.log(val)
// 关闭时隐藏
this.linkToolsVisible = false;
}
components: {linkId
Linktools
} coupCardId
-->
<template>
<!-- 链接小工具 -->
......@@ -794,14 +764,14 @@ export default {
this.goodsTreeVisible = true;
this.cardUrl = null;
} else if (e == 'mall_customize_page') { // 自定义页面
this.goodType = 11;
this.middleGoodId = e;
this.goodType = 11;
this.threeLevelVisible = true;
this.threeLeveloneVisible = true;
this.goodsTreeVisible = false;
this.pageId = null;
} else {
this.threeLevelVisible = true;
this.threeLevelVisible = false;
this.threeLeveloneVisible = true;
this.goodsTreeVisible = false;
}
......@@ -1645,8 +1615,8 @@ export default {
this.selectLinkObj.name = '商品分类链接/' + this.tagName;
this.selectLinkObj.id = this.middleGoodId;
this.selectLinkObj.params = {
mallProTagId: this.cardUrl,
name: this.tagName
tagid: this.cardUrl,
title: this.tagName
};
if (this.cardUrl) {
this.transData();
......@@ -1662,7 +1632,7 @@ export default {
this.selectLinkObj.id = this.middleGoodId;
this.selectLinkObj.params = {
pageId: this.pageId,
name: this.pageName
title: this.pageName
};
if (this.pageId) {
this.transData();
......
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