Commit f74d7465 by member

修改商品主功能bug

parent 40a2f3ee
......@@ -670,11 +670,7 @@ export default {
this.giftFlag = false;
var that = this
var host = window.location.origin;
if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'http://gicdev.demogic.com';
}else {
that.baseUrl = host
}
this.baseUrl = host.indexOf('localhost') != '-1' ? 'http://gicdev.demogic.com' : host;
},
methods: {
changeVisible() {
......@@ -799,13 +795,14 @@ export default {
}
// 获取二级列表数据
that.getLinksList(selectOneItem.linkId,2)
that.getLinksList(selectOneItem.linkId, 2)
}
},
// twoLevelValueChange (二级选择,保存选择类型)
twoLevelValueChange(e) {
console.log(e);
if (e == 'product_category_link') { // 商品分类链接
this.middleGoodId = e;
this.goodType = 10;
......@@ -820,6 +817,11 @@ export default {
this.threeLeveloneVisible = true;
this.goodsTreeVisible = false;
this.pageId = null;
} else if (e == 1) {
this.goodType = 1;
this.threeLevelVisible = false;
this.goodsTreeVisible = false;
this.threeLeveloneVisible = true;
} else {
this.threeLevelVisible = false;
this.threeLeveloneVisible = true;
......@@ -895,6 +897,7 @@ export default {
this.getGoodsLink();
} else if (this.goodType == 11) {
// 商品自定义页面
this.threeLevelVisible = true;
this.getGoodsPage();
} else {
// 判断三级中下拉/下拉树形/搜索下拉
......@@ -1809,7 +1812,7 @@ export default {
},
// 获取一级列表
getLinksList(parentId,num,twoType) {
getLinksList(parentId, num, twoType) {
var that = this;
// 如果不传传的显示类型,设置
twoType = twoType ? twoType : '';
......
<!--
/**
* 链接小工具组件(弹窗) 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>
<!-- 链接小工具 -->
......@@ -640,11 +670,7 @@ export default {
this.giftFlag = false;
var that = this
var host = window.location.origin;
if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'http://gicdev.demogic.com';
}else {
that.baseUrl = host
}
this.baseUrl = host.indexOf('localhost') != '-1' ? 'http://gicdev.demogic.com' : host;
},
methods: {
changeVisible() {
......@@ -769,13 +795,14 @@ export default {
}
// 获取二级列表数据
that.getLinksList(selectOneItem.linkId,2)
that.getLinksList(selectOneItem.linkId, 2)
}
},
// twoLevelValueChange (二级选择,保存选择类型)
twoLevelValueChange(e) {
console.log(e);
if (e == 'product_category_link') { // 商品分类链接
this.middleGoodId = e;
this.goodType = 10;
......@@ -790,6 +817,11 @@ export default {
this.threeLeveloneVisible = true;
this.goodsTreeVisible = false;
this.pageId = null;
} else if (e == 1) {
this.goodType = 1;
this.threeLevelVisible = false;
this.goodsTreeVisible = false;
this.threeLeveloneVisible = true;
} else {
this.threeLevelVisible = false;
this.threeLeveloneVisible = true;
......@@ -865,6 +897,7 @@ export default {
this.getGoodsLink();
} else if (this.goodType == 11) {
// 商品自定义页面
this.threeLevelVisible = true;
this.getGoodsPage();
} else {
// 判断三级中下拉/下拉树形/搜索下拉
......@@ -1779,7 +1812,7 @@ export default {
},
// 获取一级列表
getLinksList(parentId,num,twoType) {
getLinksList(parentId, num, twoType) {
var that = this;
// 如果不传传的显示类型,设置
twoType = twoType ? twoType : '';
......
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