Commit 827a236d by member

fix: 修复商城链接id

parent d85f3e84
...@@ -787,6 +787,7 @@ export default { ...@@ -787,6 +787,7 @@ export default {
// twoLevelValueChange (二级选择,保存选择类型) // twoLevelValueChange (二级选择,保存选择类型)
twoLevelValueChange(e) { twoLevelValueChange(e) {
if (e == 'product_category_link') { // 商品链接 if (e == 'product_category_link') { // 商品链接
this.middleGoodId = e;
this.goodType = 10; this.goodType = 10;
this.threeLevelVisible = true; this.threeLevelVisible = true;
this.threeLeveloneVisible = false; this.threeLeveloneVisible = false;
...@@ -794,6 +795,7 @@ export default { ...@@ -794,6 +795,7 @@ export default {
this.cardUrl = null; this.cardUrl = null;
} else if (e == 'mall_customize_page') { // 自定义页面 } else if (e == 'mall_customize_page') { // 自定义页面
this.goodType = 11; this.goodType = 11;
this.middleGoodId = e;
this.threeLevelVisible = true; this.threeLevelVisible = true;
this.threeLeveloneVisible = true; this.threeLeveloneVisible = true;
this.goodsTreeVisible = false; this.goodsTreeVisible = false;
...@@ -1641,7 +1643,7 @@ export default { ...@@ -1641,7 +1643,7 @@ export default {
if ( this.goodType == 10) { if ( this.goodType == 10) {
// 商品分类链接 // 商品分类链接
this.selectLinkObj.name = '商品分类链接/' + this.tagName; this.selectLinkObj.name = '商品分类链接/' + this.tagName;
this.selectLinkObj.id = this.linkId; this.selectLinkObj.id = this.middleGoodId;
this.selectLinkObj.params = { this.selectLinkObj.params = {
mallProTagId: this.cardUrl, mallProTagId: this.cardUrl,
name: this.tagName name: this.tagName
...@@ -1657,7 +1659,7 @@ export default { ...@@ -1657,7 +1659,7 @@ export default {
return false; return false;
} else if (this.goodType == 11) { } else if (this.goodType == 11) {
this.selectLinkObj.name = '商城自定义页面/' + this.pageName; this.selectLinkObj.name = '商城自定义页面/' + this.pageName;
this.selectLinkObj.id = this.linkId; this.selectLinkObj.id = this.middleGoodId;
this.selectLinkObj.params = { this.selectLinkObj.params = {
pageId: this.pageId, pageId: this.pageId,
name: this.pageName name: this.pageName
......
<!--
/**
* 链接小工具组件(弹窗) 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> <template>
<!-- 链接小工具 --> <!-- 链接小工具 -->
...@@ -757,6 +787,7 @@ export default { ...@@ -757,6 +787,7 @@ export default {
// twoLevelValueChange (二级选择,保存选择类型) // twoLevelValueChange (二级选择,保存选择类型)
twoLevelValueChange(e) { twoLevelValueChange(e) {
if (e == 'product_category_link') { // 商品链接 if (e == 'product_category_link') { // 商品链接
this.middleGoodId = e;
this.goodType = 10; this.goodType = 10;
this.threeLevelVisible = true; this.threeLevelVisible = true;
this.threeLeveloneVisible = false; this.threeLeveloneVisible = false;
...@@ -764,6 +795,7 @@ export default { ...@@ -764,6 +795,7 @@ export default {
this.cardUrl = null; this.cardUrl = null;
} else if (e == 'mall_customize_page') { // 自定义页面 } else if (e == 'mall_customize_page') { // 自定义页面
this.goodType = 11; this.goodType = 11;
this.middleGoodId = e;
this.threeLevelVisible = true; this.threeLevelVisible = true;
this.threeLeveloneVisible = true; this.threeLeveloneVisible = true;
this.goodsTreeVisible = false; this.goodsTreeVisible = false;
...@@ -1611,7 +1643,7 @@ export default { ...@@ -1611,7 +1643,7 @@ export default {
if ( this.goodType == 10) { if ( this.goodType == 10) {
// 商品分类链接 // 商品分类链接
this.selectLinkObj.name = '商品分类链接/' + this.tagName; this.selectLinkObj.name = '商品分类链接/' + this.tagName;
this.selectLinkObj.id = this.linkId; this.selectLinkObj.id = this.middleGoodId;
this.selectLinkObj.params = { this.selectLinkObj.params = {
mallProTagId: this.cardUrl, mallProTagId: this.cardUrl,
name: this.tagName name: this.tagName
...@@ -1627,7 +1659,7 @@ export default { ...@@ -1627,7 +1659,7 @@ export default {
return false; return false;
} else if (this.goodType == 11) { } else if (this.goodType == 11) {
this.selectLinkObj.name = '商城自定义页面/' + this.pageName; this.selectLinkObj.name = '商城自定义页面/' + this.pageName;
this.selectLinkObj.id = this.linkId; this.selectLinkObj.id = this.middleGoodId;
this.selectLinkObj.params = { this.selectLinkObj.params = {
pageId: this.pageId, pageId: this.pageId,
name: this.pageName name: this.pageName
......
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